@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
@@ -28,14 +28,11 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
28
28
|
_StandardListItem = _interopRequireDefault(_StandardListItem);
|
29
29
|
_ComboBoxGroupItem = _interopRequireDefault(_ComboBoxGroupItem);
|
30
30
|
_GroupHeaderListItem = _interopRequireDefault(_GroupHeaderListItem);
|
31
|
-
|
32
31
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
33
|
-
|
34
32
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
35
|
-
|
36
33
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
37
|
-
|
38
34
|
// Templates
|
35
|
+
|
39
36
|
// Styles
|
40
37
|
|
41
38
|
/**
|
@@ -44,9 +41,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
44
41
|
const metadata = {
|
45
42
|
tag: "ui5-combobox",
|
46
43
|
languageAware: true,
|
47
|
-
properties:
|
48
|
-
/** @lends sap.ui.webcomponents.main.ComboBox.prototype */
|
49
|
-
{
|
44
|
+
properties: /** @lends sap.ui.webcomponents.main.ComboBox.prototype */{
|
50
45
|
/**
|
51
46
|
* Defines the value of the component.
|
52
47
|
*
|
@@ -58,7 +53,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
58
53
|
type: String,
|
59
54
|
defaultValue: ""
|
60
55
|
},
|
61
|
-
|
62
56
|
/**
|
63
57
|
* Defines the "live" value of the component.
|
64
58
|
* <br><br>
|
@@ -75,7 +69,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
75
69
|
type: String,
|
76
70
|
defaultValue: ""
|
77
71
|
},
|
78
|
-
|
79
72
|
/**
|
80
73
|
* Defines a short hint intended to aid the user with data entry when the
|
81
74
|
* component has no value.
|
@@ -87,7 +80,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
87
80
|
type: String,
|
88
81
|
defaultValue: ""
|
89
82
|
},
|
90
|
-
|
91
83
|
/**
|
92
84
|
* Defines whether the component is in disabled state.
|
93
85
|
* <br><br>
|
@@ -100,7 +92,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
100
92
|
disabled: {
|
101
93
|
type: Boolean
|
102
94
|
},
|
103
|
-
|
104
95
|
/**
|
105
96
|
* Defines the value state of the component.
|
106
97
|
* <br><br>
|
@@ -121,7 +112,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
121
112
|
type: _ValueState.default,
|
122
113
|
defaultValue: _ValueState.default.None
|
123
114
|
},
|
124
|
-
|
125
115
|
/**
|
126
116
|
* Defines whether the component is read-only.
|
127
117
|
* <br><br>
|
@@ -135,7 +125,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
135
125
|
readonly: {
|
136
126
|
type: Boolean
|
137
127
|
},
|
138
|
-
|
139
128
|
/**
|
140
129
|
* Defines whether the component is required.
|
141
130
|
*
|
@@ -146,7 +135,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
146
135
|
required: {
|
147
136
|
type: Boolean
|
148
137
|
},
|
149
|
-
|
150
138
|
/**
|
151
139
|
* Indicates whether a loading indicator should be shown in the picker.
|
152
140
|
*
|
@@ -157,7 +145,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
157
145
|
loading: {
|
158
146
|
type: Boolean
|
159
147
|
},
|
160
|
-
|
161
148
|
/**
|
162
149
|
* Defines the filter type of the component.
|
163
150
|
* Available options are: <code>StartsWithPerTerm</code>, <code>StartsWith</code> and <code>Contains</code>.
|
@@ -170,7 +157,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
170
157
|
type: String,
|
171
158
|
defaultValue: "StartsWithPerTerm"
|
172
159
|
},
|
173
|
-
|
174
160
|
/**
|
175
161
|
* Indicates whether the input is focssed
|
176
162
|
* @private
|
@@ -178,7 +164,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
178
164
|
focused: {
|
179
165
|
type: Boolean
|
180
166
|
},
|
181
|
-
|
182
167
|
/**
|
183
168
|
* Indicates whether the visual focus is on the value state header
|
184
169
|
* @private
|
@@ -186,7 +171,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
186
171
|
_isValueStateFocused: {
|
187
172
|
type: Boolean
|
188
173
|
},
|
189
|
-
|
190
174
|
/**
|
191
175
|
* Defines the accessible aria name of the component.
|
192
176
|
*
|
@@ -199,7 +183,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
199
183
|
type: String,
|
200
184
|
defaultValue: undefined
|
201
185
|
},
|
202
|
-
|
203
186
|
/**
|
204
187
|
* Receives id(or many ids) of the elements that label the component
|
205
188
|
* @type {string}
|
@@ -225,9 +208,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
225
208
|
}
|
226
209
|
},
|
227
210
|
managedSlots: true,
|
228
|
-
slots:
|
229
|
-
/** @lends sap.ui.webcomponents.main.ComboBox.prototype */
|
230
|
-
{
|
211
|
+
slots: /** @lends sap.ui.webcomponents.main.ComboBox.prototype */{
|
231
212
|
/**
|
232
213
|
* Defines the component items.
|
233
214
|
*
|
@@ -240,7 +221,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
240
221
|
type: HTMLElement,
|
241
222
|
invalidateOnChildChange: true
|
242
223
|
},
|
243
|
-
|
244
224
|
/**
|
245
225
|
* Defines the value state message that will be displayed as pop up under the component.
|
246
226
|
* <br><br>
|
@@ -257,7 +237,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
257
237
|
valueStateMessage: {
|
258
238
|
type: HTMLElement
|
259
239
|
},
|
260
|
-
|
261
240
|
/**
|
262
241
|
* Defines the icon to be displayed in the input field.
|
263
242
|
*
|
@@ -270,9 +249,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
270
249
|
type: HTMLElement
|
271
250
|
}
|
272
251
|
},
|
273
|
-
events:
|
274
|
-
/** @lends sap.ui.webcomponents.main.ComboBox.prototype */
|
275
|
-
{
|
252
|
+
events: /** @lends sap.ui.webcomponents.main.ComboBox.prototype */{
|
276
253
|
/**
|
277
254
|
* Fired when the input operation has finished by pressing Enter, focusout or an item is selected.
|
278
255
|
*
|
@@ -280,7 +257,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
280
257
|
* @public
|
281
258
|
*/
|
282
259
|
change: {},
|
283
|
-
|
284
260
|
/**
|
285
261
|
* Fired when typing in input.
|
286
262
|
* <br><br>
|
@@ -289,7 +265,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
289
265
|
* @public
|
290
266
|
*/
|
291
267
|
input: {},
|
292
|
-
|
293
268
|
/**
|
294
269
|
* Fired when selection is changed by user interaction
|
295
270
|
*
|
@@ -306,6 +281,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
306
281
|
}
|
307
282
|
}
|
308
283
|
};
|
284
|
+
|
309
285
|
/**
|
310
286
|
* @class
|
311
287
|
*
|
@@ -355,32 +331,25 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
355
331
|
* @public
|
356
332
|
* @since 1.0.0-rc.6
|
357
333
|
*/
|
358
|
-
|
359
334
|
class ComboBox extends _UI5Element.default {
|
360
335
|
static get metadata() {
|
361
336
|
return metadata;
|
362
337
|
}
|
363
|
-
|
364
338
|
static get render() {
|
365
339
|
return _LitRenderer.default;
|
366
340
|
}
|
367
|
-
|
368
341
|
static get styles() {
|
369
342
|
return _ComboBox.default;
|
370
343
|
}
|
371
|
-
|
372
344
|
static get staticAreaStyles() {
|
373
345
|
return [_ResponsivePopoverCommon.default, _ValueStateMessage.default, _ComboBoxPopover.default, _Suggestions.default];
|
374
346
|
}
|
375
|
-
|
376
347
|
static get template() {
|
377
348
|
return _ComboBoxTemplate.default;
|
378
349
|
}
|
379
|
-
|
380
350
|
static get staticAreaTemplate() {
|
381
351
|
return _ComboBoxPopoverTemplate.default;
|
382
352
|
}
|
383
|
-
|
384
353
|
constructor(props) {
|
385
354
|
super(props);
|
386
355
|
this._filteredItems = [];
|
@@ -389,93 +358,74 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
389
358
|
this._selectionChanged = false;
|
390
359
|
this.FormSupport = undefined;
|
391
360
|
}
|
392
|
-
|
393
361
|
onBeforeRendering() {
|
394
362
|
this.FormSupport = (0, _FeaturesRegistry.getFeature)("FormSupport");
|
395
|
-
|
396
363
|
if (this._initialRendering) {
|
397
364
|
this._filteredItems = this.items;
|
398
365
|
}
|
399
|
-
|
400
366
|
if (!this._initialRendering && this.popover && document.activeElement === this && !this._filteredItems.length) {
|
401
367
|
this.popover.close();
|
402
368
|
}
|
403
|
-
|
404
369
|
this._selectMatchingItem();
|
405
|
-
|
406
370
|
this._initialRendering = false;
|
407
371
|
}
|
408
|
-
|
409
372
|
async onAfterRendering() {
|
410
373
|
await this._respPopover();
|
411
|
-
|
412
374
|
if ((0, _Device.isPhone)() && this.responsivePopover.opened) {
|
413
375
|
// Set initial focus to the native input
|
414
376
|
this.inner.focus();
|
415
377
|
}
|
416
|
-
|
417
378
|
if (this.shouldClosePopover() && !(0, _Device.isPhone)()) {
|
418
379
|
this.responsivePopover.close(false, false, true);
|
419
|
-
|
420
380
|
this._clearFocus();
|
421
|
-
|
422
381
|
this._itemFocused = false;
|
423
382
|
}
|
424
|
-
|
425
383
|
this.toggleValueStatePopover(this.shouldOpenValueStateMessagePopover);
|
426
|
-
this.storeResponsivePopoverWidth();
|
427
|
-
// That's why we need to restore it "manually".
|
384
|
+
this.storeResponsivePopoverWidth();
|
428
385
|
|
386
|
+
// Safari is quite slow and does not preserve text highlighting on control rerendering.
|
387
|
+
// That's why we need to restore it "manually".
|
429
388
|
if ((0, _Device.isSafari)() && this._autocomplete && this.filterValue !== this.value) {
|
430
389
|
this.inner.setSelectionRange(this._isKeyNavigation ? 0 : this.filterValue.length, this.value.length);
|
431
390
|
}
|
432
391
|
}
|
433
|
-
|
434
392
|
shouldClosePopover() {
|
435
393
|
return this.responsivePopover.opened && !this.focused && !this._itemFocused && !this._isValueStateFocused;
|
436
394
|
}
|
437
|
-
|
438
395
|
_focusin(event) {
|
439
396
|
this.focused = true;
|
440
397
|
this._lastValue = this.value;
|
441
398
|
this._autocomplete = false;
|
442
399
|
!(0, _Device.isPhone)() && event.target.setSelectionRange(0, this.value.length);
|
443
400
|
}
|
444
|
-
|
445
401
|
_focusout(event) {
|
446
402
|
const focusedOutToValueStateMessage = event.relatedTarget && event.relatedTarget.shadowRoot && event.relatedTarget.shadowRoot.querySelector(".ui5-valuestatemessage-root");
|
447
|
-
|
448
403
|
this._fireChangeEvent();
|
449
|
-
|
450
404
|
if (focusedOutToValueStateMessage) {
|
451
405
|
event.stopImmediatePropagation();
|
452
406
|
return;
|
453
407
|
}
|
454
|
-
|
455
408
|
if (!this.shadowRoot.contains(event.relatedTarget) && this.staticAreaItem !== event.relatedTarget) {
|
456
409
|
this.focused = false;
|
457
410
|
!(0, _Device.isPhone)() && this._closeRespPopover(event);
|
458
411
|
}
|
459
412
|
}
|
460
|
-
|
461
413
|
_afterOpenPopover() {
|
462
414
|
this._iconPressed = true;
|
463
415
|
}
|
464
|
-
|
465
416
|
_afterClosePopover() {
|
466
417
|
this._iconPressed = false;
|
467
|
-
this._filteredItems = this.items;
|
418
|
+
this._filteredItems = this.items;
|
468
419
|
|
420
|
+
// close device's keyboard and prevent further typing
|
469
421
|
if ((0, _Device.isPhone)()) {
|
470
422
|
this.blur();
|
471
423
|
}
|
472
|
-
|
473
424
|
if (this._selectionPerformed) {
|
474
425
|
this._lastValue = this.value;
|
475
426
|
this._selectionPerformed = false;
|
476
427
|
}
|
477
428
|
}
|
478
|
-
|
479
429
|
_toggleRespPopover() {
|
480
430
|
if (this.responsivePopover.opened) {
|
481
431
|
this._closeRespPopover();
|
@@ -483,13 +433,11 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
483
433
|
this._openRespPopover();
|
484
434
|
}
|
485
435
|
}
|
486
|
-
|
487
436
|
storeResponsivePopoverWidth() {
|
488
437
|
if (this.open && !this._listWidth) {
|
489
438
|
this._listWidth = this.responsivePopover.offsetWidth;
|
490
439
|
}
|
491
440
|
}
|
492
|
-
|
493
441
|
toggleValueStatePopover(open) {
|
494
442
|
if (open) {
|
495
443
|
this.openValueStatePopover();
|
@@ -497,62 +445,48 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
497
445
|
this.closeValueStatePopover();
|
498
446
|
}
|
499
447
|
}
|
500
|
-
|
501
448
|
async openValueStatePopover() {
|
502
449
|
this.popover = await this._getPopover();
|
503
450
|
this.popover && this.popover.showAt(this);
|
504
451
|
}
|
505
|
-
|
506
452
|
async closeValueStatePopover() {
|
507
453
|
this.popover = await this._getPopover();
|
508
454
|
this.popover && this.popover.close();
|
509
455
|
}
|
510
|
-
|
511
456
|
async _getPopover() {
|
512
457
|
const staticAreaItem = await this.getStaticAreaItemDomRef();
|
513
458
|
return staticAreaItem.querySelector(".ui5-valuestatemessage-popover");
|
514
459
|
}
|
515
|
-
|
516
460
|
_resetFilter() {
|
517
461
|
this._userTypedValue = null;
|
518
462
|
this.inner.setSelectionRange(0, this.value.length);
|
519
463
|
this._filteredItems = this._filterItems("");
|
520
|
-
|
521
464
|
this._selectMatchingItem();
|
522
465
|
}
|
523
|
-
|
524
466
|
_arrowClick() {
|
525
467
|
this.inner.focus();
|
526
|
-
|
527
468
|
this._resetFilter();
|
528
|
-
|
529
469
|
this._toggleRespPopover();
|
530
470
|
}
|
531
|
-
|
532
471
|
_input(event) {
|
533
472
|
const {
|
534
473
|
value
|
535
474
|
} = event.target;
|
536
|
-
|
537
475
|
if (event.target === this.inner) {
|
538
476
|
// stop the native event, as the semantic "input" would be fired.
|
539
477
|
event.stopImmediatePropagation();
|
540
478
|
this.focused = true;
|
541
479
|
this._isValueStateFocused = false;
|
542
480
|
}
|
543
|
-
|
544
481
|
this._filteredItems = this._filterItems(value);
|
545
482
|
this.value = value;
|
546
483
|
this.filterValue = value;
|
484
|
+
this._clearFocus();
|
547
485
|
|
548
|
-
|
549
|
-
|
550
|
-
|
486
|
+
// autocomplete
|
551
487
|
if (this._autocomplete && !(0, _Device.isAndroid)()) {
|
552
488
|
const item = this._getFirstMatchingItem(value);
|
553
|
-
|
554
489
|
this._applyAtomicValueAndSelection(item, value, true);
|
555
|
-
|
556
490
|
if (value !== "" && !this._selectionChanged && item && !item.selected && !item.isGroupItem) {
|
557
491
|
this.fireEvent("selection-change", {
|
558
492
|
item
|
@@ -560,70 +494,53 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
560
494
|
this._selectionChanged = false;
|
561
495
|
}
|
562
496
|
}
|
563
|
-
|
564
497
|
this.fireEvent("input");
|
565
|
-
|
566
498
|
if ((0, _Device.isPhone)()) {
|
567
499
|
return;
|
568
500
|
}
|
569
|
-
|
570
501
|
if (!this._filteredItems.length || value === "") {
|
571
502
|
this._closeRespPopover();
|
572
503
|
} else {
|
573
504
|
this._openRespPopover();
|
574
505
|
}
|
575
506
|
}
|
576
|
-
|
577
507
|
_startsWithMatchingItems(str) {
|
578
508
|
return Filters.StartsWith(str, this._filteredItems, "text");
|
579
509
|
}
|
580
|
-
|
581
510
|
_clearFocus() {
|
582
511
|
this._filteredItems.map(item => {
|
583
512
|
item.focused = false;
|
584
513
|
return item;
|
585
514
|
});
|
586
515
|
}
|
587
|
-
|
588
516
|
handleNavKeyPress(event) {
|
589
517
|
if (this.focused && ((0, _Keys.isHome)(event) || (0, _Keys.isEnd)(event)) && this.value) {
|
590
518
|
return;
|
591
519
|
}
|
592
|
-
|
593
520
|
const isOpen = this.open;
|
594
|
-
|
595
521
|
const currentItem = this._filteredItems.find(item => {
|
596
522
|
return isOpen ? item.focused : item.selected;
|
597
523
|
});
|
598
|
-
|
599
524
|
const indexOfItem = this._filteredItems.indexOf(currentItem);
|
600
|
-
|
601
525
|
event.preventDefault();
|
602
|
-
|
603
526
|
if (this.focused && isOpen && ((0, _Keys.isUp)(event) || (0, _Keys.isPageUp)(event) || (0, _Keys.isPageDown)(event))) {
|
604
527
|
return;
|
605
528
|
}
|
606
|
-
|
607
529
|
if (this._filteredItems.length - 1 === indexOfItem && (0, _Keys.isDown)(event)) {
|
608
530
|
return;
|
609
531
|
}
|
610
|
-
|
611
532
|
this._isKeyNavigation = true;
|
612
533
|
this[`_handle${event.key}`](event, indexOfItem);
|
613
534
|
}
|
614
|
-
|
615
535
|
_handleItemNavigation(event, indexOfItem, isForward) {
|
616
536
|
const isOpen = this.open;
|
617
537
|
const currentItem = this._filteredItems[indexOfItem];
|
618
538
|
const nextItem = isForward ? this._filteredItems[indexOfItem + 1] : this._filteredItems[indexOfItem - 1];
|
619
539
|
const isGroupItem = currentItem && currentItem.isGroupItem;
|
620
|
-
|
621
540
|
if (!isOpen && (isGroupItem && !nextItem || !isGroupItem && !currentItem)) {
|
622
541
|
return;
|
623
542
|
}
|
624
|
-
|
625
543
|
this._clearFocus();
|
626
|
-
|
627
544
|
if (isOpen) {
|
628
545
|
this._itemFocused = true;
|
629
546
|
this.value = isGroupItem ? "" : currentItem.text;
|
@@ -634,267 +551,201 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
634
551
|
this.value = isGroupItem ? nextItem.text : currentItem.text;
|
635
552
|
currentItem.focused = false;
|
636
553
|
}
|
637
|
-
|
638
554
|
this._isValueStateFocused = false;
|
639
555
|
this._selectionChanged = true;
|
640
|
-
|
641
556
|
if (isGroupItem && isOpen) {
|
642
557
|
return;
|
643
558
|
}
|
559
|
+
this._announceSelectedItem(indexOfItem);
|
644
560
|
|
645
|
-
|
646
|
-
|
647
|
-
|
561
|
+
// autocomplete
|
648
562
|
const item = this._getFirstMatchingItem(this.value);
|
649
|
-
|
650
563
|
this._applyAtomicValueAndSelection(item, this.open ? this._userTypedValue : null, true);
|
651
|
-
|
652
564
|
if (item && !item.selected) {
|
653
565
|
this.fireEvent("selection-change", {
|
654
566
|
item
|
655
567
|
});
|
656
568
|
}
|
657
|
-
|
658
569
|
this.fireEvent("input");
|
659
|
-
|
660
570
|
this._fireChangeEvent();
|
661
571
|
}
|
662
|
-
|
663
572
|
_handleArrowDown(event, indexOfItem) {
|
664
573
|
const isOpen = this.open;
|
665
|
-
|
666
574
|
if (this.focused && indexOfItem === -1 && this.hasValueStateText && isOpen) {
|
667
575
|
this._isValueStateFocused = true;
|
668
576
|
this.focused = false;
|
669
577
|
return;
|
670
578
|
}
|
671
|
-
|
672
579
|
indexOfItem = !isOpen && this.hasValueState && indexOfItem === -1 ? 0 : indexOfItem;
|
673
|
-
|
674
|
-
this._handleItemNavigation(event, ++indexOfItem, true
|
675
|
-
/* isForward */
|
676
|
-
);
|
580
|
+
this._handleItemNavigation(event, ++indexOfItem, true /* isForward */);
|
677
581
|
}
|
678
582
|
|
679
583
|
_handleArrowUp(event, indexOfItem) {
|
680
584
|
const isOpen = this.open;
|
681
|
-
|
682
585
|
if (indexOfItem === 0 && !this.hasValueStateText) {
|
683
586
|
this._clearFocus();
|
684
|
-
|
685
587
|
this.focused = true;
|
686
588
|
this._itemFocused = false;
|
687
589
|
return;
|
688
590
|
}
|
689
|
-
|
690
591
|
if (indexOfItem === 0 && this.hasValueStateText && isOpen) {
|
691
592
|
this._clearFocus();
|
692
|
-
|
693
593
|
this._itemFocused = false;
|
694
594
|
this._isValueStateFocused = true;
|
695
595
|
this._filteredItems[0].selected = false;
|
696
596
|
return;
|
697
597
|
}
|
698
|
-
|
699
598
|
if (this._isValueStateFocused) {
|
700
599
|
this.focused = true;
|
701
600
|
this._isValueStateFocused = false;
|
702
601
|
return;
|
703
602
|
}
|
704
|
-
|
705
603
|
indexOfItem = !isOpen && this.hasValueState && indexOfItem === -1 ? 0 : indexOfItem;
|
706
|
-
|
707
|
-
this._handleItemNavigation(event, --indexOfItem, false
|
708
|
-
/* isForward */
|
709
|
-
);
|
604
|
+
this._handleItemNavigation(event, --indexOfItem, false /* isForward */);
|
710
605
|
}
|
711
606
|
|
712
607
|
_handlePageUp(event, indexOfItem) {
|
713
608
|
const isProposedIndexValid = indexOfItem - ComboBox.SKIP_ITEMS_SIZE > -1;
|
714
609
|
indexOfItem = isProposedIndexValid ? indexOfItem - ComboBox.SKIP_ITEMS_SIZE : 0;
|
715
610
|
const shouldMoveForward = this._filteredItems[indexOfItem].isGroupItem && !this.open;
|
716
|
-
|
717
611
|
if (!isProposedIndexValid && this.hasValueStateText && this.open) {
|
718
612
|
this._clearFocus();
|
719
|
-
|
720
613
|
this._itemFocused = false;
|
721
614
|
this._isValueStateFocused = true;
|
722
615
|
return;
|
723
616
|
}
|
724
|
-
|
725
617
|
this._handleItemNavigation(event, indexOfItem, shouldMoveForward);
|
726
618
|
}
|
727
|
-
|
728
619
|
_handlePageDown(event, indexOfItem) {
|
729
620
|
const itemsLength = this._filteredItems.length;
|
730
621
|
const isProposedIndexValid = indexOfItem + ComboBox.SKIP_ITEMS_SIZE < itemsLength;
|
731
622
|
indexOfItem = isProposedIndexValid ? indexOfItem + ComboBox.SKIP_ITEMS_SIZE : itemsLength - 1;
|
732
623
|
const shouldMoveForward = this._filteredItems[indexOfItem].isGroupItem && !this.open;
|
733
|
-
|
734
624
|
this._handleItemNavigation(event, indexOfItem, shouldMoveForward);
|
735
625
|
}
|
736
|
-
|
737
626
|
_handleHome(event, indexOfItem) {
|
738
627
|
const shouldMoveForward = this._filteredItems[0].isGroupItem && !this.open;
|
739
|
-
|
740
628
|
if (this.hasValueStateText && this.open) {
|
741
629
|
this._clearFocus();
|
742
|
-
|
743
630
|
this._itemFocused = false;
|
744
631
|
this._isValueStateFocused = true;
|
745
632
|
return;
|
746
633
|
}
|
747
|
-
|
748
634
|
this._handleItemNavigation(event, indexOfItem = 0, shouldMoveForward);
|
749
635
|
}
|
750
|
-
|
751
636
|
_handleEnd(event, indexOfItem) {
|
752
|
-
this._handleItemNavigation(event, indexOfItem = this._filteredItems.length - 1, true
|
753
|
-
/* isForward */
|
754
|
-
);
|
637
|
+
this._handleItemNavigation(event, indexOfItem = this._filteredItems.length - 1, true /* isForward */);
|
755
638
|
}
|
756
639
|
|
757
640
|
_keyup(event) {
|
758
641
|
this._userTypedValue = this.value.substring(0, this.inner.selectionStart);
|
759
642
|
}
|
760
|
-
|
761
643
|
_keydown(event) {
|
762
644
|
const isNavKey = (0, _Keys.isDown)(event) || (0, _Keys.isUp)(event) || (0, _Keys.isPageUp)(event) || (0, _Keys.isPageDown)(event) || (0, _Keys.isHome)(event) || (0, _Keys.isEnd)(event);
|
763
645
|
this._autocomplete = !((0, _Keys.isBackSpace)(event) || (0, _Keys.isDelete)(event));
|
764
646
|
this._isKeyNavigation = false;
|
765
|
-
|
766
647
|
if (isNavKey && !this.readonly && this._filteredItems.length) {
|
767
648
|
this.handleNavKeyPress(event);
|
768
649
|
}
|
769
|
-
|
770
650
|
if ((0, _Keys.isEnter)(event)) {
|
771
651
|
this._fireChangeEvent();
|
772
|
-
|
773
652
|
if (this.responsivePopover.opened) {
|
774
653
|
this._closeRespPopover();
|
775
|
-
|
776
654
|
this.focused = true;
|
777
655
|
} else if (this.FormSupport) {
|
778
656
|
this.FormSupport.triggerFormSubmit(this);
|
779
657
|
}
|
780
658
|
}
|
781
|
-
|
782
659
|
if ((0, _Keys.isEscape)(event)) {
|
783
660
|
this.focused = true;
|
784
661
|
this.value = !this.open ? this._lastValue : this.value;
|
785
662
|
this._isValueStateFocused = false;
|
786
663
|
}
|
787
|
-
|
788
664
|
if (((0, _Keys.isTabNext)(event) || (0, _Keys.isTabPrevious)(event)) && this.open) {
|
789
665
|
this._closeRespPopover();
|
790
666
|
}
|
791
|
-
|
792
667
|
if ((0, _Keys.isShow)(event) && !this.readonly && !this.disabled) {
|
793
668
|
event.preventDefault();
|
794
|
-
|
795
669
|
this._resetFilter();
|
796
|
-
|
797
670
|
this._toggleRespPopover();
|
798
|
-
|
799
671
|
const selectedItem = this._filteredItems.find(item => {
|
800
672
|
return item.selected;
|
801
673
|
});
|
802
|
-
|
803
674
|
if (selectedItem && this.open) {
|
804
675
|
this._itemFocused = true;
|
805
676
|
selectedItem.focused = true;
|
806
677
|
this.focused = false;
|
807
678
|
} else if (this.open && this._filteredItems.length) {
|
808
679
|
// If no item is selected, select the first one on "Show" (F4, Alt+Up/Down)
|
809
|
-
this._handleItemNavigation(event, 0, true
|
810
|
-
/* isForward */
|
811
|
-
);
|
680
|
+
this._handleItemNavigation(event, 0, true /* isForward */);
|
812
681
|
} else {
|
813
682
|
this.focused = true;
|
814
683
|
}
|
815
684
|
}
|
816
685
|
}
|
817
|
-
|
818
686
|
_click(event) {
|
819
687
|
if ((0, _Device.isPhone)() && !this.readonly) {
|
820
688
|
this._openRespPopover();
|
821
689
|
}
|
822
690
|
}
|
823
|
-
|
824
691
|
_closeRespPopover(event) {
|
825
692
|
if ((0, _Device.isPhone)() && event && event.target.classList.contains("ui5-responsive-popover-close-btn") && this._selectedItemText) {
|
826
693
|
this.value = this._selectedItemText;
|
827
694
|
this.filterValue = this._selectedItemText;
|
828
695
|
}
|
829
|
-
|
830
696
|
this._isValueStateFocused = false;
|
831
|
-
|
832
697
|
this._clearFocus();
|
833
|
-
|
834
698
|
this.responsivePopover.close();
|
835
699
|
}
|
836
|
-
|
837
700
|
_openRespPopover() {
|
838
701
|
this.responsivePopover.showAt(this);
|
839
702
|
}
|
840
|
-
|
841
703
|
_filterItems(str) {
|
842
704
|
const itemsToFilter = this.items.filter(item => !item.isGroupItem);
|
843
|
-
const filteredItems = (Filters[this.filter] || Filters.StartsWithPerTerm)(str, itemsToFilter, "text");
|
705
|
+
const filteredItems = (Filters[this.filter] || Filters.StartsWithPerTerm)(str, itemsToFilter, "text");
|
844
706
|
|
707
|
+
// Return the filtered items and their group items
|
845
708
|
return this.items.filter((item, idx, allItems) => ComboBox._groupItemFilter(item, ++idx, allItems, filteredItems) || filteredItems.indexOf(item) !== -1);
|
846
709
|
}
|
710
|
+
|
847
711
|
/**
|
848
712
|
* Returns true if the group header should be shown (if there is a filtered suggestion item for this group item)
|
849
713
|
*
|
850
714
|
* @private
|
851
715
|
*/
|
852
|
-
|
853
|
-
|
854
716
|
static _groupItemFilter(item, idx, allItems, filteredItems) {
|
855
717
|
if (item.isGroupItem) {
|
856
718
|
let groupHasFilteredItems;
|
857
|
-
|
858
719
|
while (allItems[idx] && !allItems[idx].isGroupItem && !groupHasFilteredItems) {
|
859
720
|
groupHasFilteredItems = filteredItems.indexOf(allItems[idx]) !== -1;
|
860
721
|
idx++;
|
861
722
|
}
|
862
|
-
|
863
723
|
return groupHasFilteredItems;
|
864
724
|
}
|
865
725
|
}
|
866
|
-
|
867
726
|
_getFirstMatchingItem(current) {
|
868
727
|
const currentlyFocusedItem = this.items.find(item => item.focused === true);
|
869
|
-
|
870
728
|
if (currentlyFocusedItem && currentlyFocusedItem.isGroupItem) {
|
871
729
|
this.value = this.filterValue;
|
872
730
|
return;
|
873
731
|
}
|
874
|
-
|
875
732
|
const matchingItems = this._startsWithMatchingItems(current).filter(item => !item.isGroupItem);
|
876
|
-
|
877
733
|
if (matchingItems.length) {
|
878
734
|
return matchingItems[0];
|
879
735
|
}
|
880
736
|
}
|
881
|
-
|
882
737
|
_applyAtomicValueAndSelection(item, filterValue, highlightValue) {
|
883
738
|
if (!item) {
|
884
739
|
return;
|
885
740
|
}
|
886
|
-
|
887
741
|
const value = item && item.text || "";
|
888
742
|
this.inner.value = value;
|
889
|
-
|
890
743
|
if (highlightValue) {
|
891
744
|
filterValue = filterValue || "";
|
892
745
|
this.inner.setSelectionRange(filterValue.length, value.length);
|
893
746
|
}
|
894
|
-
|
895
747
|
this.value = value;
|
896
748
|
}
|
897
|
-
|
898
749
|
_selectMatchingItem() {
|
899
750
|
const currentlyFocusedItem = this.items.find(item => item.focused);
|
900
751
|
const shouldSelectionBeCleared = currentlyFocusedItem && currentlyFocusedItem.isGroupItem;
|
@@ -903,110 +754,85 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
903
754
|
return item;
|
904
755
|
});
|
905
756
|
}
|
906
|
-
|
907
757
|
_fireChangeEvent() {
|
908
758
|
if (this.value !== this._lastValue) {
|
909
759
|
this.fireEvent("change");
|
910
760
|
this._lastValue = this.value;
|
911
761
|
}
|
912
762
|
}
|
913
|
-
|
914
763
|
_inputChange(event) {
|
915
764
|
event.preventDefault();
|
916
765
|
}
|
917
|
-
|
918
766
|
_itemMousedown(event) {
|
919
767
|
event.preventDefault();
|
920
768
|
}
|
921
|
-
|
922
769
|
_selectItem(event) {
|
923
770
|
const listItem = event.detail.item;
|
924
771
|
this._selectedItemText = listItem.mappedItem.text;
|
925
772
|
this._selectionPerformed = true;
|
926
773
|
const sameItemSelected = this.value === this._selectedItemText;
|
927
774
|
const sameSelectionPerformed = this.value.toLowerCase() === this.filterValue.toLowerCase();
|
928
|
-
|
929
775
|
if (sameItemSelected && sameSelectionPerformed) {
|
930
776
|
this._fireChangeEvent(); // Click on an already typed, but not memoized value shouold also trigger the change event
|
931
|
-
|
932
|
-
|
933
777
|
return this._closeRespPopover();
|
934
778
|
}
|
935
|
-
|
936
779
|
this.value = this._selectedItemText;
|
937
|
-
|
938
780
|
if (!listItem.mappedItem.selected) {
|
939
781
|
this.fireEvent("selection-change", {
|
940
782
|
item: listItem.mappedItem
|
941
783
|
});
|
942
784
|
this._selectionChanged = true;
|
943
785
|
}
|
944
|
-
|
945
786
|
this._filteredItems.map(item => {
|
946
787
|
item.selected = item === listItem.mappedItem && !item.isGroupItem;
|
947
788
|
return item;
|
948
789
|
});
|
949
|
-
|
950
790
|
this._fireChangeEvent();
|
791
|
+
this._closeRespPopover();
|
951
792
|
|
952
|
-
|
953
|
-
|
954
|
-
|
793
|
+
// reset selection
|
955
794
|
this.inner.setSelectionRange(this.value.length, this.value.length);
|
956
795
|
}
|
957
|
-
|
958
796
|
_onItemFocus(event) {
|
959
797
|
this._itemFocused = true;
|
960
798
|
}
|
961
|
-
|
962
799
|
_announceSelectedItem(indexOfItem) {
|
963
800
|
const itemPositionText = ComboBox.i18nBundle.getText(_i18nDefaults.LIST_ITEM_POSITION, indexOfItem + 1, this._filteredItems.length);
|
964
801
|
const itemSelectionText = ComboBox.i18nBundle.getText(_i18nDefaults.LIST_ITEM_SELECTED);
|
965
802
|
(0, _InvisibleMessage.default)(`${itemPositionText} ${itemSelectionText}`, "Polite");
|
966
803
|
}
|
967
|
-
|
968
804
|
get _headerTitleText() {
|
969
805
|
return ComboBox.i18nBundle.getText(_i18nDefaults.INPUT_SUGGESTIONS_TITLE);
|
970
806
|
}
|
971
|
-
|
972
807
|
get _iconAccessibleNameText() {
|
973
808
|
return ComboBox.i18nBundle.getText(_i18nDefaults.SELECT_OPTIONS);
|
974
809
|
}
|
975
|
-
|
976
810
|
get inner() {
|
977
811
|
return (0, _Device.isPhone)() ? this.responsivePopover.querySelector(".ui5-input-inner-phone") : this.shadowRoot.querySelector("[inner-input]");
|
978
812
|
}
|
979
|
-
|
980
813
|
async _respPopover() {
|
981
814
|
const staticAreaItem = await this.getStaticAreaItemDomRef();
|
982
815
|
this.responsivePopover = staticAreaItem.querySelector("[ui5-responsive-popover]");
|
983
816
|
return this.responsivePopover;
|
984
817
|
}
|
985
|
-
|
986
818
|
get editable() {
|
987
819
|
return !this.readonly;
|
988
820
|
}
|
989
|
-
|
990
821
|
get hasValueState() {
|
991
822
|
return this.valueState !== _ValueState.default.None;
|
992
823
|
}
|
993
|
-
|
994
824
|
get hasValueStateText() {
|
995
825
|
return this.hasValueState && this.valueState !== _ValueState.default.Success;
|
996
826
|
}
|
997
|
-
|
998
827
|
get valueStateText() {
|
999
828
|
return this.valueStateTextMappings[this.valueState];
|
1000
829
|
}
|
1001
|
-
|
1002
830
|
get valueStateMessageText() {
|
1003
831
|
return this.getSlottedNodes("valueStateMessage").map(el => el.cloneNode(true));
|
1004
832
|
}
|
1005
|
-
|
1006
833
|
get valueStateTextId() {
|
1007
834
|
return this.hasValueState ? `${this._id}-valueStateDesc` : undefined;
|
1008
835
|
}
|
1009
|
-
|
1010
836
|
get valueStateTextMappings() {
|
1011
837
|
return {
|
1012
838
|
"Success": ComboBox.i18nBundle.getText(_i18nDefaults.VALUE_STATE_SUCCESS),
|
@@ -1015,23 +841,19 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
1015
841
|
"Information": ComboBox.i18nBundle.getText(_i18nDefaults.VALUE_STATE_INFORMATION)
|
1016
842
|
};
|
1017
843
|
}
|
1018
|
-
|
1019
844
|
get shouldOpenValueStateMessagePopover() {
|
1020
845
|
return this.focused && !this.readonly && this.hasValueStateText && !this._iconPressed && !this.open && !this._isPhone;
|
1021
846
|
}
|
1022
|
-
|
1023
847
|
get shouldDisplayDefaultValueStateMessage() {
|
1024
848
|
return !this.valueStateMessage.length && this.hasValueStateText;
|
1025
849
|
}
|
1026
|
-
|
1027
850
|
get _valueStatePopoverHorizontalAlign() {
|
1028
851
|
return this.effectiveDir !== "rtl" ? "Left" : "Right";
|
1029
852
|
}
|
853
|
+
|
1030
854
|
/**
|
1031
855
|
* This method is relevant for sap_horizon theme only
|
1032
856
|
*/
|
1033
|
-
|
1034
|
-
|
1035
857
|
get _valueStateMessageIcon() {
|
1036
858
|
const iconPerValueState = {
|
1037
859
|
Error: "error",
|
@@ -1041,31 +863,24 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
1041
863
|
};
|
1042
864
|
return this.valueState !== _ValueState.default.None ? iconPerValueState[this.valueState] : "";
|
1043
865
|
}
|
1044
|
-
|
1045
866
|
get open() {
|
1046
867
|
return this.responsivePopover ? this.responsivePopover.opened : false;
|
1047
868
|
}
|
1048
|
-
|
1049
869
|
get _isPhone() {
|
1050
870
|
return (0, _Device.isPhone)();
|
1051
871
|
}
|
1052
|
-
|
1053
872
|
get itemTabIndex() {
|
1054
873
|
return undefined;
|
1055
874
|
}
|
1056
|
-
|
1057
875
|
get ariaLabelText() {
|
1058
876
|
return (0, _AriaLabelHelper.getEffectiveAriaLabelText)(this);
|
1059
877
|
}
|
1060
|
-
|
1061
878
|
static get dependencies() {
|
1062
879
|
return [_ComboBoxItem.default, _Icon.default, _ResponsivePopover.default, _List.default, _BusyIndicator.default, _Button.default, _StandardListItem.default, _GroupHeaderListItem.default, _Popover.default, _ComboBoxGroupItem.default];
|
1063
880
|
}
|
1064
|
-
|
1065
881
|
static async onDefine() {
|
1066
882
|
ComboBox.i18nBundle = await (0, _i18nBundle.getI18nBundle)("@ui5/webcomponents");
|
1067
883
|
}
|
1068
|
-
|
1069
884
|
get styles() {
|
1070
885
|
const remSizeInPx = parseInt(getComputedStyle(document.documentElement).fontSize);
|
1071
886
|
return {
|
@@ -1082,7 +897,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
1082
897
|
}
|
1083
898
|
};
|
1084
899
|
}
|
1085
|
-
|
1086
900
|
get classes() {
|
1087
901
|
return {
|
1088
902
|
popover: {
|
@@ -1099,9 +913,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
1099
913
|
}
|
1100
914
|
};
|
1101
915
|
}
|
1102
|
-
|
1103
916
|
}
|
1104
|
-
|
1105
917
|
ComboBox.SKIP_ITEMS_SIZE = 10;
|
1106
918
|
ComboBox.define();
|
1107
919
|
var _default = ComboBox;
|