@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
@@ -29,14 +29,11 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
29
29
|
_ValueStateMessage = _interopRequireDefault(_ValueStateMessage);
|
30
30
|
_Suggestions = _interopRequireDefault(_Suggestions);
|
31
31
|
_MultiComboBoxPopover = _interopRequireDefault(_MultiComboBoxPopover);
|
32
|
-
|
33
32
|
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); }
|
34
|
-
|
35
33
|
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; }
|
36
|
-
|
37
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
38
|
-
|
39
35
|
// Templates
|
36
|
+
|
40
37
|
// Styles
|
41
38
|
|
42
39
|
/**
|
@@ -46,9 +43,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
46
43
|
tag: "ui5-multi-combobox",
|
47
44
|
languageAware: true,
|
48
45
|
managedSlots: true,
|
49
|
-
slots:
|
50
|
-
/** @lends sap.ui.webcomponents.main.MultiComboBox.prototype */
|
51
|
-
{
|
46
|
+
slots: /** @lends sap.ui.webcomponents.main.MultiComboBox.prototype */{
|
52
47
|
/**
|
53
48
|
* Defines the component items.
|
54
49
|
*
|
@@ -61,7 +56,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
61
56
|
type: HTMLElement,
|
62
57
|
invalidateOnChildChange: true
|
63
58
|
},
|
64
|
-
|
65
59
|
/**
|
66
60
|
* Defines the icon to be displayed in the component.
|
67
61
|
*
|
@@ -73,7 +67,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
73
67
|
icon: {
|
74
68
|
type: HTMLElement
|
75
69
|
},
|
76
|
-
|
77
70
|
/**
|
78
71
|
* Defines the value state message that will be displayed as pop up under the component.
|
79
72
|
* <br><br>
|
@@ -91,9 +84,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
91
84
|
type: HTMLElement
|
92
85
|
}
|
93
86
|
},
|
94
|
-
properties:
|
95
|
-
/** @lends sap.ui.webcomponents.main.MultiComboBox.prototype */
|
96
|
-
{
|
87
|
+
properties: /** @lends sap.ui.webcomponents.main.MultiComboBox.prototype */{
|
97
88
|
/**
|
98
89
|
* Defines the value of the component.
|
99
90
|
* <br><br>
|
@@ -107,7 +98,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
107
98
|
type: String,
|
108
99
|
defaultValue: ""
|
109
100
|
},
|
110
|
-
|
111
101
|
/**
|
112
102
|
* Defines whether the value will be autcompleted to match an item
|
113
103
|
*
|
@@ -119,7 +109,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
119
109
|
noTypeahead: {
|
120
110
|
type: Boolean
|
121
111
|
},
|
122
|
-
|
123
112
|
/**
|
124
113
|
* Defines a short hint intended to aid the user with data entry when the
|
125
114
|
* component has no value.
|
@@ -131,7 +120,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
131
120
|
type: String,
|
132
121
|
defaultValue: ""
|
133
122
|
},
|
134
|
-
|
135
123
|
/**
|
136
124
|
* Defines if the user input will be prevented, if no matching item has been found
|
137
125
|
*
|
@@ -142,7 +130,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
142
130
|
allowCustomValues: {
|
143
131
|
type: Boolean
|
144
132
|
},
|
145
|
-
|
146
133
|
/**
|
147
134
|
* Defines whether the component is in disabled state.
|
148
135
|
* <br><br>
|
@@ -155,7 +142,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
155
142
|
disabled: {
|
156
143
|
type: Boolean
|
157
144
|
},
|
158
|
-
|
159
145
|
/**
|
160
146
|
* Defines the value state of the component.
|
161
147
|
* <br><br>
|
@@ -176,7 +162,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
176
162
|
type: _ValueState.default,
|
177
163
|
defaultValue: _ValueState.default.None
|
178
164
|
},
|
179
|
-
|
180
165
|
/**
|
181
166
|
* Defines whether the component is read-only.
|
182
167
|
* <br><br>
|
@@ -190,7 +175,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
190
175
|
readonly: {
|
191
176
|
type: Boolean
|
192
177
|
},
|
193
|
-
|
194
178
|
/**
|
195
179
|
* Defines whether the component is required.
|
196
180
|
*
|
@@ -202,7 +186,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
202
186
|
required: {
|
203
187
|
type: Boolean
|
204
188
|
},
|
205
|
-
|
206
189
|
/**
|
207
190
|
* Defines the filter type of the component.
|
208
191
|
* Available options are: <code>StartsWithPerTerm</code>, <code>StartsWith</code>, <code>Contains</code> and <code>None</code>.
|
@@ -215,7 +198,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
215
198
|
type: String,
|
216
199
|
defaultValue: "StartsWithPerTerm"
|
217
200
|
},
|
218
|
-
|
219
201
|
/**
|
220
202
|
* Indicates whether the dropdown is open. True if the dropdown is open, false otherwise.
|
221
203
|
*
|
@@ -228,7 +210,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
228
210
|
open: {
|
229
211
|
type: Boolean
|
230
212
|
},
|
231
|
-
|
232
213
|
/**
|
233
214
|
* Defines the accessible aria name of the component.
|
234
215
|
*
|
@@ -241,7 +222,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
241
222
|
type: String,
|
242
223
|
defaultValue: undefined
|
243
224
|
},
|
244
|
-
|
245
225
|
/**
|
246
226
|
* Receives id(or many ids) of the elements that label the component.
|
247
227
|
*
|
@@ -283,9 +263,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
283
263
|
type: Boolean
|
284
264
|
}
|
285
265
|
},
|
286
|
-
events:
|
287
|
-
/** @lends sap.ui.webcomponents.main.MultiComboBox.prototype */
|
288
|
-
{
|
266
|
+
events: /** @lends sap.ui.webcomponents.main.MultiComboBox.prototype */{
|
289
267
|
/**
|
290
268
|
* Fired when the input operation has finished by pressing Enter or on focusout.
|
291
269
|
*
|
@@ -293,7 +271,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
293
271
|
* @public
|
294
272
|
*/
|
295
273
|
change: {},
|
296
|
-
|
297
274
|
/**
|
298
275
|
* Fired when the value of the component changes at each keystroke.
|
299
276
|
*
|
@@ -301,7 +278,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
301
278
|
* @public
|
302
279
|
*/
|
303
280
|
input: {},
|
304
|
-
|
305
281
|
/**
|
306
282
|
* Fired when the dropdown is opened or closed.
|
307
283
|
*
|
@@ -310,7 +286,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
310
286
|
* @public
|
311
287
|
*/
|
312
288
|
"open-change": {},
|
313
|
-
|
314
289
|
/**
|
315
290
|
* Fired when selection is changed by user interaction
|
316
291
|
* in <code>SingleSelect</code> and <code>MultiSelect</code> modes.
|
@@ -328,6 +303,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
328
303
|
}
|
329
304
|
}
|
330
305
|
};
|
306
|
+
|
331
307
|
/**
|
332
308
|
* @class
|
333
309
|
*
|
@@ -386,36 +362,28 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
386
362
|
* @appenddocs MultiComboBoxItem MultiComboBoxGroupItem
|
387
363
|
* @since 0.11.0
|
388
364
|
*/
|
389
|
-
|
390
365
|
class MultiComboBox extends _UI5Element.default {
|
391
366
|
static get metadata() {
|
392
367
|
return metadata;
|
393
368
|
}
|
394
|
-
|
395
369
|
static get render() {
|
396
370
|
return _LitRenderer.default;
|
397
371
|
}
|
398
|
-
|
399
372
|
static get template() {
|
400
373
|
return _MultiComboBoxTemplate.default;
|
401
374
|
}
|
402
|
-
|
403
375
|
static get staticAreaTemplate() {
|
404
376
|
return _MultiComboBoxPopoverTemplate.default;
|
405
377
|
}
|
406
|
-
|
407
378
|
static get styles() {
|
408
379
|
return _MultiComboBox.default;
|
409
380
|
}
|
410
|
-
|
411
381
|
static get staticAreaStyles() {
|
412
382
|
return [_ResponsivePopoverCommon.default, _ValueStateMessage.default, _Suggestions.default, _MultiComboBoxPopover.default];
|
413
383
|
}
|
414
|
-
|
415
384
|
static get dependencies() {
|
416
385
|
return [_MultiComboBoxItem.default, _MultiComboBoxGroupItem.default, _Tokenizer.default, _Token.default, _Icon.default, _ResponsivePopover.default, _Popover.default, _List.default, _StandardListItem.default, _ToggleButton.default, _Button.default];
|
417
386
|
}
|
418
|
-
|
419
387
|
constructor() {
|
420
388
|
super();
|
421
389
|
this._filteredItems = [];
|
@@ -429,86 +397,64 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
429
397
|
this.currentItemIdx = -1;
|
430
398
|
this.FormSupport = undefined;
|
431
399
|
}
|
432
|
-
|
433
400
|
onEnterDOM() {
|
434
401
|
_ResizeHandler.default.register(this, this._handleResizeBound);
|
435
402
|
}
|
436
|
-
|
437
403
|
onExitDOM() {
|
438
404
|
_ResizeHandler.default.deregister(this, this._handleResizeBound);
|
439
405
|
}
|
440
|
-
|
441
406
|
_handleResize() {
|
442
407
|
this._inputWidth = this.offsetWidth;
|
443
408
|
}
|
444
|
-
|
445
409
|
_inputChange() {
|
446
410
|
this.fireEvent("change");
|
447
411
|
}
|
448
|
-
|
449
412
|
togglePopover() {
|
450
413
|
this.allItemsPopover.toggle(this);
|
451
414
|
}
|
452
|
-
|
453
415
|
togglePopoverByDropdownIcon() {
|
454
416
|
this._shouldFilterItems = false;
|
455
417
|
this.allItemsPopover.toggle(this);
|
456
418
|
}
|
457
|
-
|
458
419
|
_showFilteredItems() {
|
459
420
|
this.filterSelected = true;
|
460
421
|
this._showMorePressed = true;
|
461
422
|
this.togglePopover();
|
462
423
|
}
|
463
|
-
|
464
424
|
filterSelectedItems(event) {
|
465
425
|
this.filterSelected = event.target.pressed;
|
466
|
-
|
467
426
|
const selectedItems = this._filteredItems.filter(item => item.selected);
|
468
|
-
|
469
427
|
this.selectedItems = this.items.filter((item, idx, allItems) => MultiComboBox._groupItemFilter(item, ++idx, allItems, selectedItems) || selectedItems.indexOf(item) !== -1);
|
470
428
|
}
|
471
|
-
|
472
429
|
get _showAllItemsButtonPressed() {
|
473
430
|
return this.filterSelected;
|
474
431
|
}
|
475
|
-
|
476
432
|
get _inputDom() {
|
477
433
|
return this.shadowRoot.querySelector("#ui5-multi-combobox-input");
|
478
434
|
}
|
479
|
-
|
480
435
|
_inputLiveChange(event) {
|
481
436
|
const input = event.target;
|
482
437
|
const value = input.value;
|
483
|
-
|
484
438
|
const filteredItems = this._filterItems(value);
|
485
|
-
|
486
439
|
const oldValueState = this.valueState;
|
487
440
|
this._shouldFilterItems = true;
|
488
|
-
|
489
441
|
if (this.filterSelected) {
|
490
442
|
this.filterSelected = false;
|
491
443
|
}
|
492
|
-
|
493
444
|
if (this._validationTimeout) {
|
494
445
|
input.value = this._inputLastValue;
|
495
446
|
return;
|
496
447
|
}
|
497
|
-
|
498
448
|
if (!filteredItems.length && value && !this.allowCustomValues) {
|
499
449
|
input.value = this.valueBeforeAutoComplete || this._inputLastValue;
|
500
450
|
this.valueState = "Error";
|
501
451
|
this._shouldAutocomplete = false;
|
502
|
-
|
503
452
|
this._resetValueState(oldValueState);
|
504
|
-
|
505
453
|
return;
|
506
454
|
}
|
507
|
-
|
508
455
|
this._inputLastValue = input.value;
|
509
456
|
this.value = input.value;
|
510
457
|
this._filteredItems = filteredItems;
|
511
|
-
|
512
458
|
if (!(0, _Device.isPhone)()) {
|
513
459
|
if (filteredItems.length === 0) {
|
514
460
|
this.allItemsPopover.close();
|
@@ -516,10 +462,8 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
516
462
|
this.allItemsPopover.showAt(this);
|
517
463
|
}
|
518
464
|
}
|
519
|
-
|
520
465
|
this.fireEvent("input");
|
521
466
|
}
|
522
|
-
|
523
467
|
_tokenDelete(event) {
|
524
468
|
const token = event.detail.ref;
|
525
469
|
const deletingItem = this.items.find(item => item._id === token.getAttribute("data-ui5-id"));
|
@@ -527,111 +471,85 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
527
471
|
this._deleting = true;
|
528
472
|
this.fireSelectionChange();
|
529
473
|
}
|
530
|
-
|
531
474
|
get _getPlaceholder() {
|
532
475
|
if (this._getSelectedItems().length) {
|
533
476
|
return "";
|
534
477
|
}
|
535
|
-
|
536
478
|
return this.placeholder;
|
537
479
|
}
|
538
|
-
|
539
480
|
_handleArrowLeft() {
|
540
481
|
const cursorPosition = this.getDomRef().querySelector(`input`).selectionStart;
|
541
482
|
const isTextSelected = this.getDomRef().querySelector(`input`).selectionEnd - cursorPosition > 0;
|
542
|
-
|
543
483
|
if (cursorPosition === 0 && !isTextSelected) {
|
544
484
|
this._tokenizer._focusLastToken();
|
545
485
|
}
|
546
486
|
}
|
547
|
-
|
548
487
|
_tokenizerFocusOut(event) {
|
549
488
|
this._tokenizerFocused = false;
|
550
489
|
const tokensCount = this._tokenizer.tokens.length;
|
551
490
|
const selectedTokens = this._selectedTokensCount;
|
552
491
|
const lastTokenBeingDeleted = tokensCount - 1 === 0 && this._deleting;
|
553
492
|
const allTokensAreBeingDeleted = selectedTokens === tokensCount && this._deleting;
|
554
|
-
|
555
493
|
if (!event.relatedTarget || !event.relatedTarget.hasAttribute("ui5-token")) {
|
556
494
|
this._tokenizer.tokens.forEach(token => {
|
557
495
|
token.selected = false;
|
558
496
|
});
|
559
|
-
|
560
497
|
this._tokenizer.scrollToStart();
|
561
498
|
}
|
562
|
-
|
563
499
|
if (allTokensAreBeingDeleted || lastTokenBeingDeleted) {
|
564
500
|
setTimeout(() => {
|
565
501
|
if (!(0, _Device.isPhone)()) {
|
566
502
|
this.shadowRoot.querySelector("input").focus();
|
567
503
|
}
|
568
|
-
|
569
504
|
this._deleting = false;
|
570
505
|
}, 0);
|
571
506
|
}
|
572
507
|
}
|
573
|
-
|
574
508
|
_tokenizerFocusIn() {
|
575
509
|
this._tokenizerFocused = true;
|
576
510
|
this.focused = false;
|
577
511
|
}
|
578
|
-
|
579
512
|
async _onkeydown(event) {
|
580
513
|
const isArrowDownCtrl = (0, _Keys.isDownCtrl)(event);
|
581
|
-
|
582
514
|
if ((0, _Keys.isShow)(event) && !this.disabled) {
|
583
515
|
this._handleShow(event);
|
584
|
-
|
585
516
|
return;
|
586
517
|
}
|
587
|
-
|
588
518
|
if ((0, _Keys.isDownShift)(event) || (0, _Keys.isUpShift)(event)) {
|
589
519
|
event.preventDefault();
|
590
520
|
return;
|
591
521
|
}
|
592
|
-
|
593
522
|
if ((0, _Keys.isUp)(event) || (0, _Keys.isDown)(event) || (0, _Keys.isUpCtrl)(event) || isArrowDownCtrl) {
|
594
523
|
this._handleArrowNavigation(event, isArrowDownCtrl);
|
595
|
-
|
596
524
|
return;
|
597
|
-
}
|
598
|
-
// here we only implement the text selection of the selected item
|
599
|
-
|
525
|
+
}
|
600
526
|
|
527
|
+
// CTRL + Arrow Down navigation is performed by the ItemNavigation module of the List,
|
528
|
+
// here we only implement the text selection of the selected item
|
601
529
|
if (isArrowDownCtrl && !this.allItemsPopover.opened) {
|
602
530
|
setTimeout(() => this._inputDom.setSelectionRange(0, this._inputDom.value.length), 0);
|
603
531
|
}
|
604
|
-
|
605
532
|
if ((0, _Keys.isLeftCtrl)(event) || (0, _Keys.isRightCtrl)(event)) {
|
606
533
|
this._handleArrowCtrl(event);
|
607
|
-
|
608
534
|
return;
|
609
535
|
}
|
610
|
-
|
611
536
|
if ((0, _Keys.isCtrlV)(event) || (0, _Keys.isInsertShift)(event)) {
|
612
537
|
this._handlePaste(event);
|
613
|
-
|
614
538
|
return;
|
615
539
|
}
|
616
|
-
|
617
540
|
if ((0, _Keys.isSpaceShift)(event)) {
|
618
541
|
event.preventDefault();
|
619
542
|
}
|
620
|
-
|
621
543
|
this[`_handle${event.key}`] && this[`_handle${event.key}`](event);
|
622
544
|
this._shouldAutocomplete = !this.noTypeahead && !((0, _Keys.isBackSpace)(event) || (0, _Keys.isDelete)(event) || (0, _Keys.isEscape)(event) || (0, _Keys.isEnter)(event));
|
623
545
|
}
|
624
|
-
|
625
546
|
async _handlePaste(event) {
|
626
547
|
const pastedText = await navigator.clipboard.readText();
|
627
|
-
|
628
548
|
if (!pastedText) {
|
629
549
|
return;
|
630
550
|
}
|
631
|
-
|
632
551
|
const separatedText = pastedText.split(/\r\n|\r|\n/g);
|
633
552
|
const matchingItems = this.items.filter(item => separatedText.indexOf(item.text) > -1 && !item.selected);
|
634
|
-
|
635
553
|
if (matchingItems.length) {
|
636
554
|
matchingItems.forEach(item => {
|
637
555
|
item.selected = true;
|
@@ -643,34 +561,26 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
643
561
|
this.fireEvent("input");
|
644
562
|
}
|
645
563
|
}
|
646
|
-
|
647
564
|
_handleShow(event) {
|
648
565
|
const items = this.items;
|
649
|
-
|
650
566
|
const selectedItem = this._getSelectedItems()[0];
|
651
|
-
|
652
567
|
const focusedToken = this._tokenizer.tokens.find(token => token.focused);
|
653
|
-
|
654
568
|
const value = this.value;
|
655
569
|
const matchingItem = this.items.find(item => item.text.localeCompare(value, undefined, {
|
656
570
|
sensitivity: "base"
|
657
571
|
}) === 0);
|
658
572
|
event.preventDefault();
|
659
|
-
|
660
573
|
if (this.readonly) {
|
661
574
|
return;
|
662
575
|
}
|
663
|
-
|
664
576
|
this._isOpenedByKeyboard = true;
|
665
577
|
this._shouldFilterItems = false;
|
666
578
|
this._filteredItems = this.items;
|
667
579
|
this.togglePopover();
|
668
|
-
|
669
580
|
if (!focusedToken && matchingItem) {
|
670
581
|
this._itemToFocus = matchingItem;
|
671
582
|
return;
|
672
583
|
}
|
673
|
-
|
674
584
|
if (selectedItem && !focusedToken) {
|
675
585
|
this._itemToFocus = selectedItem;
|
676
586
|
} else if (focusedToken && event.target === focusedToken) {
|
@@ -679,62 +589,47 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
679
589
|
this._itemToFocus = items[0];
|
680
590
|
}
|
681
591
|
}
|
682
|
-
|
683
592
|
_handlePageUp(event) {
|
684
593
|
event.preventDefault();
|
685
594
|
}
|
686
|
-
|
687
595
|
_handlePageDown(event) {
|
688
596
|
event.preventDefault();
|
689
597
|
}
|
690
|
-
|
691
598
|
_handleBackspace(event) {
|
692
599
|
if (event.target.value === "") {
|
693
600
|
event.preventDefault();
|
694
|
-
|
695
601
|
this._tokenizer._focusLastToken();
|
696
602
|
}
|
697
603
|
}
|
698
|
-
|
699
604
|
_handleEscape(event) {
|
700
605
|
const innerInput = this._innerInput;
|
701
606
|
const isAutoCompleted = innerInput.selectionEnd - innerInput.selectionStart > 0;
|
702
|
-
|
703
607
|
if (isAutoCompleted) {
|
704
608
|
this.value = this.valueBeforeAutoComplete;
|
705
609
|
}
|
706
|
-
|
707
610
|
if (!this.allowCustomValues || !this.open && this.allowCustomValues) {
|
708
611
|
this.value = this._lastValue;
|
709
612
|
}
|
710
613
|
}
|
711
|
-
|
712
614
|
_handleHome(event) {
|
713
615
|
const shouldFocusToken = this._isFocusInside && event.target.selectionStart === 0 && this._tokenizer.tokens.length > 0;
|
714
|
-
|
715
616
|
if (shouldFocusToken) {
|
716
617
|
event.preventDefault();
|
717
|
-
|
718
618
|
this._tokenizer.tokens[0].focus();
|
719
619
|
}
|
720
620
|
}
|
721
|
-
|
722
621
|
_handleEnd(event) {
|
723
622
|
const tokens = this._tokenizer.tokens;
|
724
623
|
const lastTokenIdx = tokens.length - 1;
|
725
624
|
const shouldFocusInput = event.target === tokens[lastTokenIdx] && tokens[lastTokenIdx] === this.shadowRoot.activeElement;
|
726
|
-
|
727
625
|
if (shouldFocusInput) {
|
728
626
|
event.preventDefault();
|
729
|
-
|
730
627
|
this._inputDom.focus();
|
731
628
|
}
|
732
629
|
}
|
733
|
-
|
734
630
|
_handleTab(event) {
|
735
631
|
this.allItemsPopover.close();
|
736
632
|
}
|
737
|
-
|
738
633
|
_handleSelectAll(event) {
|
739
634
|
const filteredItems = this._filteredItems;
|
740
635
|
const allItemsSelected = filteredItems.every(item => item.selected);
|
@@ -743,262 +638,194 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
743
638
|
});
|
744
639
|
this.fireSelectionChange();
|
745
640
|
}
|
746
|
-
|
747
641
|
_onValueStateKeydown(event) {
|
748
642
|
const isArrowDown = (0, _Keys.isDown)(event);
|
749
643
|
const isArrowUp = (0, _Keys.isUp)(event);
|
750
|
-
|
751
644
|
if ((0, _Keys.isTabNext)(event) || (0, _Keys.isTabPrevious)(event)) {
|
752
645
|
this._onItemTab(event);
|
753
|
-
|
754
646
|
return;
|
755
647
|
}
|
756
|
-
|
757
648
|
event.preventDefault();
|
758
|
-
|
759
649
|
if (isArrowDown || (0, _Keys.isDownCtrl)(event)) {
|
760
650
|
this._handleArrowDown(event);
|
761
651
|
}
|
762
|
-
|
763
652
|
if (isArrowUp || (0, _Keys.isUpCtrl)(event)) {
|
764
653
|
this._shouldAutocomplete = true;
|
765
|
-
|
766
654
|
this._inputDom.focus();
|
767
655
|
}
|
768
656
|
}
|
769
|
-
|
770
657
|
async _onItemKeydown(event) {
|
771
658
|
const isFirstItem = this.list.items[0] === event.target;
|
772
659
|
const isArrowUp = (0, _Keys.isUp)(event) || (0, _Keys.isUpCtrl)(event);
|
773
|
-
|
774
660
|
if (this.hasValueStateMessage && !this.valueStateHeader) {
|
775
661
|
await this._setValueStateHeader();
|
776
662
|
}
|
777
|
-
|
778
663
|
if ((0, _Keys.isTabNext)(event) || (0, _Keys.isTabPrevious)(event)) {
|
779
664
|
this._onItemTab(event);
|
780
|
-
|
781
665
|
return;
|
782
666
|
}
|
783
|
-
|
784
667
|
if ((0, _Keys.isHomeCtrl)(event)) {
|
785
668
|
this.list._itemNavigation._handleHome(event);
|
786
|
-
|
787
669
|
this.list.items[this.list._itemNavigation._currentIndex].focus();
|
788
670
|
}
|
789
|
-
|
790
671
|
if ((0, _Keys.isEndCtrl)(event)) {
|
791
672
|
this.list._itemNavigation._handleEnd(event);
|
792
|
-
|
793
673
|
this.list.items[this.list._itemNavigation._currentIndex].focus();
|
794
674
|
}
|
795
|
-
|
796
675
|
event.preventDefault();
|
797
|
-
|
798
676
|
if ((0, _Keys.isDownShift)(event) || (0, _Keys.isUpShift)(event)) {
|
799
677
|
this._handleItemRangeSelection(event);
|
800
|
-
|
801
678
|
return;
|
802
679
|
}
|
803
|
-
|
804
680
|
if ((0, _Keys.isUpCtrl)(event) && !isFirstItem) {
|
805
681
|
this.list._itemNavigation._handleUp(event);
|
806
|
-
|
807
682
|
this.list.items[this.list._itemNavigation._currentIndex].focus();
|
808
683
|
}
|
809
|
-
|
810
684
|
if ((0, _Keys.isDownCtrl)(event)) {
|
811
685
|
this.list._itemNavigation._handleDown(event);
|
812
|
-
|
813
686
|
this.list.items[this.list._itemNavigation._currentIndex].focus();
|
814
687
|
}
|
815
|
-
|
816
688
|
if ((0, _Keys.isShow)(event)) {
|
817
689
|
this.togglePopover();
|
818
690
|
}
|
819
|
-
|
820
691
|
if ((0, _Keys.isCtrlA)(event)) {
|
821
692
|
this._handleSelectAll(event);
|
822
|
-
|
823
693
|
return;
|
824
694
|
}
|
825
|
-
|
826
695
|
if ((isArrowUp && isFirstItem || (0, _Keys.isHome)(event)) && this.valueStateHeader) {
|
827
696
|
this.valueStateHeader.focus();
|
828
697
|
}
|
829
|
-
|
830
698
|
if (!this.valueStateHeader && isFirstItem && isArrowUp) {
|
831
699
|
this._inputDom.focus();
|
832
|
-
|
833
700
|
this._shouldAutocomplete = true;
|
834
701
|
}
|
835
702
|
}
|
836
|
-
|
837
703
|
_handleArrowCtrl(event) {
|
838
704
|
const input = this._inputDom;
|
839
705
|
const isArrowLeft = (0, _Keys.isLeftCtrl)(event);
|
840
|
-
|
841
706
|
if (isArrowLeft && input.selectionStart === 0 && input.selectionEnd === 0) {
|
842
707
|
event.preventDefault();
|
843
708
|
}
|
844
|
-
|
845
709
|
if (isArrowLeft && input.selectionEnd - input.selectionStart > 0) {
|
846
710
|
input.setSelectionRange(0, 0);
|
847
711
|
}
|
848
712
|
}
|
849
|
-
|
850
713
|
_onItemTab(event) {
|
851
714
|
this._inputDom.focus();
|
852
|
-
|
853
715
|
this.allItemsPopover.close();
|
854
716
|
}
|
855
|
-
|
856
717
|
async _handleArrowNavigation(event, isDownControl) {
|
857
718
|
const isArrowDown = isDownControl || (0, _Keys.isDown)(event);
|
858
719
|
const hasSuggestions = this.items.length;
|
859
720
|
const isOpen = this.allItemsPopover.opened;
|
860
721
|
event.preventDefault();
|
861
|
-
|
862
722
|
if (this.hasValueStateMessage && !this.valueStateHeader) {
|
863
723
|
await this._setValueStateHeader();
|
864
724
|
}
|
865
|
-
|
866
725
|
if (isArrowDown && isOpen && this.valueStateHeader) {
|
867
726
|
this.value = this.valueBeforeAutoComplete || this.value;
|
868
727
|
this.valueStateHeader.focus();
|
869
728
|
return;
|
870
729
|
}
|
871
|
-
|
872
730
|
if (isArrowDown && hasSuggestions) {
|
873
731
|
this._handleArrowDown(event);
|
874
732
|
}
|
875
|
-
|
876
733
|
if (!isArrowDown && !isOpen && !this.readonly) {
|
877
734
|
this._navigateToPrevItem();
|
878
735
|
}
|
879
736
|
}
|
880
|
-
|
881
737
|
_handleArrowDown(event) {
|
882
738
|
const isOpen = this.allItemsPopover.opened;
|
883
739
|
const firstListItem = this.list.items[0];
|
884
|
-
|
885
740
|
if (isOpen) {
|
886
741
|
this.list._itemNavigation.setCurrentItem(firstListItem);
|
887
|
-
|
888
742
|
this.value = this.valueBeforeAutoComplete || this.value;
|
889
743
|
firstListItem.focus();
|
890
744
|
} else if (!this.readonly) {
|
891
745
|
this._navigateToNextItem();
|
892
746
|
}
|
893
747
|
}
|
894
|
-
|
895
748
|
_handleItemRangeSelection(event) {
|
896
749
|
const items = this.items;
|
897
750
|
const listItems = this.list.items;
|
898
751
|
const currentItemIdx = listItems.indexOf(event.target);
|
899
752
|
const nextItemIdx = currentItemIdx + 1;
|
900
753
|
const prevItemIdx = currentItemIdx - 1;
|
901
|
-
|
902
754
|
if ((0, _Keys.isDownShift)(event) && items[nextItemIdx]) {
|
903
755
|
items[nextItemIdx].selected = items[currentItemIdx].selected;
|
904
756
|
items[nextItemIdx].focus();
|
905
757
|
}
|
906
|
-
|
907
758
|
if ((0, _Keys.isUpShift)(event) && items[prevItemIdx]) {
|
908
759
|
items[prevItemIdx].selected = items[currentItemIdx].selected;
|
909
760
|
items[prevItemIdx].focus();
|
910
761
|
}
|
911
|
-
|
912
762
|
this.fireSelectionChange();
|
913
763
|
}
|
914
|
-
|
915
764
|
_navigateToNextItem() {
|
916
765
|
const items = this.items;
|
917
766
|
const itemsCount = items.length;
|
918
767
|
const previousItemIdx = this.currentItemIdx;
|
919
|
-
|
920
768
|
if (previousItemIdx > -1 && items[previousItemIdx].text !== this.value) {
|
921
769
|
this.currentItemIdx = -1;
|
922
770
|
}
|
923
|
-
|
924
771
|
if (previousItemIdx >= itemsCount - 1) {
|
925
772
|
return;
|
926
773
|
}
|
927
|
-
|
928
774
|
let currentItem = this.items[++this.currentItemIdx];
|
929
|
-
|
930
775
|
while (this.currentItemIdx < itemsCount - 1 && currentItem.selected || currentItem.isGroupItem) {
|
931
776
|
currentItem = this.items[++this.currentItemIdx];
|
932
777
|
}
|
933
|
-
|
934
778
|
if (currentItem.selected === true || currentItem.isGroupItem) {
|
935
779
|
this.currentItemIdx = previousItemIdx;
|
936
780
|
return;
|
937
781
|
}
|
938
|
-
|
939
782
|
this.value = currentItem.text;
|
940
783
|
this._innerInput.value = currentItem.text;
|
941
|
-
|
942
784
|
this._innerInput.setSelectionRange(0, currentItem.text.length);
|
943
785
|
}
|
944
|
-
|
945
786
|
_navigateToPrevItem() {
|
946
787
|
const items = this.items;
|
947
788
|
let previousItemIdx = this.currentItemIdx;
|
948
|
-
|
949
789
|
if (!this.value && previousItemIdx !== -1 || previousItemIdx !== -1 && this.value && this.value !== items[previousItemIdx].text) {
|
950
790
|
previousItemIdx = -1;
|
951
791
|
}
|
952
|
-
|
953
792
|
if (previousItemIdx === -1) {
|
954
793
|
this.currentItemIdx = items.length;
|
955
794
|
}
|
956
|
-
|
957
795
|
if (previousItemIdx === 0) {
|
958
796
|
this.currentItemIdx = 0;
|
959
797
|
return;
|
960
798
|
}
|
961
|
-
|
962
799
|
let currentItem = this.items[--this.currentItemIdx];
|
963
|
-
|
964
800
|
while (currentItem && this.currentItemIdx > 0 && (currentItem.selected || currentItem.isGroupItem)) {
|
965
801
|
currentItem = this.items[--this.currentItemIdx];
|
966
802
|
}
|
967
|
-
|
968
803
|
if (!currentItem) {
|
969
804
|
return;
|
970
805
|
}
|
971
|
-
|
972
806
|
if (currentItem.selected || currentItem.isGroupItem) {
|
973
807
|
this.currentItemIdx = previousItemIdx;
|
974
808
|
return;
|
975
809
|
}
|
976
|
-
|
977
810
|
this.value = currentItem.text;
|
978
811
|
this._innerInput.value = currentItem.text;
|
979
|
-
|
980
812
|
this._innerInput.setSelectionRange(0, currentItem.text.length);
|
981
813
|
}
|
982
|
-
|
983
814
|
_handleEnter() {
|
984
815
|
const lowerCaseValue = this.value.toLowerCase();
|
985
816
|
const matchingItem = this.items.find(item => item.text.toLowerCase() === lowerCaseValue);
|
986
817
|
const oldValueState = this.valueState;
|
987
818
|
const innerInput = this._innerInput;
|
988
|
-
|
989
819
|
if (this.FormSupport) {
|
990
820
|
this.FormSupport.triggerFormSubmit(this);
|
991
821
|
}
|
992
|
-
|
993
822
|
if (matchingItem) {
|
994
823
|
if (matchingItem.selected) {
|
995
824
|
if (this._validationTimeout) {
|
996
825
|
return;
|
997
826
|
}
|
998
|
-
|
999
827
|
this.valueState = "Error";
|
1000
828
|
this._performingSelectionTwice = true;
|
1001
|
-
|
1002
829
|
this._resetValueState(oldValueState, () => {
|
1003
830
|
this._performingSelectionTwice = false;
|
1004
831
|
});
|
@@ -1007,12 +834,10 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
1007
834
|
this.value = "";
|
1008
835
|
this.fireSelectionChange();
|
1009
836
|
}
|
1010
|
-
|
1011
837
|
innerInput.setSelectionRange(matchingItem.text.length, matchingItem.text.length);
|
1012
838
|
this.allItemsPopover.close();
|
1013
839
|
}
|
1014
840
|
}
|
1015
|
-
|
1016
841
|
_resetValueState(valueState, callback) {
|
1017
842
|
this._validationTimeout = setTimeout(() => {
|
1018
843
|
this.valueState = valueState;
|
@@ -1020,85 +845,68 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
1020
845
|
callback && callback();
|
1021
846
|
}, 2000);
|
1022
847
|
}
|
1023
|
-
|
1024
848
|
_onTokenizerKeydown(event) {
|
1025
849
|
const isCtrl = !!(event.metaKey || event.ctrlKey);
|
1026
|
-
|
1027
850
|
if ((0, _Keys.isRight)(event)) {
|
1028
851
|
const lastTokenIndex = this._tokenizer.tokens.length - 1;
|
1029
|
-
|
1030
852
|
if (event.target === this._tokenizer.tokens[lastTokenIndex]) {
|
1031
853
|
setTimeout(() => {
|
1032
854
|
this.shadowRoot.querySelector("input").focus();
|
1033
855
|
}, 0);
|
1034
856
|
}
|
1035
857
|
}
|
1036
|
-
|
1037
858
|
if (isCtrl && ["c", "x"].includes(event.key.toLowerCase()) || (0, _Keys.isDeleteShift)(event) || (0, _Keys.isInsertCtrl)(event)) {
|
1038
859
|
event.preventDefault();
|
1039
860
|
const isCut = event.key.toLowerCase() === "x" || (0, _Keys.isDeleteShift)(event);
|
1040
|
-
|
1041
861
|
const selectedTokens = this._tokenizer.tokens.filter(token => token.selected);
|
1042
|
-
|
1043
862
|
if (isCut) {
|
1044
863
|
const cutResult = this._tokenizer._fillClipboard("cut", selectedTokens);
|
1045
|
-
|
1046
864
|
selectedTokens.forEach(token => {
|
1047
865
|
this._tokenizer._tokenDelete(event, token);
|
1048
866
|
});
|
1049
867
|
this.focus();
|
1050
868
|
return cutResult;
|
1051
869
|
}
|
1052
|
-
|
1053
870
|
return this._tokenizer._fillClipboard("copy", selectedTokens);
|
1054
871
|
}
|
1055
|
-
|
1056
872
|
if ((0, _Keys.isCtrlV)(event) || (0, _Keys.isInsertShift)(event)) {
|
1057
873
|
this._handlePaste(event);
|
1058
874
|
}
|
1059
|
-
|
1060
875
|
if ((0, _Keys.isHome)(event)) {
|
1061
876
|
this._handleHome(event);
|
1062
877
|
}
|
1063
|
-
|
1064
878
|
if ((0, _Keys.isEnd)(event)) {
|
1065
879
|
this._handleEnd(event);
|
1066
880
|
}
|
1067
|
-
|
1068
881
|
if ((0, _Keys.isShow)(event) && !this.readonly && !this.disabled) {
|
1069
882
|
this._handleShow(event);
|
1070
883
|
}
|
1071
884
|
}
|
1072
|
-
|
1073
885
|
_filterItems(str) {
|
1074
886
|
const itemsToFilter = this.items.filter(item => !item.isGroupItem);
|
1075
|
-
const filteredItems = (Filters[this.filter] || Filters.StartsWithPerTerm)(str, itemsToFilter, "text");
|
887
|
+
const filteredItems = (Filters[this.filter] || Filters.StartsWithPerTerm)(str, itemsToFilter, "text");
|
1076
888
|
|
889
|
+
// Return the filtered items and their group items
|
1077
890
|
return this.items.filter((item, idx, allItems) => MultiComboBox._groupItemFilter(item, ++idx, allItems, filteredItems) || filteredItems.indexOf(item) !== -1);
|
1078
891
|
}
|
892
|
+
|
1079
893
|
/**
|
1080
894
|
* Returns true if the group header should be shown (if there is a filtered suggestion item for this group item)
|
1081
895
|
*
|
1082
896
|
* @private
|
1083
897
|
*/
|
1084
|
-
|
1085
|
-
|
1086
898
|
static _groupItemFilter(item, idx, allItems, filteredItems) {
|
1087
899
|
if (item.isGroupItem) {
|
1088
900
|
let groupHasFilteredItems;
|
1089
|
-
|
1090
901
|
while (allItems[idx] && !allItems[idx].isGroupItem && !groupHasFilteredItems) {
|
1091
902
|
groupHasFilteredItems = filteredItems.indexOf(allItems[idx]) !== -1;
|
1092
903
|
idx++;
|
1093
904
|
}
|
1094
|
-
|
1095
905
|
return groupHasFilteredItems;
|
1096
906
|
}
|
1097
907
|
}
|
1098
|
-
|
1099
908
|
_afterOpenPicker() {
|
1100
909
|
this._toggle();
|
1101
|
-
|
1102
910
|
if (!(0, _Device.isPhone)() && !this._isOpenedByKeyboard) {
|
1103
911
|
this._innerInput.focus();
|
1104
912
|
} else if (this._isOpenedByKeyboard) {
|
@@ -1106,43 +914,37 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
1106
914
|
} else {
|
1107
915
|
this.allItemsPopover.focus();
|
1108
916
|
}
|
1109
|
-
|
1110
917
|
this._isOpenedByKeyboard = false;
|
1111
918
|
}
|
1112
|
-
|
1113
919
|
_toggle() {
|
1114
920
|
this.open = !this.open;
|
1115
921
|
this.fireEvent("open-change");
|
1116
922
|
}
|
1117
|
-
|
1118
923
|
_getSelectedItems() {
|
1119
924
|
// Angular 2 way data binding
|
1120
925
|
this.selectedValues = this.items.filter(item => item.selected);
|
1121
926
|
return this.selectedValues;
|
1122
927
|
}
|
1123
|
-
|
1124
928
|
_listSelectionChange(event) {
|
1125
929
|
// sync list items and cb items
|
1126
|
-
this.syncItems(event.target.items);
|
930
|
+
this.syncItems(event.target.items);
|
1127
931
|
|
932
|
+
// don't call selection change right after selection as user can cancel it on phone
|
1128
933
|
if (!(0, _Device.isPhone)()) {
|
1129
934
|
this.fireSelectionChange();
|
1130
935
|
}
|
1131
|
-
|
1132
936
|
if (!event.detail.selectionComponentPressed && !(0, _Keys.isSpace)(event.detail) && !(0, _Keys.isSpaceCtrl)(event.detail)) {
|
1133
937
|
this.allItemsPopover.close();
|
1134
|
-
this.value = "";
|
938
|
+
this.value = "";
|
1135
939
|
|
940
|
+
// if the item (not checkbox) is clicked, call the selection change
|
1136
941
|
if ((0, _Device.isPhone)()) {
|
1137
942
|
this.fireSelectionChange();
|
1138
943
|
}
|
1139
|
-
|
1140
944
|
this.fireEvent("input");
|
1141
945
|
}
|
1142
|
-
|
1143
946
|
this.value = this.valueBeforeAutoComplete || "";
|
1144
947
|
}
|
1145
|
-
|
1146
948
|
syncItems(listItems) {
|
1147
949
|
listItems.forEach(item => {
|
1148
950
|
this.items.forEach(mcbItem => {
|
@@ -1152,45 +954,36 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
1152
954
|
});
|
1153
955
|
});
|
1154
956
|
}
|
1155
|
-
|
1156
957
|
fireSelectionChange() {
|
1157
958
|
this.fireEvent("selection-change", {
|
1158
959
|
items: this._getSelectedItems()
|
1159
|
-
});
|
1160
|
-
|
960
|
+
});
|
961
|
+
// Angular 2 way data binding
|
1161
962
|
this.fireEvent("value-changed");
|
1162
963
|
}
|
1163
|
-
|
1164
964
|
async _getRespPopover() {
|
1165
965
|
const staticAreaItem = await this.getStaticAreaItemDomRef();
|
1166
966
|
this.allItemsPopover = staticAreaItem.querySelector(`.ui5-multi-combobox-all-items-responsive-popover`);
|
1167
967
|
}
|
1168
|
-
|
1169
968
|
async _getList() {
|
1170
969
|
const staticAreaItem = await this.getStaticAreaItemDomRef();
|
1171
970
|
this.list = staticAreaItem.querySelector(".ui5-multi-combobox-all-items-list");
|
1172
971
|
}
|
1173
|
-
|
1174
972
|
_click(event) {
|
1175
973
|
if ((0, _Device.isPhone)() && !this.readonly && !this._showMorePressed && !this._deleting) {
|
1176
974
|
this.allItemsPopover.showAt(this);
|
1177
975
|
}
|
1178
|
-
|
1179
976
|
this._showMorePressed = false;
|
1180
977
|
}
|
1181
|
-
|
1182
978
|
_afterClosePicker() {
|
1183
979
|
// close device's keyboard and prevent further typing
|
1184
980
|
if ((0, _Device.isPhone)()) {
|
1185
981
|
this.blur();
|
1186
982
|
}
|
1187
|
-
|
1188
983
|
this._toggle();
|
1189
|
-
|
1190
984
|
this._iconPressed = false;
|
1191
985
|
this.filterSelected = false;
|
1192
986
|
}
|
1193
|
-
|
1194
987
|
_beforeOpen() {
|
1195
988
|
this._itemsBeforeOpen = this.items.map(item => {
|
1196
989
|
return {
|
@@ -1199,19 +992,15 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
1199
992
|
};
|
1200
993
|
});
|
1201
994
|
this._valueBeforeOpen = this.value;
|
1202
|
-
|
1203
995
|
if (this.filterSelected) {
|
1204
996
|
const selectedItems = this._filteredItems.filter(item => item.selected);
|
1205
|
-
|
1206
997
|
this.selectedItems = this.items.filter((item, idx, allItems) => MultiComboBox._groupItemFilter(item, ++idx, allItems, selectedItems) || selectedItems.indexOf(item) !== -1);
|
1207
998
|
}
|
1208
999
|
}
|
1209
|
-
|
1210
1000
|
_handleTypeAhead(item, filterValue) {
|
1211
1001
|
if (!item) {
|
1212
1002
|
return;
|
1213
1003
|
}
|
1214
|
-
|
1215
1004
|
const value = item.text;
|
1216
1005
|
const innerInput = this._innerInput;
|
1217
1006
|
filterValue = filterValue || "";
|
@@ -1220,61 +1009,50 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
1220
1009
|
innerInput.setSelectionRange(filterValue.length, value.length);
|
1221
1010
|
this._shouldAutocomplete = false;
|
1222
1011
|
}
|
1223
|
-
|
1224
1012
|
_getFirstMatchingItem(current) {
|
1225
1013
|
if (!this.items.length) {
|
1226
1014
|
return;
|
1227
1015
|
}
|
1228
|
-
|
1229
1016
|
const matchingItems = this._startsWithMatchingItems(current).filter(item => !item.isGroupItem && !item.selected);
|
1230
|
-
|
1231
1017
|
if (matchingItems.length) {
|
1232
1018
|
return matchingItems[0];
|
1233
1019
|
}
|
1234
1020
|
}
|
1235
|
-
|
1236
1021
|
_startsWithMatchingItems(str) {
|
1237
1022
|
return Filters.StartsWith(str, this.items, "text");
|
1238
1023
|
}
|
1239
|
-
|
1240
1024
|
onBeforeRendering() {
|
1241
1025
|
const input = this._innerInput;
|
1242
1026
|
const autoCompletedChars = input && input.selectionEnd - input.selectionStart;
|
1243
1027
|
const value = input && input.value;
|
1244
1028
|
this.FormSupport = (0, _FeaturesRegistry.getFeature)("FormSupport");
|
1245
1029
|
this._inputLastValue = value;
|
1246
|
-
|
1247
1030
|
if (input && !input.value) {
|
1248
1031
|
this.valueBeforeAutoComplete = "";
|
1249
1032
|
this._filteredItems = this.items;
|
1250
1033
|
}
|
1251
|
-
|
1252
1034
|
this.items.forEach(item => {
|
1253
1035
|
item._getRealDomRef = () => this.allItemsPopover.querySelector(`*[data-ui5-stable=${item.stableDomRef}]`);
|
1254
1036
|
});
|
1255
|
-
|
1256
1037
|
if (!input || !value) {
|
1257
1038
|
return;
|
1258
|
-
}
|
1259
|
-
// If there is already a selection the autocomplete has already been performed
|
1260
|
-
|
1039
|
+
}
|
1261
1040
|
|
1041
|
+
// Typehead causes issues on Android devices, so we disable it for now
|
1042
|
+
// If there is already a selection the autocomplete has already been performed
|
1262
1043
|
if (this._shouldAutocomplete && !(0, _Device.isAndroid)() && !autoCompletedChars) {
|
1263
|
-
const item = this._getFirstMatchingItem(value);
|
1264
|
-
|
1044
|
+
const item = this._getFirstMatchingItem(value);
|
1265
1045
|
|
1046
|
+
// Keep the original typed in text intact
|
1266
1047
|
this.valueBeforeAutoComplete = value;
|
1267
|
-
|
1268
1048
|
this._handleTypeAhead(item, value);
|
1269
1049
|
}
|
1270
|
-
|
1271
1050
|
if (this._shouldFilterItems) {
|
1272
1051
|
this._filteredItems = this._filterItems(this._shouldAutocomplete || !!autoCompletedChars ? this.valueBeforeAutoComplete : value);
|
1273
1052
|
} else {
|
1274
1053
|
this._filteredItems = this.items;
|
1275
1054
|
}
|
1276
1055
|
}
|
1277
|
-
|
1278
1056
|
async onAfterRendering() {
|
1279
1057
|
await this._getRespPopover();
|
1280
1058
|
await this._getList();
|
@@ -1282,21 +1060,17 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
1282
1060
|
this.storeResponsivePopoverWidth();
|
1283
1061
|
this._deleting = false;
|
1284
1062
|
}
|
1285
|
-
|
1286
1063
|
get _isPhone() {
|
1287
1064
|
return (0, _Device.isPhone)();
|
1288
1065
|
}
|
1289
|
-
|
1290
1066
|
_onIconMousedown() {
|
1291
1067
|
this._iconPressed = true;
|
1292
1068
|
}
|
1293
|
-
|
1294
1069
|
storeResponsivePopoverWidth() {
|
1295
1070
|
if (this.open && !this._listWidth) {
|
1296
1071
|
this._listWidth = this.list.offsetWidth;
|
1297
1072
|
}
|
1298
1073
|
}
|
1299
|
-
|
1300
1074
|
toggle(isToggled) {
|
1301
1075
|
if (isToggled && !this.open) {
|
1302
1076
|
this.openPopover();
|
@@ -1304,135 +1078,107 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
1304
1078
|
this.closePopover();
|
1305
1079
|
}
|
1306
1080
|
}
|
1307
|
-
|
1308
1081
|
handleCancel() {
|
1309
1082
|
this._itemsBeforeOpen.forEach(item => {
|
1310
1083
|
item.ref.selected = item.selected;
|
1311
1084
|
});
|
1312
|
-
|
1313
1085
|
this.togglePopover();
|
1314
1086
|
this.value = this._valueBeforeOpen;
|
1315
1087
|
}
|
1316
|
-
|
1317
1088
|
handleOK() {
|
1318
1089
|
if ((0, _Device.isPhone)()) {
|
1319
1090
|
this.fireSelectionChange();
|
1320
1091
|
}
|
1321
|
-
|
1322
1092
|
this.togglePopover();
|
1323
1093
|
}
|
1324
|
-
|
1325
1094
|
async openPopover() {
|
1326
1095
|
const popover = await this._getPopover();
|
1327
|
-
|
1328
1096
|
if (popover) {
|
1329
1097
|
popover.showAt(this);
|
1330
1098
|
}
|
1331
1099
|
}
|
1332
|
-
|
1333
1100
|
_forwardFocusToInner() {
|
1334
1101
|
this._innerInput.focus();
|
1335
1102
|
}
|
1336
|
-
|
1337
1103
|
async closePopover() {
|
1338
1104
|
const popover = await this._getPopover();
|
1339
1105
|
popover && popover.close();
|
1340
1106
|
}
|
1341
|
-
|
1342
1107
|
async _getPopover() {
|
1343
1108
|
const staticAreaItem = await this.getStaticAreaItemDomRef();
|
1344
1109
|
return staticAreaItem.querySelector("[ui5-popover]");
|
1345
1110
|
}
|
1346
|
-
|
1347
1111
|
async _getResponsivePopover() {
|
1348
1112
|
const staticAreaItem = await this.getStaticAreaItemDomRef();
|
1349
1113
|
return staticAreaItem.querySelector("[ui5-responsive-popover]");
|
1350
1114
|
}
|
1351
|
-
|
1352
1115
|
async _setValueStateHeader() {
|
1353
1116
|
const responsivePopover = await this._getResponsivePopover();
|
1354
1117
|
this.valueStateHeader = responsivePopover.querySelector("div.ui5-responsive-popover-header.ui5-valuestatemessage-root");
|
1355
1118
|
}
|
1356
|
-
|
1357
1119
|
get _tokenizer() {
|
1358
1120
|
return this.shadowRoot.querySelector("[ui5-tokenizer]");
|
1359
1121
|
}
|
1360
|
-
|
1361
1122
|
inputFocusIn(event) {
|
1362
1123
|
if (!(0, _Device.isPhone)() || this.readonly) {
|
1363
1124
|
this.focused = true;
|
1364
1125
|
} else {
|
1365
1126
|
this._innerInput.blur();
|
1366
1127
|
}
|
1367
|
-
|
1368
1128
|
if (!(0, _Device.isPhone)() && (event.relatedTarget && event.relatedTarget.tagName !== "UI5-STATIC-AREA-ITEM" || !event.relatedTarget)) {
|
1369
1129
|
this._innerInput.setSelectionRange(0, this.value.length);
|
1370
1130
|
}
|
1371
|
-
|
1372
1131
|
this._lastValue = this.value;
|
1373
1132
|
this.valueBeforeAutoComplete = "";
|
1374
1133
|
}
|
1375
|
-
|
1376
1134
|
inputFocusOut(event) {
|
1377
1135
|
if (!this.shadowRoot.contains(event.relatedTarget) && !this._deleting) {
|
1378
|
-
this.focused = false;
|
1136
|
+
this.focused = false;
|
1379
1137
|
|
1138
|
+
// remove the value if user focus out the input and focus is not going in the popover
|
1380
1139
|
if (!(0, _Device.isPhone)() && !this.allowCustomValues && this.staticAreaItem !== event.relatedTarget) {
|
1381
1140
|
this.value = "";
|
1382
1141
|
}
|
1383
1142
|
}
|
1384
1143
|
}
|
1385
|
-
|
1386
1144
|
get editable() {
|
1387
1145
|
return !this.readonly;
|
1388
1146
|
}
|
1389
|
-
|
1390
1147
|
get _isFocusInside() {
|
1391
1148
|
return !(0, _Device.isPhone)() && (this.focused || this._tokenizerFocused);
|
1392
1149
|
}
|
1393
|
-
|
1394
1150
|
get selectedItemsListMode() {
|
1395
1151
|
return this.readonly ? "None" : "MultiSelect";
|
1396
1152
|
}
|
1397
|
-
|
1398
1153
|
get _listItemsType() {
|
1399
1154
|
return this.readonly ? "Inactive" : "Active";
|
1400
1155
|
}
|
1401
|
-
|
1402
1156
|
get hasValueState() {
|
1403
1157
|
return this.valueState !== _ValueState.default.None;
|
1404
1158
|
}
|
1405
|
-
|
1406
1159
|
get hasValueStateMessage() {
|
1407
1160
|
return this.hasValueState && this.valueState !== _ValueState.default.Success;
|
1408
1161
|
}
|
1409
|
-
|
1410
1162
|
get valueStateText() {
|
1411
1163
|
let key = this.valueState;
|
1412
|
-
|
1413
1164
|
if (this._performingSelectionTwice) {
|
1414
1165
|
key = "Error_Selection";
|
1415
1166
|
}
|
1416
|
-
|
1417
1167
|
return this.valueStateTextMappings[key];
|
1418
1168
|
}
|
1419
|
-
|
1420
1169
|
get valueStateTextId() {
|
1421
1170
|
return this.hasValueState ? `${this._id}-valueStateDesc` : undefined;
|
1422
1171
|
}
|
1423
|
-
|
1424
1172
|
get valueStateMessageText() {
|
1425
1173
|
return this.getSlottedNodes("valueStateMessage").map(el => el.cloneNode(true));
|
1426
1174
|
}
|
1427
|
-
|
1428
1175
|
get ariaLabelText() {
|
1429
1176
|
return (0, _AriaLabelHelper.getEffectiveAriaLabelText)(this);
|
1430
1177
|
}
|
1178
|
+
|
1431
1179
|
/**
|
1432
1180
|
* This method is relevant for sap_horizon theme only
|
1433
1181
|
*/
|
1434
|
-
|
1435
|
-
|
1436
1182
|
get _valueStateMessageIcon() {
|
1437
1183
|
const iconPerValueState = {
|
1438
1184
|
Error: "error",
|
@@ -1442,35 +1188,27 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
1442
1188
|
};
|
1443
1189
|
return this.valueState !== _ValueState.default.None ? iconPerValueState[this.valueState] : "";
|
1444
1190
|
}
|
1445
|
-
|
1446
1191
|
get _tokensCountText() {
|
1447
1192
|
if (!this._tokenizer) {
|
1448
1193
|
return;
|
1449
1194
|
}
|
1450
|
-
|
1451
1195
|
return this._tokenizer._tokensCountText();
|
1452
1196
|
}
|
1453
|
-
|
1454
1197
|
get _tokensCountTextId() {
|
1455
1198
|
return `${this._id}-hiddenText-nMore`;
|
1456
1199
|
}
|
1457
|
-
|
1458
1200
|
get _selectedTokensCount() {
|
1459
1201
|
return this._tokenizer.tokens.filter(token => token.selected).length;
|
1460
1202
|
}
|
1461
|
-
|
1462
1203
|
get ariaDescribedByText() {
|
1463
1204
|
return this.valueStateTextId ? `${this._tokensCountTextId} ${this.valueStateTextId}` : `${this._tokensCountTextId}`;
|
1464
1205
|
}
|
1465
|
-
|
1466
1206
|
get shouldDisplayDefaultValueStateMessage() {
|
1467
1207
|
return !this.valueStateMessage.length && this.hasValueStateMessage;
|
1468
1208
|
}
|
1469
|
-
|
1470
1209
|
get shouldDisplayOnlyValueStateMessage() {
|
1471
1210
|
return this.focused && !this.readonly && this.hasValueStateMessage && !this._iconPressed;
|
1472
1211
|
}
|
1473
|
-
|
1474
1212
|
get valueStateTextMappings() {
|
1475
1213
|
return {
|
1476
1214
|
"Success": MultiComboBox.i18nBundle.getText(_i18nDefaults.VALUE_STATE_SUCCESS),
|
@@ -1480,37 +1218,29 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
1480
1218
|
"Information": MultiComboBox.i18nBundle.getText(_i18nDefaults.VALUE_STATE_INFORMATION)
|
1481
1219
|
};
|
1482
1220
|
}
|
1483
|
-
|
1484
1221
|
get _innerInput() {
|
1485
1222
|
if ((0, _Device.isPhone)()) {
|
1486
1223
|
if (this.allItemsPopover && this.allItemsPopover.opened) {
|
1487
1224
|
return this.allItemsPopover.querySelector("input");
|
1488
1225
|
}
|
1489
1226
|
}
|
1490
|
-
|
1491
1227
|
return this.getDomRef() ? this.getDomRef().querySelector("#ui5-multi-combobox-input") : null;
|
1492
1228
|
}
|
1493
|
-
|
1494
1229
|
get _headerTitleText() {
|
1495
1230
|
return MultiComboBox.i18nBundle.getText(_i18nDefaults.INPUT_SUGGESTIONS_TITLE);
|
1496
1231
|
}
|
1497
|
-
|
1498
1232
|
get _iconAccessibleNameText() {
|
1499
1233
|
return MultiComboBox.i18nBundle.getText(_i18nDefaults.SELECT_OPTIONS);
|
1500
1234
|
}
|
1501
|
-
|
1502
1235
|
get _dialogOkButton() {
|
1503
1236
|
return MultiComboBox.i18nBundle.getText(_i18nDefaults.MULTICOMBOBOX_DIALOG_OK_BUTTON);
|
1504
1237
|
}
|
1505
|
-
|
1506
1238
|
get _tokenizerExpanded() {
|
1507
1239
|
return (this._isFocusInside || this.open) && !this.readonly;
|
1508
1240
|
}
|
1509
|
-
|
1510
1241
|
get _valueStatePopoverHorizontalAlign() {
|
1511
1242
|
return this.effectiveDir !== "rtl" ? "Left" : "Right";
|
1512
1243
|
}
|
1513
|
-
|
1514
1244
|
get classes() {
|
1515
1245
|
return {
|
1516
1246
|
popover: {
|
@@ -1528,7 +1258,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
1528
1258
|
}
|
1529
1259
|
};
|
1530
1260
|
}
|
1531
|
-
|
1532
1261
|
get styles() {
|
1533
1262
|
const remSizeIxPx = parseInt(getComputedStyle(document.documentElement).fontSize);
|
1534
1263
|
return {
|
@@ -1545,13 +1274,10 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
1545
1274
|
}
|
1546
1275
|
};
|
1547
1276
|
}
|
1548
|
-
|
1549
1277
|
static async onDefine() {
|
1550
1278
|
MultiComboBox.i18nBundle = await (0, _i18nBundle.getI18nBundle)("@ui5/webcomponents");
|
1551
1279
|
}
|
1552
|
-
|
1553
1280
|
}
|
1554
|
-
|
1555
1281
|
MultiComboBox.define();
|
1556
1282
|
var _default = MultiComboBox;
|
1557
1283
|
_exports.default = _default;
|