@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
@@ -12,9 +12,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Keys", "sap/ui/web
|
|
12
12
|
_CheckBox = _interopRequireDefault(_CheckBox);
|
13
13
|
_Button = _interopRequireDefault(_Button);
|
14
14
|
_ListItem = _interopRequireDefault(_ListItem);
|
15
|
-
|
16
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
17
|
-
|
18
16
|
// Styles
|
19
17
|
|
20
18
|
/**
|
@@ -22,9 +20,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Keys", "sap/ui/web
|
|
22
20
|
*/
|
23
21
|
const metadata = {
|
24
22
|
languageAware: true,
|
25
|
-
properties:
|
26
|
-
/** @lends sap.ui.webcomponents.main.ListItem.prototype */
|
27
|
-
{
|
23
|
+
properties: /** @lends sap.ui.webcomponents.main.ListItem.prototype */{
|
28
24
|
/**
|
29
25
|
* Defines the visual indication and behavior of the list items.
|
30
26
|
* Available options are <code>Active</code> (by default), <code>Inactive</code> and <code>Detail</code>.
|
@@ -40,7 +36,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Keys", "sap/ui/web
|
|
40
36
|
type: _ListItemType.default,
|
41
37
|
defaultValue: _ListItemType.default.Active
|
42
38
|
},
|
43
|
-
|
44
39
|
/**
|
45
40
|
* Indicates if the list item is active, e.g pressed down with the mouse or the keyboard keys.
|
46
41
|
*
|
@@ -50,7 +45,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Keys", "sap/ui/web
|
|
50
45
|
active: {
|
51
46
|
type: Boolean
|
52
47
|
},
|
53
|
-
|
54
48
|
/**
|
55
49
|
* Defines the tooltip of the component.
|
56
50
|
* @type {string}
|
@@ -61,7 +55,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Keys", "sap/ui/web
|
|
61
55
|
title: {
|
62
56
|
type: String
|
63
57
|
},
|
64
|
-
|
65
58
|
/**
|
66
59
|
* Indicates if the list item is actionable, e.g has hover and pressed effects.
|
67
60
|
*
|
@@ -71,7 +64,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Keys", "sap/ui/web
|
|
71
64
|
actionable: {
|
72
65
|
type: Boolean
|
73
66
|
},
|
74
|
-
|
75
67
|
/**
|
76
68
|
* Used to define the role of the list item.
|
77
69
|
*
|
@@ -85,7 +77,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Keys", "sap/ui/web
|
|
85
77
|
type: String,
|
86
78
|
defaultValue: "listitem"
|
87
79
|
},
|
88
|
-
|
89
80
|
/**
|
90
81
|
* Used to define the role of the list item.
|
91
82
|
*
|
@@ -107,9 +98,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Keys", "sap/ui/web
|
|
107
98
|
noAttribute: true
|
108
99
|
}
|
109
100
|
},
|
110
|
-
events:
|
111
|
-
/** @lends sap.ui.webcomponents.main.ListItem.prototype */
|
112
|
-
{
|
101
|
+
events: /** @lends sap.ui.webcomponents.main.ListItem.prototype */{
|
113
102
|
/**
|
114
103
|
* Fired when the user clicks on the detail button when type is <code>Detail</code>.
|
115
104
|
*
|
@@ -122,6 +111,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Keys", "sap/ui/web
|
|
122
111
|
"_selection-requested": {}
|
123
112
|
}
|
124
113
|
};
|
114
|
+
|
125
115
|
/**
|
126
116
|
* @class
|
127
117
|
* A class to serve as a base
|
@@ -133,220 +123,175 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Keys", "sap/ui/web
|
|
133
123
|
* @extends ListItemBase
|
134
124
|
* @public
|
135
125
|
*/
|
136
|
-
|
137
126
|
class ListItem extends _ListItemBase.default {
|
138
127
|
static get metadata() {
|
139
128
|
return metadata;
|
140
129
|
}
|
141
|
-
|
142
130
|
static get styles() {
|
143
131
|
return [_ListItemBase.default.styles, _ListItem.default];
|
144
132
|
}
|
145
|
-
|
146
133
|
static get dependencies() {
|
147
134
|
return [_Button.default, _RadioButton.default, _CheckBox.default];
|
148
135
|
}
|
149
|
-
|
150
136
|
constructor() {
|
151
137
|
super();
|
152
|
-
|
153
138
|
this.deactivateByKey = event => {
|
154
139
|
if ((0, _Keys.isEnter)(event)) {
|
155
140
|
this.deactivate();
|
156
141
|
}
|
157
142
|
};
|
158
|
-
|
159
143
|
this.deactivate = () => {
|
160
144
|
if (this.active) {
|
161
145
|
this.active = false;
|
162
146
|
}
|
163
147
|
};
|
164
|
-
|
165
148
|
const handleTouchStartEvent = event => {
|
166
149
|
this._onmousedown(event);
|
167
150
|
};
|
168
|
-
|
169
151
|
this._ontouchstart = {
|
170
152
|
handleEvent: handleTouchStartEvent,
|
171
153
|
passive: true
|
172
154
|
};
|
173
155
|
}
|
174
|
-
|
175
156
|
onBeforeRendering(...params) {
|
176
157
|
this.actionable = this.type === _ListItemType.default.Active && this._mode !== _ListMode.default.Delete;
|
177
158
|
}
|
178
|
-
|
179
159
|
onEnterDOM() {
|
180
160
|
document.addEventListener("mouseup", this.deactivate);
|
181
161
|
document.addEventListener("touchend", this.deactivate);
|
182
162
|
document.addEventListener("keyup", this.deactivateByKey);
|
183
163
|
}
|
184
|
-
|
185
164
|
onExitDOM() {
|
186
165
|
document.removeEventListener("mouseup", this.deactivate);
|
187
166
|
document.removeEventListener("keyup", this.deactivateByKey);
|
188
167
|
document.removeEventListener("touchend", this.deactivate);
|
189
168
|
}
|
190
|
-
|
191
169
|
_onkeydown(event) {
|
192
170
|
super._onkeydown(event);
|
193
|
-
|
194
171
|
const itemActive = this.type === _ListItemType.default.Active;
|
195
|
-
|
196
172
|
if ((0, _Keys.isSpace)(event)) {
|
197
173
|
event.preventDefault();
|
198
174
|
}
|
199
|
-
|
200
175
|
if (((0, _Keys.isSpace)(event) || (0, _Keys.isEnter)(event)) && itemActive) {
|
201
176
|
this.activate();
|
202
177
|
}
|
203
|
-
|
204
178
|
if ((0, _Keys.isEnter)(event)) {
|
205
179
|
this.fireItemPress(event);
|
206
180
|
}
|
207
181
|
}
|
208
|
-
|
209
182
|
_onkeyup(event) {
|
210
183
|
if ((0, _Keys.isSpace)(event) || (0, _Keys.isEnter)(event)) {
|
211
184
|
this.deactivate();
|
212
185
|
}
|
213
|
-
|
214
186
|
if ((0, _Keys.isSpace)(event)) {
|
215
187
|
this.fireItemPress(event);
|
216
188
|
}
|
217
|
-
|
218
189
|
if (this.modeDelete && (0, _Keys.isDelete)(event)) {
|
219
190
|
this.onDelete();
|
220
191
|
}
|
221
192
|
}
|
222
|
-
|
223
193
|
_onmousedown(event) {
|
224
194
|
if (event.isMarked === "button") {
|
225
195
|
return;
|
226
196
|
}
|
227
|
-
|
228
197
|
this.activate();
|
229
198
|
}
|
230
|
-
|
231
199
|
_onmouseup(event) {
|
232
200
|
if (event.isMarked === "button") {
|
233
201
|
return;
|
234
202
|
}
|
235
|
-
|
236
203
|
this.deactivate();
|
237
204
|
}
|
238
|
-
|
239
205
|
_ontouchend(event) {
|
240
206
|
this._onmouseup(event);
|
241
207
|
}
|
242
|
-
|
243
208
|
_onfocusout() {
|
244
209
|
super._onfocusout();
|
245
|
-
|
246
210
|
this.deactivate();
|
247
211
|
}
|
248
|
-
|
249
212
|
_onclick(event) {
|
250
213
|
if (event.isMarked === "button") {
|
251
214
|
return;
|
252
215
|
}
|
253
|
-
|
254
216
|
this.fireItemPress(event);
|
255
217
|
}
|
218
|
+
|
256
219
|
/*
|
257
220
|
* Called when selection components in Single (ui5-radio-button)
|
258
221
|
* and Multi (ui5-checkbox) selection modes are used.
|
259
222
|
*/
|
260
|
-
|
261
|
-
|
262
223
|
onMultiSelectionComponentPress(event) {
|
263
224
|
if (this.isInactive) {
|
264
225
|
return;
|
265
226
|
}
|
266
|
-
|
267
227
|
this.fireEvent("_selection-requested", {
|
268
228
|
item: this,
|
269
229
|
selected: event.target.checked,
|
270
230
|
selectionComponentPressed: true
|
271
231
|
});
|
272
232
|
}
|
273
|
-
|
274
233
|
onSingleSelectionComponentPress(event) {
|
275
234
|
if (this.isInactive) {
|
276
235
|
return;
|
277
236
|
}
|
278
|
-
|
279
237
|
this.fireEvent("_selection-requested", {
|
280
238
|
item: this,
|
281
239
|
selected: !event.target.selected,
|
282
240
|
selectionComponentPressed: true
|
283
241
|
});
|
284
242
|
}
|
285
|
-
|
286
243
|
activate() {
|
287
244
|
if (this.type === _ListItemType.default.Active) {
|
288
245
|
this.active = true;
|
289
246
|
}
|
290
247
|
}
|
291
|
-
|
292
248
|
onDelete(event) {
|
293
249
|
this.fireEvent("_selection-requested", {
|
294
250
|
item: this,
|
295
251
|
selectionComponentPressed: false
|
296
252
|
});
|
297
253
|
}
|
298
|
-
|
299
254
|
onDetailClick(event) {
|
300
255
|
this.fireEvent("detail-click", {
|
301
256
|
item: this,
|
302
257
|
selected: this.selected
|
303
258
|
});
|
304
259
|
}
|
305
|
-
|
306
260
|
fireItemPress(event) {
|
307
261
|
if (this.isInactive) {
|
308
262
|
return;
|
309
263
|
}
|
310
|
-
|
311
264
|
this.fireEvent("_press", {
|
312
265
|
item: this,
|
313
266
|
selected: this.selected,
|
314
267
|
key: event.key
|
315
268
|
});
|
316
269
|
}
|
317
|
-
|
318
270
|
get isInactive() {
|
319
271
|
return this.type === _ListItemType.default.Inactive || this.type === _ListItemType.default.Detail;
|
320
272
|
}
|
321
|
-
|
322
273
|
get placeSelectionElementBefore() {
|
323
274
|
return this._mode === _ListMode.default.MultiSelect || this._mode === _ListMode.default.SingleSelectBegin;
|
324
275
|
}
|
325
|
-
|
326
276
|
get placeSelectionElementAfter() {
|
327
277
|
return !this.placeSelectionElementBefore && (this._mode === _ListMode.default.SingleSelectEnd || this._mode === _ListMode.default.Delete);
|
328
278
|
}
|
329
|
-
|
330
279
|
get modeSingleSelect() {
|
331
280
|
return [_ListMode.default.SingleSelectBegin, _ListMode.default.SingleSelectEnd, _ListMode.default.SingleSelect].includes(this._mode);
|
332
281
|
}
|
333
|
-
|
334
282
|
get modeMultiSelect() {
|
335
283
|
return this._mode === _ListMode.default.MultiSelect;
|
336
284
|
}
|
337
|
-
|
338
285
|
get modeDelete() {
|
339
286
|
return this._mode === _ListMode.default.Delete;
|
340
287
|
}
|
288
|
+
|
341
289
|
/**
|
342
290
|
* Used in UploadCollectionItem
|
343
291
|
*/
|
344
|
-
|
345
|
-
|
346
292
|
get renderDeleteButton() {
|
347
293
|
return this.modeDelete;
|
348
294
|
}
|
349
|
-
|
350
295
|
get disableDeleteButton() {
|
351
296
|
return false;
|
352
297
|
}
|
@@ -354,50 +299,42 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Keys", "sap/ui/web
|
|
354
299
|
* End
|
355
300
|
*/
|
356
301
|
|
357
|
-
|
358
302
|
get typeDetail() {
|
359
303
|
return this.type === _ListItemType.default.Detail;
|
360
304
|
}
|
361
|
-
|
362
305
|
get typeActive() {
|
363
306
|
return this.type === _ListItemType.default.Active;
|
364
307
|
}
|
365
|
-
|
366
308
|
get ariaSelected() {
|
367
309
|
if (this.modeMultiSelect || this.modeSingleSelect) {
|
368
310
|
return this.selected;
|
369
311
|
}
|
370
|
-
|
371
312
|
return undefined;
|
372
313
|
}
|
373
|
-
|
374
314
|
get ariaSelectedText() {
|
375
|
-
let ariaSelectedText;
|
315
|
+
let ariaSelectedText;
|
316
|
+
|
317
|
+
// Selected state needs to be supported separately since now the role mapping is list -> listitem[]
|
376
318
|
// to avoid the issue of nesting interactive elements, ex. (option -> radio/checkbox);
|
377
319
|
// The text is added to aria-describedby because as part of the aria-labelledby
|
378
320
|
// the whole content of the item is readout when the aria-labelledby value is changed.
|
379
|
-
|
380
321
|
if (this.ariaSelected !== undefined) {
|
381
322
|
ariaSelectedText = this.ariaSelected ? ListItem.i18nBundle.getText(_i18nDefaults.LIST_ITEM_SELECTED) : ListItem.i18nBundle.getText(_i18nDefaults.LIST_ITEM_NOT_SELECTED);
|
382
323
|
}
|
383
|
-
|
384
324
|
return ariaSelectedText;
|
385
325
|
}
|
386
|
-
|
387
326
|
get deleteText() {
|
388
327
|
return ListItem.i18nBundle.getText(_i18nDefaults.DELETE);
|
389
328
|
}
|
390
|
-
|
391
329
|
get _accessibleNameRef() {
|
392
330
|
if (this.accessibleName) {
|
393
331
|
// accessibleName is set - return labels excluding content
|
394
332
|
return `${this._id}-invisibleText`;
|
395
|
-
}
|
396
|
-
|
333
|
+
}
|
397
334
|
|
335
|
+
// accessibleName is not set - return _accInfo.listItemAriaLabel including content
|
398
336
|
return `${this._id}-content ${this._id}-invisibleText`;
|
399
337
|
}
|
400
|
-
|
401
338
|
get _accInfo() {
|
402
339
|
return {
|
403
340
|
role: this.accessibleRole || this.role,
|
@@ -409,13 +346,10 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Keys", "sap/ui/web
|
|
409
346
|
ariaHaspopup: this._ariaHasPopup || undefined
|
410
347
|
};
|
411
348
|
}
|
412
|
-
|
413
349
|
static async onDefine() {
|
414
350
|
ListItem.i18nBundle = await (0, _i18nBundle.getI18nBundle)("@ui5/webcomponents");
|
415
351
|
}
|
416
|
-
|
417
352
|
}
|
418
|
-
|
419
353
|
var _default = ListItem;
|
420
354
|
_exports.default = _default;
|
421
355
|
});
|
@@ -8,18 +8,14 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/renderer/LitRender
|
|
8
8
|
_LitRenderer = _interopRequireDefault(_LitRenderer);
|
9
9
|
_UI5Element = _interopRequireDefault(_UI5Element);
|
10
10
|
_ListItemBase = _interopRequireDefault(_ListItemBase);
|
11
|
-
|
12
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
13
|
-
|
14
12
|
// Styles
|
15
13
|
|
16
14
|
/**
|
17
15
|
* @public
|
18
16
|
*/
|
19
17
|
const metadata = {
|
20
|
-
properties:
|
21
|
-
/** @lends sap.ui.webcomponents.main.ListItemBase.prototype */
|
22
|
-
{
|
18
|
+
properties: /** @lends sap.ui.webcomponents.main.ListItemBase.prototype */{
|
23
19
|
/**
|
24
20
|
* Defines the selected state of the <code>ListItem</code>.
|
25
21
|
* @type {boolean}
|
@@ -29,7 +25,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/renderer/LitRender
|
|
29
25
|
selected: {
|
30
26
|
type: Boolean
|
31
27
|
},
|
32
|
-
|
33
28
|
/**
|
34
29
|
* Defines if the list item should display its bottom border.
|
35
30
|
* @private
|
@@ -42,7 +37,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/renderer/LitRender
|
|
42
37
|
defaultValue: "-1",
|
43
38
|
noAttribute: true
|
44
39
|
},
|
45
|
-
|
46
40
|
/**
|
47
41
|
* Defines whether <code>ui5-li</code> is in disabled state.
|
48
42
|
* <br><br>
|
@@ -55,7 +49,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/renderer/LitRender
|
|
55
49
|
disabled: {
|
56
50
|
type: Boolean
|
57
51
|
},
|
58
|
-
|
59
52
|
/**
|
60
53
|
* Indicates if the element is on focus
|
61
54
|
* @private
|
@@ -64,14 +57,13 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/renderer/LitRender
|
|
64
57
|
type: Boolean
|
65
58
|
}
|
66
59
|
},
|
67
|
-
events:
|
68
|
-
/** @lends sap.ui.webcomponents.main.ListItemBase.prototype */
|
69
|
-
{
|
60
|
+
events: /** @lends sap.ui.webcomponents.main.ListItemBase.prototype */{
|
70
61
|
_focused: {},
|
71
62
|
"_forward-after": {},
|
72
63
|
"_forward-before": {}
|
73
64
|
}
|
74
65
|
};
|
66
|
+
|
75
67
|
/**
|
76
68
|
* A class to serve as a foundation
|
77
69
|
* for the <code>ListItem</code> and <code>GroupHeaderListItem</code> classes.
|
@@ -83,48 +75,37 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/renderer/LitRender
|
|
83
75
|
* @extends UI5Element
|
84
76
|
* @public
|
85
77
|
*/
|
86
|
-
|
87
78
|
class ListItemBase extends _UI5Element.default {
|
88
79
|
static get metadata() {
|
89
80
|
return metadata;
|
90
81
|
}
|
91
|
-
|
92
82
|
static get render() {
|
93
83
|
return _LitRenderer.default;
|
94
84
|
}
|
95
|
-
|
96
85
|
static get styles() {
|
97
86
|
return _ListItemBase.default;
|
98
87
|
}
|
99
|
-
|
100
88
|
_onfocusin(event) {
|
101
89
|
if (event.target !== this.getFocusDomRef()) {
|
102
90
|
return;
|
103
91
|
}
|
104
|
-
|
105
92
|
this.focused = true;
|
106
93
|
this.fireEvent("_focused", event);
|
107
94
|
}
|
108
|
-
|
109
95
|
_onfocusout(_event) {
|
110
96
|
this.focused = false;
|
111
97
|
}
|
112
|
-
|
113
98
|
_onkeydown(event) {
|
114
99
|
if ((0, _Keys.isTabNext)(event)) {
|
115
100
|
return this._handleTabNext(event);
|
116
101
|
}
|
117
|
-
|
118
102
|
if ((0, _Keys.isTabPrevious)(event)) {
|
119
103
|
return this._handleTabPrevious(event);
|
120
104
|
}
|
121
105
|
}
|
122
|
-
|
123
106
|
_onkeyup() {}
|
124
|
-
|
125
107
|
_handleTabNext(event) {
|
126
108
|
const target = event.target;
|
127
|
-
|
128
109
|
if (this.shouldForwardTabAfter(target)) {
|
129
110
|
if (!this.fireEvent("_forward-after", {
|
130
111
|
item: target
|
@@ -133,40 +114,33 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/renderer/LitRender
|
|
133
114
|
}
|
134
115
|
}
|
135
116
|
}
|
136
|
-
|
137
117
|
_handleTabPrevious(event) {
|
138
118
|
const target = event.target;
|
139
|
-
|
140
119
|
if (this.shouldForwardTabBefore(target)) {
|
141
120
|
const eventData = event;
|
142
121
|
eventData.item = target;
|
143
122
|
this.fireEvent("_forward-before", eventData);
|
144
123
|
}
|
145
124
|
}
|
125
|
+
|
146
126
|
/*
|
147
127
|
* Determines if th current list item either has no tabbable content or
|
148
128
|
* [TAB] is performed onto the last tabbale content item.
|
149
129
|
*/
|
150
|
-
|
151
|
-
|
152
130
|
shouldForwardTabAfter(target) {
|
153
131
|
const aContent = (0, _TabbableElements.getTabbableElements)(this.getDomRef());
|
154
|
-
|
155
132
|
if (target.getFocusDomRef) {
|
156
133
|
target = target.getFocusDomRef();
|
157
134
|
}
|
158
|
-
|
159
135
|
return !aContent.length || aContent[aContent.length - 1] === target;
|
160
136
|
}
|
137
|
+
|
161
138
|
/*
|
162
139
|
* Determines if the current list item is target of [SHIFT+TAB].
|
163
140
|
*/
|
164
|
-
|
165
|
-
|
166
141
|
shouldForwardTabBefore(target) {
|
167
142
|
return this.getDomRef() === target;
|
168
143
|
}
|
169
|
-
|
170
144
|
get classes() {
|
171
145
|
return {
|
172
146
|
main: {
|
@@ -175,25 +149,19 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/renderer/LitRender
|
|
175
149
|
}
|
176
150
|
};
|
177
151
|
}
|
178
|
-
|
179
152
|
get ariaDisabled() {
|
180
153
|
return this.disabled ? "true" : undefined;
|
181
154
|
}
|
182
|
-
|
183
155
|
get tabIndex() {
|
184
156
|
if (this.disabled) {
|
185
157
|
return -1;
|
186
158
|
}
|
187
|
-
|
188
159
|
if (this.selected) {
|
189
160
|
return 0;
|
190
161
|
}
|
191
|
-
|
192
162
|
return this._tabIndex;
|
193
163
|
}
|
194
|
-
|
195
164
|
}
|
196
|
-
|
197
165
|
var _default = ListItemBase;
|
198
166
|
_exports.default = _default;
|
199
167
|
});
|