@openui5/sap.ui.webc.main 1.111.1 → 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
|
_Suggestions = _interopRequireDefault(_Suggestions);
|
27
|
-
|
28
27
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
29
|
-
|
30
28
|
// Styles
|
29
|
+
|
31
30
|
// reuse suggestions focus styling for NMore popup
|
32
31
|
|
33
32
|
/**
|
@@ -37,9 +36,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
37
36
|
tag: "ui5-tokenizer",
|
38
37
|
languageAware: true,
|
39
38
|
managedSlots: true,
|
40
|
-
slots:
|
41
|
-
/** @lends sap.ui.webcomponents.main.Tokenizer.prototype */
|
42
|
-
{
|
39
|
+
slots: /** @lends sap.ui.webcomponents.main.Tokenizer.prototype */{
|
43
40
|
"default": {
|
44
41
|
propertyName: "tokens",
|
45
42
|
type: HTMLElement,
|
@@ -50,16 +47,13 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
50
47
|
type: HTMLElement
|
51
48
|
}
|
52
49
|
},
|
53
|
-
properties:
|
54
|
-
/** @lends sap.ui.webcomponents.main.Tokenizer.prototype */
|
55
|
-
{
|
50
|
+
properties: /** @lends sap.ui.webcomponents.main.Tokenizer.prototype */{
|
56
51
|
showMore: {
|
57
52
|
type: Boolean
|
58
53
|
},
|
59
54
|
disabled: {
|
60
55
|
type: Boolean
|
61
56
|
},
|
62
|
-
|
63
57
|
/**
|
64
58
|
* Indicates if the tokenizer should show all tokens or n more label instead
|
65
59
|
*
|
@@ -74,7 +68,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
74
68
|
popoverMinWidth: {
|
75
69
|
type: _Integer.default
|
76
70
|
},
|
77
|
-
|
78
71
|
/**
|
79
72
|
* Indicates the value state of the related input component.
|
80
73
|
*
|
@@ -90,9 +83,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
90
83
|
type: _Integer.default
|
91
84
|
}
|
92
85
|
},
|
93
|
-
events:
|
94
|
-
/** @lends sap.ui.webcomponents.main.Tokenizer.prototype */
|
95
|
-
{
|
86
|
+
events: /** @lends sap.ui.webcomponents.main.Tokenizer.prototype */{
|
96
87
|
"token-delete": {
|
97
88
|
detail: {
|
98
89
|
ref: {
|
@@ -109,6 +100,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
109
100
|
}
|
110
101
|
}
|
111
102
|
};
|
103
|
+
|
112
104
|
/**
|
113
105
|
* @class
|
114
106
|
*
|
@@ -124,36 +116,28 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
124
116
|
* @usestextcontent
|
125
117
|
* @private
|
126
118
|
*/
|
127
|
-
|
128
119
|
class Tokenizer extends _UI5Element.default {
|
129
120
|
static get metadata() {
|
130
121
|
return metadata;
|
131
122
|
}
|
132
|
-
|
133
123
|
static get render() {
|
134
124
|
return _LitRenderer.default;
|
135
125
|
}
|
136
|
-
|
137
126
|
static get template() {
|
138
127
|
return _TokenizerTemplate.default;
|
139
128
|
}
|
140
|
-
|
141
129
|
static get styles() {
|
142
130
|
return _Tokenizer.default;
|
143
131
|
}
|
144
|
-
|
145
132
|
static get staticAreaStyles() {
|
146
133
|
return [_ResponsivePopoverCommon.default, _ValueStateMessage.default, _Suggestions.default, _TokenizerPopover.default];
|
147
134
|
}
|
148
|
-
|
149
135
|
static get staticAreaTemplate() {
|
150
136
|
return _TokenizerPopoverTemplate.default;
|
151
137
|
}
|
152
|
-
|
153
138
|
_handleResize() {
|
154
139
|
this._nMoreCount = this.overflownTokens.length;
|
155
140
|
}
|
156
|
-
|
157
141
|
constructor() {
|
158
142
|
super();
|
159
143
|
this._resizeHandler = this._handleResize.bind(this);
|
@@ -163,59 +147,46 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
163
147
|
});
|
164
148
|
this._scrollEnablement = new _ScrollEnablement.default(this);
|
165
149
|
}
|
166
|
-
|
167
150
|
async onBeforeRendering() {
|
168
151
|
if (this.showPopover && !this._getTokens().length) {
|
169
152
|
const popover = await this.getPopover();
|
170
153
|
popover.close();
|
171
154
|
}
|
172
|
-
|
173
155
|
this._nMoreCount = this.overflownTokens.length;
|
174
156
|
}
|
175
|
-
|
176
157
|
onEnterDOM() {
|
177
158
|
_ResizeHandler.default.register(this.shadowRoot.querySelector(".ui5-tokenizer--content"), this._resizeHandler);
|
178
159
|
}
|
179
|
-
|
180
160
|
onExitDOM() {
|
181
161
|
_ResizeHandler.default.deregister(this.shadowRoot.querySelector(".ui5-tokenizer--content"), this._resizeHandler);
|
182
162
|
}
|
183
|
-
|
184
163
|
async _openOverflowPopover() {
|
185
164
|
if (this.showPopover) {
|
186
165
|
const popover = await this.getPopover();
|
187
166
|
popover.showAt(this.morePopoverOpener || this);
|
188
167
|
}
|
189
|
-
|
190
168
|
this.fireEvent("show-more-items-press");
|
191
169
|
}
|
192
|
-
|
193
170
|
_getTokens() {
|
194
171
|
return this.getSlottedNodes("tokens");
|
195
172
|
}
|
196
|
-
|
197
173
|
get _tokens() {
|
198
174
|
return this.getSlottedNodes("tokens");
|
199
175
|
}
|
200
|
-
|
201
176
|
get showPopover() {
|
202
177
|
return Object.keys(this.morePopoverOpener).length;
|
203
178
|
}
|
204
|
-
|
205
179
|
_getVisibleTokens() {
|
206
180
|
if (this.disabled) {
|
207
181
|
return [];
|
208
182
|
}
|
209
|
-
|
210
183
|
return this._tokens.filter((token, index) => {
|
211
184
|
return index < this._tokens.length - this._nMoreCount;
|
212
185
|
});
|
213
186
|
}
|
214
|
-
|
215
187
|
onAfterRendering() {
|
216
188
|
this._scrollEnablement.scrollContainer = this.expanded ? this.contentDom : this;
|
217
189
|
}
|
218
|
-
|
219
190
|
_delete(event) {
|
220
191
|
if (this._selectedTokens.length) {
|
221
192
|
this._selectedTokens.forEach(token => this._tokenDelete(event, token));
|
@@ -223,16 +194,12 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
223
194
|
this._tokenDelete(event);
|
224
195
|
}
|
225
196
|
}
|
226
|
-
|
227
197
|
_tokenDelete(event, token) {
|
228
198
|
let nextTokenIndex; // The index of the next token that needs to be focused next due to the deletion
|
229
199
|
|
230
200
|
const tokens = this._getVisibleTokens();
|
231
|
-
|
232
201
|
const deletedTokenIndex = token ? tokens.indexOf(token) : tokens.indexOf(event.target); // The index of the token that just got deleted
|
233
|
-
|
234
202
|
const notSelectedTokens = tokens.filter(t => !t.selected);
|
235
|
-
|
236
203
|
if (event.detail && event.detail.backSpace) {
|
237
204
|
// on backspace key select the previous item (unless deleting the first)
|
238
205
|
nextTokenIndex = deletedTokenIndex === 0 ? deletedTokenIndex + 1 : deletedTokenIndex - 1;
|
@@ -240,7 +207,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
240
207
|
// on delete key or mouse click on the "x" select the next item (unless deleting the last)
|
241
208
|
nextTokenIndex = deletedTokenIndex === tokens.length - 1 ? deletedTokenIndex - 1 : deletedTokenIndex + 1;
|
242
209
|
}
|
243
|
-
|
244
210
|
let nextToken = tokens[nextTokenIndex]; // if the last item was deleted this will be undefined
|
245
211
|
|
246
212
|
if (notSelectedTokens.length > 1) {
|
@@ -250,83 +216,65 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
250
216
|
} else {
|
251
217
|
nextToken = notSelectedTokens[0];
|
252
218
|
}
|
253
|
-
|
254
219
|
if (nextToken && !(0, _Device.isPhone)()) {
|
255
220
|
this._itemNav.setCurrentItem(nextToken); // update the item navigation with the new token or undefined, if the last was deleted
|
256
221
|
|
257
|
-
|
258
222
|
setTimeout(() => {
|
259
223
|
nextToken.focus();
|
260
224
|
}, 0);
|
261
225
|
}
|
262
|
-
|
263
226
|
this.fireEvent("token-delete", {
|
264
227
|
ref: token || event.target
|
265
228
|
});
|
266
229
|
}
|
267
|
-
|
268
230
|
itemDelete(event) {
|
269
231
|
const token = event.detail.item.tokenRef;
|
270
232
|
this.fireEvent("token-delete", {
|
271
233
|
ref: token
|
272
234
|
});
|
273
235
|
}
|
274
|
-
|
275
236
|
_onkeydown(event) {
|
276
237
|
if ((0, _Keys.isSpaceShift)(event)) {
|
277
238
|
event.preventDefault();
|
278
239
|
}
|
279
|
-
|
280
240
|
if ((0, _Keys.isSpace)(event) || (0, _Keys.isSpaceCtrl)(event)) {
|
281
241
|
event.preventDefault();
|
282
242
|
return this._handleTokenSelection(event, false);
|
283
243
|
}
|
284
|
-
|
285
244
|
if ((0, _Keys.isHomeShift)(event)) {
|
286
245
|
this._handleHomeShift(event);
|
287
246
|
}
|
288
|
-
|
289
247
|
if ((0, _Keys.isEndShift)(event)) {
|
290
248
|
this._handleEndShift(event);
|
291
249
|
}
|
292
|
-
|
293
250
|
this._handleItemNavigation(event, this._tokens);
|
294
251
|
}
|
295
|
-
|
296
252
|
_handleItemNavigation(event, tokens) {
|
297
253
|
const isCtrl = !!(event.metaKey || event.ctrlKey);
|
298
|
-
|
299
254
|
if ((0, _Keys.isLeftCtrl)(event) || (0, _Keys.isRightCtrl)(event) || (0, _Keys.isDownCtrl)(event) || (0, _Keys.isUpCtrl)(event)) {
|
300
255
|
return this._handleArrowCtrl(event, event.target, tokens, (0, _Keys.isRightCtrl)(event) || (0, _Keys.isDownCtrl)(event));
|
301
256
|
}
|
302
|
-
|
303
257
|
if ((0, _Keys.isLeftShift)(event) || (0, _Keys.isRightShift)(event) || (0, _Keys.isUpShift)(event) || (0, _Keys.isDownShift)(event) || (0, _Keys.isLeftShiftCtrl)(event) || (0, _Keys.isRightShiftCtrl)(event)) {
|
304
258
|
event.preventDefault();
|
305
259
|
return this._handleArrowShift(event.target, tokens, (0, _Keys.isRightShift)(event) || (0, _Keys.isRightShiftCtrl)(event) || (0, _Keys.isDownShift)(event));
|
306
260
|
}
|
307
|
-
|
308
261
|
if ((0, _Keys.isHome)(event) || (0, _Keys.isEnd)(event) || (0, _Keys.isHomeCtrl)(event) || (0, _Keys.isEndCtrl)(event)) {
|
309
262
|
event.preventDefault();
|
310
263
|
return this._handleHome(tokens, (0, _Keys.isEnd)(event) || (0, _Keys.isEndCtrl)(event));
|
311
264
|
}
|
312
|
-
|
313
265
|
if (isCtrl && event.key.toLowerCase() === "a") {
|
314
266
|
event.preventDefault();
|
315
267
|
return this._toggleTokenSelection(tokens);
|
316
268
|
}
|
317
269
|
}
|
318
|
-
|
319
270
|
_handleHome(tokens, endKeyPressed) {
|
320
271
|
if (!tokens || !tokens.length) {
|
321
272
|
return -1;
|
322
273
|
}
|
323
|
-
|
324
274
|
const index = endKeyPressed ? tokens.length - 1 : 0;
|
325
275
|
tokens[index].focus();
|
326
|
-
|
327
276
|
this._itemNav.setCurrentItem(tokens[index]);
|
328
277
|
}
|
329
|
-
|
330
278
|
_handleHomeShift(event) {
|
331
279
|
const tokens = this.tokens;
|
332
280
|
const currentTokenIdx = tokens.indexOf(event.target);
|
@@ -334,10 +282,8 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
334
282
|
token.selected = true;
|
335
283
|
});
|
336
284
|
tokens[0].focus();
|
337
|
-
|
338
285
|
this._itemNav.setCurrentItem(tokens[0]);
|
339
286
|
}
|
340
|
-
|
341
287
|
_handleEndShift(event) {
|
342
288
|
const tokens = this.tokens;
|
343
289
|
const currentTokenIdx = tokens.indexOf(event.target);
|
@@ -345,77 +291,57 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
345
291
|
token.selected = true;
|
346
292
|
});
|
347
293
|
tokens[tokens.length - 1].focus();
|
348
|
-
|
349
294
|
this._itemNav.setCurrentItem(tokens[tokens.length - 1]);
|
350
295
|
}
|
351
|
-
|
352
296
|
_calcNextTokenIndex(focusedToken, tokens, backwards) {
|
353
297
|
if (!tokens.length) {
|
354
298
|
return -1;
|
355
299
|
}
|
356
|
-
|
357
300
|
const focusedTokenIndex = tokens.indexOf(focusedToken);
|
358
301
|
let nextIndex = backwards ? focusedTokenIndex + 1 : focusedTokenIndex - 1;
|
359
|
-
|
360
302
|
if (nextIndex >= tokens.length) {
|
361
303
|
nextIndex = tokens.length - 1;
|
362
304
|
}
|
363
|
-
|
364
305
|
if (nextIndex < 0) {
|
365
306
|
nextIndex = 0;
|
366
307
|
}
|
367
|
-
|
368
308
|
return nextIndex;
|
369
309
|
}
|
370
|
-
|
371
310
|
_handleArrowCtrl(event, focusedToken, tokens, backwards) {
|
372
311
|
const nextIndex = this._calcNextTokenIndex(focusedToken, tokens, backwards);
|
373
|
-
|
374
312
|
event.preventDefault();
|
375
|
-
|
376
313
|
if (nextIndex === -1) {
|
377
314
|
return;
|
378
315
|
}
|
379
|
-
|
380
316
|
setTimeout(() => tokens[nextIndex].focus(), 0);
|
381
|
-
|
382
317
|
this._itemNav.setCurrentItem(tokens[nextIndex]);
|
383
318
|
}
|
384
|
-
|
385
319
|
_handleArrowShift(focusedToken, tokens, backwards) {
|
386
320
|
const focusedTokenIndex = tokens.indexOf(focusedToken);
|
387
321
|
const nextIndex = backwards ? focusedTokenIndex + 1 : focusedTokenIndex - 1;
|
388
|
-
|
389
322
|
if (nextIndex === -1 || nextIndex === tokens.length) {
|
390
323
|
return;
|
391
324
|
}
|
392
|
-
|
393
325
|
focusedToken.selected = true;
|
394
326
|
tokens[nextIndex].selected = true;
|
395
327
|
setTimeout(() => tokens[nextIndex].focus(), 0);
|
396
|
-
|
397
328
|
this._itemNav.setCurrentItem(tokens[nextIndex]);
|
398
329
|
}
|
399
|
-
|
400
330
|
_click(event) {
|
401
331
|
this._handleTokenSelection(event);
|
402
332
|
}
|
403
|
-
|
404
333
|
_onmousedown(event) {
|
405
334
|
this._itemNav.setCurrentItem(event.target);
|
406
335
|
}
|
407
|
-
|
408
336
|
_toggleTokenSelection(tokens) {
|
409
337
|
if (!tokens || !tokens.length) {
|
410
338
|
return;
|
411
339
|
}
|
412
|
-
|
413
340
|
const tokensAreSelected = tokens.every(token => token.selected);
|
414
341
|
tokens.forEach(token => {
|
415
342
|
token.selected = !tokensAreSelected;
|
416
343
|
});
|
417
344
|
}
|
418
|
-
|
419
345
|
_handleTokenSelection(event, deselectAll = true) {
|
420
346
|
if (event.target.hasAttribute("ui5-token")) {
|
421
347
|
const deselectTokens = deselectAll ? this._tokens : [event.target];
|
@@ -426,73 +352,61 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
426
352
|
});
|
427
353
|
}
|
428
354
|
}
|
429
|
-
|
430
355
|
_fillClipboard(shortcutName, tokens) {
|
431
356
|
const tokensTexts = tokens.filter(token => token.selected).map(token => token.text).join("\r\n");
|
432
|
-
/* fill clipboard with tokens' texts so parent can handle creation */
|
433
357
|
|
358
|
+
/* fill clipboard with tokens' texts so parent can handle creation */
|
434
359
|
const cutToClipboard = event => {
|
435
360
|
if (event.clipboardData) {
|
436
361
|
event.clipboardData.setData("text/plain", tokensTexts);
|
437
362
|
} else {
|
438
363
|
event.originalEvent.clipboardData.setData("text/plain", tokensTexts);
|
439
364
|
}
|
440
|
-
|
441
365
|
event.preventDefault();
|
442
366
|
};
|
443
|
-
|
444
367
|
document.addEventListener(shortcutName, cutToClipboard);
|
445
368
|
document.execCommand(shortcutName);
|
446
369
|
document.removeEventListener(shortcutName, cutToClipboard);
|
447
370
|
}
|
371
|
+
|
448
372
|
/**
|
449
373
|
* Scrolls the container of the tokens to its beginning.
|
450
374
|
* This method is used by MultiInput and MultiComboBox.
|
451
375
|
* @private
|
452
376
|
*/
|
453
|
-
|
454
|
-
|
455
377
|
scrollToStart() {
|
456
378
|
this.contentDom.scrollLeft = 0;
|
457
379
|
}
|
458
|
-
|
459
380
|
async closeMorePopover() {
|
460
381
|
const popover = await this.getPopover();
|
461
382
|
popover.close();
|
462
383
|
}
|
463
|
-
|
464
384
|
get _nMoreText() {
|
465
385
|
return Tokenizer.i18nBundle.getText(_i18nDefaults.MULTIINPUT_SHOW_MORE_TOKENS, this._nMoreCount);
|
466
386
|
}
|
467
|
-
|
468
387
|
get showNMore() {
|
469
388
|
return !this.expanded && this.showMore && this.overflownTokens.length;
|
470
389
|
}
|
471
|
-
|
472
390
|
get contentDom() {
|
473
391
|
return this.shadowRoot.querySelector(".ui5-tokenizer--content");
|
474
392
|
}
|
475
|
-
|
476
393
|
get tokenizerLabel() {
|
477
394
|
return Tokenizer.i18nBundle.getText(_i18nDefaults.TOKENIZER_ARIA_LABEL);
|
478
395
|
}
|
479
|
-
|
480
396
|
get morePopoverTitle() {
|
481
397
|
return Tokenizer.i18nBundle.getText(_i18nDefaults.TOKENIZER_POPOVER_REMOVE);
|
482
398
|
}
|
483
|
-
|
484
399
|
get overflownTokens() {
|
485
400
|
if (!this.contentDom) {
|
486
401
|
return [];
|
487
|
-
}
|
402
|
+
}
|
403
|
+
|
404
|
+
// Reset the overflow prop of the tokens first in order
|
488
405
|
// to use their dimensions for calculation because already
|
489
406
|
// hidden tokens are set to 'display: none'
|
490
|
-
|
491
|
-
|
492
407
|
this._getTokens().forEach(token => {
|
493
408
|
token.overflows = false;
|
494
409
|
});
|
495
|
-
|
496
410
|
return this._getTokens().filter(token => {
|
497
411
|
const isRTL = this.effectiveDir === "rtl";
|
498
412
|
const elementEnd = isRTL ? "left" : "right";
|
@@ -504,19 +418,16 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
504
418
|
return token.overflows;
|
505
419
|
});
|
506
420
|
}
|
507
|
-
|
508
421
|
get hasValueState() {
|
509
422
|
return this.valueState === _ValueState.default.None || this.valueState === _ValueState.default.Success;
|
510
423
|
}
|
511
|
-
|
512
424
|
get valueStateMessageText() {
|
513
425
|
return this.getSlottedNodes("valueStateMessage").map(el => el.cloneNode(true));
|
514
426
|
}
|
427
|
+
|
515
428
|
/**
|
516
429
|
* This method is relevant for sap_horizon theme only
|
517
430
|
*/
|
518
|
-
|
519
|
-
|
520
431
|
get _valueStateMessageIcon() {
|
521
432
|
const iconPerValueState = {
|
522
433
|
Error: "error",
|
@@ -526,15 +437,12 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
526
437
|
};
|
527
438
|
return this.valueState !== _ValueState.default.None ? iconPerValueState[this.valueState] : "";
|
528
439
|
}
|
529
|
-
|
530
440
|
get _isPhone() {
|
531
441
|
return (0, _Device.isPhone)();
|
532
442
|
}
|
533
|
-
|
534
443
|
get _selectedTokens() {
|
535
444
|
return this._getTokens().filter(token => token.selected);
|
536
445
|
}
|
537
|
-
|
538
446
|
get classes() {
|
539
447
|
return {
|
540
448
|
wrapper: {
|
@@ -556,7 +464,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
556
464
|
}
|
557
465
|
};
|
558
466
|
}
|
559
|
-
|
560
467
|
get styles() {
|
561
468
|
return {
|
562
469
|
popover: {
|
@@ -574,50 +481,38 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
574
481
|
}
|
575
482
|
};
|
576
483
|
}
|
577
|
-
|
578
484
|
_tokensCountText() {
|
579
485
|
const iTokenCount = this._getTokens().length;
|
580
|
-
|
581
486
|
if (iTokenCount === 0) {
|
582
487
|
return Tokenizer.i18nBundle.getText(_i18nDefaults.TOKENIZER_ARIA_CONTAIN_TOKEN);
|
583
488
|
}
|
584
|
-
|
585
489
|
if (iTokenCount === 1) {
|
586
490
|
return Tokenizer.i18nBundle.getText(_i18nDefaults.TOKENIZER_ARIA_CONTAIN_ONE_TOKEN);
|
587
491
|
}
|
588
|
-
|
589
492
|
return Tokenizer.i18nBundle.getText(_i18nDefaults.TOKENIZER_ARIA_CONTAIN_SEVERAL_TOKENS, iTokenCount);
|
590
493
|
}
|
494
|
+
|
591
495
|
/**
|
592
496
|
* @protected
|
593
497
|
*/
|
594
|
-
|
595
|
-
|
596
498
|
_focusLastToken() {
|
597
499
|
if (this.tokens.length === 0) {
|
598
500
|
return;
|
599
501
|
}
|
600
|
-
|
601
502
|
const lastToken = this.tokens[this.tokens.length - 1];
|
602
503
|
lastToken.focus();
|
603
|
-
|
604
504
|
this._itemNav.setCurrentItem(lastToken);
|
605
505
|
}
|
606
|
-
|
607
506
|
static get dependencies() {
|
608
507
|
return [_ResponsivePopover.default, _List.default, _StandardListItem.default, _Title.default, _Button.default];
|
609
508
|
}
|
610
|
-
|
611
509
|
static async onDefine() {
|
612
510
|
Tokenizer.i18nBundle = await (0, _i18nBundle.getI18nBundle)("@ui5/webcomponents");
|
613
511
|
}
|
614
|
-
|
615
512
|
async getPopover() {
|
616
513
|
return (await this.getStaticAreaItemDomRef()).querySelector("[ui5-responsive-popover]");
|
617
514
|
}
|
618
|
-
|
619
515
|
}
|
620
|
-
|
621
516
|
Tokenizer.define();
|
622
517
|
var _default = Tokenizer;
|
623
518
|
_exports.default = _default;
|