@openui5/sap.ui.webc.main 1.111.1 → 1.112.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/sap/ui/webc/main/.library +1 -1
- package/src/sap/ui/webc/main/Avatar.js +1 -1
- package/src/sap/ui/webc/main/AvatarGroup.js +1 -1
- package/src/sap/ui/webc/main/Badge.js +1 -1
- package/src/sap/ui/webc/main/Breadcrumbs.js +1 -1
- package/src/sap/ui/webc/main/BreadcrumbsItem.js +1 -1
- package/src/sap/ui/webc/main/BusyIndicator.js +1 -1
- package/src/sap/ui/webc/main/Button.js +1 -1
- package/src/sap/ui/webc/main/Calendar.js +1 -1
- package/src/sap/ui/webc/main/CalendarDate.js +1 -1
- package/src/sap/ui/webc/main/Card.js +1 -1
- package/src/sap/ui/webc/main/CardHeader.js +1 -1
- package/src/sap/ui/webc/main/Carousel.js +1 -1
- package/src/sap/ui/webc/main/CheckBox.js +1 -1
- package/src/sap/ui/webc/main/ColorPalette.js +1 -1
- package/src/sap/ui/webc/main/ColorPaletteItem.js +1 -1
- package/src/sap/ui/webc/main/ColorPalettePopover.js +1 -1
- package/src/sap/ui/webc/main/ColorPicker.js +1 -1
- package/src/sap/ui/webc/main/ComboBox.js +1 -1
- package/src/sap/ui/webc/main/ComboBoxGroupItem.js +1 -1
- package/src/sap/ui/webc/main/ComboBoxItem.js +1 -1
- package/src/sap/ui/webc/main/CustomListItem.js +1 -1
- package/src/sap/ui/webc/main/DatePicker.js +2 -2
- package/src/sap/ui/webc/main/DateRangePicker.js +2 -2
- package/src/sap/ui/webc/main/DateTimePicker.js +2 -2
- package/src/sap/ui/webc/main/Dialog.js +1 -1
- package/src/sap/ui/webc/main/FileUploader.js +1 -1
- package/src/sap/ui/webc/main/GroupHeaderListItem.js +1 -1
- package/src/sap/ui/webc/main/Icon.js +5 -11
- package/src/sap/ui/webc/main/Input.js +1 -1
- package/src/sap/ui/webc/main/Label.js +1 -1
- package/src/sap/ui/webc/main/Link.js +1 -1
- package/src/sap/ui/webc/main/List.js +1 -1
- package/src/sap/ui/webc/main/Menu.js +1 -1
- package/src/sap/ui/webc/main/MenuItem.js +1 -1
- package/src/sap/ui/webc/main/MessageStrip.js +1 -1
- package/src/sap/ui/webc/main/MultiComboBox.js +1 -1
- package/src/sap/ui/webc/main/MultiComboBoxGroupItem.js +1 -1
- package/src/sap/ui/webc/main/MultiComboBoxItem.js +1 -1
- package/src/sap/ui/webc/main/MultiInput.js +1 -1
- package/src/sap/ui/webc/main/Option.js +1 -1
- package/src/sap/ui/webc/main/Panel.js +1 -1
- package/src/sap/ui/webc/main/Popover.js +1 -1
- package/src/sap/ui/webc/main/ProgressIndicator.js +1 -1
- package/src/sap/ui/webc/main/RadioButton.js +1 -1
- package/src/sap/ui/webc/main/RangeSlider.js +1 -1
- package/src/sap/ui/webc/main/RatingIndicator.js +1 -1
- package/src/sap/ui/webc/main/ResponsivePopover.js +1 -1
- package/src/sap/ui/webc/main/SegmentedButton.js +1 -1
- package/src/sap/ui/webc/main/SegmentedButtonItem.js +1 -1
- package/src/sap/ui/webc/main/Select.js +1 -1
- package/src/sap/ui/webc/main/Slider.js +1 -1
- package/src/sap/ui/webc/main/SplitButton.js +1 -1
- package/src/sap/ui/webc/main/StandardListItem.js +1 -1
- package/src/sap/ui/webc/main/StepInput.js +1 -1
- package/src/sap/ui/webc/main/SuggestionGroupItem.js +1 -1
- package/src/sap/ui/webc/main/SuggestionItem.js +1 -1
- package/src/sap/ui/webc/main/Switch.js +1 -1
- package/src/sap/ui/webc/main/Tab.js +1 -1
- package/src/sap/ui/webc/main/TabContainer.js +1 -1
- package/src/sap/ui/webc/main/TabSeparator.js +1 -1
- package/src/sap/ui/webc/main/Table.js +1 -1
- package/src/sap/ui/webc/main/TableCell.js +1 -1
- package/src/sap/ui/webc/main/TableColumn.js +1 -1
- package/src/sap/ui/webc/main/TableGroupRow.js +1 -1
- package/src/sap/ui/webc/main/TableRow.js +1 -1
- package/src/sap/ui/webc/main/TextArea.js +1 -1
- package/src/sap/ui/webc/main/TimePicker.js +2 -2
- package/src/sap/ui/webc/main/Title.js +1 -1
- package/src/sap/ui/webc/main/Toast.js +1 -1
- package/src/sap/ui/webc/main/ToggleButton.js +1 -1
- package/src/sap/ui/webc/main/Token.js +1 -1
- package/src/sap/ui/webc/main/Tree.js +1 -1
- package/src/sap/ui/webc/main/TreeItem.js +1 -1
- package/src/sap/ui/webc/main/changeHandler/ChangeLinkTarget.js +1 -1
- package/src/sap/ui/webc/main/library.config.js +6 -0
- package/src/sap/ui/webc/main/library.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/Avatar.js +7 -51
- package/src/sap/ui/webc/main/thirdparty/AvatarGroup.js +34 -100
- package/src/sap/ui/webc/main/thirdparty/Badge.js +4 -23
- package/src/sap/ui/webc/main/thirdparty/Breadcrumbs.js +43 -145
- package/src/sap/ui/webc/main/thirdparty/BreadcrumbsItem.js +4 -17
- package/src/sap/ui/webc/main/thirdparty/BusyIndicator.js +7 -36
- package/src/sap/ui/webc/main/thirdparty/Button.js +6 -73
- package/src/sap/ui/webc/main/thirdparty/Calendar.js +19 -74
- package/src/sap/ui/webc/main/thirdparty/CalendarDate.js +2 -8
- package/src/sap/ui/webc/main/thirdparty/CalendarHeader.js +1 -29
- package/src/sap/ui/webc/main/thirdparty/CalendarPart.js +6 -26
- package/src/sap/ui/webc/main/thirdparty/Card.js +5 -26
- package/src/sap/ui/webc/main/thirdparty/CardHeader.js +4 -47
- package/src/sap/ui/webc/main/thirdparty/Carousel.js +17 -107
- package/src/sap/ui/webc/main/thirdparty/CheckBox.js +9 -63
- package/src/sap/ui/webc/main/thirdparty/ColorPalette.js +5 -83
- package/src/sap/ui/webc/main/thirdparty/ColorPaletteItem.js +4 -26
- package/src/sap/ui/webc/main/thirdparty/ColorPalettePopover.js +7 -41
- package/src/sap/ui/webc/main/thirdparty/ColorPicker.js +51 -123
- package/src/sap/ui/webc/main/thirdparty/ComboBox.js +24 -212
- package/src/sap/ui/webc/main/thirdparty/ComboBoxGroupItem.js +5 -18
- package/src/sap/ui/webc/main/thirdparty/ComboBoxItem.js +2 -9
- package/src/sap/ui/webc/main/thirdparty/CustomListItem.js +3 -20
- package/src/sap/ui/webc/main/thirdparty/DateComponentBase.js +2 -25
- package/src/sap/ui/webc/main/thirdparty/DatePicker.js +28 -127
- package/src/sap/ui/webc/main/thirdparty/DateRangePicker.js +20 -85
- package/src/sap/ui/webc/main/thirdparty/DateTimePicker.js +20 -66
- package/src/sap/ui/webc/main/thirdparty/DayPicker.js +32 -158
- package/src/sap/ui/webc/main/thirdparty/Dialog.js +18 -104
- package/src/sap/ui/webc/main/thirdparty/DurationPicker.js +11 -56
- package/src/sap/ui/webc/main/thirdparty/FileUploader.js +9 -83
- package/src/sap/ui/webc/main/thirdparty/Filters.js +0 -9
- package/src/sap/ui/webc/main/thirdparty/GroupHeaderListItem.js +5 -20
- package/src/sap/ui/webc/main/thirdparty/Icon.js +8 -53
- package/src/sap/ui/webc/main/thirdparty/Input.js +75 -273
- package/src/sap/ui/webc/main/thirdparty/Interfaces.js +19 -20
- package/src/sap/ui/webc/main/thirdparty/Label.js +5 -21
- package/src/sap/ui/webc/main/thirdparty/Link.js +5 -48
- package/src/sap/ui/webc/main/thirdparty/List.js +33 -183
- package/src/sap/ui/webc/main/thirdparty/ListItem.js +10 -76
- package/src/sap/ui/webc/main/thirdparty/ListItemBase.js +5 -37
- package/src/sap/ui/webc/main/thirdparty/Menu.js +8 -91
- package/src/sap/ui/webc/main/thirdparty/MenuItem.js +3 -21
- package/src/sap/ui/webc/main/thirdparty/MessageStrip.js +4 -34
- package/src/sap/ui/webc/main/thirdparty/MonthPicker.js +12 -61
- package/src/sap/ui/webc/main/thirdparty/MultiComboBox.js +25 -299
- package/src/sap/ui/webc/main/thirdparty/MultiComboBoxGroupItem.js +5 -18
- package/src/sap/ui/webc/main/thirdparty/MultiComboBoxItem.js +2 -9
- package/src/sap/ui/webc/main/thirdparty/MultiInput.js +10 -71
- package/src/sap/ui/webc/main/thirdparty/Option.js +5 -22
- package/src/sap/ui/webc/main/thirdparty/Panel.js +4 -62
- package/src/sap/ui/webc/main/thirdparty/Popover.js +28 -143
- package/src/sap/ui/webc/main/thirdparty/Popup.js +20 -118
- package/src/sap/ui/webc/main/thirdparty/ProgressIndicator.js +6 -38
- package/src/sap/ui/webc/main/thirdparty/RadioButton.js +8 -76
- package/src/sap/ui/webc/main/thirdparty/RadioButtonGroup.js +8 -54
- package/src/sap/ui/webc/main/thirdparty/RangeSlider.js +79 -170
- package/src/sap/ui/webc/main/thirdparty/RatingIndicator.js +6 -49
- package/src/sap/ui/webc/main/thirdparty/ResponsivePopover.js +5 -35
- package/src/sap/ui/webc/main/thirdparty/SegmentedButton.js +9 -57
- package/src/sap/ui/webc/main/thirdparty/SegmentedButtonItem.js +2 -15
- package/src/sap/ui/webc/main/thirdparty/Select.js +15 -131
- package/src/sap/ui/webc/main/thirdparty/Slider.js +24 -65
- package/src/sap/ui/webc/main/thirdparty/SliderBase.js +74 -164
- package/src/sap/ui/webc/main/thirdparty/SplitButton.js +6 -67
- package/src/sap/ui/webc/main/thirdparty/StandardListItem.js +3 -25
- package/src/sap/ui/webc/main/thirdparty/StepInput.js +12 -106
- package/src/sap/ui/webc/main/thirdparty/SuggestionGroupItem.js +5 -17
- package/src/sap/ui/webc/main/thirdparty/SuggestionItem.js +4 -22
- package/src/sap/ui/webc/main/thirdparty/SuggestionListItem.js +2 -12
- package/src/sap/ui/webc/main/thirdparty/Switch.js +6 -41
- package/src/sap/ui/webc/main/thirdparty/Tab.js +6 -83
- package/src/sap/ui/webc/main/thirdparty/TabContainer.js +39 -259
- package/src/sap/ui/webc/main/thirdparty/TabSeparator.js +2 -17
- package/src/sap/ui/webc/main/thirdparty/Table.js +25 -185
- package/src/sap/ui/webc/main/thirdparty/TableCell.js +4 -18
- package/src/sap/ui/webc/main/thirdparty/TableColumn.js +4 -18
- package/src/sap/ui/webc/main/thirdparty/TableGroupRow.js +5 -28
- package/src/sap/ui/webc/main/thirdparty/TableRow.js +7 -81
- package/src/sap/ui/webc/main/thirdparty/TextArea.js +7 -97
- package/src/sap/ui/webc/main/thirdparty/TimePicker.js +3 -16
- package/src/sap/ui/webc/main/thirdparty/TimePickerBase.js +14 -93
- package/src/sap/ui/webc/main/thirdparty/TimeSelection.js +7 -95
- package/src/sap/ui/webc/main/thirdparty/Title.js +4 -22
- package/src/sap/ui/webc/main/thirdparty/Toast.js +8 -31
- package/src/sap/ui/webc/main/thirdparty/ToggleButton.js +2 -14
- package/src/sap/ui/webc/main/thirdparty/Token.js +4 -36
- package/src/sap/ui/webc/main/thirdparty/Tokenizer.js +12 -117
- package/src/sap/ui/webc/main/thirdparty/Tree.js +7 -53
- package/src/sap/ui/webc/main/thirdparty/TreeItem.js +4 -22
- package/src/sap/ui/webc/main/thirdparty/TreeListItem.js +5 -45
- package/src/sap/ui/webc/main/thirdparty/WheelSlider.js +6 -93
- package/src/sap/ui/webc/main/thirdparty/YearPicker.js +22 -72
- package/src/sap/ui/webc/main/thirdparty/features/ColorPaletteMoreColors.js +0 -8
- package/src/sap/ui/webc/main/thirdparty/features/InputElementsFormSupport.js +2 -19
- package/src/sap/ui/webc/main/thirdparty/features/InputSuggestions.js +24 -165
- package/src/sap/ui/webc/main/thirdparty/generated/json-imports/Themes.js +0 -16
- package/src/sap/ui/webc/main/thirdparty/generated/json-imports/i18n.js +0 -52
- package/src/sap/ui/webc/main/thirdparty/generated/templates/AvatarGroupTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/AvatarTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BadgeTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BreadcrumbsPopoverTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BreadcrumbsTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BusyIndicatorTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ButtonTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CalendarHeaderTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CalendarTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CardHeaderTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CardTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CarouselTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CheckBoxTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteDialogTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteItemTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPalettePopoverTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPickerTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ComboBoxPopoverTemplate.lit.js +1 -18
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ComboBoxTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CustomListItemTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DatePickerPopoverTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DatePickerTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DateTimePickerPopoverTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DayPickerTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DialogTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/FileUploaderPopoverTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/FileUploaderTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/GroupHeaderListItemTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/IconTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/InputPopoverTemplate.lit.js +1 -22
- package/src/sap/ui/webc/main/thirdparty/generated/templates/InputTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/LabelTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/LinkTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ListItemTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ListTemplate.lit.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MenuTemplate.lit.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MessageStripTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MonthPickerTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiComboBoxPopoverTemplate.lit.js +1 -25
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiComboBoxTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiInputTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PanelTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PopoverTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PopupBlockLayerTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PopupTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ProgressIndicatorTemplate.lit.js +1 -12
- package/src/sap/ui/webc/main/thirdparty/generated/templates/RadioButtonTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/RangeSliderTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/RatingIndicatorTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ResponsivePopoverTemplate.lit.js +1 -14
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SegmentedButtonItemTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SegmentedButtonTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SelectPopoverTemplate.lit.js +1 -18
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SelectTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SliderBaseTemplate.lit.js +1 -9
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SliderTemplate.lit.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SplitButtonTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/StandardListItemTemplate.lit.js +1 -19
- package/src/sap/ui/webc/main/thirdparty/generated/templates/StepInputTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SuggestionListItemTemplate.lit.js +1 -22
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SwitchTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabContainerPopoverTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabContainerTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabInOverflowTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabInStripTemplate.lit.js +1 -9
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabSeparatorInOverflowTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabSeparatorInStripTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableCellTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableColumnTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableGroupRowTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableRowTemplate.lit.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TextAreaPopoverTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TextAreaTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TimePickerPopoverTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TimePickerTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TimeSelectionTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TitleTemplate.lit.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ToastTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ToggleButtonTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenizerPopoverTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenizerTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TreeListItemTemplate.lit.js +1 -16
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TreeTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/WheelSliderTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/YearPickerTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Avatar.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/AvatarGroup.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Badge.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Breadcrumbs.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/BreadcrumbsPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/BrowserScrollbar.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/BusyIndicator.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Button.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Calendar.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CalendarHeader.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Card.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CardHeader.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Carousel.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CheckBox.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPalette.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPaletteItem.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPalettePopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPaletteStaticArea.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ComboBox.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ComboBoxPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CustomListItem.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DatePicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DatePickerPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DateRangePicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DateTimePicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DateTimePickerPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DayPicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Dialog.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/FileUploader.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/GroupHeaderListItem.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/GrowingButton.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Icon.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Input.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/InputIcon.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/InvisibleTextStyles.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Label.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Link.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/List.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ListItem.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ListItemBase.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Menu.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MessageStrip.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MonthPicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MultiComboBox.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MultiComboBoxPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MultiInput.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Panel.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Popover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Popup.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/PopupGlobal.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/PopupStaticAreaStyles.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/PopupsCommon.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ProgressIndicator.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/RadioButton.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/RangeSlider.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/RatingIndicator.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ResponsivePopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ResponsivePopoverCommon.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SegmentedButton.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Select.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SelectPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SliderBase.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SplitButton.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/StepInput.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Suggestions.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Switch.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Tab.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabContainer.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabInOverflow.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabInStrip.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabSemanticIcon.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabSeparatorInOverflow.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabSeparatorInStrip.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Table.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableCell.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableColumn.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableGroupRow.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableRow.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TapHighlightColor.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TextArea.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TimePicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TimePickerPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TimeSelection.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Title.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Toast.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ToggleButton.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Token.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Tokenizer.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TokenizerPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Tree.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TreeListItem.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ValueStateMessage.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/WheelSlider.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/YearPicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/popup-utils/OpenedPopupsRegistry.js +0 -12
- package/src/sap/ui/webc/main/thirdparty/popup-utils/PopoverRegistry.js +4 -33
- package/src/sap/ui/webc/main/thirdparty/timepicker-utils/TimeSlider.js +0 -26
- package/src/sap/ui/webc/main/thirdparty/types/AvatarColorScheme.js +1 -15
- package/src/sap/ui/webc/main/thirdparty/types/AvatarGroupType.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/AvatarShape.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/AvatarSize.js +1 -9
- package/src/sap/ui/webc/main/thirdparty/types/BreadcrumbsDesign.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/BreadcrumbsSeparatorStyle.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/types/BusyIndicatorSize.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/ButtonDesign.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/types/CalendarSelectionMode.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/CarouselArrowsPlacement.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/GrowingMode.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/HasPopup.js +1 -9
- package/src/sap/ui/webc/main/thirdparty/types/InputType.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/types/LinkDesign.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/ListGrowingMode.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/ListItemType.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/ListMode.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/types/ListSeparators.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/MessageStripDesign.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/types/PanelAccessibleRole.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/PopoverHorizontalAlign.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/types/PopoverPlacementType.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/types/PopoverVerticalAlign.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/types/Priority.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/types/SemanticColor.js +1 -9
- package/src/sap/ui/webc/main/thirdparty/types/SwitchDesign.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/TabContainerTabsPlacement.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/TabLayout.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/TableGrowingMode.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/TableMode.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/TableRowType.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/TabsOverflowMode.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/TitleLevel.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/types/ToastPlacement.js +1 -13
- package/src/sap/ui/webc/main/thirdparty/types/WrappingType.js +1 -6
- package/ui5.yaml +1 -1
@@ -15,9 +15,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
15
15
|
_Slider = _interopRequireDefault(_Slider);
|
16
16
|
_Label = _interopRequireDefault(_Label);
|
17
17
|
_ColorPicker = _interopRequireDefault(_ColorPicker);
|
18
|
-
|
19
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
20
|
-
|
21
19
|
// Styles
|
22
20
|
|
23
21
|
/**
|
@@ -25,9 +23,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
25
23
|
*/
|
26
24
|
const metadata = {
|
27
25
|
tag: "ui5-color-picker",
|
28
|
-
properties:
|
29
|
-
/** @lends sap.ui.webcomponents.main.ColorPicker.prototype */
|
30
|
-
{
|
26
|
+
properties: /** @lends sap.ui.webcomponents.main.ColorPicker.prototype */{
|
31
27
|
/**
|
32
28
|
* Defines the currently selected color of the component.
|
33
29
|
* <br><br>
|
@@ -39,7 +35,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
39
35
|
type: _CSSColor.default,
|
40
36
|
defaultValue: "rgba(255, 255, 255, 1)"
|
41
37
|
},
|
42
|
-
|
43
38
|
/**
|
44
39
|
* Defines the HEX code of the currently selected color
|
45
40
|
* *Note*: If Alpha(transperancy) is set it is not included in this property. Use <code>color</code> property.
|
@@ -51,7 +46,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
51
46
|
defaultValue: "ffffff",
|
52
47
|
noAttribute: true
|
53
48
|
},
|
54
|
-
|
55
49
|
/**
|
56
50
|
* Defines the current main color which is selected via the hue slider and is shown in the main color square.
|
57
51
|
* @type {string}
|
@@ -64,14 +58,12 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
64
58
|
_color: {
|
65
59
|
type: Object
|
66
60
|
},
|
67
|
-
|
68
61
|
/**
|
69
62
|
* @private
|
70
63
|
*/
|
71
64
|
_selectedCoordinates: {
|
72
65
|
type: Object
|
73
66
|
},
|
74
|
-
|
75
67
|
/**
|
76
68
|
* @private
|
77
69
|
*/
|
@@ -79,7 +71,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
79
71
|
type: _Float.default,
|
80
72
|
defaultValue: 1
|
81
73
|
},
|
82
|
-
|
83
74
|
/**
|
84
75
|
* @private
|
85
76
|
*/
|
@@ -87,21 +78,18 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
87
78
|
type: _Integer.default,
|
88
79
|
defaultValue: 0
|
89
80
|
},
|
90
|
-
|
91
81
|
/**
|
92
82
|
* @private
|
93
83
|
*/
|
94
84
|
_isSelectedColorChanged: {
|
95
85
|
type: Boolean
|
96
86
|
},
|
97
|
-
|
98
87
|
/**
|
99
88
|
* @private
|
100
89
|
*/
|
101
90
|
_isHueValueChanged: {
|
102
91
|
type: Boolean
|
103
92
|
},
|
104
|
-
|
105
93
|
/**
|
106
94
|
* @private
|
107
95
|
*/
|
@@ -109,13 +97,10 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
109
97
|
type: Boolean
|
110
98
|
}
|
111
99
|
},
|
112
|
-
slots:
|
113
|
-
|
114
|
-
{//
|
100
|
+
slots: /** @lends sap.ui.webcomponents.main.ColorPicker.prototype */{
|
101
|
+
//
|
115
102
|
},
|
116
|
-
events:
|
117
|
-
/** @lends sap.ui.webcomponents.main.ColorPicker.prototype */
|
118
|
-
{
|
103
|
+
events: /** @lends sap.ui.webcomponents.main.ColorPicker.prototype */{
|
119
104
|
/**
|
120
105
|
* Fired when the the selected color is changed
|
121
106
|
*
|
@@ -125,6 +110,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
125
110
|
change: {}
|
126
111
|
}
|
127
112
|
};
|
113
|
+
|
128
114
|
/**
|
129
115
|
* @class
|
130
116
|
*
|
@@ -156,40 +142,35 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
156
142
|
* @tagname ui5-color-picker
|
157
143
|
* @public
|
158
144
|
*/
|
159
|
-
|
160
145
|
class ColorPicker extends _UI5Element.default {
|
161
146
|
static get metadata() {
|
162
147
|
return metadata;
|
163
148
|
}
|
164
|
-
|
165
149
|
static get render() {
|
166
150
|
return _LitRenderer.default;
|
167
151
|
}
|
168
|
-
|
169
152
|
static get styles() {
|
170
153
|
return _ColorPicker.default;
|
171
154
|
}
|
172
|
-
|
173
155
|
static get template() {
|
174
156
|
return _ColorPickerTemplate.default;
|
175
157
|
}
|
176
|
-
|
177
158
|
static get dependencies() {
|
178
159
|
return [_Input.default, _Slider.default, _Label.default];
|
179
160
|
}
|
180
|
-
|
181
161
|
static async onDefine() {
|
182
162
|
ColorPicker.i18nBundle = await (0, _i18nBundle.getI18nBundle)("@ui5/webcomponents");
|
183
163
|
}
|
184
|
-
|
185
164
|
constructor() {
|
186
|
-
super();
|
165
|
+
super();
|
187
166
|
|
167
|
+
// Bottom Right corner
|
188
168
|
this._selectedCoordinates = {
|
189
169
|
x: 256 - 6.5,
|
190
170
|
y: 256 - 6.5
|
191
|
-
};
|
171
|
+
};
|
192
172
|
|
173
|
+
// Default main color is red
|
193
174
|
this._mainColor = {
|
194
175
|
r: 255,
|
195
176
|
g: 0,
|
@@ -198,35 +179,29 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
198
179
|
this.selectedHue = 0;
|
199
180
|
this.mouseDown = false;
|
200
181
|
}
|
201
|
-
|
202
182
|
onBeforeRendering() {
|
203
183
|
// we have the color & _mainColor properties here
|
204
184
|
this._color = (0, _ColorConversion.getRGBColor)(this.color);
|
205
185
|
const tempColor = `rgba(${this._color.r}, ${this._color.g}, ${this._color.b}, 1)`;
|
206
|
-
|
207
186
|
this._setHex();
|
208
|
-
|
209
187
|
this._setValues();
|
210
|
-
|
211
188
|
this.style.setProperty("--ui5_Color_Picker_Progress_Container_Color", tempColor);
|
212
189
|
}
|
213
|
-
|
214
190
|
_applySliderStyles() {
|
215
191
|
const hueSlider = this.getDomRef().querySelector(".ui5-color-picker-hue-slider").shadowRoot,
|
216
|
-
|
217
|
-
|
192
|
+
alphaSlider = this.getDomRef().querySelector(".ui5-color-picker-alpha-slider").shadowRoot;
|
218
193
|
if (hueSlider.children.length === 0 || alphaSlider.children.length === 0) {
|
219
194
|
return;
|
220
195
|
}
|
221
|
-
|
222
196
|
const hueProgressSlider = hueSlider.querySelector(".ui5-slider-progress-container"),
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
197
|
+
hueHandle = hueSlider.querySelector(".ui5-slider-handle"),
|
198
|
+
alphaProgressSlider = alphaSlider.querySelector(".ui5-slider-progress-container"),
|
199
|
+
alphaHandle = alphaSlider.querySelector(".ui5-slider-handle"),
|
200
|
+
linearGradientDirection = this.effectiveDir === "rtl" ? "right" : "left",
|
201
|
+
hueProgressSliderBackgroundImage = `${linearGradientDirection}, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00`,
|
202
|
+
alphaProgressSliderBackgroundImage = `${linearGradientDirection}, #fff, #979797`;
|
203
|
+
|
204
|
+
// ui5-slider::part(slider-handle)
|
230
205
|
hueHandle.style.width = "11px";
|
231
206
|
hueHandle.style.height = "1.25rem";
|
232
207
|
hueHandle.style.background = "transparent";
|
@@ -236,10 +211,12 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
236
211
|
alphaHandle.style.height = "1.25rem";
|
237
212
|
alphaHandle.style.background = "transparent";
|
238
213
|
alphaHandle.style.marginLeft = "-2px";
|
239
|
-
alphaHandle.style.marginTop = "1px";
|
214
|
+
alphaHandle.style.marginTop = "1px";
|
215
|
+
|
216
|
+
// ui5-slider::part(slider-handle)::after
|
240
217
|
// Skipped because it is pseudo element
|
241
|
-
// ui5-slider::part(progress-container)
|
242
218
|
|
219
|
+
// ui5-slider::part(progress-container)
|
243
220
|
hueProgressSlider.style.width = "calc(100% + 11px)";
|
244
221
|
hueProgressSlider.style.height = "18px";
|
245
222
|
hueProgressSlider.style.position = "absolute";
|
@@ -251,47 +228,44 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
251
228
|
alphaProgressSlider.style.position = "absolute";
|
252
229
|
alphaProgressSlider.style.marginTop = "-10px";
|
253
230
|
alphaProgressSlider.style.borderRadius = "0";
|
254
|
-
alphaProgressSlider.style.border = "1px solid #89919a";
|
231
|
+
alphaProgressSlider.style.border = "1px solid #89919a";
|
255
232
|
|
233
|
+
// ui5-slider.ui5-color-picker-hue-slider::part(progress-container)
|
256
234
|
hueProgressSlider.style.backgroundSize = "100%";
|
257
235
|
hueProgressSlider.style.backgroundImage = `-webkit-linear-gradient(${hueProgressSliderBackgroundImage}`;
|
258
236
|
hueProgressSlider.style.backgroundImage = `-moz-linear-gradient(${hueProgressSliderBackgroundImage}`;
|
259
237
|
hueProgressSlider.style.backgroundImage = `-ms-linear-gradient(${hueProgressSliderBackgroundImage}`;
|
260
238
|
hueProgressSlider.style.backgroundImage = `linear-gradient(${hueProgressSliderBackgroundImage}`;
|
261
|
-
hueProgressSlider.style.backgroundColor = "none";
|
239
|
+
hueProgressSlider.style.backgroundColor = "none";
|
262
240
|
|
241
|
+
// ui5-slider.ui5-color-picker-alpha-slider::part(progress-container)
|
263
242
|
alphaProgressSlider.style.backgroundImage = `-webkit-linear-gradient(${alphaProgressSliderBackgroundImage})`;
|
264
243
|
alphaProgressSlider.style.backgroundImage = `-moz-linear-gradient(${alphaProgressSliderBackgroundImage})`;
|
265
244
|
alphaProgressSlider.style.backgroundImage = `-ms-linear-gradient(${alphaProgressSliderBackgroundImage})`;
|
266
245
|
alphaProgressSlider.style.backgroundImage = `linear-gradient(${alphaProgressSliderBackgroundImage})`;
|
267
|
-
alphaProgressSlider.style.backgroundColor = "none";
|
246
|
+
alphaProgressSlider.style.backgroundColor = "none";
|
268
247
|
|
248
|
+
// ui5-slider::part(slider-progress)
|
269
249
|
hueSlider.querySelector(".ui5-slider-progress").style.background = "Transparent";
|
270
250
|
alphaSlider.querySelector(".ui5-slider-progress").style.background = "Transparent";
|
271
251
|
}
|
272
|
-
|
273
252
|
_handleMouseDown(event) {
|
274
253
|
this.mouseDown = true;
|
275
254
|
this.mouseIn = true;
|
276
|
-
|
277
255
|
this._changeSelectedColor(event.offsetX, event.offsetY);
|
278
256
|
}
|
279
|
-
|
280
257
|
_handleMouseUp() {
|
281
258
|
this.mouseDown = false;
|
282
259
|
}
|
283
|
-
|
284
260
|
_handleMouseOut(event) {
|
285
261
|
if (!this.mouseIn || !this.mouseDown) {
|
286
262
|
return;
|
287
263
|
}
|
288
|
-
|
289
264
|
const isLeft = event.offsetX <= 0;
|
290
265
|
const isUp = event.offsetY <= 0;
|
291
266
|
const isDown = event.offsetY >= event.target.offsetHeight;
|
292
267
|
const isRight = event.offsetX >= event.target.offsetWidth;
|
293
268
|
let x, y;
|
294
|
-
|
295
269
|
if (isLeft) {
|
296
270
|
x = 0;
|
297
271
|
} else if (isRight) {
|
@@ -299,7 +273,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
299
273
|
} else {
|
300
274
|
x = event.offsetX;
|
301
275
|
}
|
302
|
-
|
303
276
|
if (isUp) {
|
304
277
|
y = 0;
|
305
278
|
} else if (isDown) {
|
@@ -307,97 +280,79 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
307
280
|
} else {
|
308
281
|
y = event.offsetY;
|
309
282
|
}
|
310
|
-
|
311
283
|
this._changeSelectedColor(x, y);
|
312
|
-
|
313
284
|
this.mouseIn = false;
|
314
285
|
this.mouseDown = false;
|
315
286
|
}
|
316
|
-
|
317
287
|
_handleMouseMove(event) {
|
318
288
|
if (!this.mouseDown || !this.mouseIn) {
|
319
289
|
return;
|
320
290
|
}
|
321
|
-
|
322
291
|
this._changeSelectedColor(event.offsetX, event.offsetY);
|
323
292
|
}
|
324
|
-
|
325
293
|
_handleAlphaInput(event) {
|
326
294
|
this._alpha = parseFloat(event.target.value);
|
327
|
-
|
328
295
|
this._setColor(this._color);
|
329
296
|
}
|
330
|
-
|
331
297
|
_handleHueInput(event) {
|
332
298
|
this.selectedHue = event.target.value;
|
333
299
|
this._hue = this.selectedHue;
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
300
|
+
this._setMainColor(this._hue);
|
301
|
+
// Idication that changes to the hue value triggered as a result of user pressing over the hue slider.
|
338
302
|
this._isHueValueChanged = true;
|
339
|
-
|
340
303
|
const tempColor = this._calculateColorFromCoordinates(this._selectedCoordinates.x + 6.5, this._selectedCoordinates.y + 6.5);
|
341
|
-
|
342
304
|
if (tempColor) {
|
343
305
|
this._setColor((0, _ColorConversion.HSLToRGB)(tempColor));
|
344
306
|
}
|
345
307
|
}
|
346
|
-
|
347
308
|
_handleHEXChange(event) {
|
348
309
|
let newValue = event.target.value.toLowerCase();
|
349
|
-
const hexRegex = new RegExp("^[<0-9 abcdef]+$");
|
310
|
+
const hexRegex = new RegExp("^[<0-9 abcdef]+$");
|
350
311
|
|
312
|
+
// Shorthand Syntax
|
351
313
|
if (newValue.length === 3) {
|
352
314
|
newValue = `${newValue[0]}${newValue[0]}${newValue[1]}${newValue[1]}${newValue[2]}${newValue[2]}`;
|
353
315
|
}
|
354
|
-
|
355
316
|
if (newValue === this.hex) {
|
356
317
|
return;
|
357
318
|
}
|
358
|
-
|
359
319
|
this.hex = newValue;
|
360
|
-
|
361
320
|
if (newValue.length !== 6 || !hexRegex.test(newValue)) {
|
362
321
|
this._wrongHEX = true;
|
363
322
|
} else {
|
364
323
|
this._wrongHEX = false;
|
365
|
-
|
366
324
|
this._setColor((0, _ColorConversion.HEXToRGB)(this.hex));
|
367
325
|
}
|
368
326
|
}
|
369
|
-
|
370
327
|
_handleRGBInputsChange(event) {
|
371
328
|
const targetValue = parseInt(event.target.value) || 0;
|
372
329
|
let tempColor;
|
373
|
-
|
374
330
|
switch (event.target.id) {
|
375
331
|
case "red":
|
376
|
-
tempColor = {
|
332
|
+
tempColor = {
|
333
|
+
...this._color,
|
377
334
|
r: targetValue
|
378
335
|
};
|
379
336
|
break;
|
380
|
-
|
381
337
|
case "green":
|
382
|
-
tempColor = {
|
338
|
+
tempColor = {
|
339
|
+
...this._color,
|
383
340
|
g: targetValue
|
384
341
|
};
|
385
342
|
break;
|
386
|
-
|
387
343
|
case "blue":
|
388
|
-
tempColor = {
|
344
|
+
tempColor = {
|
345
|
+
...this._color,
|
389
346
|
b: targetValue
|
390
347
|
};
|
391
348
|
break;
|
392
|
-
|
393
349
|
default:
|
394
|
-
tempColor = {
|
350
|
+
tempColor = {
|
351
|
+
...this._color
|
395
352
|
};
|
396
353
|
}
|
397
|
-
|
398
354
|
this._setColor(tempColor);
|
399
355
|
}
|
400
|
-
|
401
356
|
_setMainColor(hueValue) {
|
402
357
|
if (hueValue <= 255) {
|
403
358
|
this._mainColor = {
|
@@ -437,58 +392,51 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
437
392
|
};
|
438
393
|
}
|
439
394
|
}
|
440
|
-
|
441
395
|
_handleAlphaChange(event) {
|
442
396
|
this._alpha = this._alpha < 0 ? 0 : this._alpha;
|
443
397
|
this._alpha = this._alpha > 1 ? 1 : this._alpha;
|
444
398
|
}
|
445
|
-
|
446
399
|
_changeSelectedColor(x, y) {
|
447
400
|
this._selectedCoordinates = {
|
448
401
|
x: x - 6.5,
|
449
402
|
// Center the coordinates, because of the width of the circle
|
450
403
|
y: y - 6.5 // Center the coordinates, because of the height of the circle
|
404
|
+
};
|
451
405
|
|
452
|
-
|
453
|
-
|
406
|
+
// Idication that changes to the color settings are triggered as a result of user pressing over the main color section.
|
454
407
|
this._isSelectedColorChanged = true;
|
455
|
-
|
456
408
|
const tempColor = this._calculateColorFromCoordinates(x, y);
|
457
|
-
|
458
409
|
if (tempColor) {
|
459
410
|
this._setColor((0, _ColorConversion.HSLToRGB)(tempColor));
|
460
411
|
}
|
461
412
|
}
|
462
|
-
|
463
413
|
_onkeydown(event) {
|
464
414
|
if ((0, _Keys.isEnter)(event)) {
|
465
415
|
this._handleHEXChange(event);
|
466
416
|
}
|
467
417
|
}
|
468
|
-
|
469
418
|
_calculateColorFromCoordinates(x, y) {
|
470
419
|
// By using the selected coordinates(x = Lightness, y = Saturation) and hue(selected from the hue slider)
|
471
420
|
// and HSL format, the color will be parsed to RGB
|
421
|
+
|
472
422
|
const h = this._hue / 4.25,
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
423
|
+
// 0 ≤ H < 360
|
424
|
+
// 0 ≤ S ≤ 1
|
425
|
+
s = 1 - +(Math.round(y / 256 + "e+2") + "e-2"),
|
426
|
+
// eslint-disable-line
|
427
|
+
// 0 ≤ V ≤ 1
|
428
|
+
l = +(Math.round(x / 256 + "e+2") + "e-2"); // eslint-disable-line
|
479
429
|
|
480
430
|
if (!s || !l) {
|
481
431
|
// The event is finished out of the main color section
|
482
432
|
return;
|
483
433
|
}
|
484
|
-
|
485
434
|
return {
|
486
435
|
h,
|
487
436
|
s,
|
488
437
|
l
|
489
438
|
};
|
490
439
|
}
|
491
|
-
|
492
440
|
_setColor(color = {
|
493
441
|
r: undefined,
|
494
442
|
g: undefined,
|
@@ -497,34 +445,27 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
497
445
|
this.color = `rgba(${color.r}, ${color.g}, ${color.b}, ${this._alpha})`;
|
498
446
|
this.fireEvent("change");
|
499
447
|
}
|
500
|
-
|
501
448
|
_setHex() {
|
502
449
|
let red = this._color.r.toString(16),
|
503
|
-
|
504
|
-
|
505
|
-
|
450
|
+
green = this._color.g.toString(16),
|
451
|
+
blue = this._color.b.toString(16);
|
506
452
|
if (red.length === 1) {
|
507
453
|
red = `0${red}`;
|
508
454
|
}
|
509
|
-
|
510
455
|
if (green.length === 1) {
|
511
456
|
green = `0${green}`;
|
512
457
|
}
|
513
|
-
|
514
458
|
if (blue.length === 1) {
|
515
459
|
blue = `0${blue}`;
|
516
460
|
}
|
517
|
-
|
518
461
|
this.hex = red + green + blue;
|
519
462
|
}
|
520
|
-
|
521
463
|
_setValues() {
|
522
464
|
const hslColours = (0, _ColorConversion.RGBToHSL)(this._color);
|
523
465
|
this._selectedCoordinates = {
|
524
466
|
x: Math.round(hslColours.l * 100) * 2.56 - 6.5,
|
525
467
|
// Center the coordinates, because of the width of the circle
|
526
468
|
y: 256 - Math.round(hslColours.s * 100) * 2.56 - 6.5 // Center the coordinates, because of the height of the circle
|
527
|
-
|
528
469
|
};
|
529
470
|
|
530
471
|
if (this._isSelectedColorChanged) {
|
@@ -537,46 +478,35 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
537
478
|
} else {
|
538
479
|
this._hue = Math.round(hslColours.h * 4.25);
|
539
480
|
}
|
540
|
-
|
541
481
|
this._setMainColor(this._hue);
|
542
482
|
}
|
543
|
-
|
544
483
|
get hueSliderLabel() {
|
545
484
|
return ColorPicker.i18nBundle.getText(_i18nDefaults.COLORPICKER_HUE_SLIDER);
|
546
485
|
}
|
547
|
-
|
548
486
|
get alphaSliderLabel() {
|
549
487
|
return ColorPicker.i18nBundle.getText(_i18nDefaults.COLORPICKER_ALPHA_SLIDER);
|
550
488
|
}
|
551
|
-
|
552
489
|
get hexInputLabel() {
|
553
490
|
return ColorPicker.i18nBundle.getText(_i18nDefaults.COLORPICKER_HEX);
|
554
491
|
}
|
555
|
-
|
556
492
|
get redInputLabel() {
|
557
493
|
return ColorPicker.i18nBundle.getText(_i18nDefaults.COLORPICKER_RED);
|
558
494
|
}
|
559
|
-
|
560
495
|
get greenInputLabel() {
|
561
496
|
return ColorPicker.i18nBundle.getText(_i18nDefaults.COLORPICKER_GREEN);
|
562
497
|
}
|
563
|
-
|
564
498
|
get blueInputLabel() {
|
565
499
|
return ColorPicker.i18nBundle.getText(_i18nDefaults.COLORPICKER_BLUE);
|
566
500
|
}
|
567
|
-
|
568
501
|
get alphaInputLabel() {
|
569
502
|
return ColorPicker.i18nBundle.getText(_i18nDefaults.COLORPICKER_ALPHA);
|
570
503
|
}
|
571
|
-
|
572
504
|
get inputsDisabled() {
|
573
505
|
return this._wrongHEX ? true : undefined;
|
574
506
|
}
|
575
|
-
|
576
507
|
get hexInputErrorState() {
|
577
508
|
return this._wrongHEX ? "Error" : undefined;
|
578
509
|
}
|
579
|
-
|
580
510
|
get styles() {
|
581
511
|
const linearGradientDirection = this.effectiveDir === "rtl" ? "right" : "left";
|
582
512
|
return {
|
@@ -595,9 +525,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
595
525
|
}
|
596
526
|
};
|
597
527
|
}
|
598
|
-
|
599
528
|
}
|
600
|
-
|
601
529
|
ColorPicker.define();
|
602
530
|
var _default = ColorPicker;
|
603
531
|
_exports.default = _default;
|