@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
@@ -14,9 +14,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
14
14
|
_Icon = _interopRequireDefault(_Icon);
|
15
15
|
_MenuTemplate = _interopRequireDefault(_MenuTemplate);
|
16
16
|
_Menu = _interopRequireDefault(_Menu);
|
17
|
-
|
18
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
19
|
-
|
20
18
|
// Styles
|
21
19
|
|
22
20
|
/**
|
@@ -24,9 +22,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
24
22
|
*/
|
25
23
|
const metadata = {
|
26
24
|
tag: "ui5-menu",
|
27
|
-
properties:
|
28
|
-
/** @lends sap.ui.webcomponents.main.Menu.prototype */
|
29
|
-
{
|
25
|
+
properties: /** @lends sap.ui.webcomponents.main.Menu.prototype */{
|
30
26
|
/**
|
31
27
|
* Defines the header text of the menu (displayed on mobile).
|
32
28
|
* @type {string}
|
@@ -36,7 +32,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
36
32
|
headerText: {
|
37
33
|
type: String
|
38
34
|
},
|
39
|
-
|
40
35
|
/**
|
41
36
|
* Defines if the menu is sub-menu (not first-level).
|
42
37
|
* @type {boolean}
|
@@ -47,7 +42,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
47
42
|
type: Boolean,
|
48
43
|
noAttribute: true
|
49
44
|
},
|
50
|
-
|
51
45
|
/**
|
52
46
|
* Stores parent menu item (if there is such).
|
53
47
|
* @type {object}
|
@@ -56,7 +50,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
56
50
|
_parentMenuItem: {
|
57
51
|
type: Object
|
58
52
|
},
|
59
|
-
|
60
53
|
/**
|
61
54
|
* Stores menu item that have sub-menu opened.
|
62
55
|
* @type {object}
|
@@ -65,7 +58,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
65
58
|
_openedSubMenuItem: {
|
66
59
|
type: Object
|
67
60
|
},
|
68
|
-
|
69
61
|
/**
|
70
62
|
* Stores id of a list item that opened sub-menu.
|
71
63
|
* @type {string}
|
@@ -74,7 +66,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
74
66
|
_subMenuOpenerId: {
|
75
67
|
type: String
|
76
68
|
},
|
77
|
-
|
78
69
|
/**
|
79
70
|
* Defines the currently available menu items.
|
80
71
|
* (in case of non-phone devices these are the items of the menu,
|
@@ -87,7 +78,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
87
78
|
type: Object,
|
88
79
|
multiple: true
|
89
80
|
},
|
90
|
-
|
91
81
|
/**
|
92
82
|
* Stores a list of parent menu items for each sub-menu (on phone).
|
93
83
|
* @type {array}
|
@@ -97,7 +87,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
97
87
|
type: Object,
|
98
88
|
multiple: true
|
99
89
|
},
|
100
|
-
|
101
90
|
/**
|
102
91
|
* Stores a responsive popover when it is opened.
|
103
92
|
* @type {object}
|
@@ -108,9 +97,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
108
97
|
}
|
109
98
|
},
|
110
99
|
managedSlots: true,
|
111
|
-
slots:
|
112
|
-
/** @lends sap.ui.webcomponents.main.Menu.prototype */
|
113
|
-
{
|
100
|
+
slots: /** @lends sap.ui.webcomponents.main.Menu.prototype */{
|
114
101
|
/**
|
115
102
|
* Defines the items of this component.
|
116
103
|
*
|
@@ -124,9 +111,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
124
111
|
invalidateOnChildChange: true
|
125
112
|
}
|
126
113
|
},
|
127
|
-
events:
|
128
|
-
/** @lends sap.ui.webcomponents.main.Menu.prototype */
|
129
|
-
{
|
114
|
+
events: /** @lends sap.ui.webcomponents.main.Menu.prototype */{
|
130
115
|
/**
|
131
116
|
* Fired when an item is being clicked.
|
132
117
|
*
|
@@ -147,6 +132,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
147
132
|
}
|
148
133
|
}
|
149
134
|
};
|
135
|
+
|
150
136
|
/**
|
151
137
|
* @class
|
152
138
|
*
|
@@ -185,156 +171,121 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
185
171
|
* @since 1.3.0
|
186
172
|
* @public
|
187
173
|
*/
|
188
|
-
|
189
174
|
class Menu extends _UI5Element.default {
|
190
175
|
static get metadata() {
|
191
176
|
return metadata;
|
192
177
|
}
|
193
|
-
|
194
178
|
static get render() {
|
195
179
|
return _LitRenderer.default;
|
196
180
|
}
|
197
|
-
|
198
181
|
static get staticAreaStyles() {
|
199
182
|
return _Menu.default;
|
200
183
|
}
|
201
|
-
|
202
184
|
static get staticAreaTemplate() {
|
203
185
|
return _MenuTemplate.default;
|
204
186
|
}
|
205
|
-
|
206
187
|
static get dependencies() {
|
207
188
|
return [_ResponsivePopover.default, _Button.default, _List.default, _StandardListItem.default, _Icon.default];
|
208
189
|
}
|
209
|
-
|
210
190
|
static async onDefine() {
|
211
191
|
Menu.i18nBundle = await (0, _i18nBundle.getI18nBundle)("@ui5/webcomponents");
|
212
192
|
}
|
213
|
-
|
214
193
|
get itemsWithChildren() {
|
215
194
|
return !!this._currentItems.filter(item => item.item.items.length).length;
|
216
195
|
}
|
217
|
-
|
218
196
|
get itemsWithIcon() {
|
219
197
|
return !!this._currentItems.filter(item => item.item.icon !== "").length;
|
220
198
|
}
|
221
|
-
|
222
199
|
get isRtl() {
|
223
200
|
return this.effectiveDir === "rtl";
|
224
201
|
}
|
225
|
-
|
226
202
|
get placementType() {
|
227
203
|
const placement = this.isRtl ? "Left" : "Right";
|
228
204
|
return this._isSubMenu ? placement : "Bottom";
|
229
205
|
}
|
230
|
-
|
231
206
|
get verticalAlign() {
|
232
207
|
return this._isSubMenu ? "Top" : "Bottom";
|
233
208
|
}
|
234
|
-
|
235
209
|
get labelBack() {
|
236
210
|
return Menu.i18nBundle.getText(_i18nDefaults.MENU_BACK_BUTTON_ARIA_LABEL);
|
237
211
|
}
|
238
|
-
|
239
212
|
get labelClose() {
|
240
213
|
return Menu.i18nBundle.getText(_i18nDefaults.MENU_CLOSE_BUTTON_ARIA_LABEL);
|
241
214
|
}
|
242
|
-
|
243
215
|
get isPhone() {
|
244
216
|
return (0, _Device.isPhone)();
|
245
217
|
}
|
246
|
-
|
247
218
|
get isSubMenuOpened() {
|
248
219
|
return !!this._parentMenuItem;
|
249
220
|
}
|
250
|
-
|
251
221
|
get menuHeaderTextPhone() {
|
252
222
|
return this.isSubMenuOpened ? this._parentMenuItem.text : this.headerText;
|
253
223
|
}
|
254
|
-
|
255
224
|
onBeforeRendering() {
|
256
225
|
!(0, _Device.isPhone)() && this._prepareCurrentItems(this.items);
|
257
226
|
const itemsWithChildren = this.itemsWithChildren;
|
258
227
|
const itemsWithIcon = this.itemsWithIcon;
|
259
|
-
|
260
228
|
this._currentItems.forEach(item => {
|
261
229
|
item.item._siblingsWithChildren = itemsWithChildren;
|
262
230
|
item.item._siblingsWithIcon = itemsWithIcon;
|
263
231
|
});
|
264
232
|
}
|
233
|
+
|
265
234
|
/**
|
266
235
|
* Shows the Menu near the opener element.
|
267
236
|
* @param {HTMLElement} opener the element that the popover is shown at
|
268
237
|
* @public
|
269
238
|
*/
|
270
|
-
|
271
|
-
|
272
239
|
async showAt(opener) {
|
273
240
|
if ((0, _Device.isPhone)()) {
|
274
241
|
this._prepareCurrentItems(this.items);
|
275
|
-
|
276
242
|
this._parentItemsStack = [];
|
277
243
|
}
|
278
|
-
|
279
244
|
if (!this._isSubMenu) {
|
280
245
|
this._parentMenuItem = undefined;
|
281
246
|
}
|
282
|
-
|
283
247
|
await this._getPopover();
|
284
248
|
this._popover.initialFocus = "";
|
285
|
-
|
286
249
|
for (let index = 0; index < this._currentItems.length; index++) {
|
287
250
|
if (!this._currentItems[index].item.disabled) {
|
288
251
|
this._popover.initialFocus = `${this._id}-menu-item-${index}`;
|
289
252
|
break;
|
290
253
|
}
|
291
254
|
}
|
292
|
-
|
293
255
|
this._popover.showAt(opener);
|
294
256
|
}
|
257
|
+
|
295
258
|
/**
|
296
259
|
* Closes the Menu.
|
297
260
|
* @public
|
298
261
|
*/
|
299
|
-
|
300
|
-
|
301
262
|
close() {
|
302
263
|
if (Object.keys(this._popover).length) {
|
303
264
|
if ((0, _Device.isPhone)()) {
|
304
265
|
this._parentItemsStack = [];
|
305
266
|
}
|
306
|
-
|
307
267
|
this._popover.close();
|
308
|
-
|
309
268
|
this._popover.resetFocus();
|
310
269
|
}
|
311
270
|
}
|
312
|
-
|
313
271
|
async _getPopover() {
|
314
272
|
this._popover = (await this.getStaticAreaItemDomRef()).querySelector("[ui5-responsive-popover]");
|
315
273
|
return this._popover;
|
316
274
|
}
|
317
|
-
|
318
275
|
_beforePopoverClose() {
|
319
276
|
if (Object.keys(this._openedSubMenuItem).length) {
|
320
277
|
this._openedSubMenuItem._preventSubMenuClose = false;
|
321
|
-
|
322
278
|
this._closeItemSubMenu(this._openedSubMenuItem);
|
323
279
|
}
|
324
280
|
}
|
325
|
-
|
326
281
|
_navigateBack() {
|
327
282
|
const parentMenuItem = this._parentItemsStack.pop();
|
328
|
-
|
329
283
|
this.focus();
|
330
|
-
|
331
284
|
if (parentMenuItem) {
|
332
285
|
this._prepareCurrentItems(parentMenuItem.parentElement.items);
|
333
|
-
|
334
286
|
this._parentMenuItem = this._parentItemsStack.length ? this._parentItemsStack[this._parentItemsStack.length - 1] : undefined;
|
335
287
|
}
|
336
288
|
}
|
337
|
-
|
338
289
|
_prepareCurrentItems(items) {
|
339
290
|
this._currentItems = items.map((item, index) => {
|
340
291
|
return {
|
@@ -344,7 +295,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
344
295
|
};
|
345
296
|
});
|
346
297
|
}
|
347
|
-
|
348
298
|
_createSubMenu(item, openerId) {
|
349
299
|
const subMenu = document.createElement(this.constructor.getMetadata().getTag());
|
350
300
|
const fragment = document.createDocumentFragment();
|
@@ -353,41 +303,33 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
353
303
|
subMenu._parentMenuItem = item;
|
354
304
|
const subItems = item.children;
|
355
305
|
let clonedItem, idx;
|
356
|
-
|
357
306
|
for (idx = 0; idx < subItems.length; idx++) {
|
358
307
|
clonedItem = subItems[idx].cloneNode(true);
|
359
308
|
fragment.appendChild(clonedItem);
|
360
309
|
}
|
361
|
-
|
362
310
|
subMenu.appendChild(fragment);
|
363
311
|
this.staticAreaItem.shadowRoot.querySelector(".ui5-menu-submenus").appendChild(subMenu);
|
364
312
|
item._subMenu = subMenu;
|
365
313
|
}
|
366
|
-
|
367
314
|
_openItemSubMenu(item, opener, actionId) {
|
368
315
|
item._subMenu.showAt(opener);
|
369
|
-
|
370
316
|
item._preventSubMenuClose = true;
|
371
317
|
this._openedSubMenuItem = item;
|
372
318
|
this._subMenuOpenerId = actionId;
|
373
319
|
}
|
374
|
-
|
375
320
|
_closeItemSubMenu(item, forceClose) {
|
376
321
|
if (Object.keys(item).length) {
|
377
322
|
if (forceClose) {
|
378
323
|
item._preventSubMenuClose = false;
|
379
|
-
|
380
324
|
this._closeSubMenuPopover(item._subMenu, true);
|
381
325
|
} else {
|
382
326
|
setTimeout(() => this._closeSubMenuPopover(item._subMenu), 0);
|
383
327
|
}
|
384
328
|
}
|
385
329
|
}
|
386
|
-
|
387
330
|
_closeSubMenuPopover(subMenu, forceClose) {
|
388
331
|
if (subMenu && Object.keys(subMenu).length) {
|
389
332
|
const parentItem = subMenu._parentMenuItem;
|
390
|
-
|
391
333
|
if (forceClose || !parentItem._preventSubMenuClose) {
|
392
334
|
subMenu.close();
|
393
335
|
subMenu.remove();
|
@@ -397,33 +339,25 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
397
339
|
}
|
398
340
|
}
|
399
341
|
}
|
400
|
-
|
401
342
|
_prepareSubMenuDesktopTablet(item, opener, actionId) {
|
402
343
|
if (actionId !== this._subMenuOpenerId || item.hasChildren) {
|
403
344
|
// close opened sub-menu if there is any opened
|
404
345
|
this._closeItemSubMenu(this._openedSubMenuItem, true);
|
405
346
|
}
|
406
|
-
|
407
347
|
if (item.hasChildren) {
|
408
348
|
// create new sub-menu
|
409
349
|
this._createSubMenu(item, actionId);
|
410
|
-
|
411
350
|
this._openItemSubMenu(item, opener, actionId);
|
412
351
|
}
|
413
|
-
|
414
352
|
if (this._parentMenuItem) {
|
415
353
|
this._parentMenuItem._preventSubMenuClose = true;
|
416
354
|
}
|
417
355
|
}
|
418
|
-
|
419
356
|
_prepareSubMenuPhone(item) {
|
420
357
|
this._prepareCurrentItems(item.items);
|
421
|
-
|
422
358
|
this._parentMenuItem = item;
|
423
|
-
|
424
359
|
this._parentItemsStack.push(item);
|
425
360
|
}
|
426
|
-
|
427
361
|
_itemMouseOver(event) {
|
428
362
|
if ((0, _Device.isDesktop)()) {
|
429
363
|
// respect mouseover only on desktop
|
@@ -431,33 +365,26 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
431
365
|
const item = opener.associatedItem;
|
432
366
|
const hoverId = opener.getAttribute("id");
|
433
367
|
opener.focus();
|
434
|
-
|
435
368
|
this._prepareSubMenuDesktopTablet(item, opener, hoverId);
|
436
369
|
}
|
437
370
|
}
|
438
|
-
|
439
371
|
_itemMouseOut(event) {
|
440
372
|
if ((0, _Device.isDesktop)()) {
|
441
373
|
// respect mouseover only on desktop
|
442
374
|
const item = event.target.associatedItem;
|
443
|
-
|
444
375
|
if (item.hasChildren && item._subMenu) {
|
445
376
|
// try to close the sub-menu
|
446
377
|
item._preventSubMenuClose = false;
|
447
|
-
|
448
378
|
this._closeItemSubMenu(item);
|
449
379
|
}
|
450
380
|
}
|
451
381
|
}
|
452
|
-
|
453
382
|
_itemKeyDown(event) {
|
454
383
|
const isMenuClose = this.isRtl ? (0, _Keys.isRight)(event) : (0, _Keys.isLeft)(event);
|
455
384
|
const isMenuOpen = this.isRtl ? (0, _Keys.isLeft)(event) : (0, _Keys.isRight)(event);
|
456
|
-
|
457
385
|
if ((0, _Keys.isEnter)(event)) {
|
458
386
|
event.preventDefault();
|
459
387
|
}
|
460
|
-
|
461
388
|
if (isMenuOpen) {
|
462
389
|
const opener = event.target;
|
463
390
|
const item = opener.associatedItem;
|
@@ -467,38 +394,30 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
467
394
|
this._parentMenuItem.parentElement._closeItemSubMenu(this._parentMenuItem, true);
|
468
395
|
}
|
469
396
|
}
|
470
|
-
|
471
397
|
_itemClick(event) {
|
472
398
|
const opener = event.detail.item;
|
473
399
|
const item = opener.associatedItem;
|
474
400
|
const actionId = opener.getAttribute("id");
|
475
|
-
|
476
401
|
if (!item.hasChildren) {
|
477
402
|
// click on an item that doesn't have sub-items fires an "item-click" event
|
478
403
|
if (!this._isSubMenu) {
|
479
404
|
if ((0, _Device.isPhone)()) {
|
480
405
|
this._parentMenuItem = undefined;
|
481
|
-
}
|
482
|
-
|
483
|
-
|
406
|
+
}
|
407
|
+
// fire event if the click is on top-level menu item
|
484
408
|
this.fireEvent("item-click", {
|
485
409
|
"item": item,
|
486
410
|
"text": item.text
|
487
411
|
});
|
488
|
-
|
489
412
|
this._popover.close();
|
490
413
|
} else {
|
491
414
|
// find top-level menu and redirect event to it
|
492
415
|
let parentMenu = item.parentElement;
|
493
|
-
|
494
416
|
while (parentMenu._parentMenuItem) {
|
495
417
|
parentMenu._parentMenuItem._preventSubMenuClose = false;
|
496
|
-
|
497
418
|
this._closeItemSubMenu(parentMenu._parentMenuItem);
|
498
|
-
|
499
419
|
parentMenu = parentMenu._parentMenuItem.parentElement;
|
500
420
|
}
|
501
|
-
|
502
421
|
parentMenu._itemClick(event);
|
503
422
|
}
|
504
423
|
} else if ((0, _Device.isPhone)()) {
|
@@ -509,9 +428,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
509
428
|
this._prepareSubMenuDesktopTablet(item, opener, actionId);
|
510
429
|
}
|
511
430
|
}
|
512
|
-
|
513
431
|
}
|
514
|
-
|
515
432
|
Menu.define();
|
516
433
|
var _default = Menu;
|
517
434
|
_exports.default = _default;
|
@@ -6,17 +6,13 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element"], func
|
|
6
6
|
});
|
7
7
|
_exports.default = void 0;
|
8
8
|
_UI5Element = _interopRequireDefault(_UI5Element);
|
9
|
-
|
10
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
11
|
-
|
12
10
|
/**
|
13
11
|
* @public
|
14
12
|
*/
|
15
13
|
const metadata = {
|
16
14
|
tag: "ui5-menu-item",
|
17
|
-
properties:
|
18
|
-
/** @lends sap.ui.webcomponents.main.MenuItem.prototype */
|
19
|
-
{
|
15
|
+
properties: /** @lends sap.ui.webcomponents.main.MenuItem.prototype */{
|
20
16
|
/**
|
21
17
|
* Defines the text of the tree item.
|
22
18
|
*
|
@@ -27,7 +23,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element"], func
|
|
27
23
|
text: {
|
28
24
|
type: String
|
29
25
|
},
|
30
|
-
|
31
26
|
/**
|
32
27
|
* Defines the icon to be displayed as graphical element within the component.
|
33
28
|
* The SAP-icons font provides numerous options.
|
@@ -42,7 +37,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element"], func
|
|
42
37
|
icon: {
|
43
38
|
type: String
|
44
39
|
},
|
45
|
-
|
46
40
|
/**
|
47
41
|
* Defines whether a visual separator should be rendered before the item.
|
48
42
|
*
|
@@ -53,7 +47,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element"], func
|
|
53
47
|
startsSection: {
|
54
48
|
type: Boolean
|
55
49
|
},
|
56
|
-
|
57
50
|
/**
|
58
51
|
* Defines whether <code>ui5-menu-item</code> is in disabled state.
|
59
52
|
* <br><br>
|
@@ -65,7 +58,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element"], func
|
|
65
58
|
disabled: {
|
66
59
|
type: Boolean
|
67
60
|
},
|
68
|
-
|
69
61
|
/**
|
70
62
|
* Indicates if the any of the element siblings have children items.
|
71
63
|
* @type {boolean}
|
@@ -75,7 +67,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element"], func
|
|
75
67
|
type: Boolean,
|
76
68
|
noAttribute: true
|
77
69
|
},
|
78
|
-
|
79
70
|
/**
|
80
71
|
* Indicates if the any of the element siblings have icon.
|
81
72
|
* @type {boolean}
|
@@ -85,7 +76,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element"], func
|
|
85
76
|
type: Boolean,
|
86
77
|
noAttribute: true
|
87
78
|
},
|
88
|
-
|
89
79
|
/**
|
90
80
|
* Stores Menu object with submenu items
|
91
81
|
* @type {object}
|
@@ -94,7 +84,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element"], func
|
|
94
84
|
_subMenu: {
|
95
85
|
type: Object
|
96
86
|
},
|
97
|
-
|
98
87
|
/**
|
99
88
|
* Defines whether the submenu closing must be prevented
|
100
89
|
* @type {boolean}
|
@@ -106,9 +95,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element"], func
|
|
106
95
|
}
|
107
96
|
},
|
108
97
|
managedSlots: true,
|
109
|
-
slots:
|
110
|
-
/** @lends sap.ui.webcomponents.main.MenuItem.prototype */
|
111
|
-
{
|
98
|
+
slots: /** @lends sap.ui.webcomponents.main.MenuItem.prototype */{
|
112
99
|
/**
|
113
100
|
* Defines the items of this component.
|
114
101
|
*
|
@@ -123,6 +110,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element"], func
|
|
123
110
|
}
|
124
111
|
}
|
125
112
|
};
|
113
|
+
|
126
114
|
/**
|
127
115
|
* @class
|
128
116
|
*
|
@@ -151,26 +139,20 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element"], func
|
|
151
139
|
* @since 1.3.0
|
152
140
|
* @public
|
153
141
|
*/
|
154
|
-
|
155
142
|
class MenuItem extends _UI5Element.default {
|
156
143
|
static get metadata() {
|
157
144
|
return metadata;
|
158
145
|
}
|
159
|
-
|
160
146
|
get hasChildren() {
|
161
147
|
return !!this.items.length;
|
162
148
|
}
|
163
|
-
|
164
149
|
get hasDummyIcon() {
|
165
150
|
return this._siblingsWithIcon && !this.icon;
|
166
151
|
}
|
167
|
-
|
168
152
|
get subMenuOpened() {
|
169
153
|
return !!Object.keys(this._subMenu).length;
|
170
154
|
}
|
171
|
-
|
172
155
|
}
|
173
|
-
|
174
156
|
MenuItem.define();
|
175
157
|
var _default = MenuItem;
|
176
158
|
_exports.default = _default;
|