@openui5/sap.ui.webc.main 1.111.0 → 1.112.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/sap/ui/webc/main/.library +1 -1
- package/src/sap/ui/webc/main/Avatar.js +1 -1
- package/src/sap/ui/webc/main/AvatarGroup.js +1 -1
- package/src/sap/ui/webc/main/Badge.js +1 -1
- package/src/sap/ui/webc/main/Breadcrumbs.js +1 -1
- package/src/sap/ui/webc/main/BreadcrumbsItem.js +1 -1
- package/src/sap/ui/webc/main/BusyIndicator.js +1 -1
- package/src/sap/ui/webc/main/Button.js +1 -1
- package/src/sap/ui/webc/main/Calendar.js +1 -1
- package/src/sap/ui/webc/main/CalendarDate.js +1 -1
- package/src/sap/ui/webc/main/Card.js +1 -1
- package/src/sap/ui/webc/main/CardHeader.js +1 -1
- package/src/sap/ui/webc/main/Carousel.js +1 -1
- package/src/sap/ui/webc/main/CheckBox.js +1 -1
- package/src/sap/ui/webc/main/ColorPalette.js +1 -1
- package/src/sap/ui/webc/main/ColorPaletteItem.js +1 -1
- package/src/sap/ui/webc/main/ColorPalettePopover.js +1 -1
- package/src/sap/ui/webc/main/ColorPicker.js +1 -1
- package/src/sap/ui/webc/main/ComboBox.js +1 -1
- package/src/sap/ui/webc/main/ComboBoxGroupItem.js +1 -1
- package/src/sap/ui/webc/main/ComboBoxItem.js +1 -1
- package/src/sap/ui/webc/main/CustomListItem.js +1 -1
- package/src/sap/ui/webc/main/DatePicker.js +2 -2
- package/src/sap/ui/webc/main/DateRangePicker.js +2 -2
- package/src/sap/ui/webc/main/DateTimePicker.js +2 -2
- package/src/sap/ui/webc/main/Dialog.js +1 -1
- package/src/sap/ui/webc/main/FileUploader.js +1 -1
- package/src/sap/ui/webc/main/GroupHeaderListItem.js +1 -1
- package/src/sap/ui/webc/main/Icon.js +5 -11
- package/src/sap/ui/webc/main/Input.js +1 -1
- package/src/sap/ui/webc/main/Label.js +1 -1
- package/src/sap/ui/webc/main/Link.js +1 -1
- package/src/sap/ui/webc/main/List.js +1 -1
- package/src/sap/ui/webc/main/Menu.js +1 -1
- package/src/sap/ui/webc/main/MenuItem.js +1 -1
- package/src/sap/ui/webc/main/MessageStrip.js +1 -1
- package/src/sap/ui/webc/main/MultiComboBox.js +1 -1
- package/src/sap/ui/webc/main/MultiComboBoxGroupItem.js +1 -1
- package/src/sap/ui/webc/main/MultiComboBoxItem.js +1 -1
- package/src/sap/ui/webc/main/MultiInput.js +1 -1
- package/src/sap/ui/webc/main/Option.js +1 -1
- package/src/sap/ui/webc/main/Panel.js +1 -1
- package/src/sap/ui/webc/main/Popover.js +1 -1
- package/src/sap/ui/webc/main/ProgressIndicator.js +1 -1
- package/src/sap/ui/webc/main/RadioButton.js +1 -1
- package/src/sap/ui/webc/main/RangeSlider.js +1 -1
- package/src/sap/ui/webc/main/RatingIndicator.js +1 -1
- package/src/sap/ui/webc/main/ResponsivePopover.js +1 -1
- package/src/sap/ui/webc/main/SegmentedButton.js +1 -1
- package/src/sap/ui/webc/main/SegmentedButtonItem.js +1 -1
- package/src/sap/ui/webc/main/Select.js +1 -1
- package/src/sap/ui/webc/main/Slider.js +1 -1
- package/src/sap/ui/webc/main/SplitButton.js +1 -1
- package/src/sap/ui/webc/main/StandardListItem.js +1 -1
- package/src/sap/ui/webc/main/StepInput.js +1 -1
- package/src/sap/ui/webc/main/SuggestionGroupItem.js +1 -1
- package/src/sap/ui/webc/main/SuggestionItem.js +1 -1
- package/src/sap/ui/webc/main/Switch.js +1 -1
- package/src/sap/ui/webc/main/Tab.js +1 -1
- package/src/sap/ui/webc/main/TabContainer.js +1 -1
- package/src/sap/ui/webc/main/TabSeparator.js +1 -1
- package/src/sap/ui/webc/main/Table.js +1 -1
- package/src/sap/ui/webc/main/TableCell.js +1 -1
- package/src/sap/ui/webc/main/TableColumn.js +1 -1
- package/src/sap/ui/webc/main/TableGroupRow.js +1 -1
- package/src/sap/ui/webc/main/TableRow.js +1 -1
- package/src/sap/ui/webc/main/TextArea.js +1 -1
- package/src/sap/ui/webc/main/TimePicker.js +2 -2
- package/src/sap/ui/webc/main/Title.js +1 -1
- package/src/sap/ui/webc/main/Toast.js +1 -1
- package/src/sap/ui/webc/main/ToggleButton.js +1 -1
- package/src/sap/ui/webc/main/Token.js +1 -1
- package/src/sap/ui/webc/main/Tree.js +1 -1
- package/src/sap/ui/webc/main/TreeItem.js +1 -1
- package/src/sap/ui/webc/main/changeHandler/ChangeLinkTarget.js +1 -1
- package/src/sap/ui/webc/main/library.config.js +6 -0
- package/src/sap/ui/webc/main/library.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/Avatar.js +7 -51
- package/src/sap/ui/webc/main/thirdparty/AvatarGroup.js +34 -100
- package/src/sap/ui/webc/main/thirdparty/Badge.js +4 -23
- package/src/sap/ui/webc/main/thirdparty/Breadcrumbs.js +43 -145
- package/src/sap/ui/webc/main/thirdparty/BreadcrumbsItem.js +4 -17
- package/src/sap/ui/webc/main/thirdparty/BusyIndicator.js +7 -36
- package/src/sap/ui/webc/main/thirdparty/Button.js +6 -73
- package/src/sap/ui/webc/main/thirdparty/Calendar.js +19 -74
- package/src/sap/ui/webc/main/thirdparty/CalendarDate.js +2 -8
- package/src/sap/ui/webc/main/thirdparty/CalendarHeader.js +1 -29
- package/src/sap/ui/webc/main/thirdparty/CalendarPart.js +6 -26
- package/src/sap/ui/webc/main/thirdparty/Card.js +5 -26
- package/src/sap/ui/webc/main/thirdparty/CardHeader.js +4 -47
- package/src/sap/ui/webc/main/thirdparty/Carousel.js +17 -107
- package/src/sap/ui/webc/main/thirdparty/CheckBox.js +9 -63
- package/src/sap/ui/webc/main/thirdparty/ColorPalette.js +5 -83
- package/src/sap/ui/webc/main/thirdparty/ColorPaletteItem.js +4 -26
- package/src/sap/ui/webc/main/thirdparty/ColorPalettePopover.js +7 -41
- package/src/sap/ui/webc/main/thirdparty/ColorPicker.js +51 -123
- package/src/sap/ui/webc/main/thirdparty/ComboBox.js +24 -212
- package/src/sap/ui/webc/main/thirdparty/ComboBoxGroupItem.js +5 -18
- package/src/sap/ui/webc/main/thirdparty/ComboBoxItem.js +2 -9
- package/src/sap/ui/webc/main/thirdparty/CustomListItem.js +3 -20
- package/src/sap/ui/webc/main/thirdparty/DateComponentBase.js +2 -25
- package/src/sap/ui/webc/main/thirdparty/DatePicker.js +28 -127
- package/src/sap/ui/webc/main/thirdparty/DateRangePicker.js +20 -85
- package/src/sap/ui/webc/main/thirdparty/DateTimePicker.js +20 -66
- package/src/sap/ui/webc/main/thirdparty/DayPicker.js +32 -158
- package/src/sap/ui/webc/main/thirdparty/Dialog.js +18 -104
- package/src/sap/ui/webc/main/thirdparty/DurationPicker.js +11 -56
- package/src/sap/ui/webc/main/thirdparty/FileUploader.js +9 -83
- package/src/sap/ui/webc/main/thirdparty/Filters.js +0 -9
- package/src/sap/ui/webc/main/thirdparty/GroupHeaderListItem.js +5 -20
- package/src/sap/ui/webc/main/thirdparty/Icon.js +8 -53
- package/src/sap/ui/webc/main/thirdparty/Input.js +75 -273
- package/src/sap/ui/webc/main/thirdparty/Interfaces.js +19 -20
- package/src/sap/ui/webc/main/thirdparty/Label.js +5 -21
- package/src/sap/ui/webc/main/thirdparty/Link.js +5 -48
- package/src/sap/ui/webc/main/thirdparty/List.js +33 -183
- package/src/sap/ui/webc/main/thirdparty/ListItem.js +10 -76
- package/src/sap/ui/webc/main/thirdparty/ListItemBase.js +5 -37
- package/src/sap/ui/webc/main/thirdparty/Menu.js +8 -91
- package/src/sap/ui/webc/main/thirdparty/MenuItem.js +3 -21
- package/src/sap/ui/webc/main/thirdparty/MessageStrip.js +4 -34
- package/src/sap/ui/webc/main/thirdparty/MonthPicker.js +12 -61
- package/src/sap/ui/webc/main/thirdparty/MultiComboBox.js +25 -299
- package/src/sap/ui/webc/main/thirdparty/MultiComboBoxGroupItem.js +5 -18
- package/src/sap/ui/webc/main/thirdparty/MultiComboBoxItem.js +2 -9
- package/src/sap/ui/webc/main/thirdparty/MultiInput.js +10 -71
- package/src/sap/ui/webc/main/thirdparty/Option.js +5 -22
- package/src/sap/ui/webc/main/thirdparty/Panel.js +4 -62
- package/src/sap/ui/webc/main/thirdparty/Popover.js +28 -143
- package/src/sap/ui/webc/main/thirdparty/Popup.js +20 -118
- package/src/sap/ui/webc/main/thirdparty/ProgressIndicator.js +6 -38
- package/src/sap/ui/webc/main/thirdparty/RadioButton.js +8 -76
- package/src/sap/ui/webc/main/thirdparty/RadioButtonGroup.js +8 -54
- package/src/sap/ui/webc/main/thirdparty/RangeSlider.js +79 -170
- package/src/sap/ui/webc/main/thirdparty/RatingIndicator.js +6 -49
- package/src/sap/ui/webc/main/thirdparty/ResponsivePopover.js +5 -35
- package/src/sap/ui/webc/main/thirdparty/SegmentedButton.js +9 -57
- package/src/sap/ui/webc/main/thirdparty/SegmentedButtonItem.js +2 -15
- package/src/sap/ui/webc/main/thirdparty/Select.js +15 -131
- package/src/sap/ui/webc/main/thirdparty/Slider.js +24 -65
- package/src/sap/ui/webc/main/thirdparty/SliderBase.js +74 -164
- package/src/sap/ui/webc/main/thirdparty/SplitButton.js +6 -67
- package/src/sap/ui/webc/main/thirdparty/StandardListItem.js +3 -25
- package/src/sap/ui/webc/main/thirdparty/StepInput.js +12 -106
- package/src/sap/ui/webc/main/thirdparty/SuggestionGroupItem.js +5 -17
- package/src/sap/ui/webc/main/thirdparty/SuggestionItem.js +4 -22
- package/src/sap/ui/webc/main/thirdparty/SuggestionListItem.js +2 -12
- package/src/sap/ui/webc/main/thirdparty/Switch.js +6 -41
- package/src/sap/ui/webc/main/thirdparty/Tab.js +6 -83
- package/src/sap/ui/webc/main/thirdparty/TabContainer.js +39 -259
- package/src/sap/ui/webc/main/thirdparty/TabSeparator.js +2 -17
- package/src/sap/ui/webc/main/thirdparty/Table.js +25 -185
- package/src/sap/ui/webc/main/thirdparty/TableCell.js +4 -18
- package/src/sap/ui/webc/main/thirdparty/TableColumn.js +4 -18
- package/src/sap/ui/webc/main/thirdparty/TableGroupRow.js +5 -28
- package/src/sap/ui/webc/main/thirdparty/TableRow.js +7 -81
- package/src/sap/ui/webc/main/thirdparty/TextArea.js +7 -97
- package/src/sap/ui/webc/main/thirdparty/TimePicker.js +3 -16
- package/src/sap/ui/webc/main/thirdparty/TimePickerBase.js +14 -93
- package/src/sap/ui/webc/main/thirdparty/TimeSelection.js +7 -95
- package/src/sap/ui/webc/main/thirdparty/Title.js +4 -22
- package/src/sap/ui/webc/main/thirdparty/Toast.js +8 -31
- package/src/sap/ui/webc/main/thirdparty/ToggleButton.js +2 -14
- package/src/sap/ui/webc/main/thirdparty/Token.js +4 -36
- package/src/sap/ui/webc/main/thirdparty/Tokenizer.js +12 -117
- package/src/sap/ui/webc/main/thirdparty/Tree.js +7 -53
- package/src/sap/ui/webc/main/thirdparty/TreeItem.js +4 -22
- package/src/sap/ui/webc/main/thirdparty/TreeListItem.js +5 -45
- package/src/sap/ui/webc/main/thirdparty/WheelSlider.js +6 -93
- package/src/sap/ui/webc/main/thirdparty/YearPicker.js +22 -72
- package/src/sap/ui/webc/main/thirdparty/features/ColorPaletteMoreColors.js +0 -8
- package/src/sap/ui/webc/main/thirdparty/features/InputElementsFormSupport.js +2 -19
- package/src/sap/ui/webc/main/thirdparty/features/InputSuggestions.js +24 -165
- package/src/sap/ui/webc/main/thirdparty/generated/json-imports/Themes.js +0 -16
- package/src/sap/ui/webc/main/thirdparty/generated/json-imports/i18n.js +0 -52
- package/src/sap/ui/webc/main/thirdparty/generated/templates/AvatarGroupTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/AvatarTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BadgeTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BreadcrumbsPopoverTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BreadcrumbsTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BusyIndicatorTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ButtonTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CalendarHeaderTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CalendarTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CardHeaderTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CardTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CarouselTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CheckBoxTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteDialogTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteItemTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPalettePopoverTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPickerTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ComboBoxPopoverTemplate.lit.js +1 -18
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ComboBoxTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CustomListItemTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DatePickerPopoverTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DatePickerTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DateTimePickerPopoverTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DayPickerTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DialogTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/FileUploaderPopoverTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/FileUploaderTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/GroupHeaderListItemTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/IconTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/InputPopoverTemplate.lit.js +1 -22
- package/src/sap/ui/webc/main/thirdparty/generated/templates/InputTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/LabelTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/LinkTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ListItemTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ListTemplate.lit.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MenuTemplate.lit.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MessageStripTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MonthPickerTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiComboBoxPopoverTemplate.lit.js +1 -25
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiComboBoxTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiInputTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PanelTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PopoverTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PopupBlockLayerTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PopupTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ProgressIndicatorTemplate.lit.js +1 -12
- package/src/sap/ui/webc/main/thirdparty/generated/templates/RadioButtonTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/RangeSliderTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/RatingIndicatorTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ResponsivePopoverTemplate.lit.js +1 -14
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SegmentedButtonItemTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SegmentedButtonTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SelectPopoverTemplate.lit.js +1 -18
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SelectTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SliderBaseTemplate.lit.js +1 -9
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SliderTemplate.lit.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SplitButtonTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/StandardListItemTemplate.lit.js +1 -19
- package/src/sap/ui/webc/main/thirdparty/generated/templates/StepInputTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SuggestionListItemTemplate.lit.js +1 -22
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SwitchTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabContainerPopoverTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabContainerTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabInOverflowTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabInStripTemplate.lit.js +1 -9
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabSeparatorInOverflowTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabSeparatorInStripTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableCellTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableColumnTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableGroupRowTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableRowTemplate.lit.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TextAreaPopoverTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TextAreaTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TimePickerPopoverTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TimePickerTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TimeSelectionTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TitleTemplate.lit.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ToastTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ToggleButtonTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenizerPopoverTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenizerTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TreeListItemTemplate.lit.js +1 -16
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TreeTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/WheelSliderTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/YearPickerTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Avatar.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/AvatarGroup.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Badge.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Breadcrumbs.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/BreadcrumbsPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/BrowserScrollbar.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/BusyIndicator.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Button.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Calendar.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CalendarHeader.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Card.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CardHeader.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Carousel.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CheckBox.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPalette.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPaletteItem.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPalettePopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPaletteStaticArea.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ComboBox.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ComboBoxPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CustomListItem.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DatePicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DatePickerPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DateRangePicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DateTimePicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DateTimePickerPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DayPicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Dialog.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/FileUploader.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/GroupHeaderListItem.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/GrowingButton.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Icon.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Input.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/InputIcon.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/InvisibleTextStyles.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Label.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Link.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/List.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ListItem.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ListItemBase.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Menu.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MessageStrip.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MonthPicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MultiComboBox.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MultiComboBoxPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MultiInput.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Panel.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Popover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Popup.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/PopupGlobal.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/PopupStaticAreaStyles.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/PopupsCommon.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ProgressIndicator.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/RadioButton.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/RangeSlider.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/RatingIndicator.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ResponsivePopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ResponsivePopoverCommon.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SegmentedButton.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Select.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SelectPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SliderBase.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SplitButton.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/StepInput.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Suggestions.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Switch.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Tab.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabContainer.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabInOverflow.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabInStrip.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabSemanticIcon.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabSeparatorInOverflow.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabSeparatorInStrip.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Table.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableCell.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableColumn.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableGroupRow.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableRow.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TapHighlightColor.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TextArea.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TimePicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TimePickerPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TimeSelection.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Title.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Toast.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ToggleButton.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Token.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Tokenizer.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TokenizerPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Tree.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TreeListItem.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ValueStateMessage.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/WheelSlider.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/YearPicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/popup-utils/OpenedPopupsRegistry.js +0 -12
- package/src/sap/ui/webc/main/thirdparty/popup-utils/PopoverRegistry.js +4 -33
- package/src/sap/ui/webc/main/thirdparty/timepicker-utils/TimeSlider.js +0 -26
- package/src/sap/ui/webc/main/thirdparty/types/AvatarColorScheme.js +1 -15
- package/src/sap/ui/webc/main/thirdparty/types/AvatarGroupType.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/AvatarShape.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/AvatarSize.js +1 -9
- package/src/sap/ui/webc/main/thirdparty/types/BreadcrumbsDesign.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/BreadcrumbsSeparatorStyle.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/types/BusyIndicatorSize.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/ButtonDesign.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/types/CalendarSelectionMode.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/CarouselArrowsPlacement.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/GrowingMode.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/HasPopup.js +1 -9
- package/src/sap/ui/webc/main/thirdparty/types/InputType.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/types/LinkDesign.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/ListGrowingMode.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/ListItemType.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/ListMode.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/types/ListSeparators.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/MessageStripDesign.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/types/PanelAccessibleRole.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/PopoverHorizontalAlign.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/types/PopoverPlacementType.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/types/PopoverVerticalAlign.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/types/Priority.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/types/SemanticColor.js +1 -9
- package/src/sap/ui/webc/main/thirdparty/types/SwitchDesign.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/TabContainerTabsPlacement.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/TabLayout.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/TableGrowingMode.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/TableMode.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/TableRowType.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/TabsOverflowMode.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/TitleLevel.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/types/ToastPlacement.js +1 -13
- package/src/sap/ui/webc/main/thirdparty/types/WrappingType.js +1 -6
- package/ui5.yaml +1 -1
@@ -16,9 +16,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
16
16
|
_Button = _interopRequireDefault(_Button);
|
17
17
|
_Label = _interopRequireDefault(_Label);
|
18
18
|
_Carousel = _interopRequireDefault(_Carousel);
|
19
|
-
|
20
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
21
|
-
|
22
20
|
// Styles
|
23
21
|
|
24
22
|
/**
|
@@ -28,9 +26,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
28
26
|
tag: "ui5-carousel",
|
29
27
|
languageAware: true,
|
30
28
|
fastNavigation: true,
|
31
|
-
properties:
|
32
|
-
/** @lends sap.ui.webcomponents.main.Carousel.prototype */
|
33
|
-
{
|
29
|
+
properties: /** @lends sap.ui.webcomponents.main.Carousel.prototype */{
|
34
30
|
/**
|
35
31
|
* Defines whether the carousel should loop, i.e show the first page after the last page is reached and vice versa.
|
36
32
|
* @type {boolean}
|
@@ -40,7 +36,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
40
36
|
cyclic: {
|
41
37
|
type: Boolean
|
42
38
|
},
|
43
|
-
|
44
39
|
/**
|
45
40
|
* Defines the number of items per page on small size (up to 640px). One item per page shown by default.
|
46
41
|
* @type {Integer}
|
@@ -51,7 +46,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
51
46
|
type: _Integer.default,
|
52
47
|
defaultValue: 1
|
53
48
|
},
|
54
|
-
|
55
49
|
/**
|
56
50
|
* Defines the number of items per page on medium size (from 640px to 1024px). One item per page shown by default.
|
57
51
|
* @type {Integer}
|
@@ -62,7 +56,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
62
56
|
type: _Integer.default,
|
63
57
|
defaultValue: 1
|
64
58
|
},
|
65
|
-
|
66
59
|
/**
|
67
60
|
* Defines the number of items per page on large size (more than 1024px). One item per page shown by default.
|
68
61
|
* @type {Integer}
|
@@ -73,7 +66,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
73
66
|
type: _Integer.default,
|
74
67
|
defaultValue: 1
|
75
68
|
},
|
76
|
-
|
77
69
|
/**
|
78
70
|
* Defines the visibility of the navigation arrows.
|
79
71
|
* If set to true the navigation arrows will be hidden.
|
@@ -88,7 +80,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
88
80
|
hideNavigationArrows: {
|
89
81
|
type: Boolean
|
90
82
|
},
|
91
|
-
|
92
83
|
/**
|
93
84
|
* Defines the visibility of the paging indicator.
|
94
85
|
* If set to true the page indicator will be hidden.
|
@@ -100,7 +91,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
100
91
|
hidePageIndicator: {
|
101
92
|
type: Boolean
|
102
93
|
},
|
103
|
-
|
104
94
|
/**
|
105
95
|
* Defines the index of the initially selected item.
|
106
96
|
* @type {Integer}
|
@@ -111,7 +101,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
111
101
|
type: _Integer.default,
|
112
102
|
defaultValue: 0
|
113
103
|
},
|
114
|
-
|
115
104
|
/**
|
116
105
|
* Defines the position of arrows.
|
117
106
|
* <br><br>
|
@@ -132,7 +121,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
132
121
|
type: _CarouselArrowsPlacement.default,
|
133
122
|
defaultValue: _CarouselArrowsPlacement.default.Content
|
134
123
|
},
|
135
|
-
|
136
124
|
/**
|
137
125
|
* Defines the carousel width in pixels.
|
138
126
|
* @private
|
@@ -140,7 +128,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
140
128
|
_width: {
|
141
129
|
type: _Integer.default
|
142
130
|
},
|
143
|
-
|
144
131
|
/**
|
145
132
|
* Defines the carousel item width in pixels.
|
146
133
|
* @private
|
@@ -148,7 +135,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
148
135
|
_itemWidth: {
|
149
136
|
type: _Integer.default
|
150
137
|
},
|
151
|
-
|
152
138
|
/**
|
153
139
|
* If set to true navigation arrows are shown.
|
154
140
|
* @private
|
@@ -160,9 +146,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
160
146
|
}
|
161
147
|
},
|
162
148
|
managedSlots: true,
|
163
|
-
slots:
|
164
|
-
/** @lends sap.ui.webcomponents.main.Carousel.prototype */
|
165
|
-
{
|
149
|
+
slots: /** @lends sap.ui.webcomponents.main.Carousel.prototype */{
|
166
150
|
/**
|
167
151
|
* Defines the content of the component.
|
168
152
|
* @type {HTMLElement[]}
|
@@ -175,9 +159,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
175
159
|
individualSlots: true
|
176
160
|
}
|
177
161
|
},
|
178
|
-
events:
|
179
|
-
/** @lends sap.ui.webcomponents.main.Carousel.prototype */
|
180
|
-
{
|
162
|
+
events: /** @lends sap.ui.webcomponents.main.Carousel.prototype */{
|
181
163
|
/**
|
182
164
|
* Fired whenever the page changes due to user interaction,
|
183
165
|
* when the user clicks on the navigation arrows or while resizing,
|
@@ -197,6 +179,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
197
179
|
}
|
198
180
|
}
|
199
181
|
};
|
182
|
+
|
200
183
|
/**
|
201
184
|
* @class
|
202
185
|
*
|
@@ -256,51 +239,40 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
256
239
|
* @since 1.0.0-rc.6
|
257
240
|
* @public
|
258
241
|
*/
|
259
|
-
|
260
242
|
class Carousel extends _UI5Element.default {
|
261
243
|
static get metadata() {
|
262
244
|
return metadata;
|
263
245
|
}
|
264
|
-
|
265
246
|
static get render() {
|
266
247
|
return _LitRenderer.default;
|
267
248
|
}
|
268
|
-
|
269
249
|
static get styles() {
|
270
250
|
return _Carousel.default;
|
271
251
|
}
|
272
|
-
|
273
252
|
static get template() {
|
274
253
|
return _CarouselTemplate.default;
|
275
254
|
}
|
276
|
-
|
277
255
|
static get pageTypeLimit() {
|
278
256
|
return 9;
|
279
257
|
}
|
280
|
-
|
281
258
|
constructor() {
|
282
259
|
super();
|
283
260
|
this._scrollEnablement = new _ScrollEnablement.default(this);
|
284
|
-
|
285
261
|
this._scrollEnablement.attachEvent("touchend", event => {
|
286
262
|
this._updateScrolling(event);
|
287
263
|
});
|
288
|
-
|
289
264
|
this._onResizeBound = this._onResize.bind(this);
|
290
265
|
this._resizing = false; // indicates if the carousel is in process of resizing
|
291
266
|
|
292
267
|
this._lastFocusedElements = [];
|
293
268
|
this._orderOfLastFocusedPages = [];
|
294
269
|
}
|
295
|
-
|
296
270
|
onBeforeRendering() {
|
297
271
|
if (this.arrowsPlacement === _CarouselArrowsPlacement.default.Navigation) {
|
298
272
|
this._visibleNavigationArrows = true;
|
299
273
|
}
|
300
|
-
|
301
274
|
this.validateSelectedIndex();
|
302
275
|
}
|
303
|
-
|
304
276
|
onAfterRendering() {
|
305
277
|
this._scrollEnablement.scrollContainer = this.getDomRef();
|
306
278
|
this._resizing = false; // not invalidating
|
@@ -309,30 +281,29 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
309
281
|
onEnterDOM() {
|
310
282
|
_ResizeHandler.default.register(this, this._onResizeBound);
|
311
283
|
}
|
312
|
-
|
313
284
|
onExitDOM() {
|
314
285
|
_ResizeHandler.default.deregister(this, this._onResizeBound);
|
315
286
|
}
|
316
|
-
|
317
287
|
validateSelectedIndex() {
|
318
288
|
if (!this.isIndexInRange(this._selectedIndex)) {
|
319
289
|
this._selectedIndex = 0;
|
320
290
|
}
|
321
291
|
}
|
322
|
-
|
323
292
|
_onResize() {
|
324
|
-
const previousItemsPerPage = this.effectiveItemsPerPage;
|
293
|
+
const previousItemsPerPage = this.effectiveItemsPerPage;
|
325
294
|
|
326
|
-
|
295
|
+
// Set the resizing flag to suppress animation while resizing
|
296
|
+
this._resizing = true;
|
327
297
|
|
298
|
+
// Change transitively effectiveItemsPerPage by modifying _width
|
328
299
|
this._width = this.offsetWidth;
|
329
|
-
this._itemWidth = Math.floor(this._width / this.effectiveItemsPerPage);
|
330
|
-
// therefore page index does not need to be re-adjusted
|
300
|
+
this._itemWidth = Math.floor(this._width / this.effectiveItemsPerPage);
|
331
301
|
|
302
|
+
// Items per page did not change or the current,
|
303
|
+
// therefore page index does not need to be re-adjusted
|
332
304
|
if (this.effectiveItemsPerPage === previousItemsPerPage) {
|
333
305
|
return;
|
334
306
|
}
|
335
|
-
|
336
307
|
if (this._selectedIndex > this.pagesCount - 1) {
|
337
308
|
this._selectedIndex = this.pagesCount - 1;
|
338
309
|
this.fireEvent("navigate", {
|
@@ -340,30 +311,24 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
340
311
|
});
|
341
312
|
}
|
342
313
|
}
|
343
|
-
|
344
314
|
_updateScrolling(event) {
|
345
315
|
if (!event) {
|
346
316
|
return;
|
347
317
|
}
|
348
|
-
|
349
318
|
if (event.isLeft) {
|
350
319
|
this.navigateLeft();
|
351
320
|
} else if (event.isRight) {
|
352
321
|
this.navigateRight();
|
353
322
|
}
|
354
323
|
}
|
355
|
-
|
356
324
|
async _onkeydown(event) {
|
357
325
|
if ((0, _Keys.isF7)(event)) {
|
358
326
|
this._handleF7Key(event);
|
359
|
-
|
360
327
|
return;
|
361
328
|
}
|
362
|
-
|
363
329
|
if (event.target !== this.getDomRef()) {
|
364
330
|
return;
|
365
331
|
}
|
366
|
-
|
367
332
|
if ((0, _Keys.isLeft)(event) || (0, _Keys.isDown)(event)) {
|
368
333
|
this.navigateLeft();
|
369
334
|
await (0, _Render.renderFinished)();
|
@@ -374,75 +339,60 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
374
339
|
this.getDomRef().focus();
|
375
340
|
}
|
376
341
|
}
|
377
|
-
|
378
342
|
_onfocusin(event) {
|
379
343
|
if (event.target === this.getDomRef()) {
|
380
344
|
return;
|
381
345
|
}
|
382
|
-
|
383
346
|
let pageIndex = -1;
|
384
|
-
|
385
347
|
for (let i = 0; i < this.content.length; i++) {
|
386
348
|
if (this.content[i].contains(event.target)) {
|
387
349
|
pageIndex = i;
|
388
350
|
break;
|
389
351
|
}
|
390
352
|
}
|
391
|
-
|
392
353
|
if (pageIndex === -1) {
|
393
354
|
return;
|
394
|
-
}
|
395
|
-
|
355
|
+
}
|
396
356
|
|
357
|
+
// Save reference of the last focused element for each page
|
397
358
|
this._lastFocusedElements[pageIndex] = event.target;
|
398
|
-
|
399
359
|
const sortedPageIndex = this._orderOfLastFocusedPages.indexOf(pageIndex);
|
400
|
-
|
401
360
|
if (sortedPageIndex === -1) {
|
402
361
|
this._orderOfLastFocusedPages.unshift(pageIndex);
|
403
362
|
} else {
|
404
363
|
this._orderOfLastFocusedPages.splice(0, 0, this._orderOfLastFocusedPages.splice(sortedPageIndex, 1)[0]);
|
405
364
|
}
|
406
365
|
}
|
407
|
-
|
408
366
|
_onmouseout() {
|
409
367
|
if (this.arrowsPlacement === _CarouselArrowsPlacement.default.Content) {
|
410
368
|
this._visibleNavigationArrows = false;
|
411
369
|
}
|
412
370
|
}
|
413
|
-
|
414
371
|
_onmouseover() {
|
415
372
|
if (this.arrowsPlacement === _CarouselArrowsPlacement.default.Content) {
|
416
373
|
this._visibleNavigationArrows = true;
|
417
374
|
}
|
418
375
|
}
|
419
|
-
|
420
376
|
_handleF7Key(event) {
|
421
377
|
const lastFocusedElement = this._lastFocusedElements[this._getLastFocusedActivePageIndex];
|
422
|
-
|
423
378
|
if (event.target === this.getDomRef() && lastFocusedElement) {
|
424
379
|
lastFocusedElement.focus();
|
425
380
|
} else {
|
426
381
|
this.getDomRef().focus();
|
427
382
|
}
|
428
383
|
}
|
429
|
-
|
430
384
|
get _getLastFocusedActivePageIndex() {
|
431
385
|
for (let i = 0; i < this._orderOfLastFocusedPages.length; i++) {
|
432
386
|
const pageIndex = this._orderOfLastFocusedPages[i];
|
433
|
-
|
434
387
|
if (this.isItemInViewport(pageIndex)) {
|
435
388
|
return pageIndex;
|
436
389
|
}
|
437
390
|
}
|
438
|
-
|
439
391
|
return this._selectedIndex;
|
440
392
|
}
|
441
|
-
|
442
393
|
navigateLeft() {
|
443
394
|
this._resizing = false;
|
444
395
|
const previousSelectedIndex = this._selectedIndex;
|
445
|
-
|
446
396
|
if (this._selectedIndex - 1 < 0) {
|
447
397
|
if (this.cyclic) {
|
448
398
|
this._selectedIndex = this.pagesCount - 1;
|
@@ -450,18 +400,15 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
450
400
|
} else {
|
451
401
|
--this._selectedIndex;
|
452
402
|
}
|
453
|
-
|
454
403
|
if (previousSelectedIndex !== this._selectedIndex) {
|
455
404
|
this.fireEvent("navigate", {
|
456
405
|
selectedIndex: this._selectedIndex
|
457
406
|
});
|
458
407
|
}
|
459
408
|
}
|
460
|
-
|
461
409
|
navigateRight() {
|
462
410
|
this._resizing = false;
|
463
411
|
const previousSelectedIndex = this._selectedIndex;
|
464
|
-
|
465
412
|
if (this._selectedIndex + 1 > this.pagesCount - 1) {
|
466
413
|
if (this.cyclic) {
|
467
414
|
this._selectedIndex = 0;
|
@@ -471,41 +418,36 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
471
418
|
} else {
|
472
419
|
++this._selectedIndex;
|
473
420
|
}
|
474
|
-
|
475
421
|
if (previousSelectedIndex !== this._selectedIndex) {
|
476
422
|
this.fireEvent("navigate", {
|
477
423
|
selectedIndex: this._selectedIndex
|
478
424
|
});
|
479
425
|
}
|
480
426
|
}
|
481
|
-
|
482
427
|
_navButtonClick(event) {
|
483
428
|
if (event.target.hasAttribute("arrow-forward")) {
|
484
429
|
this.navigateRight();
|
485
430
|
} else {
|
486
431
|
this.navigateLeft();
|
487
432
|
}
|
488
|
-
|
489
433
|
this.focus();
|
490
434
|
}
|
435
|
+
|
491
436
|
/**
|
492
437
|
* Changes the currently displayed page.
|
493
438
|
* @param {Integer} itemIndex The index of the target page
|
494
439
|
* @since 1.0.0-rc.15
|
495
440
|
* @public
|
496
441
|
*/
|
497
|
-
|
498
|
-
|
499
442
|
navigateTo(itemIndex) {
|
500
443
|
this._resizing = false;
|
501
444
|
this._selectedIndex = itemIndex;
|
502
445
|
}
|
446
|
+
|
503
447
|
/**
|
504
448
|
* Assuming that all items have the same width
|
505
449
|
* @private
|
506
450
|
*/
|
507
|
-
|
508
|
-
|
509
451
|
get items() {
|
510
452
|
return this.content.map((item, idx) => {
|
511
453
|
const visible = this.isItemInViewport(idx);
|
@@ -522,51 +464,40 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
522
464
|
};
|
523
465
|
});
|
524
466
|
}
|
525
|
-
|
526
467
|
get effectiveItemsPerPage() {
|
527
468
|
if (this._width <= 640) {
|
528
469
|
return this.itemsPerPageS;
|
529
470
|
}
|
530
|
-
|
531
471
|
if (this._width <= 1024) {
|
532
472
|
return this.itemsPerPageM;
|
533
473
|
}
|
534
|
-
|
535
474
|
return this.itemsPerPageL;
|
536
475
|
}
|
537
|
-
|
538
476
|
isItemInViewport(index) {
|
539
477
|
return index >= this._selectedIndex && index <= this._selectedIndex + this.effectiveItemsPerPage - 1;
|
540
478
|
}
|
541
|
-
|
542
479
|
isIndexInRange(index) {
|
543
480
|
return index >= 0 && index <= this.pagesCount - 1;
|
544
481
|
}
|
482
|
+
|
545
483
|
/**
|
546
484
|
* @private
|
547
485
|
*/
|
548
|
-
|
549
|
-
|
550
486
|
get renderNavigation() {
|
551
487
|
if (!this.hasManyPages) {
|
552
488
|
return false;
|
553
489
|
}
|
554
|
-
|
555
490
|
if (this.arrowsPlacement === _CarouselArrowsPlacement.default.Navigation && !this.hideNavigationArrows) {
|
556
491
|
return true;
|
557
492
|
}
|
558
|
-
|
559
493
|
if (this.hidePageIndicator) {
|
560
494
|
return false;
|
561
495
|
}
|
562
|
-
|
563
496
|
return true;
|
564
497
|
}
|
565
|
-
|
566
498
|
get hasManyPages() {
|
567
499
|
return this.pagesCount > 1;
|
568
500
|
}
|
569
|
-
|
570
501
|
get styles() {
|
571
502
|
return {
|
572
503
|
content: {
|
@@ -574,7 +505,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
574
505
|
}
|
575
506
|
};
|
576
507
|
}
|
577
|
-
|
578
508
|
get classes() {
|
579
509
|
return {
|
580
510
|
viewport: {
|
@@ -599,30 +529,24 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
599
529
|
}
|
600
530
|
};
|
601
531
|
}
|
602
|
-
|
603
532
|
get pagesCount() {
|
604
533
|
const items = this.content.length;
|
605
534
|
return items > this.effectiveItemsPerPage ? items - this.effectiveItemsPerPage + 1 : 1;
|
606
535
|
}
|
607
|
-
|
608
536
|
get isPageTypeDots() {
|
609
537
|
return this.pagesCount < Carousel.pageTypeLimit;
|
610
538
|
}
|
611
|
-
|
612
539
|
get dots() {
|
613
540
|
const dots = [];
|
614
541
|
const pages = this.pagesCount;
|
615
|
-
|
616
542
|
for (let index = 0; index < pages; index++) {
|
617
543
|
dots.push({
|
618
544
|
active: index === this._selectedIndex,
|
619
545
|
ariaLabel: Carousel.i18nBundle.getText(_i18nDefaults.CAROUSEL_DOT_TEXT, index + 1, pages)
|
620
546
|
});
|
621
547
|
}
|
622
|
-
|
623
548
|
return dots;
|
624
549
|
}
|
625
|
-
|
626
550
|
get arrows() {
|
627
551
|
const showArrows = this._visibleNavigationArrows && this.hasManyPages && (0, _Device.isDesktop)();
|
628
552
|
return {
|
@@ -630,50 +554,40 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
630
554
|
navigation: !this.hideNavigationArrows && showArrows && this.arrowsPlacement === _CarouselArrowsPlacement.default.Navigation
|
631
555
|
};
|
632
556
|
}
|
633
|
-
|
634
557
|
get hasPrev() {
|
635
558
|
return this.cyclic || this._selectedIndex - 1 >= 0;
|
636
559
|
}
|
637
|
-
|
638
560
|
get hasNext() {
|
639
561
|
return this.cyclic || this._selectedIndex + 1 <= this.pagesCount - 1;
|
640
562
|
}
|
641
|
-
|
642
563
|
get suppressAnimation() {
|
643
564
|
return this._resizing || (0, _AnimationMode2.getAnimationMode)() === _AnimationMode.default.None;
|
644
565
|
}
|
645
|
-
|
646
566
|
get _isRTL() {
|
647
567
|
return this.effectiveDir === "rtl";
|
648
568
|
}
|
649
|
-
|
650
569
|
get selectedIndexToShow() {
|
651
570
|
return this._isRTL ? this.pagesCount - (this.pagesCount - this._selectedIndex) + 1 : this._selectedIndex + 1;
|
652
571
|
}
|
653
|
-
|
654
572
|
get ofText() {
|
655
573
|
return Carousel.i18nBundle.getText(_i18nDefaults.CAROUSEL_OF_TEXT);
|
656
574
|
}
|
657
|
-
|
658
575
|
get ariaActiveDescendant() {
|
659
576
|
return this.content.length ? `${this._id}-carousel-item-${this._selectedIndex + 1}` : undefined;
|
660
577
|
}
|
661
|
-
|
662
578
|
get nextPageText() {
|
663
579
|
return Carousel.i18nBundle.getText(_i18nDefaults.CAROUSEL_NEXT_ARROW_TEXT);
|
664
580
|
}
|
665
|
-
|
666
581
|
get previousPageText() {
|
667
582
|
return Carousel.i18nBundle.getText(_i18nDefaults.CAROUSEL_PREVIOUS_ARROW_TEXT);
|
668
583
|
}
|
584
|
+
|
669
585
|
/**
|
670
586
|
* The indices of the currently visible items of the component.
|
671
587
|
* @readonly
|
672
588
|
* @since 1.0.0-rc.15
|
673
589
|
* @returns {Integer[]} the indices of the visible items
|
674
590
|
*/
|
675
|
-
|
676
|
-
|
677
591
|
get visibleItemsIndices() {
|
678
592
|
const visibleItemsIndices = [];
|
679
593
|
this.items.forEach((item, index) => {
|
@@ -683,17 +597,13 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
683
597
|
});
|
684
598
|
return visibleItemsIndices;
|
685
599
|
}
|
686
|
-
|
687
600
|
static get dependencies() {
|
688
601
|
return [_Button.default, _Label.default];
|
689
602
|
}
|
690
|
-
|
691
603
|
static async onDefine() {
|
692
604
|
Carousel.i18nBundle = await (0, _i18nBundle.getI18nBundle)("@ui5/webcomponents");
|
693
605
|
}
|
694
|
-
|
695
606
|
}
|
696
|
-
|
697
607
|
Carousel.define();
|
698
608
|
var _default = Carousel;
|
699
609
|
_exports.default = _default;
|