@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
@@ -15,24 +15,21 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
15
15
|
_TimeSelectionTemplate = _interopRequireDefault(_TimeSelectionTemplate);
|
16
16
|
_WheelSlider = _interopRequireDefault(_WheelSlider);
|
17
17
|
_TimeSelection = _interopRequireDefault(_TimeSelection);
|
18
|
-
|
19
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
20
|
-
|
21
19
|
// default calendar for bundling
|
20
|
+
|
22
21
|
// Styles
|
22
|
+
|
23
23
|
const capitalizeFirst = str => str.substr(0, 1).toUpperCase() + str.substr(1);
|
24
|
+
|
24
25
|
/**
|
25
26
|
* @public
|
26
27
|
*/
|
27
|
-
|
28
|
-
|
29
28
|
const metadata = {
|
30
29
|
tag: "ui5-time-selection",
|
31
30
|
languageAware: true,
|
32
31
|
managedSlots: true,
|
33
|
-
properties:
|
34
|
-
/** @lends sap.ui.webcomponents.main.TimeSelection.prototype */
|
35
|
-
{
|
32
|
+
properties: /** @lends sap.ui.webcomponents.main.TimeSelection.prototype */{
|
36
33
|
/**
|
37
34
|
* Defines a formatted time value.
|
38
35
|
*
|
@@ -44,7 +41,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
44
41
|
type: String,
|
45
42
|
defaultValue: undefined
|
46
43
|
},
|
47
|
-
|
48
44
|
/**
|
49
45
|
* Determines the format, displayed in the input field.
|
50
46
|
*
|
@@ -60,7 +56,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
60
56
|
formatPattern: {
|
61
57
|
type: String
|
62
58
|
},
|
63
|
-
|
64
59
|
/**
|
65
60
|
* Hides the hours slider regardless of formatPattern
|
66
61
|
* This property is only needed for the duration picker use case which requires non-standard slider combinations
|
@@ -69,7 +64,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
69
64
|
hideHours: {
|
70
65
|
type: Boolean
|
71
66
|
},
|
72
|
-
|
73
67
|
/**
|
74
68
|
* Hides the minutes slider regardless of formatPattern
|
75
69
|
* This property is only needed for the duration picker use case which requires non-standard slider combinations
|
@@ -78,7 +72,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
78
72
|
hideMinutes: {
|
79
73
|
type: Boolean
|
80
74
|
},
|
81
|
-
|
82
75
|
/**
|
83
76
|
* Hides the seconds slider regardless of formatPattern
|
84
77
|
* This property is only needed for the duration picker use case which requires non-standard slider combinations
|
@@ -87,7 +80,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
87
80
|
hideSeconds: {
|
88
81
|
type: Boolean
|
89
82
|
},
|
90
|
-
|
91
83
|
/**
|
92
84
|
* The maximum number of hours to be displayed for the hours slider (only needed for the duration picker use case)
|
93
85
|
* @public
|
@@ -95,7 +87,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
95
87
|
maxHours: {
|
96
88
|
type: _Integer.default
|
97
89
|
},
|
98
|
-
|
99
90
|
/**
|
100
91
|
* The maximum number of minutes to be displayed for the minutes slider (only needed for the duration picker use case)
|
101
92
|
* @public
|
@@ -103,7 +94,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
103
94
|
maxMinutes: {
|
104
95
|
type: _Integer.default
|
105
96
|
},
|
106
|
-
|
107
97
|
/**
|
108
98
|
* The maximum number of seconds to be displayed for the seconds slider (only needed for the duration picker use case)
|
109
99
|
* @public
|
@@ -127,20 +117,18 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
127
117
|
type: _CalendarType.default
|
128
118
|
}
|
129
119
|
},
|
130
|
-
events:
|
131
|
-
/** @lends sap.ui.webcomponents.main.TimeSelection.prototype */
|
132
|
-
{
|
120
|
+
events: /** @lends sap.ui.webcomponents.main.TimeSelection.prototype */{
|
133
121
|
/**
|
134
122
|
* Fired when the value changes due to user interaction with the sliders
|
135
123
|
*/
|
136
124
|
change: {},
|
137
|
-
|
138
125
|
/**
|
139
126
|
* Fired when the expanded/collapsed slider changes (a new slider is expanded or the expanded slider is collapsed)
|
140
127
|
*/
|
141
128
|
sliderChange: {}
|
142
129
|
}
|
143
130
|
};
|
131
|
+
|
144
132
|
/**
|
145
133
|
* @class
|
146
134
|
*
|
@@ -152,99 +140,75 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
152
140
|
* @private
|
153
141
|
* @since 1.0.0-rc.12
|
154
142
|
*/
|
155
|
-
|
156
143
|
class TimeSelection extends _UI5Element.default {
|
157
144
|
static get metadata() {
|
158
145
|
return metadata;
|
159
146
|
}
|
160
|
-
|
161
147
|
static get render() {
|
162
148
|
return _LitRenderer.default;
|
163
149
|
}
|
164
|
-
|
165
150
|
static get styles() {
|
166
151
|
return _TimeSelection.default;
|
167
152
|
}
|
168
|
-
|
169
153
|
static get template() {
|
170
154
|
return _TimeSelectionTemplate.default;
|
171
155
|
}
|
172
|
-
|
173
156
|
static get dependencies() {
|
174
157
|
return [_WheelSlider.default];
|
175
158
|
}
|
176
|
-
|
177
159
|
static async onDefine() {
|
178
160
|
[TimeSelection.i18nBundle] = await Promise.all([(0, _i18nBundle.getI18nBundle)("@ui5/webcomponents"), (0, _LocaleData.fetchCldr)((0, _getLocale.default)().getLanguage(), (0, _getLocale.default)().getRegion(), (0, _getLocale.default)().getScript())]);
|
179
161
|
}
|
180
|
-
|
181
162
|
constructor() {
|
182
163
|
super();
|
183
164
|
}
|
184
|
-
|
185
165
|
get _hoursConfiguration() {
|
186
166
|
const hourFormat = this.getFormat().aFormatArray.find(item => item.type.startsWith("hour")); // try to find an entry for the hours
|
187
|
-
|
188
167
|
return (0, _TimeSlider.getHoursConfigByFormat)(hourFormat ? hourFormat.type : "hour0_23");
|
189
168
|
}
|
190
|
-
|
191
169
|
get _neededSliders() {
|
192
170
|
const formatArray = this.getFormat().aFormatArray;
|
193
171
|
return (0, _TimeSlider.getTimeControlsByFormat)(formatArray, this._hoursConfiguration);
|
194
172
|
}
|
195
|
-
|
196
173
|
get _hasHoursSlider() {
|
197
174
|
return this._neededSliders[0] && !this.hideHours;
|
198
175
|
}
|
199
|
-
|
200
176
|
get _hasMinutesSlider() {
|
201
177
|
return this._neededSliders[1] && !this.hideMinutes;
|
202
178
|
}
|
203
|
-
|
204
179
|
get _hasSecondsSlider() {
|
205
180
|
return this._neededSliders[2] && !this.hideSeconds;
|
206
181
|
}
|
207
|
-
|
208
182
|
get _hasPeriodsSlider() {
|
209
183
|
return this._neededSliders[3];
|
210
184
|
}
|
211
|
-
|
212
185
|
get secondsArray() {
|
213
186
|
return (0, _TimeSlider.getSeconds)(this.maxSeconds ? this.maxSeconds + 1 : undefined, this.secondsStep);
|
214
187
|
}
|
215
|
-
|
216
188
|
get minutesArray() {
|
217
189
|
return (0, _TimeSlider.getMinutes)(this.maxMinutes ? this.maxMinutes + 1 : undefined, this.minutesStep);
|
218
190
|
}
|
219
|
-
|
220
191
|
get hoursArray() {
|
221
192
|
return (0, _TimeSlider.getHours)(this._hoursConfiguration, this.maxHours ? this.maxHours + 1 : undefined);
|
222
193
|
}
|
223
|
-
|
224
194
|
get periodsArray() {
|
225
195
|
return this.getFormat().aDayPeriods.map(x => x.toUpperCase());
|
226
196
|
}
|
227
|
-
|
228
197
|
get _hoursSliderFocused() {
|
229
198
|
return this._currentSlider === "hours";
|
230
199
|
}
|
231
|
-
|
232
200
|
get _minutesSliderFocused() {
|
233
201
|
return this._currentSlider === "minutes";
|
234
202
|
}
|
235
|
-
|
236
203
|
get _secondsSliderFocused() {
|
237
204
|
return this._currentSlider === "seconds";
|
238
205
|
}
|
239
|
-
|
240
206
|
get _periodSliderFocused() {
|
241
207
|
return this._currentSlider === "periods";
|
242
208
|
}
|
243
|
-
|
244
209
|
get _hours() {
|
245
210
|
let hours;
|
246
211
|
const dateValue = this.validDateValue;
|
247
|
-
|
248
212
|
if (this._hoursConfiguration.isTwelveHoursFormat && dateValue.getHours() > this._hoursConfiguration.maxHour) {
|
249
213
|
hours = dateValue.getHours() - 12;
|
250
214
|
} else if (this._hoursConfiguration.isTwelveHoursFormat && dateValue.getHours() < this._hoursConfiguration.minHour) {
|
@@ -252,44 +216,34 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
252
216
|
} else {
|
253
217
|
hours = dateValue.getHours();
|
254
218
|
}
|
255
|
-
|
256
219
|
if (hours.toString().length === 1) {
|
257
220
|
hours = `0${hours}`;
|
258
221
|
}
|
259
|
-
|
260
222
|
return hours.toString();
|
261
223
|
}
|
262
|
-
|
263
224
|
get _minutes() {
|
264
225
|
const minutes = this.validDateValue.getMinutes().toString();
|
265
226
|
return minutes.length === 1 ? `0${minutes}` : minutes;
|
266
227
|
}
|
267
|
-
|
268
228
|
get _seconds() {
|
269
229
|
const seconds = this.validDateValue.getSeconds().toString();
|
270
230
|
return seconds.length === 1 ? `0${seconds}` : seconds;
|
271
231
|
}
|
272
|
-
|
273
232
|
get _period() {
|
274
233
|
if (!this._hoursConfiguration.isTwelveHoursFormat) {
|
275
234
|
return undefined;
|
276
235
|
}
|
277
|
-
|
278
236
|
let period;
|
279
237
|
const dateValue = this.validDateValue;
|
280
|
-
|
281
238
|
if (this._hoursConfiguration.minHour === 1) {
|
282
239
|
period = dateValue.getHours() >= this._hoursConfiguration.maxHour ? this.periodsArray[1] : this.periodsArray[0];
|
283
240
|
} else {
|
284
241
|
period = dateValue.getHours() > this._hoursConfiguration.maxHour || dateValue.getHours() === this._hoursConfiguration.minHour ? this.periodsArray[1] : this.periodsArray[0];
|
285
242
|
}
|
286
|
-
|
287
243
|
return period;
|
288
244
|
}
|
289
|
-
|
290
245
|
setValue(date) {
|
291
246
|
const value = this.formatValue(date);
|
292
|
-
|
293
247
|
if (this.isValid(value)) {
|
294
248
|
this.value = this.normalizeValue(value);
|
295
249
|
this.fireEvent("change", {
|
@@ -298,69 +252,55 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
298
252
|
});
|
299
253
|
}
|
300
254
|
}
|
301
|
-
|
302
255
|
onHoursChange(event) {
|
303
256
|
let hours = event.detail.value;
|
304
257
|
const isTwelveHoursFormat = this._hoursConfiguration.isTwelveHoursFormat;
|
305
|
-
|
306
258
|
if (isTwelveHoursFormat) {
|
307
259
|
if (this._period === this.periodsArray[0]) {
|
308
260
|
// AM
|
309
261
|
hours = hours === "12" ? 0 : hours;
|
310
262
|
}
|
311
|
-
|
312
263
|
if (this._period === this.periodsArray[1]) {
|
313
264
|
// PM
|
314
265
|
hours = hours === "12" ? hours : hours * 1 + 12;
|
315
266
|
}
|
316
267
|
}
|
317
|
-
|
318
268
|
const date = this.validDateValue;
|
319
269
|
date.setHours(hours);
|
320
270
|
this.setValue(date);
|
321
271
|
}
|
322
|
-
|
323
272
|
onMinutesChange(event) {
|
324
273
|
const minutes = event.detail.value;
|
325
274
|
const date = this.validDateValue;
|
326
275
|
date.setMinutes(minutes);
|
327
276
|
this.setValue(date);
|
328
277
|
}
|
329
|
-
|
330
278
|
onSecondsChange(event) {
|
331
279
|
const seconds = event.detail.value;
|
332
280
|
const date = this.validDateValue;
|
333
281
|
date.setSeconds(seconds);
|
334
282
|
this.setValue(date);
|
335
283
|
}
|
336
|
-
|
337
284
|
onPeriodChange(event) {
|
338
285
|
const period = event.detail.value;
|
339
286
|
const date = this.validDateValue;
|
340
|
-
|
341
287
|
if (period === this.periodsArray[0] && date.getHours() >= 12) {
|
342
288
|
date.setHours(date.getHours() - 12);
|
343
289
|
}
|
344
|
-
|
345
290
|
if (period === this.periodsArray[1] && date.getHours() < 12) {
|
346
291
|
date.setHours(date.getHours() + 12);
|
347
292
|
}
|
348
|
-
|
349
293
|
this.setValue(date);
|
350
294
|
}
|
351
|
-
|
352
295
|
isValid(value) {
|
353
296
|
return value === "" || this.getFormat().parse(value);
|
354
297
|
}
|
355
|
-
|
356
298
|
normalizeValue(value) {
|
357
299
|
if (value === "") {
|
358
300
|
return value;
|
359
301
|
}
|
360
|
-
|
361
302
|
return this.getFormat().format(this.getFormat().parse(value));
|
362
303
|
}
|
363
|
-
|
364
304
|
get _formatPattern() {
|
365
305
|
const pattern = this.formatPattern;
|
366
306
|
const hasHours = !!pattern.match(/H/i);
|
@@ -368,83 +308,66 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
368
308
|
const localeData = (0, _getCachedLocaleDataInstance.default)((0, _getLocale.default)());
|
369
309
|
return fallback ? localeData.getCombinedDateTimePattern("medium", "medium", this._primaryCalendarType) : pattern;
|
370
310
|
}
|
371
|
-
|
372
311
|
get _isPattern() {
|
373
312
|
return this._formatPattern !== "medium" && this._formatPattern !== "short" && this._formatPattern !== "long";
|
374
313
|
}
|
314
|
+
|
375
315
|
/**
|
376
316
|
* Event handler for the "click" and "focusin" events of the sliders
|
377
317
|
* @param event
|
378
318
|
*/
|
379
|
-
|
380
|
-
|
381
319
|
selectSlider(event) {
|
382
320
|
this._setCurrentSlider(event.target.closest("[ui5-wheelslider]").getAttribute("data-sap-slider"));
|
383
321
|
}
|
384
|
-
|
385
322
|
_setCurrentSlider(slider) {
|
386
323
|
if (this._currentSlider === slider) {
|
387
324
|
return;
|
388
325
|
}
|
389
|
-
|
390
326
|
this._currentSlider = slider;
|
391
327
|
this.fireEvent("slider-change", {
|
392
328
|
slider
|
393
329
|
});
|
394
330
|
}
|
395
|
-
|
396
331
|
get _currentSliderDOM() {
|
397
332
|
return this.shadowRoot.querySelector(`[data-sap-slider="${this._currentSlider}"]`);
|
398
333
|
}
|
399
|
-
|
400
334
|
get _activeSliders() {
|
401
335
|
return ["hours", "minutes", "seconds", "periods"].filter(slider => this[`_has${capitalizeFirst(slider)}Slider`]);
|
402
336
|
}
|
403
|
-
|
404
337
|
_onfocusin(event) {
|
405
338
|
if (!this._currentSlider) {
|
406
339
|
this._setCurrentSlider(this._activeSliders[0]);
|
407
340
|
}
|
408
|
-
|
409
341
|
if (event.target === event.currentTarget) {
|
410
342
|
this._currentSliderDOM.focus();
|
411
343
|
}
|
412
344
|
}
|
413
|
-
|
414
345
|
_onfocusout(event) {
|
415
346
|
if (!this.shadowRoot.contains(event.relatedTarget)) {
|
416
347
|
this._setCurrentSlider("");
|
417
348
|
}
|
418
349
|
}
|
419
|
-
|
420
350
|
async _onkeydown(event) {
|
421
351
|
if (!((0, _Keys.isLeft)(event) || (0, _Keys.isRight)(event))) {
|
422
352
|
return;
|
423
353
|
}
|
424
|
-
|
425
354
|
event.preventDefault();
|
426
355
|
const activeSliders = this._activeSliders;
|
427
356
|
const activeSlider = event.target.closest("[ui5-wheelslider]").getAttribute("data-sap-slider");
|
428
357
|
let index = activeSliders.indexOf(activeSlider);
|
429
|
-
|
430
358
|
if ((0, _Keys.isLeft)(event)) {
|
431
359
|
index = index === 0 ? activeSliders.length - 1 : index - 1;
|
432
360
|
} else if ((0, _Keys.isRight)(event)) {
|
433
361
|
index = index === activeSliders.length - 1 ? 0 : index + 1;
|
434
362
|
}
|
435
|
-
|
436
363
|
this._setCurrentSlider(activeSliders[index]);
|
437
|
-
|
438
364
|
this._currentSliderDOM.focus();
|
439
365
|
}
|
440
|
-
|
441
366
|
_handleWheel(e) {
|
442
367
|
e.preventDefault();
|
443
368
|
}
|
444
|
-
|
445
369
|
getFormat() {
|
446
370
|
let dateFormat;
|
447
|
-
|
448
371
|
if (this._isPattern) {
|
449
372
|
dateFormat = _DateFormat.default.getInstance({
|
450
373
|
calendarType: this._calendarType,
|
@@ -456,38 +379,29 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
456
379
|
style: this._formatPattern
|
457
380
|
});
|
458
381
|
}
|
459
|
-
|
460
382
|
return dateFormat;
|
461
383
|
}
|
462
|
-
|
463
384
|
formatValue(date) {
|
464
385
|
return this.getFormat().format(date);
|
465
386
|
}
|
466
|
-
|
467
387
|
get dateValue() {
|
468
388
|
return this.value ? this.getFormat().parse(this.value) : new Date();
|
469
389
|
}
|
470
|
-
|
471
390
|
get validDateValue() {
|
472
391
|
return this.isValid(this.value) ? this.dateValue : new Date();
|
473
392
|
}
|
474
|
-
|
475
393
|
get hoursSliderTitle() {
|
476
394
|
return TimeSelection.i18nBundle.getText(_i18nDefaults.TIMEPICKER_HOURS_LABEL);
|
477
395
|
}
|
478
|
-
|
479
396
|
get minutesSliderTitle() {
|
480
397
|
return TimeSelection.i18nBundle.getText(_i18nDefaults.TIMEPICKER_MINUTES_LABEL);
|
481
398
|
}
|
482
|
-
|
483
399
|
get secondsSliderTitle() {
|
484
400
|
return TimeSelection.i18nBundle.getText(_i18nDefaults.TIMEPICKER_SECONDS_LABEL);
|
485
401
|
}
|
486
|
-
|
487
402
|
get periodSliderTitle() {
|
488
403
|
return TimeSelection.i18nBundle.getText(_i18nDefaults.TIMEPICKER_PERIODS_LABEL);
|
489
404
|
}
|
490
|
-
|
491
405
|
get classes() {
|
492
406
|
return {
|
493
407
|
root: {
|
@@ -496,9 +410,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
496
410
|
}
|
497
411
|
};
|
498
412
|
}
|
499
|
-
|
500
413
|
}
|
501
|
-
|
502
414
|
TimeSelection.define();
|
503
415
|
var _default = TimeSelection;
|
504
416
|
_exports.default = _default;
|
@@ -11,10 +11,9 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
11
11
|
_WrappingType = _interopRequireDefault(_WrappingType);
|
12
12
|
_TitleTemplate = _interopRequireDefault(_TitleTemplate);
|
13
13
|
_Title = _interopRequireDefault(_Title);
|
14
|
-
|
15
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
16
|
-
|
17
15
|
// Template
|
16
|
+
|
18
17
|
// Styles
|
19
18
|
|
20
19
|
/**
|
@@ -22,9 +21,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
22
21
|
*/
|
23
22
|
const metadata = {
|
24
23
|
tag: "ui5-title",
|
25
|
-
properties:
|
26
|
-
/** @lends sap.ui.webcomponents.main.Title.prototype */
|
27
|
-
{
|
24
|
+
properties: /** @lends sap.ui.webcomponents.main.Title.prototype */{
|
28
25
|
/**
|
29
26
|
* Defines how the text of a component will be displayed when there is not enough space.
|
30
27
|
* Available options are:
|
@@ -41,7 +38,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
41
38
|
type: _WrappingType.default,
|
42
39
|
defaultValue: _WrappingType.default.None
|
43
40
|
},
|
44
|
-
|
45
41
|
/**
|
46
42
|
* Defines the component level.
|
47
43
|
* Available options are: <code>"H6"</code> to <code>"H1"</code>.
|
@@ -55,9 +51,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
55
51
|
defaultValue: _TitleLevel.default.H2
|
56
52
|
}
|
57
53
|
},
|
58
|
-
slots:
|
59
|
-
/** @lends sap.ui.webcomponents.main.Title.prototype */
|
60
|
-
{
|
54
|
+
slots: /** @lends sap.ui.webcomponents.main.Title.prototype */{
|
61
55
|
/**
|
62
56
|
* Defines the text of the component.
|
63
57
|
* <br><br>
|
@@ -72,6 +66,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
72
66
|
}
|
73
67
|
}
|
74
68
|
};
|
69
|
+
|
75
70
|
/**
|
76
71
|
* @class
|
77
72
|
*
|
@@ -91,54 +86,41 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
91
86
|
* @tagname ui5-title
|
92
87
|
* @public
|
93
88
|
*/
|
94
|
-
|
95
89
|
class Title extends _UI5Element.default {
|
96
90
|
static get metadata() {
|
97
91
|
return metadata;
|
98
92
|
}
|
99
|
-
|
100
93
|
static get render() {
|
101
94
|
return _LitRenderer.default;
|
102
95
|
}
|
103
|
-
|
104
96
|
static get template() {
|
105
97
|
return _TitleTemplate.default;
|
106
98
|
}
|
107
|
-
|
108
99
|
static get styles() {
|
109
100
|
return _Title.default;
|
110
101
|
}
|
111
|
-
|
112
102
|
get normalizedLevel() {
|
113
103
|
return this.level.toLowerCase();
|
114
104
|
}
|
115
|
-
|
116
105
|
get h1() {
|
117
106
|
return this.normalizedLevel === "h1";
|
118
107
|
}
|
119
|
-
|
120
108
|
get h2() {
|
121
109
|
return this.normalizedLevel === "h2";
|
122
110
|
}
|
123
|
-
|
124
111
|
get h3() {
|
125
112
|
return this.normalizedLevel === "h3";
|
126
113
|
}
|
127
|
-
|
128
114
|
get h4() {
|
129
115
|
return this.normalizedLevel === "h4";
|
130
116
|
}
|
131
|
-
|
132
117
|
get h5() {
|
133
118
|
return this.normalizedLevel === "h5";
|
134
119
|
}
|
135
|
-
|
136
120
|
get h6() {
|
137
121
|
return this.normalizedLevel === "h6";
|
138
122
|
}
|
139
|
-
|
140
123
|
}
|
141
|
-
|
142
124
|
Title.define();
|
143
125
|
var _default = Title;
|
144
126
|
_exports.default = _default;
|