@openui5/sap.ui.webc.main 1.111.0 → 1.112.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/sap/ui/webc/main/.library +1 -1
- package/src/sap/ui/webc/main/Avatar.js +1 -1
- package/src/sap/ui/webc/main/AvatarGroup.js +1 -1
- package/src/sap/ui/webc/main/Badge.js +1 -1
- package/src/sap/ui/webc/main/Breadcrumbs.js +1 -1
- package/src/sap/ui/webc/main/BreadcrumbsItem.js +1 -1
- package/src/sap/ui/webc/main/BusyIndicator.js +1 -1
- package/src/sap/ui/webc/main/Button.js +1 -1
- package/src/sap/ui/webc/main/Calendar.js +1 -1
- package/src/sap/ui/webc/main/CalendarDate.js +1 -1
- package/src/sap/ui/webc/main/Card.js +1 -1
- package/src/sap/ui/webc/main/CardHeader.js +1 -1
- package/src/sap/ui/webc/main/Carousel.js +1 -1
- package/src/sap/ui/webc/main/CheckBox.js +1 -1
- package/src/sap/ui/webc/main/ColorPalette.js +1 -1
- package/src/sap/ui/webc/main/ColorPaletteItem.js +1 -1
- package/src/sap/ui/webc/main/ColorPalettePopover.js +1 -1
- package/src/sap/ui/webc/main/ColorPicker.js +1 -1
- package/src/sap/ui/webc/main/ComboBox.js +1 -1
- package/src/sap/ui/webc/main/ComboBoxGroupItem.js +1 -1
- package/src/sap/ui/webc/main/ComboBoxItem.js +1 -1
- package/src/sap/ui/webc/main/CustomListItem.js +1 -1
- package/src/sap/ui/webc/main/DatePicker.js +2 -2
- package/src/sap/ui/webc/main/DateRangePicker.js +2 -2
- package/src/sap/ui/webc/main/DateTimePicker.js +2 -2
- package/src/sap/ui/webc/main/Dialog.js +1 -1
- package/src/sap/ui/webc/main/FileUploader.js +1 -1
- package/src/sap/ui/webc/main/GroupHeaderListItem.js +1 -1
- package/src/sap/ui/webc/main/Icon.js +5 -11
- package/src/sap/ui/webc/main/Input.js +1 -1
- package/src/sap/ui/webc/main/Label.js +1 -1
- package/src/sap/ui/webc/main/Link.js +1 -1
- package/src/sap/ui/webc/main/List.js +1 -1
- package/src/sap/ui/webc/main/Menu.js +1 -1
- package/src/sap/ui/webc/main/MenuItem.js +1 -1
- package/src/sap/ui/webc/main/MessageStrip.js +1 -1
- package/src/sap/ui/webc/main/MultiComboBox.js +1 -1
- package/src/sap/ui/webc/main/MultiComboBoxGroupItem.js +1 -1
- package/src/sap/ui/webc/main/MultiComboBoxItem.js +1 -1
- package/src/sap/ui/webc/main/MultiInput.js +1 -1
- package/src/sap/ui/webc/main/Option.js +1 -1
- package/src/sap/ui/webc/main/Panel.js +1 -1
- package/src/sap/ui/webc/main/Popover.js +1 -1
- package/src/sap/ui/webc/main/ProgressIndicator.js +1 -1
- package/src/sap/ui/webc/main/RadioButton.js +1 -1
- package/src/sap/ui/webc/main/RangeSlider.js +1 -1
- package/src/sap/ui/webc/main/RatingIndicator.js +1 -1
- package/src/sap/ui/webc/main/ResponsivePopover.js +1 -1
- package/src/sap/ui/webc/main/SegmentedButton.js +1 -1
- package/src/sap/ui/webc/main/SegmentedButtonItem.js +1 -1
- package/src/sap/ui/webc/main/Select.js +1 -1
- package/src/sap/ui/webc/main/Slider.js +1 -1
- package/src/sap/ui/webc/main/SplitButton.js +1 -1
- package/src/sap/ui/webc/main/StandardListItem.js +1 -1
- package/src/sap/ui/webc/main/StepInput.js +1 -1
- package/src/sap/ui/webc/main/SuggestionGroupItem.js +1 -1
- package/src/sap/ui/webc/main/SuggestionItem.js +1 -1
- package/src/sap/ui/webc/main/Switch.js +1 -1
- package/src/sap/ui/webc/main/Tab.js +1 -1
- package/src/sap/ui/webc/main/TabContainer.js +1 -1
- package/src/sap/ui/webc/main/TabSeparator.js +1 -1
- package/src/sap/ui/webc/main/Table.js +1 -1
- package/src/sap/ui/webc/main/TableCell.js +1 -1
- package/src/sap/ui/webc/main/TableColumn.js +1 -1
- package/src/sap/ui/webc/main/TableGroupRow.js +1 -1
- package/src/sap/ui/webc/main/TableRow.js +1 -1
- package/src/sap/ui/webc/main/TextArea.js +1 -1
- package/src/sap/ui/webc/main/TimePicker.js +2 -2
- package/src/sap/ui/webc/main/Title.js +1 -1
- package/src/sap/ui/webc/main/Toast.js +1 -1
- package/src/sap/ui/webc/main/ToggleButton.js +1 -1
- package/src/sap/ui/webc/main/Token.js +1 -1
- package/src/sap/ui/webc/main/Tree.js +1 -1
- package/src/sap/ui/webc/main/TreeItem.js +1 -1
- package/src/sap/ui/webc/main/changeHandler/ChangeLinkTarget.js +1 -1
- package/src/sap/ui/webc/main/library.config.js +6 -0
- package/src/sap/ui/webc/main/library.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/Avatar.js +7 -51
- package/src/sap/ui/webc/main/thirdparty/AvatarGroup.js +34 -100
- package/src/sap/ui/webc/main/thirdparty/Badge.js +4 -23
- package/src/sap/ui/webc/main/thirdparty/Breadcrumbs.js +43 -145
- package/src/sap/ui/webc/main/thirdparty/BreadcrumbsItem.js +4 -17
- package/src/sap/ui/webc/main/thirdparty/BusyIndicator.js +7 -36
- package/src/sap/ui/webc/main/thirdparty/Button.js +6 -73
- package/src/sap/ui/webc/main/thirdparty/Calendar.js +19 -74
- package/src/sap/ui/webc/main/thirdparty/CalendarDate.js +2 -8
- package/src/sap/ui/webc/main/thirdparty/CalendarHeader.js +1 -29
- package/src/sap/ui/webc/main/thirdparty/CalendarPart.js +6 -26
- package/src/sap/ui/webc/main/thirdparty/Card.js +5 -26
- package/src/sap/ui/webc/main/thirdparty/CardHeader.js +4 -47
- package/src/sap/ui/webc/main/thirdparty/Carousel.js +17 -107
- package/src/sap/ui/webc/main/thirdparty/CheckBox.js +9 -63
- package/src/sap/ui/webc/main/thirdparty/ColorPalette.js +5 -83
- package/src/sap/ui/webc/main/thirdparty/ColorPaletteItem.js +4 -26
- package/src/sap/ui/webc/main/thirdparty/ColorPalettePopover.js +7 -41
- package/src/sap/ui/webc/main/thirdparty/ColorPicker.js +51 -123
- package/src/sap/ui/webc/main/thirdparty/ComboBox.js +24 -212
- package/src/sap/ui/webc/main/thirdparty/ComboBoxGroupItem.js +5 -18
- package/src/sap/ui/webc/main/thirdparty/ComboBoxItem.js +2 -9
- package/src/sap/ui/webc/main/thirdparty/CustomListItem.js +3 -20
- package/src/sap/ui/webc/main/thirdparty/DateComponentBase.js +2 -25
- package/src/sap/ui/webc/main/thirdparty/DatePicker.js +28 -127
- package/src/sap/ui/webc/main/thirdparty/DateRangePicker.js +20 -85
- package/src/sap/ui/webc/main/thirdparty/DateTimePicker.js +20 -66
- package/src/sap/ui/webc/main/thirdparty/DayPicker.js +32 -158
- package/src/sap/ui/webc/main/thirdparty/Dialog.js +18 -104
- package/src/sap/ui/webc/main/thirdparty/DurationPicker.js +11 -56
- package/src/sap/ui/webc/main/thirdparty/FileUploader.js +9 -83
- package/src/sap/ui/webc/main/thirdparty/Filters.js +0 -9
- package/src/sap/ui/webc/main/thirdparty/GroupHeaderListItem.js +5 -20
- package/src/sap/ui/webc/main/thirdparty/Icon.js +8 -53
- package/src/sap/ui/webc/main/thirdparty/Input.js +75 -273
- package/src/sap/ui/webc/main/thirdparty/Interfaces.js +19 -20
- package/src/sap/ui/webc/main/thirdparty/Label.js +5 -21
- package/src/sap/ui/webc/main/thirdparty/Link.js +5 -48
- package/src/sap/ui/webc/main/thirdparty/List.js +33 -183
- package/src/sap/ui/webc/main/thirdparty/ListItem.js +10 -76
- package/src/sap/ui/webc/main/thirdparty/ListItemBase.js +5 -37
- package/src/sap/ui/webc/main/thirdparty/Menu.js +8 -91
- package/src/sap/ui/webc/main/thirdparty/MenuItem.js +3 -21
- package/src/sap/ui/webc/main/thirdparty/MessageStrip.js +4 -34
- package/src/sap/ui/webc/main/thirdparty/MonthPicker.js +12 -61
- package/src/sap/ui/webc/main/thirdparty/MultiComboBox.js +25 -299
- package/src/sap/ui/webc/main/thirdparty/MultiComboBoxGroupItem.js +5 -18
- package/src/sap/ui/webc/main/thirdparty/MultiComboBoxItem.js +2 -9
- package/src/sap/ui/webc/main/thirdparty/MultiInput.js +10 -71
- package/src/sap/ui/webc/main/thirdparty/Option.js +5 -22
- package/src/sap/ui/webc/main/thirdparty/Panel.js +4 -62
- package/src/sap/ui/webc/main/thirdparty/Popover.js +28 -143
- package/src/sap/ui/webc/main/thirdparty/Popup.js +20 -118
- package/src/sap/ui/webc/main/thirdparty/ProgressIndicator.js +6 -38
- package/src/sap/ui/webc/main/thirdparty/RadioButton.js +8 -76
- package/src/sap/ui/webc/main/thirdparty/RadioButtonGroup.js +8 -54
- package/src/sap/ui/webc/main/thirdparty/RangeSlider.js +79 -170
- package/src/sap/ui/webc/main/thirdparty/RatingIndicator.js +6 -49
- package/src/sap/ui/webc/main/thirdparty/ResponsivePopover.js +5 -35
- package/src/sap/ui/webc/main/thirdparty/SegmentedButton.js +9 -57
- package/src/sap/ui/webc/main/thirdparty/SegmentedButtonItem.js +2 -15
- package/src/sap/ui/webc/main/thirdparty/Select.js +15 -131
- package/src/sap/ui/webc/main/thirdparty/Slider.js +24 -65
- package/src/sap/ui/webc/main/thirdparty/SliderBase.js +74 -164
- package/src/sap/ui/webc/main/thirdparty/SplitButton.js +6 -67
- package/src/sap/ui/webc/main/thirdparty/StandardListItem.js +3 -25
- package/src/sap/ui/webc/main/thirdparty/StepInput.js +12 -106
- package/src/sap/ui/webc/main/thirdparty/SuggestionGroupItem.js +5 -17
- package/src/sap/ui/webc/main/thirdparty/SuggestionItem.js +4 -22
- package/src/sap/ui/webc/main/thirdparty/SuggestionListItem.js +2 -12
- package/src/sap/ui/webc/main/thirdparty/Switch.js +6 -41
- package/src/sap/ui/webc/main/thirdparty/Tab.js +6 -83
- package/src/sap/ui/webc/main/thirdparty/TabContainer.js +39 -259
- package/src/sap/ui/webc/main/thirdparty/TabSeparator.js +2 -17
- package/src/sap/ui/webc/main/thirdparty/Table.js +25 -185
- package/src/sap/ui/webc/main/thirdparty/TableCell.js +4 -18
- package/src/sap/ui/webc/main/thirdparty/TableColumn.js +4 -18
- package/src/sap/ui/webc/main/thirdparty/TableGroupRow.js +5 -28
- package/src/sap/ui/webc/main/thirdparty/TableRow.js +7 -81
- package/src/sap/ui/webc/main/thirdparty/TextArea.js +7 -97
- package/src/sap/ui/webc/main/thirdparty/TimePicker.js +3 -16
- package/src/sap/ui/webc/main/thirdparty/TimePickerBase.js +14 -93
- package/src/sap/ui/webc/main/thirdparty/TimeSelection.js +7 -95
- package/src/sap/ui/webc/main/thirdparty/Title.js +4 -22
- package/src/sap/ui/webc/main/thirdparty/Toast.js +8 -31
- package/src/sap/ui/webc/main/thirdparty/ToggleButton.js +2 -14
- package/src/sap/ui/webc/main/thirdparty/Token.js +4 -36
- package/src/sap/ui/webc/main/thirdparty/Tokenizer.js +12 -117
- package/src/sap/ui/webc/main/thirdparty/Tree.js +7 -53
- package/src/sap/ui/webc/main/thirdparty/TreeItem.js +4 -22
- package/src/sap/ui/webc/main/thirdparty/TreeListItem.js +5 -45
- package/src/sap/ui/webc/main/thirdparty/WheelSlider.js +6 -93
- package/src/sap/ui/webc/main/thirdparty/YearPicker.js +22 -72
- package/src/sap/ui/webc/main/thirdparty/features/ColorPaletteMoreColors.js +0 -8
- package/src/sap/ui/webc/main/thirdparty/features/InputElementsFormSupport.js +2 -19
- package/src/sap/ui/webc/main/thirdparty/features/InputSuggestions.js +24 -165
- package/src/sap/ui/webc/main/thirdparty/generated/json-imports/Themes.js +0 -16
- package/src/sap/ui/webc/main/thirdparty/generated/json-imports/i18n.js +0 -52
- package/src/sap/ui/webc/main/thirdparty/generated/templates/AvatarGroupTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/AvatarTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BadgeTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BreadcrumbsPopoverTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BreadcrumbsTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BusyIndicatorTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ButtonTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CalendarHeaderTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CalendarTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CardHeaderTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CardTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CarouselTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CheckBoxTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteDialogTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteItemTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPalettePopoverTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPickerTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ComboBoxPopoverTemplate.lit.js +1 -18
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ComboBoxTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CustomListItemTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DatePickerPopoverTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DatePickerTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DateTimePickerPopoverTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DayPickerTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DialogTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/FileUploaderPopoverTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/FileUploaderTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/GroupHeaderListItemTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/IconTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/InputPopoverTemplate.lit.js +1 -22
- package/src/sap/ui/webc/main/thirdparty/generated/templates/InputTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/LabelTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/LinkTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ListItemTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ListTemplate.lit.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MenuTemplate.lit.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MessageStripTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MonthPickerTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiComboBoxPopoverTemplate.lit.js +1 -25
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiComboBoxTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiInputTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PanelTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PopoverTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PopupBlockLayerTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PopupTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ProgressIndicatorTemplate.lit.js +1 -12
- package/src/sap/ui/webc/main/thirdparty/generated/templates/RadioButtonTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/RangeSliderTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/RatingIndicatorTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ResponsivePopoverTemplate.lit.js +1 -14
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SegmentedButtonItemTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SegmentedButtonTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SelectPopoverTemplate.lit.js +1 -18
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SelectTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SliderBaseTemplate.lit.js +1 -9
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SliderTemplate.lit.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SplitButtonTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/StandardListItemTemplate.lit.js +1 -19
- package/src/sap/ui/webc/main/thirdparty/generated/templates/StepInputTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SuggestionListItemTemplate.lit.js +1 -22
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SwitchTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabContainerPopoverTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabContainerTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabInOverflowTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabInStripTemplate.lit.js +1 -9
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabSeparatorInOverflowTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabSeparatorInStripTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableCellTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableColumnTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableGroupRowTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableRowTemplate.lit.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TextAreaPopoverTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TextAreaTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TimePickerPopoverTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TimePickerTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TimeSelectionTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TitleTemplate.lit.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ToastTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ToggleButtonTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenizerPopoverTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenizerTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TreeListItemTemplate.lit.js +1 -16
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TreeTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/WheelSliderTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/YearPickerTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Avatar.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/AvatarGroup.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Badge.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Breadcrumbs.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/BreadcrumbsPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/BrowserScrollbar.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/BusyIndicator.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Button.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Calendar.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CalendarHeader.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Card.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CardHeader.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Carousel.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CheckBox.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPalette.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPaletteItem.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPalettePopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPaletteStaticArea.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ComboBox.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ComboBoxPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CustomListItem.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DatePicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DatePickerPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DateRangePicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DateTimePicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DateTimePickerPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DayPicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Dialog.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/FileUploader.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/GroupHeaderListItem.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/GrowingButton.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Icon.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Input.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/InputIcon.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/InvisibleTextStyles.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Label.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Link.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/List.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ListItem.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ListItemBase.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Menu.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MessageStrip.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MonthPicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MultiComboBox.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MultiComboBoxPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MultiInput.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Panel.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Popover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Popup.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/PopupGlobal.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/PopupStaticAreaStyles.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/PopupsCommon.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ProgressIndicator.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/RadioButton.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/RangeSlider.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/RatingIndicator.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ResponsivePopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ResponsivePopoverCommon.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SegmentedButton.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Select.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SelectPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SliderBase.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SplitButton.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/StepInput.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Suggestions.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Switch.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Tab.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabContainer.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabInOverflow.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabInStrip.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabSemanticIcon.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabSeparatorInOverflow.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabSeparatorInStrip.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Table.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableCell.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableColumn.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableGroupRow.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableRow.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TapHighlightColor.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TextArea.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TimePicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TimePickerPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TimeSelection.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Title.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Toast.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ToggleButton.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Token.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Tokenizer.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TokenizerPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Tree.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TreeListItem.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ValueStateMessage.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/WheelSlider.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/YearPicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/popup-utils/OpenedPopupsRegistry.js +0 -12
- package/src/sap/ui/webc/main/thirdparty/popup-utils/PopoverRegistry.js +4 -33
- package/src/sap/ui/webc/main/thirdparty/timepicker-utils/TimeSlider.js +0 -26
- package/src/sap/ui/webc/main/thirdparty/types/AvatarColorScheme.js +1 -15
- package/src/sap/ui/webc/main/thirdparty/types/AvatarGroupType.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/AvatarShape.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/AvatarSize.js +1 -9
- package/src/sap/ui/webc/main/thirdparty/types/BreadcrumbsDesign.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/BreadcrumbsSeparatorStyle.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/types/BusyIndicatorSize.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/ButtonDesign.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/types/CalendarSelectionMode.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/CarouselArrowsPlacement.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/GrowingMode.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/HasPopup.js +1 -9
- package/src/sap/ui/webc/main/thirdparty/types/InputType.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/types/LinkDesign.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/ListGrowingMode.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/ListItemType.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/ListMode.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/types/ListSeparators.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/MessageStripDesign.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/types/PanelAccessibleRole.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/PopoverHorizontalAlign.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/types/PopoverPlacementType.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/types/PopoverVerticalAlign.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/types/Priority.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/types/SemanticColor.js +1 -9
- package/src/sap/ui/webc/main/thirdparty/types/SwitchDesign.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/TabContainerTabsPlacement.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/TabLayout.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/TableGrowingMode.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/TableMode.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/TableRowType.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/TabsOverflowMode.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/TitleLevel.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/types/ToastPlacement.js +1 -13
- package/src/sap/ui/webc/main/thirdparty/types/WrappingType.js +1 -6
- package/ui5.yaml +1 -1
@@ -16,9 +16,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
16
16
|
_Button = _interopRequireDefault(_Button);
|
17
17
|
_ColorPalette = _interopRequireDefault(_ColorPalette);
|
18
18
|
_ColorPaletteStaticArea = _interopRequireDefault(_ColorPaletteStaticArea);
|
19
|
-
|
20
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
21
|
-
|
22
20
|
// Styles
|
23
21
|
|
24
22
|
/**
|
@@ -27,9 +25,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
27
25
|
const metadata = {
|
28
26
|
tag: "ui5-color-palette",
|
29
27
|
managedSlots: true,
|
30
|
-
properties:
|
31
|
-
/** @lends sap.ui.webcomponents.main.ColorPalette.prototype */
|
32
|
-
{
|
28
|
+
properties: /** @lends sap.ui.webcomponents.main.ColorPalette.prototype */{
|
33
29
|
/**
|
34
30
|
* Defines whether the user can see the last used colors in the bottom of the component
|
35
31
|
* @type {boolean}
|
@@ -39,7 +35,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
39
35
|
showRecentColors: {
|
40
36
|
type: Boolean
|
41
37
|
},
|
42
|
-
|
43
38
|
/**
|
44
39
|
* Defines whether the user can choose a custom color from a color picker
|
45
40
|
* <b>Note:</b> In order to use this property you need to import the following module: <code>"@ui5/webcomponents/dist/features/ColorPaletteMoreColors.js"</code>
|
@@ -50,7 +45,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
50
45
|
showMoreColors: {
|
51
46
|
type: Boolean
|
52
47
|
},
|
53
|
-
|
54
48
|
/**
|
55
49
|
* Defines whether the user can choose the default color from a button.
|
56
50
|
* @type {boolean}
|
@@ -61,7 +55,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
61
55
|
showDefaultColor: {
|
62
56
|
type: Boolean
|
63
57
|
},
|
64
|
-
|
65
58
|
/**
|
66
59
|
* Defines the default color of the color palette
|
67
60
|
* <b>Note:</b> The default color should be a part of the ColorPalette colors</code>
|
@@ -72,7 +65,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
72
65
|
defaultColor: {
|
73
66
|
type: _CSSColor.default
|
74
67
|
},
|
75
|
-
|
76
68
|
/**
|
77
69
|
* Defines the selected color.
|
78
70
|
* @type {CSSColor}
|
@@ -81,7 +73,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
81
73
|
_selectedColor: {
|
82
74
|
type: _CSSColor.default
|
83
75
|
},
|
84
|
-
|
85
76
|
/**
|
86
77
|
* Defines if the palette is in Popup or Embeded mode.
|
87
78
|
* @type {CSSColor}
|
@@ -91,9 +82,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
91
82
|
type: Boolean
|
92
83
|
}
|
93
84
|
},
|
94
|
-
slots:
|
95
|
-
/** @lends sap.ui.webcomponents.main.ColorPalette.prototype */
|
96
|
-
{
|
85
|
+
slots: /** @lends sap.ui.webcomponents.main.ColorPalette.prototype */{
|
97
86
|
/**
|
98
87
|
* Defines the <code>ui5-color-palette-item</code> elements.
|
99
88
|
* @type {sap.ui.webcomponents.main.IColorPaletteItem[]}
|
@@ -107,9 +96,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
107
96
|
individualSlots: true
|
108
97
|
}
|
109
98
|
},
|
110
|
-
events:
|
111
|
-
/** @lends sap.ui.webcomponents.main.ColorPalette.prototype */
|
112
|
-
{
|
99
|
+
events: /** @lends sap.ui.webcomponents.main.ColorPalette.prototype */{
|
113
100
|
/**
|
114
101
|
* Fired when the user selects a color.
|
115
102
|
*
|
@@ -127,6 +114,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
127
114
|
}
|
128
115
|
}
|
129
116
|
};
|
117
|
+
|
130
118
|
/**
|
131
119
|
* @class
|
132
120
|
*
|
@@ -151,42 +139,33 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
151
139
|
* @appenddocs ColorPaletteItem
|
152
140
|
* @public
|
153
141
|
*/
|
154
|
-
|
155
142
|
class ColorPalette extends _UI5Element.default {
|
156
143
|
static get metadata() {
|
157
144
|
return metadata;
|
158
145
|
}
|
159
|
-
|
160
146
|
static get render() {
|
161
147
|
return _LitRenderer.default;
|
162
148
|
}
|
163
|
-
|
164
149
|
static get styles() {
|
165
150
|
return _ColorPalette.default;
|
166
151
|
}
|
167
|
-
|
168
152
|
static get staticAreaStyles() {
|
169
153
|
return _ColorPaletteStaticArea.default;
|
170
154
|
}
|
171
|
-
|
172
155
|
static get template() {
|
173
156
|
return _ColorPaletteTemplate.default;
|
174
157
|
}
|
175
|
-
|
176
158
|
static get staticAreaTemplate() {
|
177
159
|
return _ColorPaletteDialogTemplate.default;
|
178
160
|
}
|
179
|
-
|
180
161
|
static get dependencies() {
|
181
162
|
const ColorPaletteMoreColors = (0, _FeaturesRegistry.getFeature)("ColorPaletteMoreColors");
|
182
163
|
return [_ColorPaletteItem.default, _Button.default].concat(ColorPaletteMoreColors ? ColorPaletteMoreColors.dependencies : []);
|
183
164
|
}
|
184
|
-
|
185
165
|
static async onDefine() {
|
186
166
|
const ColorPaletteMoreColors = (0, _FeaturesRegistry.getFeature)("ColorPaletteMoreColors");
|
187
167
|
[ColorPalette.i18nBundle] = await Promise.all([(0, _i18nBundle.getI18nBundle)("@ui5/webcomponents"), ColorPaletteMoreColors ? ColorPaletteMoreColors.init() : Promise.resolve()]);
|
188
168
|
}
|
189
|
-
|
190
169
|
constructor() {
|
191
170
|
super();
|
192
171
|
this._itemNavigation = new _ItemNavigation.default(this, {
|
@@ -201,15 +180,12 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
201
180
|
});
|
202
181
|
this._recentColors = [];
|
203
182
|
}
|
204
|
-
|
205
183
|
onBeforeRendering() {
|
206
184
|
this.displayedColors.forEach((item, index) => {
|
207
185
|
item.index = index + 1;
|
208
186
|
});
|
209
|
-
|
210
187
|
if (this.showMoreColors) {
|
211
188
|
const ColorPaletteMoreColors = (0, _FeaturesRegistry.getFeature)("ColorPaletteMoreColors");
|
212
|
-
|
213
189
|
if (ColorPaletteMoreColors) {
|
214
190
|
this.moreColorsFeature = new ColorPaletteMoreColors();
|
215
191
|
} else {
|
@@ -217,24 +193,18 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
217
193
|
}
|
218
194
|
}
|
219
195
|
}
|
220
|
-
|
221
196
|
selectColor(item) {
|
222
197
|
if (!item.value) {
|
223
198
|
return;
|
224
199
|
}
|
225
|
-
|
226
200
|
item.focus();
|
227
|
-
|
228
201
|
if (this.displayedColors.includes(item)) {
|
229
202
|
this._itemNavigation.setCurrentItem(item);
|
230
203
|
}
|
231
|
-
|
232
204
|
this._setColor(item.value);
|
233
205
|
}
|
234
|
-
|
235
206
|
_setColor(color) {
|
236
207
|
this._selectedColor = color;
|
237
|
-
|
238
208
|
if (this._recentColors[0] !== this._selectedColor) {
|
239
209
|
if (this._recentColors.includes(this._selectedColor)) {
|
240
210
|
this._recentColors.unshift(this._recentColors.splice(this._recentColors.indexOf(this._selectedColor), 1)[0]);
|
@@ -242,45 +212,37 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
242
212
|
this._recentColors.unshift(this._selectedColor);
|
243
213
|
}
|
244
214
|
}
|
245
|
-
|
246
215
|
this.fireEvent("item-click", {
|
247
216
|
color: this._selectedColor
|
248
217
|
});
|
249
218
|
}
|
250
|
-
|
251
219
|
_onclick(event) {
|
252
220
|
if (event.target.hasAttribute("ui5-color-palette-item")) {
|
253
221
|
this.selectColor(event.target);
|
254
222
|
}
|
255
223
|
}
|
256
|
-
|
257
224
|
_onkeyup(event) {
|
258
225
|
if ((0, _Keys.isSpace)(event) && event.target.hasAttribute("ui5-color-palette-item")) {
|
259
226
|
event.preventDefault();
|
260
227
|
this.selectColor(event.target);
|
261
228
|
}
|
262
229
|
}
|
263
|
-
|
264
230
|
_onkeydown(event) {
|
265
231
|
if ((0, _Keys.isEnter)(event) && event.target.hasAttribute("ui5-color-palette-item")) {
|
266
232
|
this.selectColor(event.target);
|
267
233
|
}
|
268
234
|
}
|
269
|
-
|
270
235
|
_onDefaultColorKeyDown(event) {
|
271
236
|
if ((0, _Keys.isTabNext)(event) && this.popupMode) {
|
272
237
|
event.preventDefault();
|
273
|
-
|
274
238
|
this._onDefaultColorClick();
|
275
239
|
}
|
276
|
-
|
277
240
|
if ((0, _Keys.isDown)(event)) {
|
278
241
|
event.stopPropagation();
|
279
242
|
this.focusColorElement(this.colorPaletteNavigationElements[1], this._itemNavigation);
|
280
243
|
} else if ((0, _Keys.isUp)(event)) {
|
281
244
|
event.stopPropagation();
|
282
245
|
const lastElementInNavigation = this.colorPaletteNavigationElements[this.colorPaletteNavigationElements.length - 1];
|
283
|
-
|
284
246
|
if (this.hasRecentColors) {
|
285
247
|
this.focusColorElement(lastElementInNavigation, this._itemNavigationRecentColors);
|
286
248
|
} else if (this.showMoreColors) {
|
@@ -291,17 +253,14 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
291
253
|
}
|
292
254
|
}
|
293
255
|
}
|
294
|
-
|
295
256
|
_onMoreColorsKeyDown(event) {
|
296
257
|
const index = this.colorPaletteNavigationElements.indexOf(event.target);
|
297
258
|
const colorPaletteFocusIndex = this.displayedColors.length % this.rowSize * this.rowSize;
|
298
|
-
|
299
259
|
if ((0, _Keys.isUp)(event)) {
|
300
260
|
event.stopPropagation();
|
301
261
|
this.focusColorElement(this.displayedColors[colorPaletteFocusIndex], this._itemNavigation);
|
302
262
|
} else if ((0, _Keys.isDown)(event)) {
|
303
263
|
event.stopPropagation();
|
304
|
-
|
305
264
|
if (this.hasRecentColors) {
|
306
265
|
this.focusColorElement(this.colorPaletteNavigationElements[index + 1], this._itemNavigationRecentColors);
|
307
266
|
} else if (this.showDefaultColor) {
|
@@ -311,18 +270,14 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
311
270
|
}
|
312
271
|
}
|
313
272
|
}
|
314
|
-
|
315
273
|
_onColorContainerKeyDown(event) {
|
316
274
|
const lastElementInNavigation = this.colorPaletteNavigationElements[this.colorPaletteNavigationElements.length - 1];
|
317
|
-
|
318
275
|
if ((0, _Keys.isTabNext)(event) && this.popupMode) {
|
319
276
|
event.preventDefault();
|
320
277
|
this.selectColor(event.target);
|
321
278
|
}
|
322
|
-
|
323
279
|
if ((0, _Keys.isUp)(event) && event.target === this.displayedColors[0] && this.colorPaletteNavigationElements.length > 1) {
|
324
280
|
event.stopPropagation();
|
325
|
-
|
326
281
|
if (this.showDefaultColor) {
|
327
282
|
this.colorPaletteNavigationElements[0].focus();
|
328
283
|
} else if (!this.showDefaultColor && this.hasRecentColors) {
|
@@ -333,7 +288,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
333
288
|
} else if ((0, _Keys.isDown)(event) && event.target === this.displayedColors[this.displayedColors.length - 1] && this.colorPaletteNavigationElements.length > 1) {
|
334
289
|
event.stopPropagation();
|
335
290
|
const isRecentColorsNextElement = this.showDefaultColor && !this.showMoreColors && this.hasRecentColors || !this.showDefaultColor && !this.showMoreColors && this.hasRecentColors;
|
336
|
-
|
337
291
|
if (this.showDefaultColor && this.showMoreColors) {
|
338
292
|
this.colorPaletteNavigationElements[2].focus();
|
339
293
|
} else if (this.showDefaultColor && !this.showMoreColors && (!this.showRecentColors || !this.recentColors[0])) {
|
@@ -345,7 +299,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
345
299
|
}
|
346
300
|
}
|
347
301
|
}
|
348
|
-
|
349
302
|
_onRecentColorsContainerKeyDown(event) {
|
350
303
|
if ((0, _Keys.isUp)(event)) {
|
351
304
|
if (this.showMoreColors) {
|
@@ -364,110 +317,83 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
364
317
|
}
|
365
318
|
}
|
366
319
|
}
|
367
|
-
|
368
320
|
focusColorElement(element, itemNavigation) {
|
369
321
|
itemNavigation.setCurrentItem(element);
|
370
|
-
|
371
322
|
itemNavigation._focusCurrentItem();
|
372
323
|
}
|
373
|
-
|
374
324
|
async _chooseCustomColor() {
|
375
325
|
const colorPicker = await this.getColorPicker();
|
376
|
-
|
377
326
|
this._setColor(colorPicker.color);
|
378
|
-
|
379
327
|
this._closeDialog();
|
380
328
|
}
|
381
|
-
|
382
329
|
async _closeDialog() {
|
383
330
|
const dialog = await this._getDialog();
|
384
331
|
dialog.close();
|
385
332
|
}
|
386
|
-
|
387
333
|
async _openMoreColorsDialog() {
|
388
334
|
const dialog = await this._getDialog();
|
389
335
|
dialog.show();
|
390
336
|
}
|
391
|
-
|
392
337
|
_onDefaultColorClick() {
|
393
338
|
if (this.defaultColor) {
|
394
339
|
this._setColor(this.defaultColor);
|
395
340
|
}
|
396
341
|
}
|
342
|
+
|
397
343
|
/**
|
398
344
|
* Returns the selected color.
|
399
345
|
*/
|
400
|
-
|
401
|
-
|
402
346
|
get selectedColor() {
|
403
347
|
return this._selectedColor;
|
404
348
|
}
|
405
|
-
|
406
349
|
get displayedColors() {
|
407
350
|
return this.getSlottedNodes("colors").filter(item => item.value).slice(0, 15);
|
408
351
|
}
|
409
|
-
|
410
352
|
get colorContainerLabel() {
|
411
353
|
return ColorPalette.i18nBundle.getText(_i18nDefaults.COLORPALETTE_CONTAINER_LABEL);
|
412
354
|
}
|
413
|
-
|
414
355
|
get colorPaleteMoreColorsText() {
|
415
356
|
return ColorPalette.i18nBundle.getText(_i18nDefaults.COLOR_PALETTE_MORE_COLORS_TEXT);
|
416
357
|
}
|
417
|
-
|
418
358
|
get _showMoreColors() {
|
419
359
|
return this.showMoreColors && this.moreColorsFeature;
|
420
360
|
}
|
421
|
-
|
422
361
|
get rowSize() {
|
423
362
|
return 5;
|
424
363
|
}
|
425
|
-
|
426
364
|
get hasRecentColors() {
|
427
365
|
return this.showRecentColors && this.recentColors[0];
|
428
366
|
}
|
429
|
-
|
430
367
|
get recentColors() {
|
431
368
|
if (this._recentColors.length > this.rowSize) {
|
432
369
|
this._recentColors = this._recentColors.slice(0, this.rowSize);
|
433
370
|
}
|
434
|
-
|
435
371
|
while (this._recentColors.length < this.rowSize) {
|
436
372
|
this._recentColors.push("");
|
437
373
|
}
|
438
|
-
|
439
374
|
return this._recentColors;
|
440
375
|
}
|
441
|
-
|
442
376
|
get recentColorsElements() {
|
443
377
|
if (this.getDomRef()) {
|
444
378
|
return Array.from(this.getDomRef().querySelectorAll(".ui5-cp-recent-colors-wrapper [ui5-color-palette-item]")).filter(x => x.value !== "");
|
445
379
|
}
|
446
|
-
|
447
380
|
return [];
|
448
381
|
}
|
449
|
-
|
450
382
|
get colorPaletteNavigationElements() {
|
451
383
|
const navigationElements = [];
|
452
384
|
const rootElement = this.shadowRoot.querySelector(".ui5-cp-root");
|
453
|
-
|
454
385
|
if (this.showDefaultColor) {
|
455
386
|
navigationElements.push(rootElement.querySelector(".ui5-cp-default-color-button"));
|
456
387
|
}
|
457
|
-
|
458
388
|
navigationElements.push(this.displayedColors[0]);
|
459
|
-
|
460
389
|
if (this.showMoreColors) {
|
461
390
|
navigationElements.push(rootElement.querySelector(".ui5-cp-more-colors"));
|
462
391
|
}
|
463
|
-
|
464
392
|
if (this.showRecentColors && !!this.recentColorsElements.length) {
|
465
393
|
navigationElements.push(this.recentColorsElements[0]);
|
466
394
|
}
|
467
|
-
|
468
395
|
return navigationElements;
|
469
396
|
}
|
470
|
-
|
471
397
|
get classes() {
|
472
398
|
return {
|
473
399
|
colorPaletteRoot: {
|
@@ -476,19 +402,15 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
476
402
|
}
|
477
403
|
};
|
478
404
|
}
|
479
|
-
|
480
405
|
async _getDialog() {
|
481
406
|
const staticAreaItem = await this.getStaticAreaItemDomRef();
|
482
407
|
return staticAreaItem.querySelector("[ui5-dialog]");
|
483
408
|
}
|
484
|
-
|
485
409
|
async getColorPicker() {
|
486
410
|
const dialog = await this._getDialog();
|
487
411
|
return dialog.content[0].querySelector("[ui5-color-picker]");
|
488
412
|
}
|
489
|
-
|
490
413
|
}
|
491
|
-
|
492
414
|
ColorPalette.define();
|
493
415
|
var _default = ColorPalette;
|
494
416
|
_exports.default = _default;
|
@@ -10,9 +10,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
10
10
|
_CSSColor = _interopRequireDefault(_CSSColor);
|
11
11
|
_ColorPaletteItemTemplate = _interopRequireDefault(_ColorPaletteItemTemplate);
|
12
12
|
_ColorPaletteItem = _interopRequireDefault(_ColorPaletteItem);
|
13
|
-
|
14
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
15
|
-
|
16
14
|
// Styles
|
17
15
|
|
18
16
|
/**
|
@@ -21,9 +19,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
21
19
|
const metadata = {
|
22
20
|
tag: "ui5-color-palette-item",
|
23
21
|
managedSlots: true,
|
24
|
-
properties:
|
25
|
-
/** @lends sap.ui.webcomponents.main.ColorPaletteItem.prototype */
|
26
|
-
{
|
22
|
+
properties: /** @lends sap.ui.webcomponents.main.ColorPaletteItem.prototype */{
|
27
23
|
/**
|
28
24
|
* Defines the colour of the component.
|
29
25
|
* <br><br>
|
@@ -35,7 +31,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
35
31
|
value: {
|
36
32
|
type: _CSSColor.default
|
37
33
|
},
|
38
|
-
|
39
34
|
/**
|
40
35
|
* Defines the tab-index of the element, helper information for the ItemNavigation.
|
41
36
|
* @private
|
@@ -45,7 +40,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
45
40
|
defaultValue: "-1",
|
46
41
|
noAttribute: true
|
47
42
|
},
|
48
|
-
|
49
43
|
/**
|
50
44
|
* Defines the index of the item inside of the ColorPalette.
|
51
45
|
* @private
|
@@ -54,7 +48,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
54
48
|
index: {
|
55
49
|
type: String
|
56
50
|
},
|
57
|
-
|
58
51
|
/**
|
59
52
|
* Defines if the ColorPalette is on phone mode.
|
60
53
|
* @private
|
@@ -63,7 +56,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
63
56
|
phone: {
|
64
57
|
type: Boolean
|
65
58
|
},
|
66
|
-
|
67
59
|
/**
|
68
60
|
* @private
|
69
61
|
* @type {boolean}
|
@@ -73,13 +65,10 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
73
65
|
type: Boolean
|
74
66
|
}
|
75
67
|
},
|
76
|
-
slots:
|
77
|
-
/** @lends sap.ui.webcomponents.main.ColorPaletteItem.prototype */
|
78
|
-
{},
|
79
|
-
events:
|
80
|
-
/** @lends sap.ui.webcomponents.main.ColorPaletteItem.prototype */
|
81
|
-
{}
|
68
|
+
slots: /** @lends sap.ui.webcomponents.main.ColorPaletteItem.prototype */{},
|
69
|
+
events: /** @lends sap.ui.webcomponents.main.ColorPaletteItem.prototype */{}
|
82
70
|
};
|
71
|
+
|
83
72
|
/**
|
84
73
|
* @class
|
85
74
|
*
|
@@ -96,41 +85,32 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
96
85
|
* @implements sap.ui.webcomponents.main.IColorPaletteItem
|
97
86
|
* @public
|
98
87
|
*/
|
99
|
-
|
100
88
|
class ColorPaletteItem extends _UI5Element.default {
|
101
89
|
static get metadata() {
|
102
90
|
return metadata;
|
103
91
|
}
|
104
|
-
|
105
92
|
static get render() {
|
106
93
|
return _LitRenderer.default;
|
107
94
|
}
|
108
|
-
|
109
95
|
static get styles() {
|
110
96
|
return _ColorPaletteItem.default;
|
111
97
|
}
|
112
|
-
|
113
98
|
static get template() {
|
114
99
|
return _ColorPaletteItemTemplate.default;
|
115
100
|
}
|
116
|
-
|
117
101
|
static async onDefine() {
|
118
102
|
ColorPaletteItem.i18nBundle = await (0, _i18nBundle.getI18nBundle)("@ui5/webcomponents");
|
119
103
|
}
|
120
|
-
|
121
104
|
constructor() {
|
122
105
|
super();
|
123
106
|
}
|
124
|
-
|
125
107
|
onBeforeRendering() {
|
126
108
|
this._disabled = !this.value;
|
127
109
|
this.phone = (0, _Device.isPhone)();
|
128
110
|
}
|
129
|
-
|
130
111
|
get colorLabel() {
|
131
112
|
return ColorPaletteItem.i18nBundle.getText(_i18nDefaults.COLORPALETTE_COLOR_LABEL);
|
132
113
|
}
|
133
|
-
|
134
114
|
get styles() {
|
135
115
|
return {
|
136
116
|
root: {
|
@@ -138,9 +118,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
138
118
|
}
|
139
119
|
};
|
140
120
|
}
|
141
|
-
|
142
121
|
}
|
143
|
-
|
144
122
|
ColorPaletteItem.define();
|
145
123
|
var _default = ColorPaletteItem;
|
146
124
|
_exports.default = _default;
|