@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
@@ -14,9 +14,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/w
|
|
14
14
|
_Popup = _interopRequireDefault(_Popup);
|
15
15
|
_PopupStaticAreaStyles = _interopRequireDefault(_PopupStaticAreaStyles);
|
16
16
|
_PopupGlobal = _interopRequireDefault(_PopupGlobal);
|
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/Render", "sap/ui/w
|
|
24
22
|
*/
|
25
23
|
const metadata = {
|
26
24
|
managedSlots: true,
|
27
|
-
slots:
|
28
|
-
/** @lends sap.ui.webcomponents.main.Popup.prototype */
|
29
|
-
{
|
25
|
+
slots: /** @lends sap.ui.webcomponents.main.Popup.prototype */{
|
30
26
|
/**
|
31
27
|
* Defines the content of the Popup.
|
32
28
|
* @type {HTMLElement[]}
|
@@ -38,9 +34,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/w
|
|
38
34
|
propertyName: "content"
|
39
35
|
}
|
40
36
|
},
|
41
|
-
properties:
|
42
|
-
/** @lends sap.ui.webcomponents.main.Popup.prototype */
|
43
|
-
{
|
37
|
+
properties: /** @lends sap.ui.webcomponents.main.Popup.prototype */{
|
44
38
|
/**
|
45
39
|
* Defines the ID of the HTML Element, which will get the initial focus.
|
46
40
|
*
|
@@ -51,7 +45,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/w
|
|
51
45
|
initialFocus: {
|
52
46
|
type: String
|
53
47
|
},
|
54
|
-
|
55
48
|
/**
|
56
49
|
* Defines if the focus should be returned to the previously focused element,
|
57
50
|
* when the popup closes.
|
@@ -63,7 +56,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/w
|
|
63
56
|
preventFocusRestore: {
|
64
57
|
type: Boolean
|
65
58
|
},
|
66
|
-
|
67
59
|
/**
|
68
60
|
* Indicates if the element is open
|
69
61
|
* @public
|
@@ -74,7 +66,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/w
|
|
74
66
|
open: {
|
75
67
|
type: Boolean
|
76
68
|
},
|
77
|
-
|
78
69
|
/**
|
79
70
|
* Indicates if the element is already open
|
80
71
|
* @private
|
@@ -85,7 +76,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/w
|
|
85
76
|
type: Boolean,
|
86
77
|
noAttribute: true
|
87
78
|
},
|
88
|
-
|
89
79
|
/**
|
90
80
|
* Defines the accessible name of the component.
|
91
81
|
*
|
@@ -98,7 +88,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/w
|
|
98
88
|
type: String,
|
99
89
|
defaultValue: undefined
|
100
90
|
},
|
101
|
-
|
102
91
|
/**
|
103
92
|
* Defines the IDs of the elements that label the component.
|
104
93
|
*
|
@@ -111,7 +100,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/w
|
|
111
100
|
type: String,
|
112
101
|
defaultValue: ""
|
113
102
|
},
|
114
|
-
|
115
103
|
/**
|
116
104
|
* Defines the current media query size.
|
117
105
|
*
|
@@ -121,7 +109,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/w
|
|
121
109
|
mediaRange: {
|
122
110
|
type: String
|
123
111
|
},
|
124
|
-
|
125
112
|
/**
|
126
113
|
* @private
|
127
114
|
*/
|
@@ -132,9 +119,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/w
|
|
132
119
|
type: Boolean
|
133
120
|
}
|
134
121
|
},
|
135
|
-
events:
|
136
|
-
/** @lends sap.ui.webcomponents.main.Popup.prototype */
|
137
|
-
{
|
122
|
+
events: /** @lends sap.ui.webcomponents.main.Popup.prototype */{
|
138
123
|
/**
|
139
124
|
* Fired before the component is opened. This event can be cancelled, which will prevent the popup from opening. <b>This event does not bubble.</b>
|
140
125
|
*
|
@@ -143,7 +128,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/w
|
|
143
128
|
* @allowPreventDefault
|
144
129
|
*/
|
145
130
|
"before-open": {},
|
146
|
-
|
147
131
|
/**
|
148
132
|
* Fired after the component is opened. <b>This event does not bubble.</b>
|
149
133
|
*
|
@@ -151,7 +135,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/w
|
|
151
135
|
* @event sap.ui.webcomponents.main.Popup#after-open
|
152
136
|
*/
|
153
137
|
"after-open": {},
|
154
|
-
|
155
138
|
/**
|
156
139
|
* Fired before the component is closed. This event can be cancelled, which will prevent the popup from closing. <b>This event does not bubble.</b>
|
157
140
|
*
|
@@ -167,7 +150,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/w
|
|
167
150
|
}
|
168
151
|
}
|
169
152
|
},
|
170
|
-
|
171
153
|
/**
|
172
154
|
* Fired after the component is closed. <b>This event does not bubble.</b>
|
173
155
|
*
|
@@ -175,7 +157,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/w
|
|
175
157
|
* @event sap.ui.webcomponents.main.Popup#after-close
|
176
158
|
*/
|
177
159
|
"after-close": {},
|
178
|
-
|
179
160
|
/**
|
180
161
|
* Fired whenever the popup content area is scrolled
|
181
162
|
*
|
@@ -185,15 +166,14 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/w
|
|
185
166
|
"scroll": {}
|
186
167
|
}
|
187
168
|
};
|
188
|
-
|
189
169
|
const createBlockingStyle = () => {
|
190
170
|
if (!(0, _ManagedStyles.hasStyle)("data-ui5-popup-scroll-blocker")) {
|
191
171
|
(0, _ManagedStyles.createStyle)(_PopupGlobal.default, "data-ui5-popup-scroll-blocker");
|
192
172
|
}
|
193
173
|
};
|
194
|
-
|
195
174
|
createBlockingStyle();
|
196
175
|
const pageScrollingBlockers = new Set();
|
176
|
+
|
197
177
|
/**
|
198
178
|
* @class
|
199
179
|
* <h3 class="comment-api-title">Overview</h3>
|
@@ -227,114 +207,90 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/w
|
|
227
207
|
* @extends sap.ui.webcomponents.base.UI5Element
|
228
208
|
* @public
|
229
209
|
*/
|
230
|
-
|
231
210
|
class Popup extends _UI5Element.default {
|
232
211
|
constructor() {
|
233
212
|
super();
|
234
213
|
this._resizeHandler = this._resize.bind(this);
|
235
214
|
}
|
236
|
-
|
237
215
|
static get metadata() {
|
238
216
|
return metadata;
|
239
217
|
}
|
240
|
-
|
241
218
|
static get render() {
|
242
219
|
return _LitRenderer.default;
|
243
220
|
}
|
244
|
-
|
245
221
|
static get styles() {
|
246
222
|
return _Popup.default;
|
247
223
|
}
|
248
|
-
|
249
224
|
static get template() {
|
250
225
|
return _PopupTemplate.default;
|
251
226
|
}
|
252
|
-
|
253
227
|
static get staticAreaTemplate() {
|
254
228
|
return _PopupBlockLayerTemplate.default;
|
255
229
|
}
|
256
|
-
|
257
230
|
static get staticAreaStyles() {
|
258
231
|
return _PopupStaticAreaStyles.default;
|
259
232
|
}
|
260
|
-
|
261
233
|
onEnterDOM() {
|
262
234
|
if (!this.isOpen()) {
|
263
235
|
this._blockLayerHidden = true;
|
264
236
|
}
|
265
|
-
|
266
237
|
_ResizeHandler.default.register(this, this._resizeHandler);
|
267
238
|
}
|
268
|
-
|
269
239
|
onExitDOM() {
|
270
240
|
if (this.isOpen()) {
|
271
241
|
Popup.unblockPageScrolling(this);
|
272
|
-
|
273
242
|
this._removeOpenedPopup();
|
274
243
|
}
|
275
|
-
|
276
244
|
_ResizeHandler.default.deregister(this, this._resizeHandler);
|
277
245
|
}
|
278
|
-
|
279
246
|
get _displayProp() {
|
280
247
|
return "block";
|
281
248
|
}
|
282
|
-
|
283
249
|
_resize() {
|
284
250
|
this.mediaRange = _MediaRange.default.getCurrentRange(_MediaRange.default.RANGESETS.RANGE_4STEPS, this.getDomRef().offsetWidth);
|
285
251
|
}
|
252
|
+
|
286
253
|
/**
|
287
254
|
* Prevents the user from interacting with the content under the block layer
|
288
255
|
*/
|
289
|
-
|
290
|
-
|
291
256
|
_preventBlockLayerFocus(event) {
|
292
257
|
event.preventDefault();
|
293
258
|
}
|
259
|
+
|
294
260
|
/**
|
295
261
|
* Temporarily removes scrollbars from the html element
|
296
262
|
* @protected
|
297
263
|
*/
|
298
|
-
|
299
|
-
|
300
264
|
static blockPageScrolling(popup) {
|
301
265
|
pageScrollingBlockers.add(popup);
|
302
|
-
|
303
266
|
if (pageScrollingBlockers.size !== 1) {
|
304
267
|
return;
|
305
268
|
}
|
306
|
-
|
307
269
|
document.documentElement.classList.add("ui5-popup-scroll-blocker");
|
308
270
|
}
|
271
|
+
|
309
272
|
/**
|
310
273
|
* Restores scrollbars on the html element, if needed
|
311
274
|
* @protected
|
312
275
|
*/
|
313
|
-
|
314
|
-
|
315
276
|
static unblockPageScrolling(popup) {
|
316
277
|
pageScrollingBlockers.delete(popup);
|
317
|
-
|
318
278
|
if (pageScrollingBlockers.size !== 0) {
|
319
279
|
return;
|
320
280
|
}
|
321
|
-
|
322
281
|
document.documentElement.classList.remove("ui5-popup-scroll-blocker");
|
323
282
|
}
|
324
|
-
|
325
283
|
_scroll(e) {
|
326
284
|
this.fireEvent("scroll", {
|
327
285
|
scrollTop: e.target.scrollTop,
|
328
286
|
targetRef: e.target
|
329
287
|
});
|
330
288
|
}
|
331
|
-
|
332
289
|
_onkeydown(e) {
|
333
290
|
if (e.target === this._root && (0, _Keys.isTabPrevious)(e)) {
|
334
291
|
e.preventDefault();
|
335
292
|
}
|
336
293
|
}
|
337
|
-
|
338
294
|
_onfocusout(e) {
|
339
295
|
// relatedTarget is the element, which will get focus. If no such element exists, focus the root.
|
340
296
|
// This happens after the mouse is released in order to not interrupt text selection.
|
@@ -342,67 +298,58 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/w
|
|
342
298
|
this._shouldFocusRoot = true;
|
343
299
|
}
|
344
300
|
}
|
345
|
-
|
346
301
|
_onmousedown(e) {
|
347
302
|
this._root.removeAttribute("tabindex");
|
348
|
-
|
349
303
|
if (this.shadowRoot.contains(e.target)) {
|
350
304
|
this._shouldFocusRoot = true;
|
351
305
|
} else {
|
352
306
|
this._shouldFocusRoot = false;
|
353
307
|
}
|
354
308
|
}
|
355
|
-
|
356
309
|
_onmouseup() {
|
357
310
|
this._root.tabIndex = -1;
|
358
|
-
|
359
311
|
if (this._shouldFocusRoot) {
|
360
312
|
if ((0, _Device.isChrome)()) {
|
361
313
|
this._root.focus();
|
362
314
|
}
|
363
|
-
|
364
315
|
this._shouldFocusRoot = false;
|
365
316
|
}
|
366
317
|
}
|
318
|
+
|
367
319
|
/**
|
368
320
|
* Focus trapping
|
369
321
|
* @private
|
370
322
|
*/
|
371
|
-
|
372
|
-
|
373
323
|
async forwardToFirst() {
|
374
324
|
const firstFocusable = await (0, _FocusableElements.getFirstFocusableElement)(this);
|
375
|
-
|
376
325
|
if (firstFocusable) {
|
377
326
|
firstFocusable.focus();
|
378
327
|
} else {
|
379
328
|
this._root.focus();
|
380
329
|
}
|
381
330
|
}
|
331
|
+
|
382
332
|
/**
|
383
333
|
* Focus trapping
|
384
334
|
* @private
|
385
335
|
*/
|
386
|
-
|
387
|
-
|
388
336
|
async forwardToLast() {
|
389
337
|
const lastFocusable = await (0, _FocusableElements.getLastFocusableElement)(this);
|
390
|
-
|
391
338
|
if (lastFocusable) {
|
392
339
|
lastFocusable.focus();
|
393
340
|
} else {
|
394
341
|
this._root.focus();
|
395
342
|
}
|
396
343
|
}
|
344
|
+
|
397
345
|
/**
|
398
346
|
* Use this method to focus the element denoted by "initialFocus", if provided, or the first focusable element otherwise.
|
399
347
|
* @protected
|
400
348
|
*/
|
401
|
-
|
402
|
-
|
403
349
|
async applyInitialFocus() {
|
404
350
|
await this.applyFocus();
|
405
351
|
}
|
352
|
+
|
406
353
|
/**
|
407
354
|
* Focuses the element denoted by <code>initialFocus</code>, if provided,
|
408
355
|
* or the first focusable element otherwise.
|
@@ -410,162 +357,133 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/w
|
|
410
357
|
* @async
|
411
358
|
* @returns {Promise} Promise that resolves when the focus is applied
|
412
359
|
*/
|
413
|
-
|
414
|
-
|
415
360
|
async applyFocus() {
|
416
361
|
await this._waitForDomRef();
|
417
|
-
|
418
362
|
const element = this.getRootNode().getElementById(this.initialFocus) || document.getElementById(this.initialFocus) || (await (0, _FocusableElements.getFirstFocusableElement)(this)) || this._root; // in case of no focusable content focus the root
|
419
363
|
|
420
|
-
|
421
364
|
if (element) {
|
422
365
|
if (element === this._root) {
|
423
366
|
element.tabIndex = -1;
|
424
367
|
}
|
425
|
-
|
426
368
|
element.focus();
|
427
369
|
}
|
428
370
|
}
|
371
|
+
|
429
372
|
/**
|
430
373
|
* Tells if the component is opened
|
431
374
|
* @public
|
432
375
|
* @returns {boolean}
|
433
376
|
*/
|
434
|
-
|
435
|
-
|
436
377
|
isOpen() {
|
437
378
|
return this.opened;
|
438
379
|
}
|
439
|
-
|
440
380
|
isFocusWithin() {
|
441
381
|
return (0, _PopupUtils.isFocusedElementWithinNode)(this.shadowRoot.querySelector(".ui5-popup-root"));
|
442
382
|
}
|
383
|
+
|
443
384
|
/**
|
444
385
|
* Shows the block layer (for modal popups only) and sets the correct z-index for the purpose of popup stacking
|
445
386
|
* @protected
|
446
387
|
*/
|
447
|
-
|
448
|
-
|
449
388
|
async _open(preventInitialFocus) {
|
450
389
|
const prevented = !this.fireEvent("before-open", {}, true, false);
|
451
|
-
|
452
390
|
if (prevented) {
|
453
391
|
return;
|
454
392
|
}
|
455
|
-
|
456
393
|
if (this.isModal && !this.shouldHideBackdrop) {
|
457
394
|
// create static area item ref for block layer
|
458
395
|
this.getStaticAreaItemDomRef();
|
459
396
|
this._blockLayerHidden = false;
|
460
397
|
Popup.blockPageScrolling(this);
|
461
398
|
}
|
462
|
-
|
463
399
|
this._zIndex = (0, _PopupUtils.getNextZIndex)();
|
464
400
|
this.style.zIndex = this._zIndex;
|
465
401
|
this._focusedElementBeforeOpen = (0, _PopupUtils.getFocusedElement)();
|
466
|
-
|
467
402
|
this._show();
|
468
|
-
|
469
403
|
if (!this._disableInitialFocus && !preventInitialFocus) {
|
470
404
|
this.applyInitialFocus();
|
471
405
|
}
|
472
|
-
|
473
406
|
this._addOpenedPopup();
|
474
|
-
|
475
407
|
this.opened = true;
|
476
408
|
this.open = true;
|
477
409
|
await (0, _Render.renderFinished)();
|
478
410
|
this.fireEvent("after-open", {}, false, false);
|
479
411
|
}
|
412
|
+
|
480
413
|
/**
|
481
414
|
* Adds the popup to the "opened popups registry"
|
482
415
|
* @protected
|
483
416
|
*/
|
484
|
-
|
485
|
-
|
486
417
|
_addOpenedPopup() {
|
487
418
|
(0, _OpenedPopupsRegistry.addOpenedPopup)(this);
|
488
419
|
}
|
420
|
+
|
489
421
|
/**
|
490
422
|
* Hides the block layer (for modal popups only)
|
491
423
|
* @public
|
492
424
|
*/
|
493
|
-
|
494
|
-
|
495
425
|
close(escPressed = false, preventRegistryUpdate = false, preventFocusRestore = false) {
|
496
426
|
if (!this.opened) {
|
497
427
|
return;
|
498
428
|
}
|
499
|
-
|
500
429
|
const prevented = !this.fireEvent("before-close", {
|
501
430
|
escPressed
|
502
431
|
}, true, false);
|
503
|
-
|
504
432
|
if (prevented) {
|
505
433
|
return;
|
506
434
|
}
|
507
|
-
|
508
435
|
if (this.isModal) {
|
509
436
|
this._blockLayerHidden = true;
|
510
437
|
Popup.unblockPageScrolling(this);
|
511
438
|
}
|
512
|
-
|
513
439
|
this.hide();
|
514
440
|
this.opened = false;
|
515
441
|
this.open = false;
|
516
|
-
|
517
442
|
if (!preventRegistryUpdate) {
|
518
443
|
this._removeOpenedPopup();
|
519
444
|
}
|
520
|
-
|
521
445
|
if (!this.preventFocusRestore && !preventFocusRestore) {
|
522
446
|
this.resetFocus();
|
523
447
|
}
|
524
|
-
|
525
448
|
this.fireEvent("after-close", {}, false, false);
|
526
449
|
}
|
450
|
+
|
527
451
|
/**
|
528
452
|
* Removes the popup from the "opened popups registry"
|
529
453
|
* @protected
|
530
454
|
*/
|
531
|
-
|
532
|
-
|
533
455
|
_removeOpenedPopup() {
|
534
456
|
(0, _OpenedPopupsRegistry.removeOpenedPopup)(this);
|
535
457
|
}
|
458
|
+
|
536
459
|
/**
|
537
460
|
* Returns the focus to the previously focused element
|
538
461
|
* @protected
|
539
462
|
*/
|
540
|
-
|
541
|
-
|
542
463
|
resetFocus() {
|
543
464
|
if (!this._focusedElementBeforeOpen) {
|
544
465
|
return;
|
545
466
|
}
|
546
|
-
|
547
467
|
this._focusedElementBeforeOpen.focus();
|
548
|
-
|
549
468
|
this._focusedElementBeforeOpen = null;
|
550
469
|
}
|
470
|
+
|
551
471
|
/**
|
552
472
|
* Sets "block" display to the popup. The property can be overriden by derivatives of Popup.
|
553
473
|
* @protected
|
554
474
|
*/
|
555
|
-
|
556
|
-
|
557
475
|
_show() {
|
558
476
|
this.style.display = this._displayProp;
|
559
477
|
}
|
478
|
+
|
560
479
|
/**
|
561
480
|
* Sets "none" display to the popup
|
562
481
|
* @protected
|
563
482
|
*/
|
564
|
-
|
565
|
-
|
566
483
|
hide() {
|
567
484
|
this.style.display = "none";
|
568
485
|
}
|
486
|
+
|
569
487
|
/**
|
570
488
|
* Implement this getter with relevant logic regarding the modality of the popup (e.g. based on a public property)
|
571
489
|
*
|
@@ -573,8 +491,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/w
|
|
573
491
|
* @abstract
|
574
492
|
* @returns {boolean}
|
575
493
|
*/
|
576
|
-
|
577
|
-
|
578
494
|
get isModal() {} // eslint-disable-line
|
579
495
|
|
580
496
|
/**
|
@@ -584,8 +500,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/w
|
|
584
500
|
* @abstract
|
585
501
|
* @returns {boolean}
|
586
502
|
*/
|
587
|
-
|
588
|
-
|
589
503
|
get shouldHideBackdrop() {} // eslint-disable-line
|
590
504
|
|
591
505
|
/**
|
@@ -595,8 +509,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/w
|
|
595
509
|
* @abstract
|
596
510
|
* @returns {string}
|
597
511
|
*/
|
598
|
-
|
599
|
-
|
600
512
|
get _ariaLabelledBy() {} // eslint-disable-line
|
601
513
|
|
602
514
|
/**
|
@@ -606,8 +518,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/w
|
|
606
518
|
* @abstract
|
607
519
|
* @returns {string}
|
608
520
|
*/
|
609
|
-
|
610
|
-
|
611
521
|
get _ariaModal() {} // eslint-disable-line
|
612
522
|
|
613
523
|
/**
|
@@ -615,20 +525,15 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/w
|
|
615
525
|
* @returns {string|undefined}
|
616
526
|
* @protected
|
617
527
|
*/
|
618
|
-
|
619
|
-
|
620
528
|
get _ariaLabel() {
|
621
529
|
return (0, _AriaLabelHelper.getEffectiveAriaLabelText)(this);
|
622
530
|
}
|
623
|
-
|
624
531
|
get _root() {
|
625
532
|
return this.shadowRoot.querySelector(".ui5-popup-root");
|
626
533
|
}
|
627
|
-
|
628
534
|
get contentDOM() {
|
629
535
|
return this.shadowRoot.querySelector(".ui5-popup-content");
|
630
536
|
}
|
631
|
-
|
632
537
|
get styles() {
|
633
538
|
return {
|
634
539
|
root: {},
|
@@ -638,7 +543,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/w
|
|
638
543
|
}
|
639
544
|
};
|
640
545
|
}
|
641
|
-
|
642
546
|
get classes() {
|
643
547
|
return {
|
644
548
|
root: {
|
@@ -649,9 +553,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Render", "sap/ui/w
|
|
649
553
|
}
|
650
554
|
};
|
651
555
|
}
|
652
|
-
|
653
556
|
}
|
654
|
-
|
655
557
|
var _default = Popup;
|
656
558
|
_exports.default = _default;
|
657
559
|
});
|