@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
@@ -16,9 +16,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/FeaturesRegistry",
|
|
16
16
|
_Popover = _interopRequireDefault(_Popover);
|
17
17
|
_GroupHeaderListItem = _interopRequireDefault(_GroupHeaderListItem);
|
18
18
|
_SuggestionListItem = _interopRequireDefault(_SuggestionListItem);
|
19
|
-
|
20
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
21
|
-
|
22
20
|
/**
|
23
21
|
* A class to manage the <code>Input</code suggestion items.
|
24
22
|
*
|
@@ -29,32 +27,33 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/FeaturesRegistry",
|
|
29
27
|
class Suggestions {
|
30
28
|
constructor(component, slotName, highlight, handleFocus) {
|
31
29
|
// The component, that the suggestion would plug into.
|
32
|
-
this.component = component;
|
30
|
+
this.component = component;
|
33
31
|
|
34
|
-
|
32
|
+
// Defines the items` slot name.
|
33
|
+
this.slotName = slotName;
|
35
34
|
|
36
|
-
|
35
|
+
// Defines, if the focus will be moved via the arrow keys.
|
36
|
+
this.handleFocus = handleFocus;
|
37
37
|
|
38
|
-
|
38
|
+
// Defines, if the suggestions should highlight.
|
39
|
+
this.highlight = highlight;
|
39
40
|
|
41
|
+
// Press and Focus handlers
|
40
42
|
this.fnOnSuggestionItemPress = this.onItemPress.bind(this);
|
41
43
|
this.fnOnSuggestionItemFocus = this.onItemFocused.bind(this);
|
42
44
|
this.fnOnSuggestionItemMouseOver = this.onItemMouseOver.bind(this);
|
43
45
|
this.fnOnSuggestionItemMouseOut = this.onItemMouseOut.bind(this);
|
46
|
+
this._getSuggestionPopover();
|
44
47
|
|
45
|
-
|
48
|
+
// An integer value to store the currently selected item position,
|
46
49
|
// that changes due to user interaction.
|
47
|
-
|
48
|
-
|
49
50
|
this.selectedItemIndex = null;
|
50
51
|
this.accInfo = {};
|
51
52
|
}
|
52
|
-
/* Public methods */
|
53
|
-
|
54
53
|
|
54
|
+
/* Public methods */
|
55
55
|
defaultSlotProperties(hightlightValue) {
|
56
56
|
const inputSuggestionItems = this._getComponent().suggestionItems;
|
57
|
-
|
58
57
|
const highlight = this.highlight && !!hightlightValue;
|
59
58
|
const suggestions = [];
|
60
59
|
inputSuggestionItems.map((suggestion, idx) => {
|
@@ -74,223 +73,158 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/FeaturesRegistry",
|
|
74
73
|
});
|
75
74
|
return suggestions;
|
76
75
|
}
|
77
|
-
|
78
76
|
onUp(event) {
|
79
77
|
event.preventDefault();
|
80
|
-
|
81
|
-
this._handleItemNavigation(false
|
82
|
-
/* forward */
|
83
|
-
);
|
84
|
-
|
78
|
+
this._handleItemNavigation(false /* forward */);
|
85
79
|
return true;
|
86
80
|
}
|
87
|
-
|
88
81
|
onDown(event) {
|
89
82
|
event.preventDefault();
|
90
|
-
|
91
|
-
this._handleItemNavigation(true
|
92
|
-
/* forward */
|
93
|
-
);
|
94
|
-
|
83
|
+
this._handleItemNavigation(true /* forward */);
|
95
84
|
return true;
|
96
85
|
}
|
97
|
-
|
98
86
|
onSpace(event) {
|
99
87
|
if (this._isItemOnTarget()) {
|
100
88
|
event.preventDefault();
|
101
|
-
this.onItemSelected(null, true
|
102
|
-
/* keyboardUsed */
|
103
|
-
);
|
89
|
+
this.onItemSelected(null, true /* keyboardUsed */);
|
104
90
|
return true;
|
105
91
|
}
|
106
|
-
|
107
92
|
return false;
|
108
93
|
}
|
109
|
-
|
110
94
|
onEnter(event) {
|
111
95
|
if (this._isGroupOrInactiveItem) {
|
112
96
|
event.preventDefault();
|
113
97
|
return false;
|
114
98
|
}
|
115
|
-
|
116
99
|
if (this._isItemOnTarget()) {
|
117
|
-
this.onItemSelected(null, true
|
118
|
-
/* keyboardUsed */
|
119
|
-
);
|
100
|
+
this.onItemSelected(null, true /* keyboardUsed */);
|
120
101
|
return true;
|
121
102
|
}
|
122
|
-
|
123
103
|
return false;
|
124
104
|
}
|
125
|
-
|
126
105
|
onPageUp(event) {
|
127
106
|
event.preventDefault();
|
128
107
|
const isItemIndexValid = this.selectedItemIndex - 10 > -1;
|
129
|
-
|
130
108
|
if (this._hasValueState && !isItemIndexValid) {
|
131
109
|
this._focusValueState();
|
132
|
-
|
133
110
|
return true;
|
134
111
|
}
|
135
|
-
|
136
112
|
this._moveItemSelection(this.selectedItemIndex, isItemIndexValid ? this.selectedItemIndex -= 10 : this.selectedItemIndex = 0);
|
137
|
-
|
138
113
|
return true;
|
139
114
|
}
|
140
|
-
|
141
115
|
onPageDown(event) {
|
142
116
|
event.preventDefault();
|
143
|
-
|
144
117
|
const items = this._getItems();
|
145
|
-
|
146
118
|
const lastItemIndex = items.length - 1;
|
147
119
|
const isItemIndexValid = this.selectedItemIndex + 10 <= lastItemIndex;
|
148
|
-
|
149
120
|
if (this._hasValueState && !items) {
|
150
121
|
this._focusValueState();
|
151
|
-
|
152
122
|
return true;
|
153
123
|
}
|
154
|
-
|
155
124
|
this._moveItemSelection(this.selectedItemIndex, isItemIndexValid ? this.selectedItemIndex += 10 : this.selectedItemIndex = lastItemIndex);
|
156
|
-
|
157
125
|
return true;
|
158
126
|
}
|
159
|
-
|
160
127
|
onHome(event) {
|
161
128
|
event.preventDefault();
|
162
|
-
|
163
129
|
if (this._hasValueState) {
|
164
130
|
this._focusValueState();
|
165
|
-
|
166
131
|
return true;
|
167
132
|
}
|
168
|
-
|
169
133
|
this._moveItemSelection(this.selectedItemIndex, this.selectedItemIndex = 0);
|
170
|
-
|
171
134
|
return true;
|
172
135
|
}
|
173
|
-
|
174
136
|
onEnd(event) {
|
175
137
|
event.preventDefault();
|
176
138
|
const lastItemIndex = this._getItems().length - 1;
|
177
|
-
|
178
139
|
if (this._hasValueState && !lastItemIndex) {
|
179
140
|
this._focusValueState();
|
180
|
-
|
181
141
|
return true;
|
182
142
|
}
|
183
|
-
|
184
143
|
this._moveItemSelection(this.selectedItemIndex, this.selectedItemIndex = lastItemIndex);
|
185
|
-
|
186
144
|
return true;
|
187
145
|
}
|
188
|
-
|
189
146
|
onTab(event) {
|
190
147
|
if (this._isItemOnTarget()) {
|
191
148
|
this.onItemSelected(null, true);
|
192
149
|
return true;
|
193
150
|
}
|
194
|
-
|
195
151
|
return false;
|
196
152
|
}
|
197
|
-
|
198
153
|
toggle(bToggle, {
|
199
154
|
preventFocusRestore
|
200
155
|
}) {
|
201
156
|
const toggle = bToggle !== undefined ? bToggle : !this.isOpened();
|
202
|
-
|
203
157
|
if (toggle) {
|
204
158
|
this.open();
|
205
159
|
} else {
|
206
160
|
this.close(preventFocusRestore);
|
207
161
|
}
|
208
162
|
}
|
209
|
-
|
210
163
|
async _isScrollable() {
|
211
164
|
const sc = await this._getScrollContainer();
|
212
165
|
return sc.offsetHeight < sc.scrollHeight;
|
213
166
|
}
|
214
|
-
|
215
167
|
async open() {
|
216
168
|
this._getComponent().open = true;
|
217
|
-
|
218
169
|
this._beforeOpen();
|
219
|
-
|
220
170
|
this.responsivePopover.showAt(this._getComponent());
|
221
171
|
}
|
222
|
-
|
223
172
|
async close(preventFocusRestore = false) {
|
224
173
|
const selectedItem = this._getItems() && this._getItems()[this.selectedItemIndex];
|
225
|
-
|
226
174
|
this._getComponent().open = false;
|
227
175
|
this.responsivePopover = await this._getSuggestionPopover();
|
228
176
|
this.responsivePopover.close(false, false, preventFocusRestore);
|
229
|
-
|
230
177
|
if (selectedItem && selectedItem.focused) {
|
231
178
|
selectedItem.focused = false;
|
232
179
|
}
|
233
180
|
}
|
234
|
-
|
235
181
|
updateSelectedItemPosition(pos) {
|
236
182
|
this.selectedItemIndex = pos;
|
237
183
|
}
|
238
|
-
/* Interface methods */
|
239
|
-
|
240
184
|
|
185
|
+
/* Interface methods */
|
241
186
|
onItemFocused() {
|
242
187
|
this._getComponent().onItemFocused();
|
243
188
|
}
|
244
|
-
|
245
189
|
onItemMouseOver(event) {
|
246
190
|
this._getComponent().onItemMouseOver(event);
|
247
191
|
}
|
248
|
-
|
249
192
|
onItemMouseOut(event) {
|
250
193
|
this._getComponent().onItemMouseOut(event);
|
251
194
|
}
|
252
|
-
|
253
195
|
onItemSelected(selectedItem, keyboardUsed) {
|
254
196
|
const allItems = this._getItems();
|
255
|
-
|
256
197
|
const item = selectedItem || allItems[this.selectedItemIndex];
|
257
198
|
this.selectedItemIndex = allItems.indexOf(item);
|
258
199
|
this.accInfo = {
|
259
200
|
currentPos: this.selectedItemIndex + 1,
|
260
201
|
listSize: allItems.length,
|
261
202
|
itemText: item.textContent
|
262
|
-
};
|
263
|
-
// to have consistency with the way "Inactive" items behave in the ui5-list
|
203
|
+
};
|
264
204
|
|
205
|
+
// If the item is "Inactive", prevent selection with SPACE or ENTER
|
206
|
+
// to have consistency with the way "Inactive" items behave in the ui5-list
|
265
207
|
if (item.type === "Inactive" || item.group) {
|
266
208
|
return;
|
267
209
|
}
|
268
|
-
|
269
210
|
this._getComponent().onItemSelected(this._getRealItems()[this.selectedItemIndex], keyboardUsed);
|
270
|
-
|
271
211
|
item.selected = false;
|
272
212
|
item.focused = false;
|
273
213
|
this._getComponent().open = false;
|
274
214
|
}
|
275
|
-
|
276
215
|
onItemPreviewed(item) {
|
277
216
|
this._getComponent().onItemPreviewed(item);
|
278
217
|
}
|
279
|
-
/* Private methods */
|
280
|
-
|
281
218
|
|
219
|
+
/* Private methods */
|
282
220
|
onItemPress(oEvent) {
|
283
|
-
this.onItemSelected(oEvent.detail.selectedItems[0], false
|
284
|
-
/* keyboardUsed */
|
285
|
-
);
|
221
|
+
this.onItemSelected(oEvent.detail.selectedItems[0], false /* keyboardUsed */);
|
286
222
|
}
|
287
223
|
|
288
224
|
_beforeOpen() {
|
289
225
|
this._attachItemsListeners();
|
290
|
-
|
291
226
|
this._attachPopupListeners();
|
292
227
|
}
|
293
|
-
|
294
228
|
async _attachItemsListeners() {
|
295
229
|
const list = await this._getList();
|
296
230
|
list.removeEventListener("ui5-selection-change", this.fnOnSuggestionItemPress);
|
@@ -302,100 +236,73 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/FeaturesRegistry",
|
|
302
236
|
list.removeEventListener("mouseout", this.fnOnSuggestionItemMouseOut);
|
303
237
|
list.addEventListener("mouseout", this.fnOnSuggestionItemMouseOut);
|
304
238
|
}
|
305
|
-
|
306
239
|
_attachPopupListeners() {
|
307
240
|
if (!this.handleFocus) {
|
308
241
|
return;
|
309
242
|
}
|
310
|
-
|
311
243
|
if (!this.attachedAfterOpened) {
|
312
244
|
this._getSuggestionPopover.addEventListener("ui5-after-open", this._onOpen.bind(this));
|
313
|
-
|
314
245
|
this.attachedAfterOpened = true;
|
315
246
|
}
|
316
|
-
|
317
247
|
if (!this.attachedAfterClose) {
|
318
248
|
this._getSuggestionPopover.addEventListener("ui5-after-close", this._onClose.bind(this));
|
319
|
-
|
320
249
|
this.attachedAfterClose = true;
|
321
250
|
}
|
322
251
|
}
|
323
|
-
|
324
252
|
_onOpen() {
|
325
253
|
this._applyFocus();
|
326
|
-
|
327
254
|
this._getComponent().onOpen();
|
328
255
|
}
|
329
|
-
|
330
256
|
_onClose() {
|
331
257
|
this._getComponent().onClose();
|
332
258
|
}
|
333
|
-
|
334
259
|
_applyFocus() {
|
335
260
|
if (this.selectedItemIndex) {
|
336
261
|
this._getItems()[this.selectedItemIndex].focus();
|
337
262
|
}
|
338
263
|
}
|
339
|
-
|
340
264
|
_isItemOnTarget() {
|
341
265
|
return this.isOpened() && this.selectedItemIndex !== null && this.selectedItemIndex !== -1 && !this._isGroupOrInactiveItem;
|
342
266
|
}
|
343
|
-
|
344
267
|
get _isGroupOrInactiveItem() {
|
345
268
|
const items = this._getItems();
|
346
|
-
|
347
269
|
if (!items || !items[this.selectedItemIndex]) {
|
348
270
|
return false;
|
349
271
|
}
|
350
|
-
|
351
272
|
return items[this.selectedItemIndex].group || items[this.selectedItemIndex].type === "Inactive";
|
352
273
|
}
|
353
|
-
|
354
274
|
isOpened() {
|
355
275
|
return !!(this.responsivePopover && this.responsivePopover.opened);
|
356
276
|
}
|
357
|
-
|
358
277
|
_handleItemNavigation(forward) {
|
359
278
|
if (!this._getItems().length) {
|
360
279
|
return;
|
361
280
|
}
|
362
|
-
|
363
281
|
if (forward) {
|
364
282
|
this._selectNextItem();
|
365
283
|
} else {
|
366
284
|
this._selectPreviousItem();
|
367
285
|
}
|
368
286
|
}
|
369
|
-
|
370
287
|
_selectNextItem() {
|
371
288
|
const itemsCount = this._getItems().length;
|
372
|
-
|
373
289
|
const previousSelectedIdx = this.selectedItemIndex;
|
374
|
-
|
375
290
|
if (this._hasValueState && previousSelectedIdx === null && !this.component._isValueStateFocused) {
|
376
291
|
this._focusValueState();
|
377
|
-
|
378
292
|
return;
|
379
293
|
}
|
380
|
-
|
381
294
|
if (previousSelectedIdx === null && !this._hasValueState || this.component._isValueStateFocused) {
|
382
295
|
this._clearValueStateFocus();
|
383
|
-
|
384
296
|
--this.selectedItemIndex;
|
385
297
|
}
|
386
|
-
|
387
298
|
if (previousSelectedIdx !== null && previousSelectedIdx + 1 > itemsCount - 1) {
|
388
299
|
return;
|
389
300
|
}
|
390
|
-
|
391
301
|
this._moveItemSelection(previousSelectedIdx, ++this.selectedItemIndex);
|
392
302
|
}
|
393
|
-
|
394
303
|
_selectPreviousItem() {
|
395
304
|
const items = this._getItems();
|
396
|
-
|
397
305
|
const previousSelectedIdx = this.selectedItemIndex;
|
398
|
-
|
399
306
|
if (this._hasValueState && previousSelectedIdx === 0 && !this.component._isValueStateFocused) {
|
400
307
|
this.component.hasSuggestionItemSelected = false;
|
401
308
|
this.component._isValueStateFocused = true;
|
@@ -404,18 +311,15 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/FeaturesRegistry",
|
|
404
311
|
items[0].selected = false;
|
405
312
|
return;
|
406
313
|
}
|
407
|
-
|
408
314
|
if (this.component._isValueStateFocused) {
|
409
315
|
this.component.focused = true;
|
410
316
|
this.component._isValueStateFocused = false;
|
411
317
|
this.selectedItemIndex = null;
|
412
318
|
return;
|
413
319
|
}
|
414
|
-
|
415
320
|
if (previousSelectedIdx === -1 || previousSelectedIdx === null) {
|
416
321
|
return;
|
417
322
|
}
|
418
|
-
|
419
323
|
if (previousSelectedIdx - 1 < 0) {
|
420
324
|
items[previousSelectedIdx].selected = false;
|
421
325
|
items[previousSelectedIdx].focused = false;
|
@@ -424,195 +328,150 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/FeaturesRegistry",
|
|
424
328
|
this.selectedItemIndex -= 1;
|
425
329
|
return;
|
426
330
|
}
|
427
|
-
|
428
331
|
this._moveItemSelection(previousSelectedIdx, --this.selectedItemIndex);
|
429
332
|
}
|
430
|
-
|
431
333
|
_moveItemSelection(previousIdx, nextIdx) {
|
432
334
|
const items = this._getItems();
|
433
|
-
|
434
335
|
const currentItem = items[nextIdx];
|
435
336
|
const previousItem = items[previousIdx];
|
436
|
-
|
437
337
|
if (!currentItem) {
|
438
338
|
return;
|
439
339
|
}
|
440
|
-
|
441
340
|
this.component.focused = false;
|
442
|
-
|
443
341
|
this._clearValueStateFocus();
|
444
|
-
|
445
342
|
this.accInfo = {
|
446
343
|
currentPos: nextIdx + 1,
|
447
344
|
listSize: items.length,
|
448
345
|
itemText: currentItem.textContent
|
449
346
|
};
|
450
|
-
|
451
347
|
if (previousItem) {
|
452
348
|
previousItem.selected = false;
|
453
349
|
previousItem.focused = false;
|
454
350
|
}
|
455
|
-
|
456
351
|
if (currentItem) {
|
457
352
|
currentItem.focused = true;
|
458
|
-
|
459
353
|
if (currentItem.type === "Active") {
|
460
354
|
currentItem.selected = true;
|
461
355
|
}
|
462
|
-
|
463
356
|
if (this.handleFocus) {
|
464
357
|
currentItem.focus();
|
465
358
|
}
|
466
359
|
}
|
467
|
-
|
468
360
|
this.component.hasSuggestionItemSelected = true;
|
469
361
|
this.onItemPreviewed(currentItem);
|
470
|
-
|
471
362
|
if (!this._isItemIntoView(currentItem)) {
|
472
363
|
this._scrollItemIntoView(currentItem);
|
473
364
|
}
|
474
365
|
}
|
475
|
-
|
476
366
|
_deselectItems() {
|
477
367
|
const items = this._getItems();
|
478
|
-
|
479
368
|
items.forEach(item => {
|
480
369
|
item.selected = false;
|
481
370
|
item.focused = false;
|
482
371
|
});
|
483
372
|
}
|
484
|
-
|
485
373
|
_clearItemFocus() {
|
486
374
|
const focusedItem = this._getItems().find(item => item.focused);
|
487
|
-
|
488
375
|
if (focusedItem) {
|
489
376
|
focusedItem.focused = false;
|
490
377
|
}
|
491
378
|
}
|
492
|
-
|
493
379
|
_isItemIntoView(item) {
|
494
380
|
const rectItem = item.getDomRef().getBoundingClientRect();
|
495
|
-
|
496
381
|
const rectInput = this._getComponent().getDomRef().getBoundingClientRect();
|
497
|
-
|
498
382
|
const windowHeight = window.innerHeight || document.documentElement.clientHeight;
|
499
383
|
return rectItem.top + Suggestions.SCROLL_STEP <= windowHeight && rectItem.top >= rectInput.top;
|
500
384
|
}
|
501
|
-
|
502
385
|
async _scrollItemIntoView(item) {
|
503
386
|
const pos = item.getDomRef().offsetTop;
|
504
387
|
const scrollContainer = await this._getScrollContainer();
|
505
388
|
scrollContainer.scrollTop = pos;
|
506
389
|
}
|
507
|
-
|
508
390
|
async _getScrollContainer() {
|
509
391
|
if (!this._scrollContainer) {
|
510
392
|
await this._getSuggestionPopover();
|
511
393
|
this._scrollContainer = this.responsivePopover.shadowRoot.querySelector(".ui5-popup-content");
|
512
394
|
}
|
513
|
-
|
514
395
|
return this._scrollContainer;
|
515
396
|
}
|
516
|
-
|
517
397
|
_getItems() {
|
518
398
|
return !!this.responsivePopover && [...this.responsivePopover.querySelector("[ui5-list]").children];
|
519
399
|
}
|
520
|
-
|
521
400
|
_getComponent() {
|
522
401
|
return this.component;
|
523
402
|
}
|
524
|
-
|
525
403
|
async _getList() {
|
526
404
|
this.responsivePopover = await this._getSuggestionPopover();
|
527
405
|
return this.responsivePopover.querySelector("[ui5-list]");
|
528
406
|
}
|
529
|
-
|
530
407
|
async _getListWidth() {
|
531
408
|
const list = await this._getList();
|
532
409
|
return list.offsetWidth;
|
533
410
|
}
|
534
|
-
|
535
411
|
_getRealItems() {
|
536
412
|
return this._getComponent().getSlottedNodes(this.slotName);
|
537
413
|
}
|
538
|
-
|
539
414
|
async _getSuggestionPopover() {
|
540
415
|
if (this.responsivePopover) {
|
541
416
|
return this.responsivePopover;
|
542
417
|
}
|
543
|
-
|
544
418
|
const staticAreaItem = await this._getComponent().getStaticAreaItemDomRef();
|
545
419
|
this.responsivePopover = staticAreaItem.querySelector("[ui5-responsive-popover]");
|
546
420
|
return this.responsivePopover;
|
547
421
|
}
|
548
|
-
|
549
422
|
get itemSelectionAnnounce() {
|
550
423
|
const itemPositionText = Suggestions.i18nBundle.getText(_i18nDefaults.LIST_ITEM_POSITION, this.accInfo.currentPos, this.accInfo.listSize),
|
551
|
-
|
424
|
+
itemSelectionText = Suggestions.i18nBundle.getText(_i18nDefaults.LIST_ITEM_SELECTED);
|
552
425
|
return `${itemPositionText} ${this.accInfo.itemText} ${itemSelectionText}`;
|
553
426
|
}
|
554
|
-
|
555
427
|
getRowText(suggestion) {
|
556
428
|
return this.sanitizeText(suggestion.text || suggestion.textContent);
|
557
429
|
}
|
558
|
-
|
559
430
|
getRowDesc(suggestion) {
|
560
431
|
if (suggestion.description) {
|
561
432
|
return this.sanitizeText(suggestion.description);
|
562
433
|
}
|
563
434
|
}
|
564
|
-
|
565
435
|
getHighlightedText(suggestion, input) {
|
566
436
|
const text = suggestion.text || suggestion.textContent;
|
567
437
|
return this.hightlightInput(text, input);
|
568
438
|
}
|
569
|
-
|
570
439
|
getHighlightedDesc(suggestion, input) {
|
571
440
|
const text = suggestion.description || "";
|
572
441
|
return this.hightlightInput(text, input);
|
573
442
|
}
|
574
|
-
|
575
443
|
hightlightInput(text, input) {
|
576
444
|
return (0, _generateHighlightedMarkup.default)(text, input);
|
577
445
|
}
|
578
|
-
|
579
446
|
sanitizeText(text) {
|
580
447
|
return (0, _encodeXML.default)(text);
|
581
448
|
}
|
582
|
-
|
583
449
|
get _hasValueState() {
|
584
450
|
return this.component.hasValueStateMessage;
|
585
451
|
}
|
586
|
-
|
587
452
|
_focusValueState() {
|
588
453
|
const items = this._getItems();
|
589
|
-
|
590
454
|
this.component._isValueStateFocused = true;
|
591
455
|
this.component.focused = false;
|
592
456
|
this.component.hasSuggestionItemSelected = false;
|
593
457
|
this.selectedItemIndex = null;
|
594
458
|
this.component.value = this.component.valueBeforeAutoComplete;
|
595
459
|
items && this._scrollItemIntoView(items[0]);
|
596
|
-
|
597
460
|
this._deselectItems();
|
598
461
|
}
|
599
|
-
|
600
462
|
_clearValueStateFocus() {
|
601
463
|
this.component._isValueStateFocused = false;
|
602
464
|
}
|
603
|
-
|
604
465
|
static get dependencies() {
|
605
466
|
return [_SuggestionItem.default, _SuggestionGroupItem.default, _ResponsivePopover.default, _List.default, _SuggestionListItem.default, _GroupHeaderListItem.default, _Button.default, _Icon.default, _Popover.default];
|
606
467
|
}
|
607
|
-
|
608
468
|
static async init() {
|
609
469
|
Suggestions.i18nBundle = await (0, _i18nBundle.getI18nBundle)("@ui5/webcomponents");
|
610
470
|
}
|
611
|
-
|
612
471
|
}
|
472
|
+
Suggestions.SCROLL_STEP = 60;
|
613
473
|
|
614
|
-
|
615
|
-
|
474
|
+
// Add suggestions support to the global features registry so that Input.js can use it
|
616
475
|
(0, _FeaturesRegistry.registerFeature)("InputSuggestions", Suggestions);
|
617
476
|
var _default = Suggestions;
|
618
477
|
_exports.default = _default;
|
@@ -5,54 +5,38 @@ sap.ui.define(['require', "sap/ui/webc/common/thirdparty/base/asset-registries/T
|
|
5
5
|
switch (themeName) {
|
6
6
|
case "sap_belize":
|
7
7
|
return (await Promise.resolve().then(() => new Promise(resolve => require(["../assets/themes/sap_belize/parameters-bundle.css.json"], resolve)))).default;
|
8
|
-
|
9
8
|
case "sap_belize_hcb":
|
10
9
|
return (await Promise.resolve().then(() => new Promise(resolve => require(["../assets/themes/sap_belize_hcb/parameters-bundle.css.json"], resolve)))).default;
|
11
|
-
|
12
10
|
case "sap_belize_hcw":
|
13
11
|
return (await Promise.resolve().then(() => new Promise(resolve => require(["../assets/themes/sap_belize_hcw/parameters-bundle.css.json"], resolve)))).default;
|
14
|
-
|
15
12
|
case "sap_fiori_3":
|
16
13
|
return (await Promise.resolve().then(() => new Promise(resolve => require(["../assets/themes/sap_fiori_3/parameters-bundle.css.json"], resolve)))).default;
|
17
|
-
|
18
14
|
case "sap_fiori_3_dark":
|
19
15
|
return (await Promise.resolve().then(() => new Promise(resolve => require(["../assets/themes/sap_fiori_3_dark/parameters-bundle.css.json"], resolve)))).default;
|
20
|
-
|
21
16
|
case "sap_fiori_3_hcb":
|
22
17
|
return (await Promise.resolve().then(() => new Promise(resolve => require(["../assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json"], resolve)))).default;
|
23
|
-
|
24
18
|
case "sap_fiori_3_hcw":
|
25
19
|
return (await Promise.resolve().then(() => new Promise(resolve => require(["../assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json"], resolve)))).default;
|
26
|
-
|
27
20
|
case "sap_horizon":
|
28
21
|
return (await Promise.resolve().then(() => new Promise(resolve => require(["../assets/themes/sap_horizon/parameters-bundle.css.json"], resolve)))).default;
|
29
|
-
|
30
22
|
case "sap_horizon_dark":
|
31
23
|
return (await Promise.resolve().then(() => new Promise(resolve => require(["../assets/themes/sap_horizon_dark/parameters-bundle.css.json"], resolve)))).default;
|
32
|
-
|
33
24
|
case "sap_horizon_exp":
|
34
25
|
return (await Promise.resolve().then(() => new Promise(resolve => require(["../assets/themes/sap_horizon_exp/parameters-bundle.css.json"], resolve)))).default;
|
35
|
-
|
36
26
|
case "sap_horizon_hcb":
|
37
27
|
return (await Promise.resolve().then(() => new Promise(resolve => require(["../assets/themes/sap_horizon_hcb/parameters-bundle.css.json"], resolve)))).default;
|
38
|
-
|
39
28
|
case "sap_horizon_hcw":
|
40
29
|
return (await Promise.resolve().then(() => new Promise(resolve => require(["../assets/themes/sap_horizon_hcw/parameters-bundle.css.json"], resolve)))).default;
|
41
|
-
|
42
30
|
default:
|
43
31
|
throw "unknown theme";
|
44
32
|
}
|
45
33
|
};
|
46
|
-
|
47
34
|
const loadAndCheck = async themeName => {
|
48
35
|
const data = await loadThemeProperties(themeName);
|
49
|
-
|
50
36
|
if (typeof data === "string" && data.endsWith(".json")) {
|
51
37
|
throw new Error(`[themes] Invalid bundling detected - dynamic JSON imports bundled as URLs. Switch to inlining JSON files from the build or use 'import ".../Assets-static.js"'. Check the "Assets" documentation for more information.`);
|
52
38
|
}
|
53
|
-
|
54
39
|
return data;
|
55
40
|
};
|
56
|
-
|
57
41
|
["sap_belize", "sap_belize_hcb", "sap_belize_hcw", "sap_fiori_3", "sap_fiori_3_dark", "sap_fiori_3_hcb", "sap_fiori_3_hcw", "sap_horizon", "sap_horizon_dark", "sap_horizon_exp", "sap_horizon_hcb", "sap_horizon_hcw"].forEach(themeName => (0, _Themes.registerThemePropertiesLoader)("@ui5/webcomponents", themeName, loadAndCheck));
|
58
42
|
});
|