@openui5/sap.ui.webc.main 1.98.0 → 1.99.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 +4 -1
- package/src/sap/ui/webc/main/AvatarGroup.js +4 -1
- package/src/sap/ui/webc/main/Badge.js +4 -1
- package/src/sap/ui/webc/main/Breadcrumbs.js +6 -2
- package/src/sap/ui/webc/main/BreadcrumbsItem.js +4 -1
- package/src/sap/ui/webc/main/BusyIndicator.js +4 -1
- package/src/sap/ui/webc/main/Button.js +49 -1
- package/src/sap/ui/webc/main/Calendar.js +5 -1
- package/src/sap/ui/webc/main/CalendarDate.js +4 -1
- package/src/sap/ui/webc/main/Card.js +20 -10
- package/src/sap/ui/webc/main/CardHeader.js +4 -1
- package/src/sap/ui/webc/main/Carousel.js +8 -2
- package/src/sap/ui/webc/main/CheckBox.js +49 -1
- package/src/sap/ui/webc/main/ColorPalette.js +4 -1
- package/src/sap/ui/webc/main/ColorPaletteItem.js +4 -1
- package/src/sap/ui/webc/main/ColorPalettePopover.js +22 -2
- package/src/sap/ui/webc/main/ColorPicker.js +4 -1
- package/src/sap/ui/webc/main/ComboBox.js +37 -12
- package/src/sap/ui/webc/main/ComboBoxGroupItem.js +4 -1
- package/src/sap/ui/webc/main/ComboBoxItem.js +4 -1
- package/src/sap/ui/webc/main/CustomListItem.js +4 -1
- package/src/sap/ui/webc/main/DatePicker.js +20 -10
- package/src/sap/ui/webc/main/DateRangePicker.js +28 -11
- package/src/sap/ui/webc/main/DateTimePicker.js +19 -9
- package/src/sap/ui/webc/main/Dialog.js +20 -2
- package/src/sap/ui/webc/main/FileUploader.js +4 -1
- package/src/sap/ui/webc/main/GroupHeaderListItem.js +4 -1
- package/src/sap/ui/webc/main/Icon.js +20 -3
- package/src/sap/ui/webc/main/Input.js +54 -10
- package/src/sap/ui/webc/main/Label.js +29 -12
- package/src/sap/ui/webc/main/Link.js +44 -5
- package/src/sap/ui/webc/main/List.js +25 -13
- package/src/sap/ui/webc/main/MessageStrip.js +6 -1
- package/src/sap/ui/webc/main/MultiComboBox.js +13 -1
- package/src/sap/ui/webc/main/MultiComboBoxItem.js +4 -1
- package/src/sap/ui/webc/main/MultiInput.js +38 -10
- package/src/sap/ui/webc/main/Option.js +4 -1
- package/src/sap/ui/webc/main/Panel.js +6 -1
- package/src/sap/ui/webc/main/Popover.js +20 -2
- package/src/sap/ui/webc/main/ProgressIndicator.js +13 -1
- package/src/sap/ui/webc/main/RadioButton.js +41 -1
- package/src/sap/ui/webc/main/RangeSlider.js +6 -2
- package/src/sap/ui/webc/main/RatingIndicator.js +19 -2
- package/src/sap/ui/webc/main/ResponsivePopover.js +20 -2
- package/src/sap/ui/webc/main/SegmentedButton.js +33 -1
- package/src/sap/ui/webc/main/SegmentedButtonItem.js +49 -1
- package/src/sap/ui/webc/main/Select.js +28 -9
- package/src/sap/ui/webc/main/Slider.js +15 -2
- package/src/sap/ui/webc/main/SplitButton.js +156 -0
- package/src/sap/ui/webc/main/StandardListItem.js +4 -1
- package/src/sap/ui/webc/main/StepInput.js +28 -9
- package/src/sap/ui/webc/main/SuggestionGroupItem.js +4 -1
- package/src/sap/ui/webc/main/SuggestionItem.js +4 -1
- package/src/sap/ui/webc/main/Switch.js +19 -1
- package/src/sap/ui/webc/main/Tab.js +5 -2
- package/src/sap/ui/webc/main/TabContainer.js +37 -2
- package/src/sap/ui/webc/main/TabSeparator.js +4 -1
- package/src/sap/ui/webc/main/Table.js +20 -2
- package/src/sap/ui/webc/main/TableCell.js +4 -1
- package/src/sap/ui/webc/main/TableColumn.js +4 -1
- package/src/sap/ui/webc/main/TableGroupRow.js +4 -1
- package/src/sap/ui/webc/main/TableRow.js +4 -1
- package/src/sap/ui/webc/main/TextArea.js +19 -9
- package/src/sap/ui/webc/main/TimePicker.js +4 -1
- package/src/sap/ui/webc/main/Title.js +4 -1
- package/src/sap/ui/webc/main/Toast.js +4 -1
- package/src/sap/ui/webc/main/ToggleButton.js +49 -1
- package/src/sap/ui/webc/main/Token.js +4 -1
- package/src/sap/ui/webc/main/Tree.js +4 -1
- package/src/sap/ui/webc/main/TreeItem.js +20 -1
- package/src/sap/ui/webc/main/designtime/Input.designtime.js +26 -0
- package/src/sap/ui/webc/main/designtime/MultiInput.designtime.js +27 -0
- package/src/sap/ui/webc/main/designtime/RangeSlider.designtime.js +26 -0
- package/src/sap/ui/webc/main/designtime/RatingIndicator.designtime.js +26 -0
- package/src/sap/ui/webc/main/designtime/Slider.designtime.js +25 -0
- package/src/sap/ui/webc/main/designtime/library.designtime.js +12 -0
- package/src/sap/ui/webc/main/designtime/messagebundle.properties +32 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_ar.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_bg.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_ca.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_cs.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_cy.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_da.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_de.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_el.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_en.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_en_GB.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_en_US_sappsd.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_en_US_saprigi.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_en_US_saptrc.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_es.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_es_MX.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_et.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_fi.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_fr.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_fr_CA.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_hi.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_hr.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_hu.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_id.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_it.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_iw.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_ja.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_kk.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_ko.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_lt.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_lv.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_ms.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_nl.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_no.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_pl.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_pt.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_pt_PT.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_ro.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_ru.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_sh.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_sk.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_sl.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_sv.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_th.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_tr.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_uk.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_vi.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_zh_CN.properties +24 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_zh_TW.properties +24 -0
- package/src/sap/ui/webc/main/library.config.js +3 -0
- package/src/sap/ui/webc/main/library.js +99 -4
- package/src/sap/ui/webc/main/thirdparty/AvatarGroup.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/Breadcrumbs.js +14 -9
- package/src/sap/ui/webc/main/thirdparty/BreadcrumbsItem.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/BusyIndicator.js +2 -3
- package/src/sap/ui/webc/main/thirdparty/Button.js +9 -13
- package/src/sap/ui/webc/main/thirdparty/Calendar.js +1 -0
- package/src/sap/ui/webc/main/thirdparty/Carousel.js +1 -0
- package/src/sap/ui/webc/main/thirdparty/CheckBox.js +15 -2
- package/src/sap/ui/webc/main/thirdparty/ColorPalette.js +5 -5
- package/src/sap/ui/webc/main/thirdparty/ColorPalettePopover.js +11 -3
- package/src/sap/ui/webc/main/thirdparty/ComboBox.js +57 -17
- package/src/sap/ui/webc/main/thirdparty/DateComponentBase.js +6 -8
- package/src/sap/ui/webc/main/thirdparty/DatePicker.js +6 -0
- package/src/sap/ui/webc/main/thirdparty/DateRangePicker.js +6 -0
- package/src/sap/ui/webc/main/thirdparty/Dialog.js +4 -11
- package/src/sap/ui/webc/main/thirdparty/Icon.js +8 -6
- package/src/sap/ui/webc/main/thirdparty/Input.js +88 -11
- package/src/sap/ui/webc/main/thirdparty/Link.js +5 -6
- package/src/sap/ui/webc/main/thirdparty/List.js +4 -2
- package/src/sap/ui/webc/main/thirdparty/MessageStrip.js +13 -1
- package/src/sap/ui/webc/main/thirdparty/MultiComboBox.js +6 -3
- package/src/sap/ui/webc/main/thirdparty/MultiComboBoxItem.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/MultiInput.js +39 -8
- package/src/sap/ui/webc/main/thirdparty/Option.js +4 -1
- package/src/sap/ui/webc/main/thirdparty/Panel.js +5 -5
- package/src/sap/ui/webc/main/thirdparty/Popover.js +64 -51
- package/src/sap/ui/webc/main/thirdparty/Popup.js +6 -2
- package/src/sap/ui/webc/main/thirdparty/RadioButton.js +5 -2
- package/src/sap/ui/webc/main/thirdparty/RatingIndicator.js +20 -7
- package/src/sap/ui/webc/main/thirdparty/ResponsivePopover.js +1 -0
- package/src/sap/ui/webc/main/thirdparty/SegmentedButton.js +6 -1
- package/src/sap/ui/webc/main/thirdparty/Select.js +3 -2
- package/src/sap/ui/webc/main/thirdparty/SliderBase.js +4 -1
- package/src/sap/ui/webc/main/thirdparty/SplitButton.js +196 -0
- package/src/sap/ui/webc/main/thirdparty/Switch.js +8 -1
- package/src/sap/ui/webc/main/thirdparty/Tab.js +8 -5
- package/src/sap/ui/webc/main/thirdparty/TabContainer.js +320 -92
- package/src/sap/ui/webc/main/thirdparty/TabSeparator.js +26 -3
- package/src/sap/ui/webc/main/thirdparty/Table.js +163 -6
- package/src/sap/ui/webc/main/thirdparty/TableColumn.js +0 -3
- package/src/sap/ui/webc/main/thirdparty/TableGroupRow.js +3 -0
- package/src/sap/ui/webc/main/thirdparty/TableRow.js +52 -3
- package/src/sap/ui/webc/main/thirdparty/TextArea.js +8 -4
- package/src/sap/ui/webc/main/thirdparty/Tokenizer.js +94 -6
- package/src/sap/ui/webc/main/thirdparty/TreeItem.js +3 -0
- package/src/sap/ui/webc/main/thirdparty/TreeListItem.js +7 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/Badge.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/Breadcrumbs.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/BrowserScrollbar.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/BusyIndicator.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/Calendar.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/CardHeader.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/CheckBox.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/ComboBox.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/CustomListItem.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/Dialog.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/Input.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/List.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/MultiComboBox.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/Panel.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/Popover.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/PopupsCommon.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/RadioButton.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/RatingIndicator.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/Select.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/SelectPopover.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/SliderBase.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/SplitButton.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Suggestions.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/TabContainer.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/TabInOverflow.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/TabInStrip.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/TabSeparatorInOverflow.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/TabSeparatorInStrip.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/Table.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/TableColumn.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/TextArea.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/TimeSelection.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/Token.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/ValueStateMessage.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/sap_belize/parameters-bundle.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/sap_belize_hcb/parameters-bundle.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/sap_belize_hcw/parameters-bundle.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/sap_fiori_3/parameters-bundle.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/sap_horizon/parameters-bundle.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/sap_horizon_exp/parameters-bundle.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/features/InputSuggestions.js +67 -13
- package/src/sap/ui/webc/main/thirdparty/generated/i18n/i18n-defaults.js +9 -1
- package/src/sap/ui/webc/main/thirdparty/generated/json-imports/Themes.js +9 -9
- package/src/sap/ui/webc/main/thirdparty/generated/json-imports/i18n.js +47 -47
- package/src/sap/ui/webc/main/thirdparty/generated/templates/AvatarGroupTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BreadcrumbsPopoverTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BreadcrumbsTemplate.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/ButtonTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CardHeaderTemplate.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/ColorPalettePopoverTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ComboBoxPopoverTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ComboBoxTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CustomListItemTemplate.lit.js +2 -2
- 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 +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DialogTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/FileUploaderPopoverTemplate.lit.js +5 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/InputPopoverTemplate.lit.js +4 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/InputTemplate.lit.js +6 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/LinkTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ListItemTemplate.lit.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiComboBoxPopoverTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiInputTemplate.lit.js +7 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PanelTemplate.lit.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PopupBlockLayerTemplate.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/ResponsivePopoverTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SegmentedButtonItemTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SegmentedButtonTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SelectPopoverTemplate.lit.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SliderBaseTemplate.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/SplitButtonTemplate.lit.js +7 -0
- package/src/sap/ui/webc/main/thirdparty/generated/templates/StandardListItemTemplate.lit.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SuggestionListItemTemplate.lit.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SwitchTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabContainerPopoverTemplate.lit.js +4 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabContainerTemplate.lit.js +9 -10
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabInOverflowTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabInStripTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabSeparatorInOverflowTemplate.lit.js +7 -0
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabSeparatorInStripTemplate.lit.js +7 -0
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableGroupRowTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableRowTemplate.lit.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableTemplate.lit.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TextAreaPopoverTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ToggleButtonTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TreeListItemTemplate.lit.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TreeTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Badge.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Breadcrumbs.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/BrowserScrollbar.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/BusyIndicator.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Calendar.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CardHeader.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CheckBox.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ComboBox.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CustomListItem.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Dialog.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Input.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/List.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MultiComboBox.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Panel.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Popover.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/PopupsCommon.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/RadioButton.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/RatingIndicator.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Select.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SelectPopover.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SliderBase.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SplitButton.css.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Suggestions.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabContainer.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabInOverflow.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabInStrip.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabSeparatorInOverflow.css.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabSeparatorInStrip.css.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Table.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableColumn.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TextArea.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TimeSelection.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Token.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ValueStateMessage.css.js +1 -1
- 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 +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/sap_horizon_exp/parameters-bundle.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_ar-f610ffe9.js → messagebundle_ar-7d8b4442.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_bg-e372ad7a.js → messagebundle_bg-9ad96f98.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_ca-64403819.js → messagebundle_ca-f1555bd9.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_cs-f5276d1f.js → messagebundle_cs-ef8aa726.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_cy-5b51959f.js → messagebundle_cy-990b67d4.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_da-3f0c542a.js → messagebundle_da-10ddad8e.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_de-ff52e292.js → messagebundle_de-3df474de.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_el-8a8f0e04.js → messagebundle_el-26906c8d.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_en-39f79920.js → messagebundle_en-f820b936.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_en_GB-9a6995bc.js → messagebundle_en_GB-2d06b0a2.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_en_US_sappsd-1cd6f946.js → messagebundle_en_US_sappsd-5a02ac90.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_en_US_saprigi-88214efb.js → messagebundle_en_US_saprigi-789390fa.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_en_US_saptrc-d8b4cc37.js → messagebundle_en_US_saptrc-b8adcdb7.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_es-4e7804b3.js → messagebundle_es-fb48a8d9.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_es_MX-5d55637e.js → messagebundle_es_MX-1649847d.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_et-d019447e.js → messagebundle_et-21441666.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_fi-115f5a0c.js → messagebundle_fi-a7a6ed50.js} +11 -3
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_fr-f4458a8c.js → messagebundle_fr-7d25aa37.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_fr_CA-d3ac2579.js → messagebundle_fr_CA-f0885bcd.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_hi-3dbf5206.js → messagebundle_hi-4ff3dc19.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_hr-3112e358.js → messagebundle_hr-27ea5966.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_hu-90f77b24.js → messagebundle_hu-4e7efab2.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_it-4fd2c566.js → messagebundle_it-05136e9a.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_iw-ff53b57b.js → messagebundle_iw-e57af9b5.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_ja-050a69c3.js → messagebundle_ja-548e66ac.js} +12 -4
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_kk-597a9724.js → messagebundle_kk-9a532b4c.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_ko-d840efd8.js → messagebundle_ko-85246117.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_lt-d15c1526.js → messagebundle_lt-fd1ed9a8.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_lv-539ad33e.js → messagebundle_lv-528ee0b5.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_ms-98b3e6dd.js → messagebundle_ms-ab977639.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_nl-5c52e887.js → messagebundle_nl-6ef0aca9.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_no-04ee2aaf.js → messagebundle_no-598c70b3.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_pl-6da30702.js → messagebundle_pl-3c6bd3f7.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_pt-71f281c3.js → messagebundle_pt-a38c9a95.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_pt_PT-6d966418.js → messagebundle_pt_PT-6216e41a.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_ro-e76a9c5d.js → messagebundle_ro-4efbaf89.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_ru-dc34dd79.js → messagebundle_ru-c8cc395e.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_sh-f2171ee6.js → messagebundle_sh-a18343ab.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_sk-5c10a3c8.js → messagebundle_sk-cbb7b742.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_sl-14cff3cf.js → messagebundle_sl-39b012e5.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_sv-44a9e5d4.js → messagebundle_sv-68d03f9d.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_th-6cbca7a8.js → messagebundle_th-e0f152c1.js} +9 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_tr-00ce0f94.js → messagebundle_tr-10848533.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_uk-bf2de1c7.js → messagebundle_uk-64f282f3.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_vi-a0de6aa8.js → messagebundle_vi-c6d60018.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_zh_CN-7cbf9197.js → messagebundle_zh_CN-3be28696.js} +10 -2
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_zh_TW-53705d5b.js → messagebundle_zh_TW-229e0d2b.js} +9 -1
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-87f538cb.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-91761a3a.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-9a20ee88.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-ae75ba99.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-b27de009.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-ba83be15.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-c6c72cae.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-dc4174de.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-dd344116.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/types/HasPopup.js +23 -0
- package/src/sap/ui/webc/main/thirdparty/types/TabsOverflowMode.js +20 -0
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabSeparatorTemplate.lit.js +0 -7
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-0af46f05.js +0 -13
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-4d5954e7.js +0 -13
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-58c993f1.js +0 -13
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-5cd315e5.js +0 -13
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-6cdfb99e.js +0 -13
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-c4cbd21b.js +0 -13
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-cc68d055.js +0 -13
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-d4d2e1ea.js +0 -13
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-ec070c87.js +0 -13
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
sap.ui.define(['sap/ui/webc/common/thirdparty/base/Device', '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/ValueState', 'sap/ui/webc/common/thirdparty/base/FeaturesRegistry', 'sap/ui/webc/common/thirdparty/base/Keys', 'sap/ui/webc/common/thirdparty/icons/accept', './Icon', './Label', './types/WrappingType', './generated/i18n/i18n-defaults', './generated/templates/CheckBoxTemplate.lit', './generated/themes/CheckBox.css'], function (Device, UI5Element, litRender, i18nBundle, ValueState, FeaturesRegistry, Keys, accept, Icon, Label, WrappingType, i18nDefaults, CheckBoxTemplate_lit, CheckBox_css) { 'use strict';
|
|
1
|
+
sap.ui.define(['sap/ui/webc/common/thirdparty/base/Device', '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/ValueState', 'sap/ui/webc/common/thirdparty/base/FeaturesRegistry', 'sap/ui/webc/common/thirdparty/base/util/AriaLabelHelper', 'sap/ui/webc/common/thirdparty/base/Keys', 'sap/ui/webc/common/thirdparty/icons/accept', './Icon', './Label', './types/WrappingType', './generated/i18n/i18n-defaults', './generated/templates/CheckBoxTemplate.lit', './generated/themes/CheckBox.css'], function (Device, UI5Element, litRender, i18nBundle, ValueState, FeaturesRegistry, AriaLabelHelper, Keys, accept, Icon, Label, WrappingType, i18nDefaults, CheckBoxTemplate_lit, CheckBox_css) { 'use strict';
|
|
2
2
|
|
|
3
3
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
|
|
4
4
|
|
|
@@ -12,6 +12,13 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/Device', 'sap/ui/webc/common/
|
|
|
12
12
|
tag: "ui5-checkbox",
|
|
13
13
|
languageAware: true,
|
|
14
14
|
properties: {
|
|
15
|
+
accessibleNameRef: {
|
|
16
|
+
type: String,
|
|
17
|
+
defaultValue: "",
|
|
18
|
+
},
|
|
19
|
+
accessibleName: {
|
|
20
|
+
type: String,
|
|
21
|
+
},
|
|
15
22
|
disabled: {
|
|
16
23
|
type: Boolean,
|
|
17
24
|
},
|
|
@@ -145,6 +152,9 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/Device', 'sap/ui/webc/common/
|
|
|
145
152
|
"Success": CheckBox.i18nBundle.getText(i18nDefaults.VALUE_STATE_SUCCESS),
|
|
146
153
|
};
|
|
147
154
|
}
|
|
155
|
+
get ariaLabelText() {
|
|
156
|
+
return AriaLabelHelper.getEffectiveAriaLabelText(this);
|
|
157
|
+
}
|
|
148
158
|
get classes() {
|
|
149
159
|
return {
|
|
150
160
|
main: {
|
|
@@ -162,7 +172,10 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/Device', 'sap/ui/webc/common/
|
|
|
162
172
|
return this.indeterminate && this.checked ? "mixed" : this.checked;
|
|
163
173
|
}
|
|
164
174
|
get ariaLabelledBy() {
|
|
165
|
-
|
|
175
|
+
if (!this.ariaLabelText) {
|
|
176
|
+
return this.text ? `${this._id}-label` : undefined;
|
|
177
|
+
}
|
|
178
|
+
return undefined;
|
|
166
179
|
}
|
|
167
180
|
get ariaDescribedBy() {
|
|
168
181
|
return this.hasValueState ? `${this._id}-descr` : undefined;
|
|
@@ -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/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';
|
|
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', './Button', './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, Button, 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
|
|
|
@@ -70,7 +70,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
70
70
|
}
|
|
71
71
|
static get dependencies() {
|
|
72
72
|
const ColorPaletteMoreColors = FeaturesRegistry.getFeature("ColorPaletteMoreColors");
|
|
73
|
-
return [ColorPaletteItem].concat(ColorPaletteMoreColors ? ColorPaletteMoreColors.dependencies : []);
|
|
73
|
+
return [ColorPaletteItem, Button].concat(ColorPaletteMoreColors ? ColorPaletteMoreColors.dependencies : []);
|
|
74
74
|
}
|
|
75
75
|
static async onDefine() {
|
|
76
76
|
const ColorPaletteMoreColors = FeaturesRegistry.getFeature("ColorPaletteMoreColors");
|
|
@@ -130,18 +130,18 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
_onclick(event) {
|
|
133
|
-
if (event.target.
|
|
133
|
+
if (event.target.hasAttribute("ui5-color-palette-item")) {
|
|
134
134
|
this.selectColor(event.target);
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
_onkeyup(event) {
|
|
138
|
-
if (Keys.isSpace(event) && event.target.
|
|
138
|
+
if (Keys.isSpace(event) && event.target.hasAttribute("ui5-color-palette-item")) {
|
|
139
139
|
event.preventDefault();
|
|
140
140
|
this.selectColor(event.target);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
_onkeydown(event) {
|
|
144
|
-
if (Keys.isEnter(event) && event.target.
|
|
144
|
+
if (Keys.isEnter(event) && event.target.hasAttribute("ui5-color-palette-item")) {
|
|
145
145
|
this.selectColor(event.target);
|
|
146
146
|
}
|
|
147
147
|
}
|
|
@@ -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/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';
|
|
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', './Title', './ResponsivePopover', './ColorPalette'], function (UI5Element, litRender, i18nBundle, CSSColor, ColorPalettePopoverTemplate_lit, ColorPalettePopover_css, ResponsivePopoverCommon_css, i18nDefaults, Button, Title, ResponsivePopover, ColorPalette) { 'use strict';
|
|
2
2
|
|
|
3
3
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
|
|
4
4
|
|
|
@@ -57,6 +57,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
57
57
|
return [
|
|
58
58
|
ResponsivePopover,
|
|
59
59
|
Button,
|
|
60
|
+
Title,
|
|
60
61
|
ColorPalette,
|
|
61
62
|
];
|
|
62
63
|
}
|
|
@@ -73,10 +74,14 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
73
74
|
_colorPalette() {
|
|
74
75
|
return this.responsivePopover.content[0].querySelector("[ui5-color-palette]");
|
|
75
76
|
}
|
|
76
|
-
|
|
77
|
-
this.
|
|
77
|
+
showAt(opener) {
|
|
78
|
+
this._openPopover(opener);
|
|
78
79
|
}
|
|
79
80
|
openPopover(opener) {
|
|
81
|
+
console.warn("The method 'openPopover' is deprecated and will be removed in future, use 'showAt' instead.");
|
|
82
|
+
this._openPopover(opener);
|
|
83
|
+
}
|
|
84
|
+
_openPopover(opener) {
|
|
80
85
|
this._respPopover();
|
|
81
86
|
this.responsivePopover.showAt(opener, true);
|
|
82
87
|
if (this.showDefaultColor) {
|
|
@@ -85,6 +90,9 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
85
90
|
this._colorPalette().focusColorElement(this._colorPalette().colorPaletteNavigationElements[0], this._colorPalette()._itemNavigation);
|
|
86
91
|
}
|
|
87
92
|
}
|
|
93
|
+
closePopover() {
|
|
94
|
+
this.responsivePopover.close();
|
|
95
|
+
}
|
|
88
96
|
onSelectedColor(event) {
|
|
89
97
|
this.closePopover();
|
|
90
98
|
this.fireEvent("item-click", event.detail);
|
|
@@ -217,6 +217,8 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
217
217
|
return staticAreaItem.querySelector(".ui5-valuestatemessage-popover");
|
|
218
218
|
}
|
|
219
219
|
_resetFilter() {
|
|
220
|
+
this._userTypedValue = null;
|
|
221
|
+
this.inner.setSelectionRange(0, this.value.length);
|
|
220
222
|
this._filteredItems = this._filterItems("");
|
|
221
223
|
this._selectMatchingItem();
|
|
222
224
|
}
|
|
@@ -268,28 +270,24 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
268
270
|
return item;
|
|
269
271
|
});
|
|
270
272
|
}
|
|
271
|
-
|
|
272
|
-
if (this.
|
|
273
|
+
handleNavKeyPress(event) {
|
|
274
|
+
if (this.focused && (Keys.isHome(event) || Keys.isEnd(event)) && this.value) {
|
|
273
275
|
return;
|
|
274
276
|
}
|
|
275
277
|
const isOpen = this.open;
|
|
276
|
-
const isArrowDown = Keys.isDown(event);
|
|
277
|
-
const isArrowUp = Keys.isUp(event);
|
|
278
278
|
const currentItem = this._filteredItems.find(item => {
|
|
279
279
|
return isOpen ? item.focused : item.selected;
|
|
280
280
|
});
|
|
281
281
|
const indexOfItem = this._filteredItems.indexOf(currentItem);
|
|
282
282
|
event.preventDefault();
|
|
283
|
-
if (
|
|
283
|
+
if (this.focused && isOpen && (Keys.isUp(event) || Keys.isPageUp(event) || Keys.isPageDown(event))) {
|
|
284
284
|
return;
|
|
285
285
|
}
|
|
286
|
-
this.
|
|
287
|
-
|
|
288
|
-
this._handleArrowDown(event, indexOfItem);
|
|
289
|
-
}
|
|
290
|
-
if (isArrowUp) {
|
|
291
|
-
this._handleArrowUp(event, indexOfItem);
|
|
286
|
+
if (this._filteredItems.length - 1 === indexOfItem && Keys.isDown(event)) {
|
|
287
|
+
return;
|
|
292
288
|
}
|
|
289
|
+
this._isKeyNavigation = true;
|
|
290
|
+
this[`_handle${event.key}`](event, indexOfItem);
|
|
293
291
|
}
|
|
294
292
|
_handleItemNavigation(event, indexOfItem, isForward) {
|
|
295
293
|
const isOpen = this.open;
|
|
@@ -302,7 +300,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
302
300
|
this._clearFocus();
|
|
303
301
|
if (isOpen) {
|
|
304
302
|
this._itemFocused = true;
|
|
305
|
-
this.value = isGroupItem ?
|
|
303
|
+
this.value = isGroupItem ? "" : currentItem.text;
|
|
306
304
|
this.focused = false;
|
|
307
305
|
currentItem.focused = true;
|
|
308
306
|
} else {
|
|
@@ -317,7 +315,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
317
315
|
}
|
|
318
316
|
this._announceSelectedItem(indexOfItem);
|
|
319
317
|
const item = this._getFirstMatchingItem(this.value);
|
|
320
|
-
this._applyAtomicValueAndSelection(item,
|
|
318
|
+
this._applyAtomicValueAndSelection(item, (this.open ? this._userTypedValue : null), true);
|
|
321
319
|
if ((item && !item.selected)) {
|
|
322
320
|
this.fireEvent("selection-change", {
|
|
323
321
|
item,
|
|
@@ -359,12 +357,47 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
359
357
|
indexOfItem = !isOpen && this.hasValueState && indexOfItem === -1 ? 0 : indexOfItem;
|
|
360
358
|
this._handleItemNavigation(event, --indexOfItem, false );
|
|
361
359
|
}
|
|
360
|
+
_handlePageUp(event, indexOfItem) {
|
|
361
|
+
const isProposedIndexValid = indexOfItem - ComboBox.SKIP_ITEMS_SIZE > -1;
|
|
362
|
+
indexOfItem = isProposedIndexValid ? indexOfItem - ComboBox.SKIP_ITEMS_SIZE : 0;
|
|
363
|
+
const shouldMoveForward = this._filteredItems[indexOfItem].isGroupItem && !this.open;
|
|
364
|
+
if (!isProposedIndexValid && this.hasValueStateText && this.open) {
|
|
365
|
+
this._clearFocus();
|
|
366
|
+
this._itemFocused = false;
|
|
367
|
+
this._isValueStateFocused = true;
|
|
368
|
+
return;
|
|
369
|
+
}
|
|
370
|
+
this._handleItemNavigation(event, indexOfItem, shouldMoveForward);
|
|
371
|
+
}
|
|
372
|
+
_handlePageDown(event, indexOfItem) {
|
|
373
|
+
const itemsLength = this._filteredItems.length;
|
|
374
|
+
const isProposedIndexValid = indexOfItem + ComboBox.SKIP_ITEMS_SIZE < itemsLength;
|
|
375
|
+
indexOfItem = isProposedIndexValid ? indexOfItem + ComboBox.SKIP_ITEMS_SIZE : itemsLength - 1;
|
|
376
|
+
const shouldMoveForward = this._filteredItems[indexOfItem].isGroupItem && !this.open;
|
|
377
|
+
this._handleItemNavigation(event, indexOfItem, shouldMoveForward);
|
|
378
|
+
}
|
|
379
|
+
_handleHome(event, indexOfItem) {
|
|
380
|
+
const shouldMoveForward = this._filteredItems[0].isGroupItem && !this.open;
|
|
381
|
+
if (this.hasValueStateText && this.open) {
|
|
382
|
+
this._clearFocus();
|
|
383
|
+
this._itemFocused = false;
|
|
384
|
+
this._isValueStateFocused = true;
|
|
385
|
+
return;
|
|
386
|
+
}
|
|
387
|
+
this._handleItemNavigation(event, 0, shouldMoveForward);
|
|
388
|
+
}
|
|
389
|
+
_handleEnd(event, indexOfItem) {
|
|
390
|
+
this._handleItemNavigation(event, this._filteredItems.length - 1, true );
|
|
391
|
+
}
|
|
392
|
+
_keyup(event) {
|
|
393
|
+
this._userTypedValue = this.value.substring(0, this.inner.selectionStart);
|
|
394
|
+
}
|
|
362
395
|
_keydown(event) {
|
|
363
|
-
const
|
|
396
|
+
const isNavKey = Keys.isDown(event) || Keys.isUp(event) || Keys.isPageUp(event) || Keys.isPageDown(event) || Keys.isHome(event) || Keys.isEnd(event);
|
|
364
397
|
this._autocomplete = !(Keys.isBackSpace(event) || Keys.isDelete(event));
|
|
365
398
|
this._isKeyNavigation = false;
|
|
366
|
-
if (
|
|
367
|
-
this.
|
|
399
|
+
if (isNavKey && !this.readonly && this._filteredItems.length) {
|
|
400
|
+
this.handleNavKeyPress(event);
|
|
368
401
|
}
|
|
369
402
|
if (Keys.isEnter(event)) {
|
|
370
403
|
this._fireChangeEvent();
|
|
@@ -390,6 +423,8 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
390
423
|
this._itemFocused = true;
|
|
391
424
|
selectedItem.focused = true;
|
|
392
425
|
this.focused = false;
|
|
426
|
+
} else if (this.open && this._filteredItems.length) {
|
|
427
|
+
this._handleItemNavigation(event, 0, true );
|
|
393
428
|
} else {
|
|
394
429
|
this.focused = true;
|
|
395
430
|
}
|
|
@@ -445,6 +480,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
445
480
|
const value = (item && item.text) || "";
|
|
446
481
|
this.inner.value = value;
|
|
447
482
|
if (highlightValue) {
|
|
483
|
+
filterValue = filterValue || "";
|
|
448
484
|
this.inner.setSelectionRange(filterValue.length, value.length);
|
|
449
485
|
}
|
|
450
486
|
this.value = value;
|
|
@@ -542,12 +578,15 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
542
578
|
};
|
|
543
579
|
}
|
|
544
580
|
get shouldOpenValueStateMessagePopover() {
|
|
545
|
-
return this.focused && this.hasValueStateText && !this._iconPressed
|
|
581
|
+
return this.focused && !this.readonly && this.hasValueStateText && !this._iconPressed
|
|
546
582
|
&& !this.open && !this._isPhone;
|
|
547
583
|
}
|
|
548
584
|
get shouldDisplayDefaultValueStateMessage() {
|
|
549
585
|
return !this.valueStateMessage.length && this.hasValueStateText;
|
|
550
586
|
}
|
|
587
|
+
get _valueStatePopoverHorizontalAlign() {
|
|
588
|
+
return this.effectiveDir !== "rtl" ? "Left" : "Right";
|
|
589
|
+
}
|
|
551
590
|
get _valueStateMessageIcon() {
|
|
552
591
|
const iconPerValueState = {
|
|
553
592
|
Error: "error",
|
|
@@ -613,6 +652,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
613
652
|
};
|
|
614
653
|
}
|
|
615
654
|
}
|
|
655
|
+
ComboBox.SKIP_ITEMS_SIZE = 10;
|
|
616
656
|
ComboBox.define();
|
|
617
657
|
|
|
618
658
|
return ComboBox;
|
|
@@ -73,19 +73,17 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
73
73
|
return this.getFormat().format(localDate, true);
|
|
74
74
|
}
|
|
75
75
|
getFormat() {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
return this._isPattern
|
|
77
|
+
? DateFormat__default.getInstance({
|
|
78
|
+
strictParsing: true,
|
|
79
79
|
pattern: this._formatPattern,
|
|
80
80
|
calendarType: this._primaryCalendarType,
|
|
81
|
-
})
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
})
|
|
82
|
+
: DateFormat__default.getInstance({
|
|
83
|
+
strictParsing: true,
|
|
84
84
|
style: this._formatPattern,
|
|
85
85
|
calendarType: this._primaryCalendarType,
|
|
86
86
|
});
|
|
87
|
-
}
|
|
88
|
-
return dateFormat;
|
|
89
87
|
}
|
|
90
88
|
static async onDefine() {
|
|
91
89
|
[DateComponentBase.i18nBundle] = await Promise.all([
|
|
@@ -157,6 +157,9 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/FeaturesRegistry', 'sap/ui/we
|
|
|
157
157
|
if (this.isOpen()) {
|
|
158
158
|
return;
|
|
159
159
|
}
|
|
160
|
+
if (Keys.isEnter(event)) {
|
|
161
|
+
this._updateValueAndFireEvents(event.target.value, true, ["change", "value-changed"]);
|
|
162
|
+
}
|
|
160
163
|
if (Keys.isPageUpShiftCtrl(event)) {
|
|
161
164
|
event.preventDefault();
|
|
162
165
|
this._modifyDateValue(1, "year");
|
|
@@ -201,6 +204,9 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/FeaturesRegistry', 'sap/ui/we
|
|
|
201
204
|
return;
|
|
202
205
|
}
|
|
203
206
|
if (updateValue) {
|
|
207
|
+
this._getInput().getInputDOMRef().then(innnerInput => {
|
|
208
|
+
innnerInput.value = value;
|
|
209
|
+
});
|
|
204
210
|
this.value = value;
|
|
205
211
|
this._updateValueState();
|
|
206
212
|
}
|
|
@@ -25,6 +25,12 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/Render', 'sap/ui/webc/common/
|
|
|
25
25
|
static get styles() {
|
|
26
26
|
return [DatePicker.styles, DateRangePicker_css];
|
|
27
27
|
}
|
|
28
|
+
get dateValue() {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
get dateValueUTC() {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
28
34
|
get _startDateTimestamp() {
|
|
29
35
|
return this._extractFirstTimestamp(this.value);
|
|
30
36
|
}
|
|
@@ -20,9 +20,6 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/Device', 'sap/ui/webc/common/
|
|
|
20
20
|
headerText: {
|
|
21
21
|
type: String,
|
|
22
22
|
},
|
|
23
|
-
accessibleName: {
|
|
24
|
-
type: String,
|
|
25
|
-
},
|
|
26
23
|
stretch: {
|
|
27
24
|
type: Boolean,
|
|
28
25
|
},
|
|
@@ -77,18 +74,11 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/Device', 'sap/ui/webc/common/
|
|
|
77
74
|
}
|
|
78
75
|
get _ariaLabelledBy() {
|
|
79
76
|
let ariaLabelledById;
|
|
80
|
-
if (this.headerText !== "" && !this.
|
|
77
|
+
if (this.headerText !== "" && !this._ariaLabel) {
|
|
81
78
|
ariaLabelledById = "ui5-popup-header-text";
|
|
82
79
|
}
|
|
83
80
|
return ariaLabelledById;
|
|
84
81
|
}
|
|
85
|
-
get _ariaLabel() {
|
|
86
|
-
let ariaLabel;
|
|
87
|
-
if (this.header.length > 0 && !!this.accessibleName) {
|
|
88
|
-
ariaLabel = this.accessibleName;
|
|
89
|
-
}
|
|
90
|
-
return this.accessibleName ? this.accessibleName : ariaLabel;
|
|
91
|
-
}
|
|
92
82
|
get _ariaModal() {
|
|
93
83
|
return true;
|
|
94
84
|
}
|
|
@@ -104,6 +94,9 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/Device', 'sap/ui/webc/common/
|
|
|
104
94
|
get _headerTabIndex() {
|
|
105
95
|
return this._movable ? "0" : undefined;
|
|
106
96
|
}
|
|
97
|
+
get _showResizeHandle() {
|
|
98
|
+
return this.resizable && this.onDesktop;
|
|
99
|
+
}
|
|
107
100
|
_show() {
|
|
108
101
|
super._show();
|
|
109
102
|
this._center();
|
|
@@ -26,7 +26,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
26
26
|
showTooltip: {
|
|
27
27
|
type: Boolean,
|
|
28
28
|
},
|
|
29
|
-
|
|
29
|
+
accessibleRole: {
|
|
30
30
|
type: String,
|
|
31
31
|
},
|
|
32
32
|
ariaHidden: {
|
|
@@ -72,12 +72,12 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
72
72
|
static async onDefine() {
|
|
73
73
|
this.createGlobalStyle();
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
_onFocusInHandler(event) {
|
|
76
76
|
if (this.interactive) {
|
|
77
77
|
this.focused = true;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
_onFocusOutHandler(event) {
|
|
81
81
|
this.focused = false;
|
|
82
82
|
}
|
|
83
83
|
_onkeydown(event) {
|
|
@@ -119,14 +119,14 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
119
119
|
return this.ariaHidden;
|
|
120
120
|
}
|
|
121
121
|
get tabIndex() {
|
|
122
|
-
return this.interactive ? "0" :
|
|
122
|
+
return this.interactive ? "0" : undefined;
|
|
123
123
|
}
|
|
124
124
|
get isDecorative() {
|
|
125
125
|
return this.effectiveAccessibleRole === PRESENTATION_ROLE;
|
|
126
126
|
}
|
|
127
127
|
get effectiveAccessibleRole() {
|
|
128
|
-
if (this.
|
|
129
|
-
return this.
|
|
128
|
+
if (this.accessibleRole) {
|
|
129
|
+
return this.accessibleRole;
|
|
130
130
|
}
|
|
131
131
|
if (this.interactive) {
|
|
132
132
|
return "button";
|
|
@@ -172,6 +172,8 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
172
172
|
this.ltr = iconData.ltr;
|
|
173
173
|
this.packageName = iconData.packageName;
|
|
174
174
|
this._onclick = this.interactive ? this._onClickHandler.bind(this) : undefined;
|
|
175
|
+
this._onfocusout = this.interactive ? this._onFocusOutHandler.bind(this) : undefined;
|
|
176
|
+
this._onfocusin = this.interactive ? this._onFocusInHandler.bind(this) : undefined;
|
|
175
177
|
if (this.accessibleName) {
|
|
176
178
|
this.effectiveAccessibleName = this.accessibleName;
|
|
177
179
|
} else if (this.accData) {
|
|
@@ -71,6 +71,12 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
71
71
|
type: String,
|
|
72
72
|
defaultValue: "",
|
|
73
73
|
},
|
|
74
|
+
showClearIcon: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
},
|
|
77
|
+
effectiveShowClearIcon: {
|
|
78
|
+
type: Boolean,
|
|
79
|
+
},
|
|
74
80
|
focused: {
|
|
75
81
|
type: Boolean,
|
|
76
82
|
},
|
|
@@ -151,7 +157,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
151
157
|
this.valueBeforeItemSelection = "";
|
|
152
158
|
this.valueBeforeItemPreview = "";
|
|
153
159
|
this.suggestionSelectionCanceled = false;
|
|
154
|
-
this.
|
|
160
|
+
this._changeFiredValue = null;
|
|
155
161
|
this.previousValue = undefined;
|
|
156
162
|
this.firstRendering = true;
|
|
157
163
|
this.highlightValue = "";
|
|
@@ -176,6 +182,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
176
182
|
this.enableSuggestions();
|
|
177
183
|
this.suggestionsTexts = this.Suggestions.defaultSlotProperties(this.highlightValue);
|
|
178
184
|
}
|
|
185
|
+
this.effectiveShowClearIcon = (this.showClearIcon && !!this.value && !this.readonly && !this.disabled);
|
|
179
186
|
this.open = this.open && (!!this.suggestionItems.length || this._isPhone);
|
|
180
187
|
const FormSupport = FeaturesRegistry.getFeature("FormSupport");
|
|
181
188
|
if (FormSupport) {
|
|
@@ -213,6 +220,18 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
213
220
|
if (Keys.isEnter(event)) {
|
|
214
221
|
return this._handleEnter(event);
|
|
215
222
|
}
|
|
223
|
+
if (Keys.isPageUp(event)) {
|
|
224
|
+
return this._handlePageUp(event);
|
|
225
|
+
}
|
|
226
|
+
if (Keys.isPageDown(event)) {
|
|
227
|
+
return this._handlePageDown(event);
|
|
228
|
+
}
|
|
229
|
+
if (Keys.isHome(event)) {
|
|
230
|
+
return this._handleHome(event);
|
|
231
|
+
}
|
|
232
|
+
if (Keys.isEnd(event)) {
|
|
233
|
+
return this._handleEnd(event);
|
|
234
|
+
}
|
|
216
235
|
if (Keys.isEscape(event)) {
|
|
217
236
|
return this._handleEscape(event);
|
|
218
237
|
}
|
|
@@ -226,6 +245,9 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
226
245
|
this._keyDown = true;
|
|
227
246
|
}
|
|
228
247
|
_onkeyup(event) {
|
|
248
|
+
if (Keys.isDelete(event)) {
|
|
249
|
+
this.value = event.target.value;
|
|
250
|
+
}
|
|
229
251
|
this._keyDown = false;
|
|
230
252
|
this._backspaceKeyDown = false;
|
|
231
253
|
}
|
|
@@ -258,6 +280,30 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
258
280
|
}
|
|
259
281
|
this.focused = true;
|
|
260
282
|
}
|
|
283
|
+
_handlePageUp(event) {
|
|
284
|
+
if (this._isSuggestionsFocused) {
|
|
285
|
+
this.Suggestions.onPageUp(event);
|
|
286
|
+
} else {
|
|
287
|
+
event.preventDefault();
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
_handlePageDown(event) {
|
|
291
|
+
if (this._isSuggestionsFocused) {
|
|
292
|
+
this.Suggestions.onPageDown(event);
|
|
293
|
+
} else {
|
|
294
|
+
event.preventDefault();
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
_handleHome(event) {
|
|
298
|
+
if (this._isSuggestionsFocused) {
|
|
299
|
+
this.Suggestions.onHome(event);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
_handleEnd(event) {
|
|
303
|
+
if (this._isSuggestionsFocused) {
|
|
304
|
+
this.Suggestions.onEnd(event);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
261
307
|
_handleEscape() {
|
|
262
308
|
const hasSuggestions = this.showSuggestions && !!this.Suggestions;
|
|
263
309
|
const isOpen = hasSuggestions && this.open;
|
|
@@ -286,7 +332,8 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
286
332
|
_onfocusout(event) {
|
|
287
333
|
const focusedOutToSuggestions = this.Suggestions && event.relatedTarget && event.relatedTarget.shadowRoot && event.relatedTarget.shadowRoot.contains(this.Suggestions.responsivePopover);
|
|
288
334
|
const focusedOutToValueStateMessage = event.relatedTarget && event.relatedTarget.shadowRoot && event.relatedTarget.shadowRoot.querySelector(".ui5-valuestatemessage-root");
|
|
289
|
-
|
|
335
|
+
this._preventNextChange = this.effectiveShowClearIcon && this.shadowRoot.contains(event.relatedTarget);
|
|
336
|
+
if (focusedOutToSuggestions || focusedOutToValueStateMessage) {
|
|
290
337
|
event.stopImmediatePropagation();
|
|
291
338
|
return;
|
|
292
339
|
}
|
|
@@ -316,11 +363,27 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
316
363
|
this.open = true;
|
|
317
364
|
}
|
|
318
365
|
}
|
|
319
|
-
|
|
320
|
-
|
|
366
|
+
_handleNativeInputChange() {
|
|
367
|
+
clearTimeout(this._nativeChangeDebounce);
|
|
368
|
+
this._nativeChangeDebounce = setTimeout(() => this._handleChange(), 100);
|
|
369
|
+
}
|
|
370
|
+
_handleChange() {
|
|
371
|
+
if (this._preventNextChange) {
|
|
372
|
+
this._preventNextChange = false;
|
|
373
|
+
return;
|
|
374
|
+
}
|
|
375
|
+
if (this._changeFiredValue !== this.value) {
|
|
376
|
+
this._changeFiredValue = this.value;
|
|
321
377
|
this.fireEvent(this.EVENT_CHANGE);
|
|
322
378
|
}
|
|
323
|
-
|
|
379
|
+
}
|
|
380
|
+
_clear() {
|
|
381
|
+
this.value = "";
|
|
382
|
+
this.fireEvent(this.EVENT_INPUT);
|
|
383
|
+
this._handleChange();
|
|
384
|
+
if (!this._isPhone) {
|
|
385
|
+
this.focus();
|
|
386
|
+
}
|
|
324
387
|
}
|
|
325
388
|
_scroll(event) {
|
|
326
389
|
const detail = event.detail;
|
|
@@ -329,8 +392,8 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
329
392
|
scrollContainer: detail.targetRef,
|
|
330
393
|
});
|
|
331
394
|
}
|
|
332
|
-
|
|
333
|
-
const inputDomRef =
|
|
395
|
+
_handleInput(event) {
|
|
396
|
+
const inputDomRef = this.getInputDOMRefSync();
|
|
334
397
|
const emptyValueFiredOnNumberInput = this.value && this.isTypeNumber && !inputDomRef.value;
|
|
335
398
|
this.suggestionSelectionCanceled = false;
|
|
336
399
|
if (emptyValueFiredOnNumberInput && !this._backspaceKeyDown) {
|
|
@@ -422,8 +485,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
422
485
|
this.valueBeforeItemSelection = itemText;
|
|
423
486
|
this.lastConfirmedValue = itemText;
|
|
424
487
|
this.fireEvent(this.EVENT_INPUT);
|
|
425
|
-
this.
|
|
426
|
-
this._changeFired = true;
|
|
488
|
+
this._handleChange();
|
|
427
489
|
}
|
|
428
490
|
this.valueBeforeItemPreview = "";
|
|
429
491
|
this.suggestionSelectionCanceled = false;
|
|
@@ -471,7 +533,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
471
533
|
}
|
|
472
534
|
const valueChanged = (this.previousValue !== undefined) && (this.previousValue !== this.value);
|
|
473
535
|
if (Device.isIE() && action === this.ACTION_ENTER && valueChanged) {
|
|
474
|
-
this.
|
|
536
|
+
this._handleChange();
|
|
475
537
|
}
|
|
476
538
|
}
|
|
477
539
|
async getInputValue() {
|
|
@@ -488,6 +550,12 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
488
550
|
}
|
|
489
551
|
return this.nativeInput;
|
|
490
552
|
}
|
|
553
|
+
getInputDOMRefSync() {
|
|
554
|
+
if (Device.isPhone() && this.Suggestions) {
|
|
555
|
+
return this.Suggestions && this.Suggestions.responsivePopover.querySelector(".ui5-input-inner-phone");
|
|
556
|
+
}
|
|
557
|
+
return this.nativeInput;
|
|
558
|
+
}
|
|
491
559
|
get nativeInput() {
|
|
492
560
|
return this.getDomRef() && this.getDomRef().querySelector(`input`);
|
|
493
561
|
}
|
|
@@ -527,6 +595,9 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
527
595
|
targetRef: item,
|
|
528
596
|
});
|
|
529
597
|
}
|
|
598
|
+
onItemMouseDown(event) {
|
|
599
|
+
event.preventDefault();
|
|
600
|
+
}
|
|
530
601
|
onItemSelected(item, keyboardUsed) {
|
|
531
602
|
this.selectSuggestion(item, keyboardUsed);
|
|
532
603
|
}
|
|
@@ -655,7 +726,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
655
726
|
return this.getSlottedNodes("valueStateMessage").map(el => el.cloneNode(true));
|
|
656
727
|
}
|
|
657
728
|
get shouldDisplayOnlyValueStateMessage() {
|
|
658
|
-
return this.hasValueStateMessage && !this.open && this.focused;
|
|
729
|
+
return this.hasValueStateMessage && !this.readonly && !this.open && this.focused;
|
|
659
730
|
}
|
|
660
731
|
get shouldDisplayDefaultValueStateMessage() {
|
|
661
732
|
return !this.valueStateMessage.length && this.hasValueStateMessage;
|
|
@@ -693,6 +764,9 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
693
764
|
get _isPhone() {
|
|
694
765
|
return Device.isPhone();
|
|
695
766
|
}
|
|
767
|
+
get _isSuggestionsFocused() {
|
|
768
|
+
return !this.focused && this.Suggestions && this.Suggestions.isOpened();
|
|
769
|
+
}
|
|
696
770
|
get _placeholder() {
|
|
697
771
|
return this.placeholder;
|
|
698
772
|
}
|
|
@@ -710,6 +784,9 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
710
784
|
`;
|
|
711
785
|
return this.valueState !== ValueState__default.None ? result : "";
|
|
712
786
|
}
|
|
787
|
+
get _valueStatePopoverHorizontalAlign() {
|
|
788
|
+
return this.effectiveDir !== "rtl" ? "Left" : "Right";
|
|
789
|
+
}
|
|
713
790
|
get _valueStateMessageInputIcon() {
|
|
714
791
|
const iconPerValueState = {
|
|
715
792
|
Error: "error",
|