@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
@@ -12,25 +12,22 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Device", "sap/ui/w
|
|
12
12
|
_BrowserScrollbar = _interopRequireDefault(_BrowserScrollbar);
|
13
13
|
_PopupsCommon = _interopRequireDefault(_PopupsCommon);
|
14
14
|
_Dialog = _interopRequireDefault(_Dialog);
|
15
|
-
|
16
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
17
|
-
|
18
16
|
// Template
|
17
|
+
|
19
18
|
// Styles
|
20
19
|
|
21
20
|
/**
|
22
21
|
* Defines the step size at which this component would change by when being dragged or resized with the keyboard.
|
23
22
|
*/
|
24
23
|
const STEP_SIZE = 16;
|
24
|
+
|
25
25
|
/**
|
26
26
|
* @public
|
27
27
|
*/
|
28
|
-
|
29
28
|
const metadata = {
|
30
29
|
tag: "ui5-dialog",
|
31
|
-
slots:
|
32
|
-
/** @lends sap.ui.webcomponents.main.Dialog.prototype */
|
33
|
-
{
|
30
|
+
slots: /** @lends sap.ui.webcomponents.main.Dialog.prototype */{
|
34
31
|
/**
|
35
32
|
* Defines the header HTML Element.
|
36
33
|
* <br><br>
|
@@ -44,7 +41,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Device", "sap/ui/w
|
|
44
41
|
header: {
|
45
42
|
type: HTMLElement
|
46
43
|
},
|
47
|
-
|
48
44
|
/**
|
49
45
|
* Defines the footer HTML Element.
|
50
46
|
*
|
@@ -56,9 +52,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Device", "sap/ui/w
|
|
56
52
|
type: HTMLElement
|
57
53
|
}
|
58
54
|
},
|
59
|
-
properties:
|
60
|
-
/** @lends sap.ui.webcomponents.main.Dialog.prototype */
|
61
|
-
{
|
55
|
+
properties: /** @lends sap.ui.webcomponents.main.Dialog.prototype */{
|
62
56
|
/**
|
63
57
|
* Defines the header text.
|
64
58
|
* <br><br>
|
@@ -71,7 +65,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Device", "sap/ui/w
|
|
71
65
|
headerText: {
|
72
66
|
type: String
|
73
67
|
},
|
74
|
-
|
75
68
|
/**
|
76
69
|
* Determines whether the component should be stretched to fullscreen.
|
77
70
|
* <br><br>
|
@@ -85,7 +78,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Device", "sap/ui/w
|
|
85
78
|
stretch: {
|
86
79
|
type: Boolean
|
87
80
|
},
|
88
|
-
|
89
81
|
/**
|
90
82
|
* Determines whether the component is draggable.
|
91
83
|
* If this property is set to true, the Dialog will be draggable by its header.
|
@@ -99,7 +91,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Device", "sap/ui/w
|
|
99
91
|
draggable: {
|
100
92
|
type: Boolean
|
101
93
|
},
|
102
|
-
|
103
94
|
/**
|
104
95
|
* Configures the component to be resizable.
|
105
96
|
* If this property is set to true, the Dialog will have a resize handle in its bottom right corner in LTR languages.
|
@@ -116,14 +107,12 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Device", "sap/ui/w
|
|
116
107
|
resizable: {
|
117
108
|
type: Boolean
|
118
109
|
},
|
119
|
-
|
120
110
|
/**
|
121
111
|
* @private
|
122
112
|
*/
|
123
113
|
onPhone: {
|
124
114
|
type: Boolean
|
125
115
|
},
|
126
|
-
|
127
116
|
/**
|
128
117
|
* @private
|
129
118
|
*/
|
@@ -132,6 +121,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Device", "sap/ui/w
|
|
132
121
|
}
|
133
122
|
}
|
134
123
|
};
|
124
|
+
|
135
125
|
/**
|
136
126
|
* @class
|
137
127
|
* <h3 class="comment-api-title">Overview</h3>
|
@@ -184,7 +174,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Device", "sap/ui/w
|
|
184
174
|
* @tagname ui5-dialog
|
185
175
|
* @public
|
186
176
|
*/
|
187
|
-
|
188
177
|
class Dialog extends _Popup.default {
|
189
178
|
constructor() {
|
190
179
|
super();
|
@@ -194,26 +183,22 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Device", "sap/ui/w
|
|
194
183
|
this._resizeMouseMoveHandler = this._onResizeMouseMove.bind(this);
|
195
184
|
this._resizeMouseUpHandler = this._onResizeMouseUp.bind(this);
|
196
185
|
}
|
197
|
-
|
198
186
|
static get metadata() {
|
199
187
|
return metadata;
|
200
188
|
}
|
201
|
-
|
202
189
|
static get dependencies() {
|
203
190
|
return [_Icon.default];
|
204
191
|
}
|
205
|
-
|
206
192
|
static get template() {
|
207
193
|
return _DialogTemplate.default;
|
208
194
|
}
|
209
|
-
|
210
195
|
static get styles() {
|
211
196
|
return [_BrowserScrollbar.default, _PopupsCommon.default, _Dialog.default];
|
212
197
|
}
|
213
|
-
|
214
198
|
static _isHeader(element) {
|
215
199
|
return element.classList.contains("ui5-popup-header-root") || element.getAttribute("slot") === "header";
|
216
200
|
}
|
201
|
+
|
217
202
|
/**
|
218
203
|
* Shows the dialog.
|
219
204
|
*
|
@@ -222,92 +207,69 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Device", "sap/ui/w
|
|
222
207
|
* @returns {Promise} Resolves when the dialog is open
|
223
208
|
* @public
|
224
209
|
*/
|
225
|
-
|
226
|
-
|
227
210
|
async show(preventInitialFocus = false) {
|
228
211
|
await super._open(preventInitialFocus);
|
229
212
|
}
|
230
|
-
|
231
213
|
get isModal() {
|
232
214
|
// Required by Popup.js
|
233
215
|
return true;
|
234
216
|
}
|
235
|
-
|
236
217
|
get shouldHideBackdrop() {
|
237
218
|
// Required by Popup.js
|
238
219
|
return false;
|
239
220
|
}
|
240
|
-
|
241
221
|
get _ariaLabelledBy() {
|
242
222
|
// Required by Popup.js
|
243
223
|
let ariaLabelledById;
|
244
|
-
|
245
224
|
if (this.headerText !== "" && !this._ariaLabel) {
|
246
225
|
ariaLabelledById = "ui5-popup-header-text";
|
247
226
|
}
|
248
|
-
|
249
227
|
return ariaLabelledById;
|
250
228
|
}
|
251
|
-
|
252
229
|
get _ariaModal() {
|
253
230
|
// Required by Popup.js
|
254
231
|
return true;
|
255
232
|
}
|
256
|
-
|
257
233
|
get _displayProp() {
|
258
234
|
return "flex";
|
259
235
|
}
|
236
|
+
|
260
237
|
/**
|
261
238
|
* Determines if the header should be shown.
|
262
239
|
*/
|
263
|
-
|
264
|
-
|
265
240
|
get _displayHeader() {
|
266
241
|
return this.header.length || this.headerText || this.draggable || this.resizable;
|
267
242
|
}
|
268
|
-
|
269
243
|
get _movable() {
|
270
244
|
return !this.stretch && this.onDesktop && (this.draggable || this.resizable);
|
271
245
|
}
|
272
|
-
|
273
246
|
get _headerTabIndex() {
|
274
247
|
return this._movable ? "0" : undefined;
|
275
248
|
}
|
276
|
-
|
277
249
|
get _showResizeHandle() {
|
278
250
|
return this.resizable && this.onDesktop;
|
279
251
|
}
|
280
|
-
|
281
252
|
get _minHeight() {
|
282
253
|
let minHeight = Number.parseInt(window.getComputedStyle(this.contentDOM).minHeight);
|
283
|
-
|
284
254
|
const header = this._root.querySelector(".ui5-popup-header-root");
|
285
|
-
|
286
255
|
if (header) {
|
287
256
|
minHeight += header.offsetHeight;
|
288
257
|
}
|
289
|
-
|
290
258
|
const footer = this._root.querySelector(".ui5-popup-footer-root");
|
291
|
-
|
292
259
|
if (footer) {
|
293
260
|
minHeight += footer.offsetHeight;
|
294
261
|
}
|
295
|
-
|
296
262
|
return minHeight;
|
297
263
|
}
|
298
|
-
|
299
264
|
_show() {
|
300
265
|
super._show();
|
301
|
-
|
302
266
|
this._center();
|
303
267
|
}
|
304
|
-
|
305
268
|
onBeforeRendering() {
|
306
269
|
this._isRTL = this.effectiveDir === "rtl";
|
307
270
|
this.onPhone = (0, _Device.isPhone)();
|
308
271
|
this.onDesktop = (0, _Device.isDesktop)();
|
309
272
|
}
|
310
|
-
|
311
273
|
onAfterRendering() {
|
312
274
|
if (!this.isOpen() && this.open) {
|
313
275
|
this.show();
|
@@ -315,38 +277,30 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Device", "sap/ui/w
|
|
315
277
|
this.close();
|
316
278
|
}
|
317
279
|
}
|
318
|
-
|
319
280
|
onEnterDOM() {
|
320
281
|
super.onEnterDOM();
|
321
|
-
|
322
282
|
this._attachScreenResizeHandler();
|
323
283
|
}
|
324
|
-
|
325
284
|
onExitDOM() {
|
326
285
|
super.onExitDOM();
|
327
|
-
|
328
286
|
this._detachScreenResizeHandler();
|
329
287
|
}
|
288
|
+
|
330
289
|
/**
|
331
290
|
* @override
|
332
291
|
*/
|
333
|
-
|
334
|
-
|
335
292
|
_resize() {
|
336
293
|
super._resize();
|
337
|
-
|
338
294
|
if (this._screenResizeHandlerAttached) {
|
339
295
|
this._center();
|
340
296
|
}
|
341
297
|
}
|
342
|
-
|
343
298
|
_attachScreenResizeHandler() {
|
344
299
|
if (!this._screenResizeHandlerAttached) {
|
345
300
|
window.addEventListener("resize", this._screenResizeHandler);
|
346
301
|
this._screenResizeHandlerAttached = true;
|
347
302
|
}
|
348
303
|
}
|
349
|
-
|
350
304
|
_detachScreenResizeHandler() {
|
351
305
|
if (this._screenResizeHandlerAttached) {
|
352
306
|
window.removeEventListener("resize", this._screenResizeHandler);
|
@@ -356,13 +310,12 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Device", "sap/ui/w
|
|
356
310
|
|
357
311
|
_center() {
|
358
312
|
const height = window.innerHeight - this.offsetHeight,
|
359
|
-
|
313
|
+
width = window.innerWidth - this.offsetWidth;
|
360
314
|
Object.assign(this.style, {
|
361
315
|
top: `${Math.round(height / 2)}px`,
|
362
316
|
left: `${Math.round(width / 2)}px`
|
363
317
|
});
|
364
318
|
}
|
365
|
-
|
366
319
|
_revertSize() {
|
367
320
|
Object.assign(this.style, {
|
368
321
|
top: "",
|
@@ -372,17 +325,15 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Device", "sap/ui/w
|
|
372
325
|
});
|
373
326
|
this.removeEventListener("ui5-before-close", this._revertSize);
|
374
327
|
}
|
328
|
+
|
375
329
|
/**
|
376
330
|
* Event handlers
|
377
331
|
*/
|
378
|
-
|
379
|
-
|
380
332
|
_onDragMouseDown(event) {
|
381
333
|
// allow dragging only on the header
|
382
334
|
if (!this._movable || !this.draggable || !Dialog._isHeader(event.target)) {
|
383
335
|
return;
|
384
336
|
}
|
385
|
-
|
386
337
|
event.preventDefault();
|
387
338
|
const {
|
388
339
|
top,
|
@@ -400,10 +351,8 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Device", "sap/ui/w
|
|
400
351
|
});
|
401
352
|
this._x = event.clientX;
|
402
353
|
this._y = event.clientY;
|
403
|
-
|
404
354
|
this._attachMouseDragHandlers();
|
405
355
|
}
|
406
|
-
|
407
356
|
_onDragMouseMove(event) {
|
408
357
|
event.preventDefault();
|
409
358
|
const calcX = this._x - event.clientX;
|
@@ -419,30 +368,23 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Device", "sap/ui/w
|
|
419
368
|
this._x = event.clientX;
|
420
369
|
this._y = event.clientY;
|
421
370
|
}
|
422
|
-
|
423
371
|
_onDragMouseUp() {
|
424
372
|
this._x = null;
|
425
373
|
this._y = null;
|
426
|
-
|
427
374
|
this._detachMouseDragHandlers();
|
428
375
|
}
|
429
|
-
|
430
376
|
_onDragOrResizeKeyDown(event) {
|
431
377
|
if (!this._movable || !Dialog._isHeader(event.target)) {
|
432
378
|
return;
|
433
379
|
}
|
434
|
-
|
435
380
|
if (this.draggable && [_Keys.isUp, _Keys.isDown, _Keys.isLeft, _Keys.isRight].some(key => key(event))) {
|
436
381
|
this._dragWithEvent(event);
|
437
|
-
|
438
382
|
return;
|
439
383
|
}
|
440
|
-
|
441
384
|
if (this.resizable && [_Keys.isUpShift, _Keys.isDownShift, _Keys.isLeftShift, _Keys.isRightShift].some(key => key(event))) {
|
442
385
|
this._resizeWithEvent(event);
|
443
386
|
}
|
444
387
|
}
|
445
|
-
|
446
388
|
_dragWithEvent(event) {
|
447
389
|
const {
|
448
390
|
top,
|
@@ -451,66 +393,54 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Device", "sap/ui/w
|
|
451
393
|
height
|
452
394
|
} = this.getBoundingClientRect();
|
453
395
|
let newPos, posDirection;
|
454
|
-
|
455
396
|
switch (true) {
|
456
397
|
case (0, _Keys.isUp)(event):
|
457
398
|
newPos = top - STEP_SIZE;
|
458
399
|
posDirection = "top";
|
459
400
|
break;
|
460
|
-
|
461
401
|
case (0, _Keys.isDown)(event):
|
462
402
|
newPos = top + STEP_SIZE;
|
463
403
|
posDirection = "top";
|
464
404
|
break;
|
465
|
-
|
466
405
|
case (0, _Keys.isLeft)(event):
|
467
406
|
newPos = left - STEP_SIZE;
|
468
407
|
posDirection = "left";
|
469
408
|
break;
|
470
|
-
|
471
409
|
case (0, _Keys.isRight)(event):
|
472
410
|
newPos = left + STEP_SIZE;
|
473
411
|
posDirection = "left";
|
474
412
|
break;
|
475
413
|
}
|
476
|
-
|
477
414
|
newPos = (0, _clamp.default)(newPos, 0, posDirection === "left" ? window.innerWidth - width : window.innerHeight - height);
|
478
415
|
this.style[posDirection] = `${newPos}px`;
|
479
416
|
}
|
480
|
-
|
481
417
|
_resizeWithEvent(event) {
|
482
418
|
this._detachScreenResizeHandler();
|
483
|
-
|
484
419
|
this.addEventListener("ui5-before-close", this._revertSize);
|
485
420
|
const {
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
421
|
+
top,
|
422
|
+
left
|
423
|
+
} = this.getBoundingClientRect(),
|
424
|
+
style = window.getComputedStyle(this),
|
425
|
+
minWidth = Number.parseFloat(style.minWidth),
|
426
|
+
maxWidth = window.innerWidth - left,
|
427
|
+
maxHeight = window.innerHeight - top;
|
493
428
|
let width = Number.parseFloat(style.width),
|
494
|
-
|
495
|
-
|
429
|
+
height = Number.parseFloat(style.height);
|
496
430
|
switch (true) {
|
497
431
|
case (0, _Keys.isUpShift)(event):
|
498
432
|
height -= STEP_SIZE;
|
499
433
|
break;
|
500
|
-
|
501
434
|
case (0, _Keys.isDownShift)(event):
|
502
435
|
height += STEP_SIZE;
|
503
436
|
break;
|
504
|
-
|
505
437
|
case (0, _Keys.isLeftShift)(event):
|
506
438
|
width -= STEP_SIZE;
|
507
439
|
break;
|
508
|
-
|
509
440
|
case (0, _Keys.isRightShift)(event):
|
510
441
|
width += STEP_SIZE;
|
511
442
|
break;
|
512
443
|
}
|
513
|
-
|
514
444
|
width = (0, _clamp.default)(width, minWidth, maxWidth);
|
515
445
|
height = (0, _clamp.default)(height, this._minHeight, maxHeight);
|
516
446
|
Object.assign(this.style, {
|
@@ -518,24 +448,19 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Device", "sap/ui/w
|
|
518
448
|
height: `${height}px`
|
519
449
|
});
|
520
450
|
}
|
521
|
-
|
522
451
|
_attachMouseDragHandlers() {
|
523
452
|
this._detachScreenResizeHandler();
|
524
|
-
|
525
453
|
window.addEventListener("mousemove", this._dragMouseMoveHandler);
|
526
454
|
window.addEventListener("mouseup", this._dragMouseUpHandler);
|
527
455
|
}
|
528
|
-
|
529
456
|
_detachMouseDragHandlers() {
|
530
457
|
window.removeEventListener("mousemove", this._dragMouseMoveHandler);
|
531
458
|
window.removeEventListener("mouseup", this._dragMouseUpHandler);
|
532
459
|
}
|
533
|
-
|
534
460
|
_onResizeMouseDown(event) {
|
535
461
|
if (!this._movable || !this.resizable) {
|
536
462
|
return;
|
537
463
|
}
|
538
|
-
|
539
464
|
event.preventDefault();
|
540
465
|
const {
|
541
466
|
top,
|
@@ -558,24 +483,20 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Device", "sap/ui/w
|
|
558
483
|
top: `${top}px`,
|
559
484
|
left: `${left}px`
|
560
485
|
});
|
561
|
-
|
562
486
|
this._attachMouseResizeHandlers();
|
563
487
|
}
|
564
|
-
|
565
488
|
_onResizeMouseMove(event) {
|
566
489
|
const {
|
567
490
|
clientX,
|
568
491
|
clientY
|
569
492
|
} = event;
|
570
493
|
let newWidth, newLeft;
|
571
|
-
|
572
494
|
if (this._isRTL) {
|
573
495
|
newWidth = (0, _clamp.default)(this._initialWidth - (clientX - this._initialX), this._minWidth, this._initialLeft + this._initialWidth);
|
574
496
|
newLeft = (0, _clamp.default)(this._initialLeft + (clientX - this._initialX), 0, this._initialX + this._initialWidth - this._minWidth);
|
575
497
|
} else {
|
576
498
|
newWidth = (0, _clamp.default)(this._initialWidth + (clientX - this._initialX), this._minWidth, window.innerWidth - this._initialLeft);
|
577
499
|
}
|
578
|
-
|
579
500
|
const newHeight = (0, _clamp.default)(this._initialHeight + (clientY - this._initialY), this._cachedMinHeight, window.innerHeight - this._initialTop);
|
580
501
|
Object.assign(this.style, {
|
581
502
|
height: `${newHeight}px`,
|
@@ -583,7 +504,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Device", "sap/ui/w
|
|
583
504
|
left: newLeft ? `${newLeft}px` : undefined
|
584
505
|
});
|
585
506
|
}
|
586
|
-
|
587
507
|
_onResizeMouseUp() {
|
588
508
|
delete this._initialX;
|
589
509
|
delete this._initialY;
|
@@ -593,25 +513,19 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/Device", "sap/ui/w
|
|
593
513
|
delete this._initialLeft;
|
594
514
|
delete this._minWidth;
|
595
515
|
delete this._cachedMinHeight;
|
596
|
-
|
597
516
|
this._detachMouseResizeHandlers();
|
598
517
|
}
|
599
|
-
|
600
518
|
_attachMouseResizeHandlers() {
|
601
519
|
this._detachScreenResizeHandler();
|
602
|
-
|
603
520
|
window.addEventListener("mousemove", this._resizeMouseMoveHandler);
|
604
521
|
window.addEventListener("mouseup", this._resizeMouseUpHandler);
|
605
522
|
this.addEventListener("ui5-before-close", this._revertSize);
|
606
523
|
}
|
607
|
-
|
608
524
|
_detachMouseResizeHandlers() {
|
609
525
|
window.removeEventListener("mousemove", this._resizeMouseMoveHandler);
|
610
526
|
window.removeEventListener("mouseup", this._resizeMouseUpHandler);
|
611
527
|
}
|
612
|
-
|
613
528
|
}
|
614
|
-
|
615
529
|
Dialog.define();
|
616
530
|
var _default = Dialog;
|
617
531
|
_exports.default = _default;
|