@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
@@ -24,10 +24,9 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
24
24
|
_ResponsivePopoverCommon = _interopRequireDefault(_ResponsivePopoverCommon);
|
25
25
|
_ValueStateMessage = _interopRequireDefault(_ValueStateMessage);
|
26
26
|
_SelectPopover = _interopRequireDefault(_SelectPopover);
|
27
|
-
|
28
27
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
29
|
-
|
30
28
|
// Templates
|
29
|
+
|
31
30
|
// Styles
|
32
31
|
|
33
32
|
/**
|
@@ -37,9 +36,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
37
36
|
tag: "ui5-select",
|
38
37
|
languageAware: true,
|
39
38
|
managedSlots: true,
|
40
|
-
slots:
|
41
|
-
/** @lends sap.ui.webcomponents.main.Select.prototype */
|
42
|
-
{
|
39
|
+
slots: /** @lends sap.ui.webcomponents.main.Select.prototype */{
|
43
40
|
/**
|
44
41
|
* Defines the component options.
|
45
42
|
*
|
@@ -58,7 +55,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
58
55
|
type: HTMLElement,
|
59
56
|
invalidateOnChildChange: true
|
60
57
|
},
|
61
|
-
|
62
58
|
/**
|
63
59
|
* Defines the value state message that will be displayed as pop up under the component.
|
64
60
|
* <br><br>
|
@@ -75,7 +71,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
75
71
|
valueStateMessage: {
|
76
72
|
type: HTMLElement
|
77
73
|
},
|
78
|
-
|
79
74
|
/**
|
80
75
|
* The slot is used to render native <code>input</code> HTML element within Light DOM to enable form submit,
|
81
76
|
* when <code>name</code> property is set.
|
@@ -87,9 +82,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
87
82
|
type: HTMLElement
|
88
83
|
}
|
89
84
|
},
|
90
|
-
properties:
|
91
|
-
/** @lends sap.ui.webcomponents.main.Select.prototype */
|
92
|
-
{
|
85
|
+
properties: /** @lends sap.ui.webcomponents.main.Select.prototype */{
|
93
86
|
/**
|
94
87
|
* Defines whether the component is in disabled state.
|
95
88
|
* <br><br>
|
@@ -102,7 +95,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
102
95
|
disabled: {
|
103
96
|
type: Boolean
|
104
97
|
},
|
105
|
-
|
106
98
|
/**
|
107
99
|
* Determines the name with which the component will be submitted in an HTML form.
|
108
100
|
* The value of the component will be the value of the currently selected <code>ui5-option</code>.
|
@@ -123,7 +115,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
123
115
|
name: {
|
124
116
|
type: String
|
125
117
|
},
|
126
|
-
|
127
118
|
/**
|
128
119
|
* Defines the value state of the component.
|
129
120
|
* <br><br>
|
@@ -144,7 +135,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
144
135
|
type: _ValueState.default,
|
145
136
|
defaultValue: _ValueState.default.None
|
146
137
|
},
|
147
|
-
|
148
138
|
/**
|
149
139
|
* Defines whether the component is required.
|
150
140
|
*
|
@@ -156,7 +146,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
156
146
|
required: {
|
157
147
|
type: Boolean
|
158
148
|
},
|
159
|
-
|
160
149
|
/**
|
161
150
|
* Defines the accessible aria name of the component.
|
162
151
|
*
|
@@ -168,7 +157,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
168
157
|
accessibleName: {
|
169
158
|
type: String
|
170
159
|
},
|
171
|
-
|
172
160
|
/**
|
173
161
|
* Receives id(or many ids) of the elements that label the select.
|
174
162
|
*
|
@@ -189,7 +177,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
189
177
|
type: Boolean,
|
190
178
|
noAttribute: true
|
191
179
|
},
|
192
|
-
|
193
180
|
/**
|
194
181
|
* @private
|
195
182
|
*/
|
@@ -201,7 +188,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
201
188
|
defaultValue: 0,
|
202
189
|
noAttribute: true
|
203
190
|
},
|
204
|
-
|
205
191
|
/**
|
206
192
|
* @private
|
207
193
|
*/
|
@@ -209,9 +195,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
209
195
|
type: Boolean
|
210
196
|
}
|
211
197
|
},
|
212
|
-
events:
|
213
|
-
/** @lends sap.ui.webcomponents.main.Select.prototype */
|
214
|
-
{
|
198
|
+
events: /** @lends sap.ui.webcomponents.main.Select.prototype */{
|
215
199
|
/**
|
216
200
|
* Fired when the selected option changes.
|
217
201
|
*
|
@@ -226,6 +210,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
226
210
|
}
|
227
211
|
}
|
228
212
|
};
|
213
|
+
|
229
214
|
/**
|
230
215
|
* @class
|
231
216
|
*
|
@@ -259,32 +244,25 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
259
244
|
* @public
|
260
245
|
* @since 0.8.0
|
261
246
|
*/
|
262
|
-
|
263
247
|
class Select extends _UI5Element.default {
|
264
248
|
static get metadata() {
|
265
249
|
return metadata;
|
266
250
|
}
|
267
|
-
|
268
251
|
static get render() {
|
269
252
|
return _LitRenderer.default;
|
270
253
|
}
|
271
|
-
|
272
254
|
static get template() {
|
273
255
|
return _SelectTemplate.default;
|
274
256
|
}
|
275
|
-
|
276
257
|
static get staticAreaTemplate() {
|
277
258
|
return _SelectPopoverTemplate.default;
|
278
259
|
}
|
279
|
-
|
280
260
|
static get styles() {
|
281
261
|
return _Select.default;
|
282
262
|
}
|
283
|
-
|
284
263
|
static get staticAreaStyles() {
|
285
264
|
return [_ResponsivePopoverCommon.default, _ValueStateMessage.default, _SelectPopover.default];
|
286
265
|
}
|
287
|
-
|
288
266
|
constructor() {
|
289
267
|
super();
|
290
268
|
this._syncedOptions = [];
|
@@ -295,89 +273,72 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
295
273
|
this._typedChars = "";
|
296
274
|
this._typingTimeoutID = -1;
|
297
275
|
}
|
298
|
-
|
299
276
|
onBeforeRendering() {
|
300
277
|
this._syncSelection();
|
301
|
-
|
302
278
|
this._enableFormSupport();
|
303
279
|
}
|
304
|
-
|
305
280
|
onAfterRendering() {
|
306
281
|
this.toggleValueStatePopover(this.shouldOpenValueStateMessagePopover);
|
307
|
-
|
308
282
|
if (this._isPickerOpen) {
|
309
283
|
if (!this._listWidth) {
|
310
284
|
this._listWidth = this.responsivePopover.offsetWidth;
|
311
285
|
}
|
312
286
|
}
|
313
|
-
|
314
287
|
this._attachRealDomRefs();
|
315
288
|
}
|
316
|
-
|
317
289
|
_onfocusin() {
|
318
290
|
this.focused = true;
|
319
291
|
}
|
320
|
-
|
321
292
|
_onfocusout() {
|
322
293
|
this.focused = false;
|
323
294
|
}
|
324
|
-
|
325
295
|
get _isPickerOpen() {
|
326
296
|
return !!this.responsivePopover && this.responsivePopover.opened;
|
327
297
|
}
|
328
|
-
|
329
298
|
async _respPopover() {
|
330
299
|
const staticAreaItem = await this.getStaticAreaItemDomRef();
|
331
300
|
return staticAreaItem.querySelector("[ui5-responsive-popover]");
|
332
301
|
}
|
302
|
+
|
333
303
|
/**
|
334
304
|
* Currently selected option.
|
335
305
|
* @readonly
|
336
306
|
* @type { sap.ui.webcomponents.main.ISelectOption }
|
337
307
|
* @public
|
338
308
|
*/
|
339
|
-
|
340
|
-
|
341
309
|
get selectedOption() {
|
342
310
|
return this._filteredItems.find(option => option.selected);
|
343
311
|
}
|
344
|
-
|
345
312
|
async _toggleRespPopover() {
|
346
313
|
this._iconPressed = true;
|
347
314
|
this.responsivePopover = await this._respPopover();
|
348
|
-
|
349
315
|
if (this.disabled) {
|
350
316
|
return;
|
351
317
|
}
|
352
|
-
|
353
318
|
if (this._isPickerOpen) {
|
354
319
|
this.responsivePopover.close();
|
355
320
|
} else {
|
356
321
|
this.responsivePopover.showAt(this);
|
357
322
|
}
|
358
323
|
}
|
359
|
-
|
360
324
|
async _attachRealDomRefs() {
|
361
325
|
this.responsivePopover = await this._respPopover();
|
362
326
|
this.options.forEach(option => {
|
363
327
|
option._getRealDomRef = () => this.responsivePopover.querySelector(`*[data-ui5-stable=${option.stableDomRef}]`);
|
364
328
|
});
|
365
329
|
}
|
366
|
-
|
367
330
|
_syncSelection() {
|
368
331
|
let lastSelectedOptionIndex = -1,
|
369
|
-
|
332
|
+
firstEnabledOptionIndex = -1;
|
370
333
|
const options = this._filteredItems;
|
371
334
|
const syncOpts = options.map((opt, index) => {
|
372
335
|
if (opt.selected || opt.textContent === this.value) {
|
373
336
|
// The second condition in the IF statement is added because of Angular Reactive Forms Support(Two way data binding)
|
374
337
|
lastSelectedOptionIndex = index;
|
375
338
|
}
|
376
|
-
|
377
339
|
if (firstEnabledOptionIndex === -1) {
|
378
340
|
firstEnabledOptionIndex = index;
|
379
341
|
}
|
380
|
-
|
381
342
|
opt.selected = false;
|
382
343
|
opt._focused = false;
|
383
344
|
return {
|
@@ -392,7 +353,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
392
353
|
stableDomRef: opt.stableDomRef
|
393
354
|
};
|
394
355
|
});
|
395
|
-
|
396
356
|
if (lastSelectedOptionIndex > -1 && !syncOpts[lastSelectedOptionIndex].disabled) {
|
397
357
|
syncOpts[lastSelectedOptionIndex].selected = true;
|
398
358
|
syncOpts[lastSelectedOptionIndex]._focused = true;
|
@@ -403,7 +363,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
403
363
|
} else {
|
404
364
|
this._text = "";
|
405
365
|
this._selectedIndex = -1;
|
406
|
-
|
407
366
|
if (syncOpts[firstEnabledOptionIndex]) {
|
408
367
|
syncOpts[firstEnabledOptionIndex].selected = true;
|
409
368
|
syncOpts[firstEnabledOptionIndex]._focused = true;
|
@@ -413,13 +372,10 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
413
372
|
this._text = options[firstEnabledOptionIndex].textContent;
|
414
373
|
}
|
415
374
|
}
|
416
|
-
|
417
375
|
this._syncedOptions = syncOpts;
|
418
376
|
}
|
419
|
-
|
420
377
|
_enableFormSupport() {
|
421
378
|
const FormSupport = (0, _FeaturesRegistry.getFeature)("FormSupport");
|
422
|
-
|
423
379
|
if (FormSupport) {
|
424
380
|
FormSupport.syncNativeHiddenInput(this, (element, nativeInput) => {
|
425
381
|
nativeInput.disabled = element.disabled;
|
@@ -432,14 +388,11 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
432
388
|
|
433
389
|
_onkeydown(event) {
|
434
390
|
const isTab = (0, _Keys.isTabNext)(event) || (0, _Keys.isTabPrevious)(event);
|
435
|
-
|
436
391
|
if (isTab && this.responsivePopover && this.responsivePopover.opened) {
|
437
392
|
this.responsivePopover.close();
|
438
393
|
}
|
439
|
-
|
440
394
|
if ((0, _Keys.isShow)(event)) {
|
441
395
|
event.preventDefault();
|
442
|
-
|
443
396
|
this._toggleRespPopover();
|
444
397
|
} else if ((0, _Keys.isSpace)(event)) {
|
445
398
|
event.preventDefault();
|
@@ -455,14 +408,14 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
455
408
|
this._handleArrowNavigation(event);
|
456
409
|
}
|
457
410
|
}
|
458
|
-
|
459
411
|
_handleKeyboardNavigation(event) {
|
460
412
|
if ((0, _Keys.isEnter)(event)) {
|
461
413
|
return;
|
462
414
|
}
|
463
|
-
|
464
415
|
const typedCharacter = event.key.toLowerCase();
|
465
|
-
this._typedChars += typedCharacter;
|
416
|
+
this._typedChars += typedCharacter;
|
417
|
+
|
418
|
+
// We check if we have more than one characters and they are all duplicate, we set the
|
466
419
|
// text to be the last input character (typedCharacter). If not, we set the text to be
|
467
420
|
// the whole input string.
|
468
421
|
|
@@ -472,48 +425,35 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
472
425
|
this._typedChars = "";
|
473
426
|
this._typingTimeoutID = -1;
|
474
427
|
}, 1000);
|
475
|
-
|
476
428
|
this._selectTypedItem(text);
|
477
429
|
}
|
478
|
-
|
479
430
|
_selectTypedItem(text) {
|
480
431
|
const currentIndex = this._selectedIndex;
|
481
|
-
|
482
432
|
const itemToSelect = this._searchNextItemByText(text);
|
483
|
-
|
484
433
|
if (itemToSelect) {
|
485
434
|
const nextIndex = this._filteredItems.indexOf(itemToSelect);
|
486
|
-
|
487
435
|
this._changeSelectedItem(this._selectedIndex, nextIndex);
|
488
|
-
|
489
436
|
if (currentIndex !== this._selectedIndex) {
|
490
437
|
this.itemSelectionAnnounce();
|
491
438
|
}
|
492
439
|
}
|
493
440
|
}
|
494
|
-
|
495
441
|
_searchNextItemByText(text) {
|
496
442
|
let orderedOptions = this._filteredItems.slice(0);
|
497
|
-
|
498
443
|
const optionsAfterSelected = orderedOptions.splice(this._selectedIndex + 1, orderedOptions.length - this._selectedIndex);
|
499
444
|
const optionsBeforeSelected = orderedOptions.splice(0, orderedOptions.length - 1);
|
500
445
|
orderedOptions = optionsAfterSelected.concat(optionsBeforeSelected);
|
501
446
|
return orderedOptions.find(option => option.textContent.toLowerCase().startsWith(text));
|
502
447
|
}
|
503
|
-
|
504
448
|
_handleHomeKey(event) {
|
505
449
|
event.preventDefault();
|
506
|
-
|
507
450
|
this._changeSelectedItem(this._selectedIndex, 0);
|
508
451
|
}
|
509
|
-
|
510
452
|
_handleEndKey(event) {
|
511
453
|
const lastIndex = this._filteredItems.length - 1;
|
512
454
|
event.preventDefault();
|
513
|
-
|
514
455
|
this._changeSelectedItem(this._selectedIndex, lastIndex);
|
515
456
|
}
|
516
|
-
|
517
457
|
_onkeyup(event) {
|
518
458
|
if ((0, _Keys.isSpace)(event)) {
|
519
459
|
if (this._isPickerOpen) {
|
@@ -523,66 +463,52 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
523
463
|
}
|
524
464
|
}
|
525
465
|
}
|
526
|
-
|
527
466
|
_getSelectedItemIndex(item) {
|
528
467
|
return this._filteredItems.findIndex(option => `${option._id}-li` === item.id);
|
529
468
|
}
|
530
|
-
|
531
469
|
_select(index) {
|
532
470
|
this._filteredItems[this._selectedIndex].selected = false;
|
533
471
|
this._selectedIndex = index;
|
534
472
|
this._filteredItems[index].selected = true;
|
535
473
|
}
|
474
|
+
|
536
475
|
/**
|
537
476
|
* The user clicked on an item from the list
|
538
477
|
* @private
|
539
478
|
*/
|
540
|
-
|
541
|
-
|
542
479
|
_handleItemPress(event) {
|
543
480
|
const item = event.detail.selectedItems[0];
|
544
|
-
|
545
481
|
const selectedItemIndex = this._getSelectedItemIndex(item);
|
546
|
-
|
547
482
|
this._handleSelectionChange(selectedItemIndex);
|
548
483
|
}
|
549
|
-
|
550
484
|
_itemMousedown(event) {
|
551
485
|
// prevent actual focus of items
|
552
486
|
event.preventDefault();
|
553
487
|
}
|
554
|
-
|
555
488
|
_onclick(event) {
|
556
489
|
this.getFocusDomRef().focus();
|
557
|
-
|
558
490
|
this._toggleRespPopover();
|
559
491
|
}
|
492
|
+
|
560
493
|
/**
|
561
494
|
* The user selected an item with Enter or Space
|
562
495
|
* @private
|
563
496
|
*/
|
564
|
-
|
565
|
-
|
566
497
|
_handleSelectionChange(index = this._selectedIndex) {
|
567
498
|
this._select(index);
|
568
|
-
|
569
499
|
this._toggleRespPopover();
|
570
500
|
}
|
571
|
-
|
572
501
|
_handleArrowNavigation(event) {
|
573
502
|
let nextIndex = -1;
|
574
503
|
const currentIndex = this._selectedIndex;
|
575
504
|
const isDownKey = (0, _Keys.isDown)(event);
|
576
505
|
event.preventDefault();
|
577
|
-
|
578
506
|
if (isDownKey) {
|
579
507
|
nextIndex = this._getNextOptionIndex();
|
580
508
|
} else {
|
581
509
|
nextIndex = this._getPreviousOptionIndex();
|
582
510
|
}
|
583
|
-
|
584
511
|
this._changeSelectedItem(this._selectedIndex, nextIndex);
|
585
|
-
|
586
512
|
if (currentIndex !== this._selectedIndex) {
|
587
513
|
// Announce new item even if picker is opened.
|
588
514
|
// The aria-activedescendents attribute can't be used,
|
@@ -590,7 +516,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
590
516
|
this.itemSelectionAnnounce();
|
591
517
|
}
|
592
518
|
}
|
593
|
-
|
594
519
|
_changeSelectedItem(oldIndex, newIndex) {
|
595
520
|
const options = this._filteredItems;
|
596
521
|
options[oldIndex].selected = false;
|
@@ -598,57 +523,47 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
598
523
|
options[newIndex].selected = true;
|
599
524
|
options[newIndex]._focused = true;
|
600
525
|
this._selectedIndex = newIndex;
|
601
|
-
|
602
526
|
if (!this._isPickerOpen) {
|
603
527
|
// arrow pressed on closed picker - do selection change
|
604
528
|
this._fireChangeEvent(options[newIndex]);
|
605
529
|
}
|
606
530
|
}
|
607
|
-
|
608
531
|
_getNextOptionIndex() {
|
609
532
|
return this._selectedIndex === this.options.length - 1 ? this._selectedIndex : this._selectedIndex + 1;
|
610
533
|
}
|
611
|
-
|
612
534
|
_getPreviousOptionIndex() {
|
613
535
|
return this._selectedIndex === 0 ? this._selectedIndex : this._selectedIndex - 1;
|
614
536
|
}
|
615
|
-
|
616
537
|
_beforeOpen() {
|
617
538
|
this._selectedIndexBeforeOpen = this._selectedIndex;
|
618
539
|
this._lastSelectedOption = this._filteredItems[this._selectedIndex];
|
619
540
|
this.focused = false;
|
620
541
|
}
|
621
|
-
|
622
542
|
_afterOpen() {
|
623
543
|
this.opened = true;
|
624
544
|
}
|
625
|
-
|
626
545
|
_afterClose() {
|
627
546
|
this.opened = false;
|
628
547
|
this.focused = true;
|
629
548
|
this._iconPressed = false;
|
630
549
|
this._listWidth = 0;
|
631
|
-
|
632
550
|
if (this._escapePressed) {
|
633
551
|
this._select(this._selectedIndexBeforeOpen);
|
634
|
-
|
635
552
|
this._escapePressed = false;
|
636
553
|
} else if (this._lastSelectedOption !== this._filteredItems[this._selectedIndex]) {
|
637
554
|
this._fireChangeEvent(this._filteredItems[this._selectedIndex]);
|
638
|
-
|
639
555
|
this._lastSelectedOption = this._filteredItems[this._selectedIndex];
|
640
556
|
}
|
641
557
|
}
|
642
|
-
|
643
558
|
_fireChangeEvent(selectedOption) {
|
644
559
|
this.fireEvent("change", {
|
645
560
|
selectedOption
|
646
|
-
});
|
561
|
+
});
|
647
562
|
|
563
|
+
// Angular two way data binding
|
648
564
|
this.selectedItem = selectedOption.textContent;
|
649
565
|
this.fireEvent("selected-item-changed");
|
650
566
|
}
|
651
|
-
|
652
567
|
get valueStateTextMappings() {
|
653
568
|
return {
|
654
569
|
"Success": Select.i18nBundle.getText(_i18nDefaults.VALUE_STATE_SUCCESS),
|
@@ -657,44 +572,35 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
657
572
|
"Warning": Select.i18nBundle.getText(_i18nDefaults.VALUE_STATE_WARNING)
|
658
573
|
};
|
659
574
|
}
|
660
|
-
|
661
575
|
get valueStateText() {
|
662
576
|
return this.valueStateTextMappings[this.valueState];
|
663
577
|
}
|
664
|
-
|
665
578
|
get hasValueState() {
|
666
579
|
return this.valueState !== _ValueState.default.None;
|
667
580
|
}
|
668
|
-
|
669
581
|
get valueStateTextId() {
|
670
582
|
return this.hasValueState ? `${this._id}-valueStateDesc` : undefined;
|
671
583
|
}
|
672
|
-
|
673
584
|
get isDisabled() {
|
674
585
|
return this.disabled || undefined;
|
675
586
|
}
|
676
|
-
|
677
587
|
get _headerTitleText() {
|
678
588
|
return Select.i18nBundle.getText(_i18nDefaults.INPUT_SUGGESTIONS_TITLE);
|
679
589
|
}
|
680
|
-
|
681
590
|
get _currentSelectedItem() {
|
682
591
|
return this.shadowRoot.querySelector(`#${this._filteredItems[this._selectedIndex]._id}-li`);
|
683
592
|
}
|
684
|
-
|
685
593
|
get _currentlySelectedOption() {
|
686
594
|
return this._filteredItems[this._selectedIndex];
|
687
595
|
}
|
688
|
-
|
689
596
|
get tabIndex() {
|
690
597
|
return this.disabled || this.responsivePopover // Handles focus on Tab/Shift + Tab when the popover is opened
|
691
598
|
&& this.responsivePopover.opened ? "-1" : "0";
|
692
599
|
}
|
600
|
+
|
693
601
|
/**
|
694
602
|
* This method is relevant for sap_horizon theme only
|
695
603
|
*/
|
696
|
-
|
697
|
-
|
698
604
|
get _valueStateMessageInputIcon() {
|
699
605
|
const iconPerValueState = {
|
700
606
|
Error: "error",
|
@@ -704,7 +610,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
704
610
|
};
|
705
611
|
return this.valueState !== _ValueState.default.None ? iconPerValueState[this.valueState] : "";
|
706
612
|
}
|
707
|
-
|
708
613
|
get classes() {
|
709
614
|
return {
|
710
615
|
popoverValueState: {
|
@@ -719,7 +624,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
719
624
|
}
|
720
625
|
};
|
721
626
|
}
|
722
|
-
|
723
627
|
get styles() {
|
724
628
|
return {
|
725
629
|
popoverHeader: {
|
@@ -734,62 +638,48 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
734
638
|
}
|
735
639
|
};
|
736
640
|
}
|
737
|
-
|
738
641
|
get ariaLabelText() {
|
739
642
|
return (0, _AriaLabelHelper.getEffectiveAriaLabelText)(this);
|
740
643
|
}
|
741
|
-
|
742
644
|
get valueStateMessageText() {
|
743
645
|
return this.getSlottedNodes("valueStateMessage").map(el => el.cloneNode(true));
|
744
646
|
}
|
745
|
-
|
746
647
|
get shouldDisplayDefaultValueStateMessage() {
|
747
648
|
return !this.valueStateMessage.length && this.hasValueStateText;
|
748
649
|
}
|
749
|
-
|
750
650
|
get hasValueStateText() {
|
751
651
|
return this.hasValueState && this.valueState !== _ValueState.default.Success;
|
752
652
|
}
|
753
|
-
|
754
653
|
get shouldOpenValueStateMessagePopover() {
|
755
654
|
return this.focused && this.hasValueStateText && !this._iconPressed && !this._isPickerOpen && !this._isPhone;
|
756
655
|
}
|
757
|
-
|
758
656
|
get _ariaRoleDescription() {
|
759
657
|
return Select.i18nBundle.getText(_i18nDefaults.SELECT_ROLE_DESCRIPTION);
|
760
658
|
}
|
761
|
-
|
762
659
|
get _isPhone() {
|
763
660
|
return (0, _Device.isPhone)();
|
764
661
|
}
|
765
|
-
|
766
662
|
get _filteredItems() {
|
767
663
|
return this.options.filter(option => !option.disabled);
|
768
664
|
}
|
769
|
-
|
770
665
|
itemSelectionAnnounce() {
|
771
666
|
let text;
|
772
667
|
const optionsCount = this._filteredItems.length;
|
773
668
|
const itemPositionText = Select.i18nBundle.getText(_i18nDefaults.LIST_ITEM_POSITION, this._selectedIndex + 1, optionsCount);
|
774
|
-
|
775
669
|
if (this.focused && this._currentlySelectedOption) {
|
776
670
|
text = `${this._currentlySelectedOption.textContent} ${this._isPickerOpen ? itemPositionText : ""}`;
|
777
671
|
(0, _InvisibleMessage.default)(text, "Polite");
|
778
672
|
}
|
779
673
|
}
|
780
|
-
|
781
674
|
async openValueStatePopover() {
|
782
675
|
this.popover = await this._getPopover();
|
783
|
-
|
784
676
|
if (this.popover) {
|
785
677
|
this.popover.showAt(this);
|
786
678
|
}
|
787
679
|
}
|
788
|
-
|
789
680
|
closeValueStatePopover() {
|
790
681
|
this.popover && this.popover.close();
|
791
682
|
}
|
792
|
-
|
793
683
|
toggleValueStatePopover(open) {
|
794
684
|
if (open) {
|
795
685
|
this.openValueStatePopover();
|
@@ -797,26 +687,20 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
797
687
|
this.closeValueStatePopover();
|
798
688
|
}
|
799
689
|
}
|
800
|
-
|
801
690
|
get selectedOptionIcon() {
|
802
691
|
return this.selectedOption && this.selectedOption.icon;
|
803
692
|
}
|
804
|
-
|
805
693
|
async _getPopover() {
|
806
694
|
const staticAreaItem = await this.getStaticAreaItemDomRef();
|
807
695
|
return staticAreaItem.querySelector("[ui5-popover]");
|
808
696
|
}
|
809
|
-
|
810
697
|
static get dependencies() {
|
811
698
|
return [_Option.default, _Label.default, _ResponsivePopover.default, _Popover.default, _List.default, _StandardListItem.default, _Icon.default, _Button.default];
|
812
699
|
}
|
813
|
-
|
814
700
|
static async onDefine() {
|
815
701
|
Select.i18nBundle = await (0, _i18nBundle.getI18nBundle)("@ui5/webcomponents");
|
816
702
|
}
|
817
|
-
|
818
703
|
}
|
819
|
-
|
820
704
|
Select.define();
|
821
705
|
var _default = Select;
|
822
706
|
_exports.default = _default;
|