@openui5/sap.ui.webc.main 1.96.2 → 1.97.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/.reuse/dep5 +1 -1
- package/THIRDPARTY.txt +2 -1
- package/package.json +3 -3
- package/src/sap/ui/webc/main/.library +1 -1
- package/src/sap/ui/webc/main/Avatar.js +2 -2
- 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 +4 -4
- package/src/sap/ui/webc/main/BreadcrumbsItem.js +4 -4
- package/src/sap/ui/webc/main/BusyIndicator.js +1 -1
- package/src/sap/ui/webc/main/Button.js +3 -3
- package/src/sap/ui/webc/main/Calendar.js +4 -4
- package/src/sap/ui/webc/main/CalendarDate.js +1 -1
- package/src/sap/ui/webc/main/Card.js +17 -1
- package/src/sap/ui/webc/main/CardHeader.js +4 -4
- 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 +4 -4
- package/src/sap/ui/webc/main/ColorPaletteItem.js +1 -1
- package/src/sap/ui/webc/main/ColorPalettePopover.js +112 -0
- package/src/sap/ui/webc/main/ColorPicker.js +3 -3
- package/src/sap/ui/webc/main/ComboBox.js +4 -4
- package/src/sap/ui/webc/main/ComboBoxGroupItem.js +4 -4
- 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 +5 -5
- package/src/sap/ui/webc/main/DateRangePicker.js +3 -3
- package/src/sap/ui/webc/main/DateTimePicker.js +4 -6
- package/src/sap/ui/webc/main/Dialog.js +1 -1
- package/src/sap/ui/webc/main/FileUploader.js +2 -2
- package/src/sap/ui/webc/main/GroupHeaderListItem.js +1 -1
- package/src/sap/ui/webc/main/Icon.js +1 -1
- package/src/sap/ui/webc/main/Input.js +6 -27
- package/src/sap/ui/webc/main/Label.js +2 -2
- package/src/sap/ui/webc/main/Link.js +2 -2
- package/src/sap/ui/webc/main/List.js +5 -6
- package/src/sap/ui/webc/main/MessageStrip.js +2 -2
- package/src/sap/ui/webc/main/MultiComboBox.js +4 -6
- package/src/sap/ui/webc/main/MultiComboBoxItem.js +1 -1
- package/src/sap/ui/webc/main/MultiInput.js +6 -27
- package/src/sap/ui/webc/main/Option.js +1 -1
- package/src/sap/ui/webc/main/Panel.js +5 -4
- package/src/sap/ui/webc/main/Popover.js +1 -1
- package/src/sap/ui/webc/main/ProgressIndicator.js +14 -1
- package/src/sap/ui/webc/main/RadioButton.js +1 -1
- package/src/sap/ui/webc/main/RangeSlider.js +15 -17
- package/src/sap/ui/webc/main/RatingIndicator.js +4 -4
- 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 +5 -5
- package/src/sap/ui/webc/main/Select.js +1 -1
- package/src/sap/ui/webc/main/Slider.js +20 -20
- 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 +4 -4
- package/src/sap/ui/webc/main/SuggestionItem.js +2 -2
- package/src/sap/ui/webc/main/Switch.js +5 -5
- 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 +5 -5
- package/src/sap/ui/webc/main/TableRow.js +5 -5
- package/src/sap/ui/webc/main/TextArea.js +5 -5
- package/src/sap/ui/webc/main/TimePicker.js +3 -3
- 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 +3 -3
- package/src/sap/ui/webc/main/Token.js +2 -2
- package/src/sap/ui/webc/main/Tree.js +29 -1
- package/src/sap/ui/webc/main/TreeItem.js +1 -1
- package/src/sap/ui/webc/main/library.js +16 -12
- package/src/sap/ui/webc/main/thirdparty/Assets.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/Avatar.js +8 -11
- package/src/sap/ui/webc/main/thirdparty/AvatarGroup.js +6 -7
- package/src/sap/ui/webc/main/thirdparty/Badge.js +11 -6
- package/src/sap/ui/webc/main/thirdparty/Breadcrumbs.js +6 -4
- package/src/sap/ui/webc/main/thirdparty/BusyIndicator.js +2 -3
- package/src/sap/ui/webc/main/thirdparty/Button.js +3 -4
- package/src/sap/ui/webc/main/thirdparty/Calendar.js +73 -2
- package/src/sap/ui/webc/main/thirdparty/CalendarHeader.js +17 -55
- package/src/sap/ui/webc/main/thirdparty/Card.js +13 -9
- package/src/sap/ui/webc/main/thirdparty/CardHeader.js +16 -11
- package/src/sap/ui/webc/main/thirdparty/Carousel.js +8 -7
- package/src/sap/ui/webc/main/thirdparty/CheckBox.js +31 -6
- package/src/sap/ui/webc/main/thirdparty/ColorPalette.js +161 -12
- package/src/sap/ui/webc/main/thirdparty/ColorPaletteItem.js +14 -4
- package/src/sap/ui/webc/main/thirdparty/ColorPalettePopover.js +110 -0
- package/src/sap/ui/webc/main/thirdparty/ColorPicker.js +10 -1
- package/src/sap/ui/webc/main/thirdparty/ComboBox.js +146 -57
- package/src/sap/ui/webc/main/thirdparty/DateComponentBase.js +2 -3
- package/src/sap/ui/webc/main/thirdparty/DatePicker.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/DateRangePicker.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/DateTimePicker.js +7 -6
- package/src/sap/ui/webc/main/thirdparty/DayPicker.js +9 -4
- package/src/sap/ui/webc/main/thirdparty/Dialog.js +11 -4
- package/src/sap/ui/webc/main/thirdparty/DurationPicker.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/FileUploader.js +14 -9
- package/src/sap/ui/webc/main/thirdparty/GroupHeaderListItem.js +5 -8
- package/src/sap/ui/webc/main/thirdparty/Icon.js +14 -11
- package/src/sap/ui/webc/main/thirdparty/Input.js +68 -39
- package/src/sap/ui/webc/main/thirdparty/Link.js +2 -3
- package/src/sap/ui/webc/main/thirdparty/List.js +41 -12
- package/src/sap/ui/webc/main/thirdparty/ListItem.js +13 -8
- package/src/sap/ui/webc/main/thirdparty/MessageStrip.js +2 -3
- package/src/sap/ui/webc/main/thirdparty/MultiComboBox.js +189 -59
- package/src/sap/ui/webc/main/thirdparty/MultiInput.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/Panel.js +2 -3
- package/src/sap/ui/webc/main/thirdparty/Popover.js +52 -31
- package/src/sap/ui/webc/main/thirdparty/Popup.js +14 -25
- package/src/sap/ui/webc/main/thirdparty/ProgressIndicator.js +8 -7
- package/src/sap/ui/webc/main/thirdparty/RadioButton.js +35 -7
- package/src/sap/ui/webc/main/thirdparty/RangeSlider.js +6 -7
- package/src/sap/ui/webc/main/thirdparty/RatingIndicator.js +3 -4
- package/src/sap/ui/webc/main/thirdparty/ResponsivePopover.js +5 -23
- package/src/sap/ui/webc/main/thirdparty/SegmentedButton.js +4 -4
- package/src/sap/ui/webc/main/thirdparty/SegmentedButtonItem.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/Select.js +53 -47
- package/src/sap/ui/webc/main/thirdparty/Slider.js +2 -3
- package/src/sap/ui/webc/main/thirdparty/SliderBase.js +4 -9
- package/src/sap/ui/webc/main/thirdparty/StepInput.js +3 -4
- package/src/sap/ui/webc/main/thirdparty/Switch.js +5 -6
- package/src/sap/ui/webc/main/thirdparty/Tab.js +12 -2
- package/src/sap/ui/webc/main/thirdparty/TabContainer.js +12 -5
- package/src/sap/ui/webc/main/thirdparty/Table.js +8 -6
- package/src/sap/ui/webc/main/thirdparty/TableGroupRow.js +2 -3
- package/src/sap/ui/webc/main/thirdparty/TableRow.js +4 -8
- package/src/sap/ui/webc/main/thirdparty/TextArea.js +11 -10
- package/src/sap/ui/webc/main/thirdparty/TimePicker.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/TimePickerBase.js +9 -6
- package/src/sap/ui/webc/main/thirdparty/TimeSelection.js +8 -9
- package/src/sap/ui/webc/main/thirdparty/Toast.js +5 -0
- package/src/sap/ui/webc/main/thirdparty/Token.js +2 -6
- package/src/sap/ui/webc/main/thirdparty/Tokenizer.js +12 -14
- package/src/sap/ui/webc/main/thirdparty/Tree.js +18 -0
- package/src/sap/ui/webc/main/thirdparty/TreeListItem.js +12 -15
- package/src/sap/ui/webc/main/thirdparty/YearPicker.js +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Avatar.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/AvatarGroup.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Badge.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Breadcrumbs.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/BreadcrumbsPopover.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/BrowserScrollbar.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/BusyIndicator.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Button.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Button.ie11.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Calendar.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/CalendarHeader.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Card.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/CardHeader.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Carousel.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/CheckBox.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/ColorPalette.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/ColorPaletteItem.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/ColorPalettePopover.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/ColorPaletteStaticArea.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/ColorPicker.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/ComboBox.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/ComboBoxPopover.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/CustomListItem.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/DatePicker.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/DatePickerPopover.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/DateRangePicker.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/DateTimePicker.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/DateTimePickerPopover.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/DayPicker.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Dialog.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/FileUploader.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/GroupHeaderListItem.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/GrowingButton.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Icon.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Input.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/InputIcon.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/InvisibleTextStyles.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Label.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Link.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/List.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/ListItem.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/ListItemBase.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/MessageStrip.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/MonthPicker.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/MultiComboBox.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/MultiInput.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Panel.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Popover.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Popup.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/PopupGlobal.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/PopupStaticAreaStyles.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/PopupsCommon.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/ProgressIndicator.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/RadioButton.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/RatingIndicator.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/ResponsivePopover.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/ResponsivePopoverCommon.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/SegmentedButton.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Select.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/SelectPopover.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/SliderBase.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/StepInput.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Suggestions.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Switch.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Tab.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/TabContainer.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/TabInOverflow.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/TabInStrip.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Table.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/TableCell.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/TableColumn.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/TableGroupRow.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/TableRow.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/TapHighlightColor.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/TextArea.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/TimePicker.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/TimePickerPopover.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/TimeSelection.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Title.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Toast.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/ToggleButton.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/ToggleButton.ie11.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Token.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Tokenizer.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Tree.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/TreeListItem.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/ValueStateMessage.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/WheelSlider.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/YearPicker.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/sap_belize/parameters-bundle.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/sap_belize_hcb/parameters-bundle.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/sap_belize_hcw/parameters-bundle.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/sap_fiori_3/parameters-bundle.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/sap_horizon/parameters-bundle.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/sap_horizon_exp/parameters-bundle.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/features/ColorPaletteMoreColors.js +6 -6
- package/src/sap/ui/webc/main/thirdparty/features/InputSuggestions.js +20 -15
- package/src/sap/ui/webc/main/thirdparty/generated/i18n/i18n-defaults.js +8 -1
- package/src/sap/ui/webc/main/thirdparty/generated/json-imports/Themes.js +10 -8
- package/src/sap/ui/webc/main/thirdparty/generated/json-imports/i18n.js +47 -47
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BadgeTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BusyIndicatorTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CalendarTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CardHeaderTemplate.lit.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CardTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CarouselTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CheckBoxTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteItemTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPalettePopoverTemplate.lit.js +8 -0
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteTemplate.lit.js +6 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPickerTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ComboBoxPopoverTemplate.lit.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CustomListItemTemplate.lit.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DatePickerPopoverTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DateTimePickerPopoverTemplate.lit.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DayPickerTemplate.lit.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/FileUploaderTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/GroupHeaderListItemTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/InputPopoverTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/InputTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ListItemTemplate.lit.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ListTemplate.lit.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiComboBoxPopoverTemplate.lit.js +12 -9
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiComboBoxTemplate.lit.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiInputTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ProgressIndicatorTemplate.lit.js +9 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/RadioButtonTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/RangeSliderTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/RatingIndicatorTemplate.lit.js +6 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SelectPopoverTemplate.lit.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SelectTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SliderTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/StandardListItemTemplate.lit.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SuggestionListItemTemplate.lit.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SwitchTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabContainerTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabInStripTemplate.lit.js +2 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabSeparatorTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableTemplate.lit.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TimePickerPopoverTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TimePickerTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TimeSelectionTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ToastTemplate.lit.js +2 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TreeListItemTemplate.lit.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TreeTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/WheelSliderTemplate.lit.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Avatar.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/AvatarGroup.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Badge.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Breadcrumbs.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/BreadcrumbsPopover.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/BrowserScrollbar.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/BusyIndicator.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Button.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Button.ie11.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Calendar.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CalendarHeader.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Card.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CardHeader.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Carousel.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CheckBox.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPalette.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPaletteItem.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPalettePopover.css.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPaletteStaticArea.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPicker.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ComboBox.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ComboBoxPopover.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CustomListItem.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DatePicker.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DatePickerPopover.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DateRangePicker.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DateTimePicker.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DateTimePickerPopover.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DayPicker.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Dialog.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/FileUploader.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/GroupHeaderListItem.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/GrowingButton.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Icon.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Input.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/InputIcon.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/InvisibleTextStyles.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Label.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Link.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/List.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ListItem.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ListItemBase.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MessageStrip.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MonthPicker.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MultiComboBox.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MultiInput.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Panel.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Popover.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Popup.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/PopupGlobal.css.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/generated/themes/PopupStaticAreaStyles.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/PopupsCommon.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ProgressIndicator.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/RadioButton.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/RatingIndicator.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ResponsivePopover.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ResponsivePopoverCommon.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SegmentedButton.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Select.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SelectPopover.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SliderBase.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/StepInput.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Suggestions.css.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Switch.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Tab.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabContainer.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabInOverflow.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabInStrip.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Table.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableCell.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableColumn.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableGroupRow.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableRow.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TapHighlightColor.css.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TextArea.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TimePicker.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TimePickerPopover.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TimeSelection.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Title.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Toast.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ToggleButton.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ToggleButton.ie11.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Token.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Tokenizer.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Tree.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TreeListItem.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ValueStateMessage.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/WheelSlider.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/YearPicker.css.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/themes/sap_belize/parameters-bundle.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/sap_belize_hcb/parameters-bundle.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/sap_belize_hcw/parameters-bundle.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/sap_horizon/parameters-bundle.css.js +7 -0
- package/src/sap/ui/webc/main/thirdparty/generated/themes/sap_horizon_exp/parameters-bundle.css.js +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_ar-7754de1c.js → messagebundle_ar-f610ffe9.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_bg-041345aa.js → messagebundle_bg-e372ad7a.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_ca-df38eb0b.js → messagebundle_ca-64403819.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_cs-51d17321.js → messagebundle_cs-f5276d1f.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_cy-cc129f0c.js → messagebundle_cy-5b51959f.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_da-bc87b599.js → messagebundle_da-3f0c542a.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_de-518b0a75.js → messagebundle_de-ff52e292.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_el-9686b145.js → messagebundle_el-8a8f0e04.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_en-57ad19b6.js → messagebundle_en-39f79920.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_en_GB-588d53e3.js → messagebundle_en_GB-9a6995bc.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_en_US_sappsd-e370df7b.js → messagebundle_en_US_sappsd-1cd6f946.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_en_US_saprigi-adf0ddb3.js → messagebundle_en_US_saprigi-88214efb.js} +10 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_en_US_saptrc-261422e2.js → messagebundle_en_US_saptrc-d8b4cc37.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_es-ec258b44.js → messagebundle_es-4e7804b3.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_es_MX-5f113e73.js → messagebundle_es_MX-5d55637e.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_et-901c732b.js → messagebundle_et-d019447e.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_fi-0a2a6323.js → messagebundle_fi-115f5a0c.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_fr-5df8899a.js → messagebundle_fr-f4458a8c.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_fr_CA-0de6a568.js → messagebundle_fr_CA-d3ac2579.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_hi-13e67957.js → messagebundle_hi-3dbf5206.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_hr-93fbc1d1.js → messagebundle_hr-3112e358.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_hu-dd94c35e.js → messagebundle_hu-90f77b24.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_it-0c46ce25.js → messagebundle_it-4fd2c566.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_iw-946df0a2.js → messagebundle_iw-ff53b57b.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_ja-9cb333bb.js → messagebundle_ja-050a69c3.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_kk-239d7820.js → messagebundle_kk-597a9724.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_ko-6f09e984.js → messagebundle_ko-d840efd8.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_lt-2d4f9935.js → messagebundle_lt-d15c1526.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_lv-d73bf0c0.js → messagebundle_lv-539ad33e.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_ms-9b4b2929.js → messagebundle_ms-98b3e6dd.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_nl-55193168.js → messagebundle_nl-5c52e887.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_no-7f4a6832.js → messagebundle_no-04ee2aaf.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_pl-89c36a34.js → messagebundle_pl-6da30702.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_pt-b87f9645.js → messagebundle_pt-71f281c3.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_pt_PT-0e8230b0.js → messagebundle_pt_PT-6d966418.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_ro-83e7f44d.js → messagebundle_ro-e76a9c5d.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_ru-befd37d0.js → messagebundle_ru-dc34dd79.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_sh-4edec182.js → messagebundle_sh-f2171ee6.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_sk-29160489.js → messagebundle_sk-5c10a3c8.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_sl-fd9ba370.js → messagebundle_sl-14cff3cf.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_sv-57bfda52.js → messagebundle_sv-44a9e5d4.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_th-184c45a0.js → messagebundle_th-6cbca7a8.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_tr-d5781fbb.js → messagebundle_tr-00ce0f94.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_uk-e49bb47f.js → messagebundle_uk-bf2de1c7.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_vi-ce27847a.js → messagebundle_vi-a0de6aa8.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_zh_CN-bdbfb1bd.js → messagebundle_zh_CN-7cbf9197.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_zh_TW-ca1de535.js → messagebundle_zh_TW-53705d5b.js} +7 -0
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-0f28e359.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-1ee56435.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-4d4cd873.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-5bdedee7.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-60d672db.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-793a420b.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-7c549d8f.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-7e5617d6.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-e75a0bfb.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-09f8e92d.js +0 -9
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-19666884.js +0 -9
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-8e7c6ad9.js +0 -9
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-cb713657.js +0 -9
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-dd8f2f47.js +0 -9
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-e3a31f8e.js +0 -9
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-e44b2b84.js +0 -9
|
@@ -6,6 +6,8 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/Device', 'sap/ui/webc/common/
|
|
|
6
6
|
var litRender__default = /*#__PURE__*/_interopDefaultLegacy(litRender);
|
|
7
7
|
var ValueState__default = /*#__PURE__*/_interopDefaultLegacy(ValueState);
|
|
8
8
|
|
|
9
|
+
let isGlobalHandlerAttached = false;
|
|
10
|
+
let activeCb = null;
|
|
9
11
|
const metadata = {
|
|
10
12
|
tag: "ui5-checkbox",
|
|
11
13
|
languageAware: true,
|
|
@@ -36,6 +38,9 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/Device', 'sap/ui/webc/common/
|
|
|
36
38
|
name: {
|
|
37
39
|
type: String,
|
|
38
40
|
},
|
|
41
|
+
active: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
},
|
|
39
44
|
},
|
|
40
45
|
events: {
|
|
41
46
|
change: {},
|
|
@@ -61,7 +66,15 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/Device', 'sap/ui/webc/common/
|
|
|
61
66
|
}
|
|
62
67
|
constructor() {
|
|
63
68
|
super();
|
|
64
|
-
this.
|
|
69
|
+
this._deactivate = () => {
|
|
70
|
+
if (activeCb) {
|
|
71
|
+
activeCb.active = false;
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
if (!isGlobalHandlerAttached) {
|
|
75
|
+
document.addEventListener("mouseup", this._deactivate);
|
|
76
|
+
isGlobalHandlerAttached = true;
|
|
77
|
+
}
|
|
65
78
|
}
|
|
66
79
|
onBeforeRendering() {
|
|
67
80
|
this._enableFormSupport();
|
|
@@ -80,18 +93,31 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/Device', 'sap/ui/webc/common/
|
|
|
80
93
|
_onclick() {
|
|
81
94
|
this.toggle();
|
|
82
95
|
}
|
|
96
|
+
_onmousedown() {
|
|
97
|
+
this.active = true;
|
|
98
|
+
activeCb = this;
|
|
99
|
+
}
|
|
100
|
+
_onmouseup() {
|
|
101
|
+
this.active = false;
|
|
102
|
+
}
|
|
103
|
+
_onfocusout() {
|
|
104
|
+
this.active = false;
|
|
105
|
+
}
|
|
83
106
|
_onkeydown(event) {
|
|
84
107
|
if (Keys.isSpace(event)) {
|
|
85
108
|
event.preventDefault();
|
|
109
|
+
this.active = true;
|
|
86
110
|
}
|
|
87
111
|
if (Keys.isEnter(event)) {
|
|
88
112
|
this.toggle();
|
|
113
|
+
this.active = true;
|
|
89
114
|
}
|
|
90
115
|
}
|
|
91
116
|
_onkeyup(event) {
|
|
92
117
|
if (Keys.isSpace(event)) {
|
|
93
118
|
this.toggle();
|
|
94
119
|
}
|
|
120
|
+
this.active = false;
|
|
95
121
|
}
|
|
96
122
|
toggle() {
|
|
97
123
|
if (this.canToggle()) {
|
|
@@ -110,11 +136,10 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/Device', 'sap/ui/webc/common/
|
|
|
110
136
|
return !(this.disabled || this.readonly);
|
|
111
137
|
}
|
|
112
138
|
valueStateTextMappings() {
|
|
113
|
-
const i18nBundle = this.i18nBundle;
|
|
114
139
|
return {
|
|
115
|
-
"Error": i18nBundle.getText(i18nDefaults.VALUE_STATE_ERROR),
|
|
116
|
-
"Warning": i18nBundle.getText(i18nDefaults.VALUE_STATE_WARNING),
|
|
117
|
-
"Success": i18nBundle.getText(i18nDefaults.VALUE_STATE_SUCCESS),
|
|
140
|
+
"Error": CheckBox.i18nBundle.getText(i18nDefaults.VALUE_STATE_ERROR),
|
|
141
|
+
"Warning": CheckBox.i18nBundle.getText(i18nDefaults.VALUE_STATE_WARNING),
|
|
142
|
+
"Success": CheckBox.i18nBundle.getText(i18nDefaults.VALUE_STATE_SUCCESS),
|
|
118
143
|
};
|
|
119
144
|
}
|
|
120
145
|
get classes() {
|
|
@@ -159,7 +184,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/Device', 'sap/ui/webc/common/
|
|
|
159
184
|
];
|
|
160
185
|
}
|
|
161
186
|
static async onDefine() {
|
|
162
|
-
await i18nBundle.
|
|
187
|
+
CheckBox.i18nBundle = await i18nBundle.getI18nBundle("@ui5/webcomponents");
|
|
163
188
|
}
|
|
164
189
|
}
|
|
165
190
|
CheckBox.define();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/common/thirdparty/base/renderer/LitRenderer', 'sap/ui/webc/common/thirdparty/base/i18nBundle', 'sap/ui/webc/common/thirdparty/base/delegate/ItemNavigation', 'sap/ui/webc/common/thirdparty/base/types/CSSColor', 'sap/ui/webc/common/thirdparty/base/types/ItemNavigationBehavior', 'sap/ui/webc/common/thirdparty/base/Keys', 'sap/ui/webc/common/thirdparty/base/FeaturesRegistry', './generated/templates/ColorPaletteTemplate.lit', './generated/templates/ColorPaletteDialogTemplate.lit', './ColorPaletteItem', './generated/i18n/i18n-defaults', './generated/themes/ColorPalette.css', './generated/themes/ColorPaletteStaticArea.css'], function (UI5Element, litRender, i18nBundle, ItemNavigation, CSSColor, ItemNavigationBehavior, Keys, FeaturesRegistry, ColorPaletteTemplate_lit, ColorPaletteDialogTemplate_lit, ColorPaletteItem, i18nDefaults, ColorPalette_css, ColorPaletteStaticArea_css) { 'use strict';
|
|
1
|
+
sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/common/thirdparty/base/renderer/LitRenderer', 'sap/ui/webc/common/thirdparty/base/i18nBundle', 'sap/ui/webc/common/thirdparty/base/delegate/ItemNavigation', 'sap/ui/webc/common/thirdparty/base/types/CSSColor', 'sap/ui/webc/common/thirdparty/base/types/ItemNavigationBehavior', 'sap/ui/webc/common/thirdparty/base/Device', 'sap/ui/webc/common/thirdparty/base/Keys', 'sap/ui/webc/common/thirdparty/base/FeaturesRegistry', './generated/templates/ColorPaletteTemplate.lit', './generated/templates/ColorPaletteDialogTemplate.lit', './ColorPaletteItem', './generated/i18n/i18n-defaults', './generated/themes/ColorPalette.css', './generated/themes/ColorPaletteStaticArea.css'], function (UI5Element, litRender, i18nBundle, ItemNavigation, CSSColor, ItemNavigationBehavior, Device, Keys, FeaturesRegistry, ColorPaletteTemplate_lit, ColorPaletteDialogTemplate_lit, ColorPaletteItem, i18nDefaults, ColorPalette_css, ColorPaletteStaticArea_css) { 'use strict';
|
|
2
2
|
|
|
3
3
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
|
|
4
4
|
|
|
@@ -18,9 +18,18 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
18
18
|
showMoreColors: {
|
|
19
19
|
type: Boolean,
|
|
20
20
|
},
|
|
21
|
+
showDefaultColor: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
},
|
|
24
|
+
defaultColor: {
|
|
25
|
+
type: CSSColor__default,
|
|
26
|
+
},
|
|
21
27
|
_selectedColor: {
|
|
22
28
|
type: CSSColor__default,
|
|
23
29
|
},
|
|
30
|
+
popupMode: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
},
|
|
24
33
|
},
|
|
25
34
|
slots: {
|
|
26
35
|
"default": {
|
|
@@ -64,16 +73,24 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
64
73
|
return [ColorPaletteItem].concat(ColorPaletteMoreColors ? ColorPaletteMoreColors.dependencies : []);
|
|
65
74
|
}
|
|
66
75
|
static async onDefine() {
|
|
67
|
-
|
|
76
|
+
const ColorPaletteMoreColors = FeaturesRegistry.getFeature("ColorPaletteMoreColors");
|
|
77
|
+
[ColorPalette.i18nBundle] = await Promise.all([
|
|
78
|
+
i18nBundle.getI18nBundle("@ui5/webcomponents"),
|
|
79
|
+
ColorPaletteMoreColors ? ColorPaletteMoreColors.init() : Promise.resolve(),
|
|
80
|
+
]);
|
|
68
81
|
}
|
|
69
82
|
constructor() {
|
|
70
83
|
super();
|
|
71
|
-
this.i18nBundle = i18nBundle.getI18nBundle("@ui5/webcomponents");
|
|
72
84
|
this._itemNavigation = new ItemNavigation__default(this, {
|
|
73
85
|
getItemsCallback: () => this.displayedColors,
|
|
74
|
-
rowSize:
|
|
86
|
+
rowSize: this.rowSize,
|
|
75
87
|
behavior: ItemNavigationBehavior__default.Cyclic,
|
|
76
88
|
});
|
|
89
|
+
this._itemNavigationRecentColors = new ItemNavigation__default(this, {
|
|
90
|
+
getItemsCallback: () => this.recentColorsElements,
|
|
91
|
+
rowSize: this.rowSize,
|
|
92
|
+
behavior: ItemNavigationBehavior__default.Static,
|
|
93
|
+
});
|
|
77
94
|
this._recentColors = [];
|
|
78
95
|
}
|
|
79
96
|
onBeforeRendering() {
|
|
@@ -90,6 +107,9 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
90
107
|
}
|
|
91
108
|
}
|
|
92
109
|
selectColor(item) {
|
|
110
|
+
if (!item.value) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
93
113
|
item.focus();
|
|
94
114
|
if (this.displayedColors.includes(item)) {
|
|
95
115
|
this._itemNavigation.setCurrentItem(item);
|
|
@@ -115,16 +135,105 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
115
135
|
}
|
|
116
136
|
}
|
|
117
137
|
_onkeyup(event) {
|
|
118
|
-
if (Keys.isSpace(event)) {
|
|
138
|
+
if (Keys.isSpace(event) && event.target.localName === "ui5-color-palette-item") {
|
|
119
139
|
event.preventDefault();
|
|
120
140
|
this.selectColor(event.target);
|
|
121
141
|
}
|
|
122
142
|
}
|
|
123
143
|
_onkeydown(event) {
|
|
124
|
-
if (Keys.isEnter(event)) {
|
|
144
|
+
if (Keys.isEnter(event) && event.target.localName === "ui5-color-palette-item") {
|
|
125
145
|
this.selectColor(event.target);
|
|
126
146
|
}
|
|
127
147
|
}
|
|
148
|
+
_onDefaultColorKeyDown(event) {
|
|
149
|
+
if (Keys.isTabNext(event) && this.popupMode) {
|
|
150
|
+
event.preventDefault();
|
|
151
|
+
this._onDefaultColorClick();
|
|
152
|
+
}
|
|
153
|
+
if (Keys.isDown(event)) {
|
|
154
|
+
event.stopPropagation();
|
|
155
|
+
this.focusColorElement(this.colorPaletteNavigationElements[1], this._itemNavigation);
|
|
156
|
+
} else if (Keys.isUp(event)) {
|
|
157
|
+
event.stopPropagation();
|
|
158
|
+
const lastElementInNavigation = this.colorPaletteNavigationElements[this.colorPaletteNavigationElements.length - 1];
|
|
159
|
+
if (this.hasRecentColors) {
|
|
160
|
+
this.focusColorElement(lastElementInNavigation, this._itemNavigationRecentColors);
|
|
161
|
+
} else if (this.showMoreColors) {
|
|
162
|
+
lastElementInNavigation.focus();
|
|
163
|
+
} else {
|
|
164
|
+
const colorPaletteFocusIndex = (this.displayedColors.length % this.rowSize) * this.rowSize;
|
|
165
|
+
this.focusColorElement(this.displayedColors[colorPaletteFocusIndex], this._itemNavigation);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
_onMoreColorsKeyDown(event) {
|
|
170
|
+
const index = this.colorPaletteNavigationElements.indexOf(event.target);
|
|
171
|
+
const colorPaletteFocusIndex = (this.displayedColors.length % this.rowSize) * this.rowSize;
|
|
172
|
+
if (Keys.isUp(event)) {
|
|
173
|
+
event.stopPropagation();
|
|
174
|
+
this.focusColorElement(this.displayedColors[colorPaletteFocusIndex], this._itemNavigation);
|
|
175
|
+
} else if (Keys.isDown(event)) {
|
|
176
|
+
event.stopPropagation();
|
|
177
|
+
if (this.hasRecentColors) {
|
|
178
|
+
this.focusColorElement(this.colorPaletteNavigationElements[index + 1], this._itemNavigationRecentColors);
|
|
179
|
+
} else if (this.showDefaultColor) {
|
|
180
|
+
this.colorPaletteNavigationElements[0].focus();
|
|
181
|
+
} else {
|
|
182
|
+
this.focusColorElement(this.displayedColors[0], this._itemNavigation);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
_onColorContainerKeyDown(event) {
|
|
187
|
+
const lastElementInNavigation = this.colorPaletteNavigationElements[this.colorPaletteNavigationElements.length - 1];
|
|
188
|
+
if (Keys.isTabNext(event) && this.popupMode) {
|
|
189
|
+
event.preventDefault();
|
|
190
|
+
this.selectColor(event.target);
|
|
191
|
+
}
|
|
192
|
+
if (Keys.isUp(event) && event.target === this.displayedColors[0] && this.colorPaletteNavigationElements.length > 1) {
|
|
193
|
+
event.stopPropagation();
|
|
194
|
+
if (this.showDefaultColor) {
|
|
195
|
+
this.colorPaletteNavigationElements[0].focus();
|
|
196
|
+
} else if (!this.showDefaultColor && this.hasRecentColors) {
|
|
197
|
+
this.focusColorElement(lastElementInNavigation, this._itemNavigationRecentColors);
|
|
198
|
+
} else if (!this.showDefaultColor && this.showMoreColors) {
|
|
199
|
+
lastElementInNavigation.focus();
|
|
200
|
+
}
|
|
201
|
+
} else if (Keys.isDown(event) && event.target === this.displayedColors[this.displayedColors.length - 1] && this.colorPaletteNavigationElements.length > 1) {
|
|
202
|
+
event.stopPropagation();
|
|
203
|
+
const isRecentColorsNextElement = (this.showDefaultColor && !this.showMoreColors && this.hasRecentColors) || (!this.showDefaultColor && !this.showMoreColors && this.hasRecentColors);
|
|
204
|
+
if (this.showDefaultColor && this.showMoreColors) {
|
|
205
|
+
this.colorPaletteNavigationElements[2].focus();
|
|
206
|
+
} else if (this.showDefaultColor && !this.showMoreColors && (!this.showRecentColors || !this.recentColors[0])) {
|
|
207
|
+
this.colorPaletteNavigationElements[0].focus();
|
|
208
|
+
} else if (isRecentColorsNextElement) {
|
|
209
|
+
this.focusColorElement(lastElementInNavigation, this._itemNavigationRecentColors);
|
|
210
|
+
} else if (!this.showDefaultColor && this.showMoreColors) {
|
|
211
|
+
this.colorPaletteNavigationElements[1].focus();
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
_onRecentColorsContainerKeyDown(event) {
|
|
216
|
+
if (Keys.isUp(event)) {
|
|
217
|
+
if (this.showMoreColors) {
|
|
218
|
+
this.colorPaletteNavigationElements[1 + this.showDefaultColor].focus();
|
|
219
|
+
} else if (!this.showMoreColors && this.colorPaletteNavigationElements.length > 1) {
|
|
220
|
+
const colorPaletteFocusIndex = (this.displayedColors.length % this.rowSize) * this.rowSize;
|
|
221
|
+
event.stopPropagation();
|
|
222
|
+
this.focusColorElement(this.displayedColors[colorPaletteFocusIndex], this._itemNavigation);
|
|
223
|
+
}
|
|
224
|
+
} else if (Keys.isDown(event)) {
|
|
225
|
+
if (this.showDefaultColor) {
|
|
226
|
+
this.colorPaletteNavigationElements[0].focus();
|
|
227
|
+
} else {
|
|
228
|
+
event.stopPropagation();
|
|
229
|
+
this.focusColorElement(this.displayedColors[0], this._itemNavigation);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
focusColorElement(element, itemNavigation) {
|
|
234
|
+
itemNavigation.setCurrentItem(element);
|
|
235
|
+
itemNavigation._focusCurrentItem();
|
|
236
|
+
}
|
|
128
237
|
async _chooseCustomColor() {
|
|
129
238
|
const colorPicker = await this.getColorPicker();
|
|
130
239
|
this._setColor(colorPicker.color);
|
|
@@ -138,30 +247,70 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
138
247
|
const dialog = await this._getDialog();
|
|
139
248
|
dialog.show();
|
|
140
249
|
}
|
|
250
|
+
_onDefaultColorClick() {
|
|
251
|
+
if (this.defaultColor) {
|
|
252
|
+
this._setColor(this.defaultColor);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
141
255
|
get selectedColor() {
|
|
142
256
|
return this._selectedColor;
|
|
143
257
|
}
|
|
144
258
|
get displayedColors() {
|
|
145
|
-
return this.colors.filter(item => item.value).slice(0, 15);
|
|
259
|
+
return this.getSlottedNodes("colors").filter(item => item.value).slice(0, 15);
|
|
146
260
|
}
|
|
147
261
|
get colorContainerLabel() {
|
|
148
|
-
return
|
|
262
|
+
return ColorPalette.i18nBundle.getText(i18nDefaults.COLORPALETTE_CONTAINER_LABEL);
|
|
149
263
|
}
|
|
150
264
|
get colorPaleteMoreColorsText() {
|
|
151
|
-
return
|
|
265
|
+
return ColorPalette.i18nBundle.getText(i18nDefaults.COLOR_PALETTE_MORE_COLORS_TEXT);
|
|
152
266
|
}
|
|
153
267
|
get _showMoreColors() {
|
|
154
268
|
return this.showMoreColors && this.moreColorsFeature;
|
|
155
269
|
}
|
|
270
|
+
get rowSize() {
|
|
271
|
+
return 5;
|
|
272
|
+
}
|
|
273
|
+
get hasRecentColors() {
|
|
274
|
+
return this.showRecentColors && this.recentColors[0];
|
|
275
|
+
}
|
|
156
276
|
get recentColors() {
|
|
157
|
-
if (this._recentColors.length >
|
|
158
|
-
this._recentColors = this._recentColors.slice(0,
|
|
277
|
+
if (this._recentColors.length > this.rowSize) {
|
|
278
|
+
this._recentColors = this._recentColors.slice(0, this.rowSize);
|
|
159
279
|
}
|
|
160
|
-
while (this._recentColors.length <
|
|
280
|
+
while (this._recentColors.length < this.rowSize) {
|
|
161
281
|
this._recentColors.push("");
|
|
162
282
|
}
|
|
163
283
|
return this._recentColors;
|
|
164
284
|
}
|
|
285
|
+
get recentColorsElements() {
|
|
286
|
+
if (this.getDomRef()) {
|
|
287
|
+
return Array.from(this.getDomRef().querySelectorAll(".ui5-cp-recent-colors-wrapper [ui5-color-palette-item]")).filter(x => x.value !== "");
|
|
288
|
+
}
|
|
289
|
+
return [];
|
|
290
|
+
}
|
|
291
|
+
get colorPaletteNavigationElements() {
|
|
292
|
+
const navigationElements = [];
|
|
293
|
+
const rootElement = this.shadowRoot.querySelector(".ui5-cp-root");
|
|
294
|
+
if (this.showDefaultColor) {
|
|
295
|
+
navigationElements.push(rootElement.querySelector(".ui5-cp-default-color-button"));
|
|
296
|
+
}
|
|
297
|
+
navigationElements.push(this.displayedColors[0]);
|
|
298
|
+
if (this.showMoreColors) {
|
|
299
|
+
navigationElements.push(rootElement.querySelector(".ui5-cp-more-colors"));
|
|
300
|
+
}
|
|
301
|
+
if (this.showRecentColors && !!this.recentColorsElements.length) {
|
|
302
|
+
navigationElements.push(this.recentColorsElements[0]);
|
|
303
|
+
}
|
|
304
|
+
return navigationElements;
|
|
305
|
+
}
|
|
306
|
+
get classes() {
|
|
307
|
+
return {
|
|
308
|
+
colorPaletteRoot: {
|
|
309
|
+
"ui5-cp-root": true,
|
|
310
|
+
"ui5-cp-root-phone": Device.isPhone(),
|
|
311
|
+
},
|
|
312
|
+
};
|
|
313
|
+
}
|
|
165
314
|
async _getDialog() {
|
|
166
315
|
const staticAreaItem = await this.getStaticAreaItemDomRef();
|
|
167
316
|
return staticAreaItem.querySelector("[ui5-dialog]");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/common/thirdparty/base/renderer/LitRenderer', 'sap/ui/webc/common/thirdparty/base/i18nBundle', 'sap/ui/webc/common/thirdparty/base/types/CSSColor', './generated/templates/ColorPaletteItemTemplate.lit', './generated/i18n/i18n-defaults', './generated/themes/ColorPaletteItem.css'], function (UI5Element, litRender, i18nBundle, CSSColor, ColorPaletteItemTemplate_lit, i18nDefaults, ColorPaletteItem_css) { 'use strict';
|
|
1
|
+
sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/common/thirdparty/base/renderer/LitRenderer', 'sap/ui/webc/common/thirdparty/base/i18nBundle', 'sap/ui/webc/common/thirdparty/base/types/CSSColor', 'sap/ui/webc/common/thirdparty/base/Device', './generated/templates/ColorPaletteItemTemplate.lit', './generated/i18n/i18n-defaults', './generated/themes/ColorPaletteItem.css'], function (UI5Element, litRender, i18nBundle, CSSColor, Device, ColorPaletteItemTemplate_lit, i18nDefaults, ColorPaletteItem_css) { 'use strict';
|
|
2
2
|
|
|
3
3
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
|
|
4
4
|
|
|
@@ -21,6 +21,9 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
21
21
|
index: {
|
|
22
22
|
type: String,
|
|
23
23
|
},
|
|
24
|
+
phone: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
},
|
|
24
27
|
_disabled: {
|
|
25
28
|
type: Boolean,
|
|
26
29
|
},
|
|
@@ -44,17 +47,24 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
44
47
|
return ColorPaletteItemTemplate_lit;
|
|
45
48
|
}
|
|
46
49
|
static async onDefine() {
|
|
47
|
-
await i18nBundle.
|
|
50
|
+
ColorPaletteItem.i18nBundle = await i18nBundle.getI18nBundle("@ui5/webcomponents");
|
|
48
51
|
}
|
|
49
52
|
constructor() {
|
|
50
53
|
super();
|
|
51
|
-
this.i18nBundle = i18nBundle.getI18nBundle("@ui5/webcomponents");
|
|
52
54
|
}
|
|
53
55
|
onBeforeRendering() {
|
|
54
56
|
this._disabled = !this.value;
|
|
57
|
+
this.phone = Device.isPhone();
|
|
55
58
|
}
|
|
56
59
|
get colorLabel() {
|
|
57
|
-
return
|
|
60
|
+
return ColorPaletteItem.i18nBundle.getText(i18nDefaults.COLORPALETTE_COLOR_LABEL);
|
|
61
|
+
}
|
|
62
|
+
get styles() {
|
|
63
|
+
return {
|
|
64
|
+
root: {
|
|
65
|
+
"background-color": this.value,
|
|
66
|
+
},
|
|
67
|
+
};
|
|
58
68
|
}
|
|
59
69
|
}
|
|
60
70
|
ColorPaletteItem.define();
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/common/thirdparty/base/renderer/LitRenderer', 'sap/ui/webc/common/thirdparty/base/i18nBundle', 'sap/ui/webc/common/thirdparty/base/types/CSSColor', './generated/templates/ColorPalettePopoverTemplate.lit', './generated/themes/ColorPalettePopover.css', './generated/themes/ResponsivePopoverCommon.css', './generated/i18n/i18n-defaults', './Button', './ResponsivePopover', './ColorPalette'], function (UI5Element, litRender, i18nBundle, CSSColor, ColorPalettePopoverTemplate_lit, ColorPalettePopover_css, ResponsivePopoverCommon_css, i18nDefaults, Button, ResponsivePopover, ColorPalette) { 'use strict';
|
|
2
|
+
|
|
3
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
|
|
4
|
+
|
|
5
|
+
var UI5Element__default = /*#__PURE__*/_interopDefaultLegacy(UI5Element);
|
|
6
|
+
var litRender__default = /*#__PURE__*/_interopDefaultLegacy(litRender);
|
|
7
|
+
var CSSColor__default = /*#__PURE__*/_interopDefaultLegacy(CSSColor);
|
|
8
|
+
|
|
9
|
+
const metadata = {
|
|
10
|
+
tag: "ui5-color-palette-popover",
|
|
11
|
+
managedSlots: true,
|
|
12
|
+
properties: {
|
|
13
|
+
showRecentColors: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
},
|
|
16
|
+
showMoreColors: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
},
|
|
19
|
+
showDefaultColor: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
},
|
|
22
|
+
defaultColor: {
|
|
23
|
+
type: CSSColor__default,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
slots: {
|
|
27
|
+
"default": {
|
|
28
|
+
type: HTMLElement,
|
|
29
|
+
propertyName: "colors",
|
|
30
|
+
individualSlots: true,
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
events: {
|
|
34
|
+
"item-click": {
|
|
35
|
+
details: {
|
|
36
|
+
color: {
|
|
37
|
+
type: String,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
class ColorPalettePopover extends UI5Element__default {
|
|
44
|
+
static get metadata() {
|
|
45
|
+
return metadata;
|
|
46
|
+
}
|
|
47
|
+
static get render() {
|
|
48
|
+
return litRender__default;
|
|
49
|
+
}
|
|
50
|
+
static get styles() {
|
|
51
|
+
return [ResponsivePopoverCommon_css, ColorPalettePopover_css];
|
|
52
|
+
}
|
|
53
|
+
static get template() {
|
|
54
|
+
return ColorPalettePopoverTemplate_lit;
|
|
55
|
+
}
|
|
56
|
+
static get dependencies() {
|
|
57
|
+
return [
|
|
58
|
+
ResponsivePopover,
|
|
59
|
+
Button,
|
|
60
|
+
ColorPalette,
|
|
61
|
+
];
|
|
62
|
+
}
|
|
63
|
+
static async onDefine() {
|
|
64
|
+
ColorPalettePopover.i18nBundle = await i18nBundle.getI18nBundle("@ui5/webcomponents");
|
|
65
|
+
}
|
|
66
|
+
constructor() {
|
|
67
|
+
super();
|
|
68
|
+
}
|
|
69
|
+
_respPopover() {
|
|
70
|
+
this.responsivePopover = this.shadowRoot.querySelector("[ui5-responsive-popover]");
|
|
71
|
+
return this.responsivePopover;
|
|
72
|
+
}
|
|
73
|
+
_colorPalette() {
|
|
74
|
+
return this.responsivePopover.content[0].querySelector("[ui5-color-palette]");
|
|
75
|
+
}
|
|
76
|
+
closePopover() {
|
|
77
|
+
this.responsivePopover.close();
|
|
78
|
+
}
|
|
79
|
+
openPopover(opener) {
|
|
80
|
+
this._respPopover();
|
|
81
|
+
this.responsivePopover.showAt(opener, true);
|
|
82
|
+
if (this.showDefaultColor) {
|
|
83
|
+
this._colorPalette().colorPaletteNavigationElements[0].focus();
|
|
84
|
+
} else {
|
|
85
|
+
this._colorPalette().focusColorElement(this._colorPalette().colorPaletteNavigationElements[0], this._colorPalette()._itemNavigation);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
onSelectedColor(event) {
|
|
89
|
+
this.closePopover();
|
|
90
|
+
this.fireEvent("item-click", event.detail);
|
|
91
|
+
}
|
|
92
|
+
isOpen() {
|
|
93
|
+
this._respPopover();
|
|
94
|
+
return this.responsivePopover.opened;
|
|
95
|
+
}
|
|
96
|
+
get colorPaletteColors() {
|
|
97
|
+
return this.getSlottedNodes("colors");
|
|
98
|
+
}
|
|
99
|
+
get _colorPaletteTitle() {
|
|
100
|
+
return ColorPalettePopover.i18nBundle.getText(i18nDefaults.COLORPALETTE_POPOVER_TITLE);
|
|
101
|
+
}
|
|
102
|
+
get _cancelButtonLabel() {
|
|
103
|
+
return ColorPalettePopover.i18nBundle.getText(i18nDefaults.COLOR_PALETTE_DIALOG_CANCEL_BUTTON);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
ColorPalettePopover.define();
|
|
107
|
+
|
|
108
|
+
return ColorPalettePopover;
|
|
109
|
+
|
|
110
|
+
});
|
|
@@ -83,9 +83,10 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
83
83
|
}
|
|
84
84
|
onBeforeRendering() {
|
|
85
85
|
this._color = ColorConversion.getRGBColor(this.color);
|
|
86
|
+
const tempColor = `rgba(${this._color.r}, ${this._color.g}, ${this._color.b}, 1)`;
|
|
86
87
|
this._setHex();
|
|
87
88
|
this._setValues();
|
|
88
|
-
this.style.setProperty("--ui5_Color_Picker_Progress_Container_Color",
|
|
89
|
+
this.style.setProperty("--ui5_Color_Picker_Progress_Container_Color", tempColor);
|
|
89
90
|
}
|
|
90
91
|
async onAfterRendering() {
|
|
91
92
|
if (Device.isIE()) {
|
|
@@ -183,10 +184,16 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
183
184
|
}
|
|
184
185
|
_handleAlphaInput(event) {
|
|
185
186
|
this._alpha = parseFloat(event.target.value);
|
|
187
|
+
this._setColor(this._color);
|
|
186
188
|
}
|
|
187
189
|
_handleHueInput(event) {
|
|
188
190
|
this.selectedHue = event.target.value;
|
|
191
|
+
this._hue = this.selectedHue;
|
|
189
192
|
this._setMainColor(this._hue);
|
|
193
|
+
const tempColor = this._calculateColorFromCoordinates(this._selectedCoordinates.x + 6.5, this._selectedCoordinates.y + 6.5);
|
|
194
|
+
if (tempColor) {
|
|
195
|
+
this._setColor(ColorConversion.HSLToRGB(tempColor));
|
|
196
|
+
}
|
|
190
197
|
}
|
|
191
198
|
_handleHEXChange(event) {
|
|
192
199
|
let newValue = event.target.value.toLowerCase();
|
|
@@ -215,6 +222,8 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
215
222
|
case "blue":
|
|
216
223
|
tempColor = { ...this._color, b: targetValue };
|
|
217
224
|
break;
|
|
225
|
+
default:
|
|
226
|
+
tempColor = { ...this._color };
|
|
218
227
|
}
|
|
219
228
|
this._setColor(tempColor);
|
|
220
229
|
}
|