@openui5/sap.ui.webc.main 1.101.0 → 1.103.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/THIRDPARTY.txt +1 -1
- package/package.json +3 -3
- package/src/sap/ui/webc/main/.library +1 -1
- package/src/sap/ui/webc/main/Avatar.js +3 -2
- package/src/sap/ui/webc/main/AvatarGroup.js +1 -1
- package/src/sap/ui/webc/main/Badge.js +3 -2
- package/src/sap/ui/webc/main/Breadcrumbs.js +1 -1
- package/src/sap/ui/webc/main/BreadcrumbsItem.js +3 -2
- package/src/sap/ui/webc/main/BusyIndicator.js +3 -2
- package/src/sap/ui/webc/main/Button.js +1 -1
- package/src/sap/ui/webc/main/Calendar.js +1 -1
- package/src/sap/ui/webc/main/CalendarDate.js +1 -1
- package/src/sap/ui/webc/main/Card.js +3 -2
- package/src/sap/ui/webc/main/CardHeader.js +3 -7
- package/src/sap/ui/webc/main/Carousel.js +3 -2
- package/src/sap/ui/webc/main/CheckBox.js +12 -2
- package/src/sap/ui/webc/main/ColorPalette.js +1 -1
- package/src/sap/ui/webc/main/ColorPaletteItem.js +1 -1
- package/src/sap/ui/webc/main/ColorPalettePopover.js +1 -1
- package/src/sap/ui/webc/main/ColorPicker.js +1 -1
- package/src/sap/ui/webc/main/ComboBox.js +1 -1
- package/src/sap/ui/webc/main/ComboBoxGroupItem.js +1 -1
- package/src/sap/ui/webc/main/ComboBoxItem.js +1 -1
- package/src/sap/ui/webc/main/CustomListItem.js +3 -2
- package/src/sap/ui/webc/main/DatePicker.js +1 -1
- package/src/sap/ui/webc/main/DateRangePicker.js +1 -1
- package/src/sap/ui/webc/main/DateTimePicker.js +1 -1
- package/src/sap/ui/webc/main/Dialog.js +3 -2
- package/src/sap/ui/webc/main/FileUploader.js +1 -1
- package/src/sap/ui/webc/main/GroupHeaderListItem.js +1 -1
- package/src/sap/ui/webc/main/Icon.js +1 -1
- package/src/sap/ui/webc/main/Input.js +9 -1
- package/src/sap/ui/webc/main/Label.js +3 -2
- package/src/sap/ui/webc/main/Link.js +1 -1
- package/src/sap/ui/webc/main/List.js +3 -2
- package/src/sap/ui/webc/main/Menu.js +122 -0
- package/src/sap/ui/webc/main/MenuItem.js +112 -0
- package/src/sap/ui/webc/main/MessageStrip.js +1 -1
- package/src/sap/ui/webc/main/MultiComboBox.js +1 -1
- package/src/sap/ui/webc/main/MultiComboBoxItem.js +1 -1
- package/src/sap/ui/webc/main/MultiInput.js +9 -1
- package/src/sap/ui/webc/main/Option.js +8 -1
- package/src/sap/ui/webc/main/Panel.js +1 -1
- package/src/sap/ui/webc/main/Popover.js +3 -2
- package/src/sap/ui/webc/main/ProgressIndicator.js +1 -1
- package/src/sap/ui/webc/main/RadioButton.js +3 -2
- package/src/sap/ui/webc/main/RangeSlider.js +1 -1
- package/src/sap/ui/webc/main/RatingIndicator.js +1 -1
- package/src/sap/ui/webc/main/ResponsivePopover.js +3 -2
- package/src/sap/ui/webc/main/SegmentedButton.js +1 -1
- package/src/sap/ui/webc/main/SegmentedButtonItem.js +1 -1
- package/src/sap/ui/webc/main/Select.js +1 -1
- package/src/sap/ui/webc/main/Slider.js +1 -1
- package/src/sap/ui/webc/main/SplitButton.js +1 -1
- package/src/sap/ui/webc/main/StandardListItem.js +3 -2
- package/src/sap/ui/webc/main/StepInput.js +1 -1
- package/src/sap/ui/webc/main/SuggestionGroupItem.js +1 -1
- package/src/sap/ui/webc/main/SuggestionItem.js +1 -1
- package/src/sap/ui/webc/main/Switch.js +3 -1
- package/src/sap/ui/webc/main/Tab.js +3 -2
- package/src/sap/ui/webc/main/TabContainer.js +3 -2
- package/src/sap/ui/webc/main/TabSeparator.js +1 -1
- package/src/sap/ui/webc/main/Table.js +24 -2
- package/src/sap/ui/webc/main/TableCell.js +1 -1
- package/src/sap/ui/webc/main/TableColumn.js +1 -1
- package/src/sap/ui/webc/main/TableGroupRow.js +1 -1
- package/src/sap/ui/webc/main/TableRow.js +1 -1
- package/src/sap/ui/webc/main/TextArea.js +1 -1
- package/src/sap/ui/webc/main/TimePicker.js +1 -1
- package/src/sap/ui/webc/main/Title.js +3 -2
- package/src/sap/ui/webc/main/Toast.js +1 -1
- package/src/sap/ui/webc/main/ToggleButton.js +1 -1
- package/src/sap/ui/webc/main/Token.js +1 -1
- package/src/sap/ui/webc/main/Tree.js +1 -1
- package/src/sap/ui/webc/main/TreeItem.js +1 -1
- package/src/sap/ui/webc/main/changeHandler/ChangeLinkTarget.js +1 -1
- package/src/sap/ui/webc/main/designtime/Avatar.designtime.js +26 -0
- package/src/sap/ui/webc/main/designtime/Badge.designtime.js +42 -0
- package/src/sap/ui/webc/main/designtime/BreadcrumbsItem.designtime.js +45 -0
- package/src/sap/ui/webc/main/designtime/BusyIndicator.designtime.js +26 -0
- package/src/sap/ui/webc/main/designtime/Card.designtime.js +26 -0
- package/src/sap/ui/webc/main/designtime/Carousel.designtime.js +26 -0
- package/src/sap/ui/webc/main/designtime/CheckBox.designtime.js +48 -0
- package/src/sap/ui/webc/main/designtime/CustomListItem.designtime.js +32 -0
- package/src/sap/ui/webc/main/designtime/Dialog.designtime.js +42 -0
- package/src/sap/ui/webc/main/designtime/Label.designtime.js +42 -0
- package/src/sap/ui/webc/main/designtime/List.designtime.js +83 -0
- package/src/sap/ui/webc/main/designtime/Popover.designtime.js +42 -0
- package/src/sap/ui/webc/main/designtime/RadioButton.designtime.js +42 -0
- package/src/sap/ui/webc/main/designtime/ResponsivePopover.designtime.js +42 -0
- package/src/sap/ui/webc/main/designtime/StandardListItem.designtime.js +39 -0
- package/src/sap/ui/webc/main/designtime/Tab.designtime.js +41 -0
- package/src/sap/ui/webc/main/designtime/TabContainer.designtime.js +26 -0
- package/src/sap/ui/webc/main/designtime/Title.designtime.js +42 -0
- package/src/sap/ui/webc/main/designtime/messagebundle.properties +91 -1
- package/src/sap/ui/webc/main/designtime/messagebundle_ar.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_bg.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_ca.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_cs.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_cy.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_da.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_de.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_el.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_en.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_en_GB.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_en_US_sappsd.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_en_US_saprigi.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_en_US_saptrc.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_es.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_es_MX.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_et.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_fi.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_fr.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_fr_CA.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_hi.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_hr.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_hu.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_id.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_it.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_iw.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_ja.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_kk.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_ko.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_lt.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_lv.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_ms.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_nl.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_no.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_pl.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_pt.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_pt_PT.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_ro.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_ru.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_sh.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_sk.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_sl.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_sv.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_th.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_tr.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_uk.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_vi.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_zh_CN.properties +60 -0
- package/src/sap/ui/webc/main/designtime/messagebundle_zh_TW.properties +60 -0
- package/src/sap/ui/webc/main/flexibility/Badge.flexibility.js +20 -0
- package/src/sap/ui/webc/main/flexibility/BreadcrumbsItem.flexibility.js +19 -0
- package/src/sap/ui/webc/main/flexibility/CheckBox.flexibility.js +20 -0
- package/src/sap/ui/webc/main/flexibility/Dialog.flexibility.js +20 -0
- package/src/sap/ui/webc/main/flexibility/Label.flexibility.js +20 -0
- package/src/sap/ui/webc/main/flexibility/List.flexibility.js +21 -0
- package/src/sap/ui/webc/main/flexibility/Popover.flexibility.js +20 -0
- package/src/sap/ui/webc/main/flexibility/RadioButton.flexibility.js +20 -0
- package/src/sap/ui/webc/main/flexibility/ResponsivePopover.flexibility.js +20 -0
- package/src/sap/ui/webc/main/flexibility/StandardListItem.flexibility.js +20 -0
- package/src/sap/ui/webc/main/flexibility/Tab.flexibility.js +18 -0
- package/src/sap/ui/webc/main/flexibility/TabContainer.flexibility.js +20 -0
- package/src/sap/ui/webc/main/flexibility/Title.flexibility.js +20 -0
- package/src/sap/ui/webc/main/library.js +52 -4
- package/src/sap/ui/webc/main/thirdparty/Badge.js +0 -9
- package/src/sap/ui/webc/main/thirdparty/Button.js +11 -8
- package/src/sap/ui/webc/main/thirdparty/CardHeader.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/CheckBox.js +3 -0
- package/src/sap/ui/webc/main/thirdparty/ColorPicker.js +14 -10
- package/src/sap/ui/webc/main/thirdparty/ComboBox.js +11 -8
- package/src/sap/ui/webc/main/thirdparty/DatePicker.js +11 -3
- package/src/sap/ui/webc/main/thirdparty/DateTimePicker.js +3 -0
- package/src/sap/ui/webc/main/thirdparty/Icon.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/Input.js +23 -5
- package/src/sap/ui/webc/main/thirdparty/Interfaces.js +2 -0
- package/src/sap/ui/webc/main/thirdparty/Link.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/List.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/ListItem.js +15 -4
- package/src/sap/ui/webc/main/thirdparty/Menu.js +308 -0
- package/src/sap/ui/webc/main/thirdparty/MenuItem.js +65 -0
- package/src/sap/ui/webc/main/thirdparty/MultiComboBox.js +6 -4
- package/src/sap/ui/webc/main/thirdparty/MultiInput.js +16 -6
- package/src/sap/ui/webc/main/thirdparty/Option.js +3 -0
- package/src/sap/ui/webc/main/thirdparty/Popover.js +22 -47
- package/src/sap/ui/webc/main/thirdparty/Popup.js +3 -0
- package/src/sap/ui/webc/main/thirdparty/ResponsivePopover.js +3 -0
- package/src/sap/ui/webc/main/thirdparty/Select.js +3 -0
- package/src/sap/ui/webc/main/thirdparty/SliderBase.js +6 -3
- package/src/sap/ui/webc/main/thirdparty/SplitButton.js +11 -5
- package/src/sap/ui/webc/main/thirdparty/Switch.js +4 -4
- package/src/sap/ui/webc/main/thirdparty/Tab.js +21 -8
- package/src/sap/ui/webc/main/thirdparty/TabContainer.js +32 -40
- package/src/sap/ui/webc/main/thirdparty/TabSeparator.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/Table.js +170 -35
- package/src/sap/ui/webc/main/thirdparty/TableGroupRow.js +4 -1
- package/src/sap/ui/webc/main/thirdparty/TableRow.js +23 -50
- package/src/sap/ui/webc/main/thirdparty/TimePickerBase.js +4 -2
- package/src/sap/ui/webc/main/thirdparty/TimeSelection.js +7 -1
- package/src/sap/ui/webc/main/thirdparty/Tokenizer.js +10 -1
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_ar.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_bg.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_ca.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_cs.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_cy.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_da.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_de.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_el.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_en.js +4 -2
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_en_GB.js +4 -2
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_en_US_sappsd.js +3 -1
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_en_US_saprigi.js +3 -1
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_en_US_saptrc.js +3 -1
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_es.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_es_MX.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_et.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_fi.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_fr.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_fr_CA.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_hi.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_hr.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_hu.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_it.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_iw.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_ja.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_kk.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_ko.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_lt.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_lv.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_ms.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_nl.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_no.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_pl.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_pt.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_pt_PT.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_ro.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_ru.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_sh.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_sk.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_sl.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_sv.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_th.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_tr.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_uk.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_vi.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_zh_CN.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/messagebundle_zh_TW.js +5 -3
- package/src/sap/ui/webc/main/thirdparty/_chunks/parameters-bundle.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/_chunks/parameters-bundle.css10.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/_chunks/parameters-bundle.css11.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/_chunks/parameters-bundle.css12.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/_chunks/parameters-bundle.css2.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/_chunks/parameters-bundle.css3.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/_chunks/parameters-bundle.css4.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/_chunks/parameters-bundle.css5.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/_chunks/parameters-bundle.css6.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/_chunks/parameters-bundle.css7.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/_chunks/parameters-bundle.css8.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/_chunks/parameters-bundle.css9.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/Avatar.css +1 -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/Button.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/CalendarHeader.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/Card.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/Carousel.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/ColorPalette.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/ColorPaletteItem.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/ColorPalettePopover.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/ColorPicker.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/DatePicker.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/DateTimePickerPopover.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/FileUploader.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/GroupHeaderListItem.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/GrowingButton.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/Icon.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/InputIcon.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/Label.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/Link.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/ListItem.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/ListItemBase.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/Menu.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/MessageStrip.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/MultiInput.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/ProgressIndicator.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/ResponsivePopover.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/ResponsivePopoverCommon.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/SegmentedButton.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/SplitButton.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/StepInput.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/Suggestions.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/Switch.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/TabSemanticIcon.css +1 -0
- package/src/sap/ui/webc/main/thirdparty/css/themes/TabSeparatorInOverflow.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/Table.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/TableCell.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/TableGroupRow.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/TableRow.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/TimePicker.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/ToggleButton.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/Tokenizer.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/TreeListItem.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_dark/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/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -1
- package/src/sap/ui/webc/main/thirdparty/features/InputElementsFormSupport.js +5 -5
- package/src/sap/ui/webc/main/thirdparty/generated/i18n/i18n-defaults.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/AvatarGroupTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/AvatarTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BadgeTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BreadcrumbsPopoverTemplate.lit.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BreadcrumbsTemplate.lit.js +3 -3
- 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 +2 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CalendarHeaderTemplate.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 +4 -4
- 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 +4 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CheckBoxTemplate.lit.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteDialogTemplate.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/ColorPaletteTemplate.lit.js +3 -3
- 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 +6 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ComboBoxTemplate.lit.js +3 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CustomListItemTemplate.lit.js +8 -8
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DatePickerPopoverTemplate.lit.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DatePickerTemplate.lit.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DateTimePickerPopoverTemplate.lit.js +4 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DialogTemplate.lit.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/FileUploaderPopoverTemplate.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/InputPopoverTemplate.lit.js +8 -8
- package/src/sap/ui/webc/main/thirdparty/generated/templates/InputTemplate.lit.js +6 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/LabelTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ListItemTemplate.lit.js +8 -8
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ListTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MenuTemplate.lit.js +15 -0
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MessageStripTemplate.lit.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiComboBoxPopoverTemplate.lit.js +10 -10
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiComboBoxTemplate.lit.js +4 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiInputTemplate.lit.js +7 -8
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PanelTemplate.lit.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PopoverTemplate.lit.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PopupTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ProgressIndicatorTemplate.lit.js +3 -3
- 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/ResponsivePopoverTemplate.lit.js +5 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SegmentedButtonItemTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SelectPopoverTemplate.lit.js +5 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SelectTemplate.lit.js +2 -2
- 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 +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/StandardListItemTemplate.lit.js +11 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/StepInputTemplate.lit.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SuggestionListItemTemplate.lit.js +11 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SwitchTemplate.lit.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabContainerPopoverTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabContainerTemplate.lit.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabInOverflowTemplate.lit.js +5 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabInStripTemplate.lit.js +6 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabSeparatorInOverflowTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableRowTemplate.lit.js +1 -1
- 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/TimePickerPopoverTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TimePickerTemplate.lit.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TimeSelectionTemplate.lit.js +4 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ToggleButtonTemplate.lit.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenizerPopoverTemplate.lit.js +5 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenizerTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TreeListItemTemplate.lit.js +11 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TreeTemplate.lit.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/WheelSliderTemplate.lit.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Avatar.css.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/Button.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/CalendarHeader.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Card.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/Carousel.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/ColorPalette.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPaletteItem.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPalettePopover.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPicker.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/DatePicker.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DateTimePickerPopover.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/FileUploader.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/GroupHeaderListItem.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/GrowingButton.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Icon.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/InputIcon.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Label.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Link.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/ListItem.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ListItemBase.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Menu.css.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MessageStrip.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/MultiInput.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/ProgressIndicator.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ResponsivePopover.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ResponsivePopoverCommon.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SegmentedButton.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/SplitButton.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/StepInput.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Suggestions.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Switch.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/TabSemanticIcon.css.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabSeparatorInOverflow.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Table.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableCell.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/TableGroupRow.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableRow.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/TimePicker.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ToggleButton.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/Tokenizer.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TreeListItem.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_dark/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/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -1
|
@@ -88,6 +88,17 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
88
88
|
static async onDefine() {
|
|
89
89
|
SplitButton.i18nBundle = await i18nBundle.getI18nBundle("@ui5/webcomponents");
|
|
90
90
|
}
|
|
91
|
+
constructor() {
|
|
92
|
+
super();
|
|
93
|
+
this._textButtonPress = {
|
|
94
|
+
handleEvent(event) {
|
|
95
|
+
this._textButtonActive = true;
|
|
96
|
+
this.focused = false;
|
|
97
|
+
this._setTabIndexValue();
|
|
98
|
+
},
|
|
99
|
+
passive: true,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
91
102
|
onBeforeRendering() {
|
|
92
103
|
this._textButtonIcon = this.textButton && this.activeIcon !== "" && (this._textButtonActive) && !this._shiftOrEscapePressed ? this.activeIcon : this.icon;
|
|
93
104
|
if (this.disabled) {
|
|
@@ -159,11 +170,6 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
159
170
|
this._textButtonIcon = this.textButton && this.activeIcon !== "" && (this._textButtonActive) && !this._shiftOrEscapePressed ? this.activeIcon : this.icon;
|
|
160
171
|
this._setTabIndexValue();
|
|
161
172
|
}
|
|
162
|
-
_textButtonPress() {
|
|
163
|
-
this._textButtonActive = true;
|
|
164
|
-
this.focused = false;
|
|
165
|
-
this._setTabIndexValue();
|
|
166
|
-
}
|
|
167
173
|
_setTabIndexValue() {
|
|
168
174
|
const textButton = this.textButton,
|
|
169
175
|
arrowButton = this.arrowButton,
|
|
@@ -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/Keys', 'sap/ui/webc/common/thirdparty/base/Device', 'sap/ui/webc/common/thirdparty/base/i18nBundle', 'sap/ui/webc/common/thirdparty/base/util/AriaLabelHelper', 'sap/ui/webc/common/thirdparty/icons/accept', 'sap/ui/webc/common/thirdparty/icons/decline', 'sap/ui/webc/common/thirdparty/icons/less', './Icon', './types/SwitchDesign', './generated/
|
|
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/Keys', 'sap/ui/webc/common/thirdparty/base/Device', 'sap/ui/webc/common/thirdparty/base/i18nBundle', 'sap/ui/webc/common/thirdparty/base/util/AriaLabelHelper', 'sap/ui/webc/common/thirdparty/icons/accept', 'sap/ui/webc/common/thirdparty/icons/decline', 'sap/ui/webc/common/thirdparty/icons/less', './Icon', './types/SwitchDesign', './generated/templates/SwitchTemplate.lit', './generated/themes/Switch.css'], function (UI5Element, litRender, Keys, Device, i18nBundle, AriaLabelHelper, accept, decline, less, Icon, SwitchDesign, SwitchTemplate_lit, Switch_css) { 'use strict';
|
|
2
2
|
|
|
3
3
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
|
|
4
4
|
|
|
@@ -107,16 +107,16 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
107
107
|
return this.disabled ? "true" : undefined;
|
|
108
108
|
}
|
|
109
109
|
get accessibilityOnText() {
|
|
110
|
-
return this._textOn
|
|
110
|
+
return this._textOn;
|
|
111
111
|
}
|
|
112
112
|
get accessibilityOffText() {
|
|
113
|
-
return this._textOff
|
|
113
|
+
return this._textOff;
|
|
114
114
|
}
|
|
115
115
|
get hiddenText() {
|
|
116
116
|
return this.checked ? this.accessibilityOnText : this.accessibilityOffText;
|
|
117
117
|
}
|
|
118
118
|
get ariaLabelText() {
|
|
119
|
-
return AriaLabelHelper.getEffectiveAriaLabelText(this);
|
|
119
|
+
return [AriaLabelHelper.getEffectiveAriaLabelText(this), this.hiddenText].join(" ").trim();
|
|
120
120
|
}
|
|
121
121
|
static get dependencies() {
|
|
122
122
|
return [Icon];
|
|
@@ -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/renderer/executeTemplate', './types/SemanticColor', './TabContainer', './Icon', './CustomListItem', './generated/templates/TabTemplate.lit', './generated/templates/TabInStripTemplate.lit', './generated/templates/TabInOverflowTemplate.lit', './generated/themes/Tab.css', './generated/themes/TabInStrip.css', './generated/themes/TabInOverflow.css'], function (UI5Element, litRender, executeTemplate, SemanticColor, TabContainer, Icon, CustomListItem, TabTemplate_lit, TabInStripTemplate_lit, TabInOverflowTemplate_lit, Tab_css, TabInStrip_css, TabInOverflow_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/renderer/executeTemplate', 'sap/ui/webc/common/thirdparty/icons/error', 'sap/ui/webc/common/thirdparty/icons/alert', 'sap/ui/webc/common/thirdparty/icons/sys-enter-2', './types/SemanticColor', './types/ListItemType', './TabContainer', './Icon', './Button', './CustomListItem', './generated/templates/TabTemplate.lit', './generated/templates/TabInStripTemplate.lit', './generated/templates/TabInOverflowTemplate.lit', './generated/themes/Tab.css', './generated/themes/TabInStrip.css', './generated/themes/TabInOverflow.css'], function (UI5Element, litRender, executeTemplate, error, alert, sysEnter2, SemanticColor, ListItemType, TabContainer, Icon, Button, CustomListItem, TabTemplate_lit, TabInStripTemplate_lit, TabInOverflowTemplate_lit, Tab_css, TabInStrip_css, TabInOverflow_css) { 'use strict';
|
|
2
2
|
|
|
3
3
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
|
|
4
4
|
|
|
@@ -88,6 +88,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
88
88
|
static get dependencies() {
|
|
89
89
|
return [
|
|
90
90
|
Icon,
|
|
91
|
+
Button,
|
|
91
92
|
CustomListItem,
|
|
92
93
|
];
|
|
93
94
|
}
|
|
@@ -130,7 +131,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
130
131
|
&& (node.nodeType !== Node.TEXT_NODE || node.nodeValue.trim().length !== 0)));
|
|
131
132
|
}
|
|
132
133
|
getTabInStripDomRef() {
|
|
133
|
-
return this.
|
|
134
|
+
return this._tabInStripDomRef;
|
|
134
135
|
}
|
|
135
136
|
getFocusDomRef() {
|
|
136
137
|
let focusedDomRef = super.getFocusDomRef();
|
|
@@ -205,16 +206,28 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
205
206
|
}
|
|
206
207
|
return classes.join(" ");
|
|
207
208
|
}
|
|
208
|
-
get
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
209
|
+
get semanticIconName() {
|
|
210
|
+
switch (this.design) {
|
|
211
|
+
case SemanticColor.Positive:
|
|
212
|
+
return "sys-enter-2";
|
|
213
|
+
case SemanticColor.Negative:
|
|
214
|
+
return "error";
|
|
215
|
+
case SemanticColor.Critical:
|
|
216
|
+
return "alert";
|
|
217
|
+
default:
|
|
218
|
+
return null;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
get semanticIconClasses() {
|
|
222
|
+
const classes = ["ui5-tab-semantic-icon"];
|
|
223
|
+
if (this.design !== SemanticColor.Default && this.design !== SemanticColor.Neutral) {
|
|
224
|
+
classes.push(`ui5-tab-semantic-icon--${this.design.toLowerCase()}`);
|
|
212
225
|
}
|
|
213
226
|
return classes.join(" ");
|
|
214
227
|
}
|
|
215
228
|
get overflowClasses() {
|
|
216
229
|
const classes = ["ui5-tab-overflow-item"];
|
|
217
|
-
if (this.design !== SemanticColor.Default) {
|
|
230
|
+
if (this.design !== SemanticColor.Default && this.design !== SemanticColor.Neutral) {
|
|
218
231
|
classes.push(`ui5-tab-overflow-item--${this.design.toLowerCase()}`);
|
|
219
232
|
}
|
|
220
233
|
if (this.disabled) {
|
|
@@ -226,7 +239,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
226
239
|
return classes.join(" ");
|
|
227
240
|
}
|
|
228
241
|
get overflowState() {
|
|
229
|
-
return (this.disabled || this.isSingleClickArea) ?
|
|
242
|
+
return (this.disabled || this.isSingleClickArea) ? ListItemType.Inactive : ListItemType.Active;
|
|
230
243
|
}
|
|
231
244
|
}
|
|
232
245
|
Tab.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/delegate/ResizeHandler', 'sap/ui/webc/common/thirdparty/base/Render', 'sap/ui/webc/common/thirdparty/base/animations/slideDown', 'sap/ui/webc/common/thirdparty/base/animations/slideUp', 'sap/ui/webc/common/thirdparty/base/types/AnimationMode', 'sap/ui/webc/common/thirdparty/base/config/AnimationMode', 'sap/ui/webc/common/thirdparty/base/delegate/ItemNavigation', 'sap/ui/webc/common/thirdparty/base/Keys', 'sap/ui/webc/common/thirdparty/base/MediaRange', 'sap/ui/webc/common/thirdparty/base/i18nBundle', 'sap/ui/webc/common/thirdparty/icons/slim-arrow-up', 'sap/ui/webc/common/thirdparty/icons/slim-arrow-down', './generated/i18n/i18n-defaults', './Button', './Icon', './List', './ResponsivePopover', './types/TabContainerTabsPlacement', './generated/templates/TabContainerTemplate.lit', './generated/templates/TabContainerPopoverTemplate.lit', './generated/themes/TabContainer.css', './generated/themes/ResponsivePopoverCommon.css', './types/TabLayout', './types/TabsOverflowMode'], function (UI5Element, litRender, ResizeHandler, Render, slideDown, slideUp, AnimationMode$1, AnimationMode, ItemNavigation, Keys, MediaRange, i18nBundle, slimArrowUp, slimArrowDown, i18nDefaults, Button, Icon, List, ResponsivePopover, TabContainerTabsPlacement, TabContainerTemplate_lit, TabContainerPopoverTemplate_lit, TabContainer_css, ResponsivePopoverCommon_css, TabLayout, TabsOverflowMode) { '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/delegate/ResizeHandler', 'sap/ui/webc/common/thirdparty/base/Render', 'sap/ui/webc/common/thirdparty/base/animations/slideDown', 'sap/ui/webc/common/thirdparty/base/animations/slideUp', 'sap/ui/webc/common/thirdparty/base/types/AnimationMode', 'sap/ui/webc/common/thirdparty/base/config/AnimationMode', 'sap/ui/webc/common/thirdparty/base/delegate/ItemNavigation', 'sap/ui/webc/common/thirdparty/base/Keys', 'sap/ui/webc/common/thirdparty/base/MediaRange', 'sap/ui/webc/common/thirdparty/base/i18nBundle', 'sap/ui/webc/common/thirdparty/icons/slim-arrow-up', 'sap/ui/webc/common/thirdparty/icons/slim-arrow-down', './generated/i18n/i18n-defaults', './Button', './Icon', './List', './ResponsivePopover', './types/TabContainerTabsPlacement', './types/SemanticColor', './generated/templates/TabContainerTemplate.lit', './generated/templates/TabContainerPopoverTemplate.lit', './generated/themes/TabContainer.css', './generated/themes/ResponsivePopoverCommon.css', './types/TabLayout', './types/TabsOverflowMode'], function (UI5Element, litRender, ResizeHandler, Render, slideDown, slideUp, AnimationMode$1, AnimationMode, ItemNavigation, Keys, MediaRange, i18nBundle, slimArrowUp, slimArrowDown, i18nDefaults, Button, Icon, List, ResponsivePopover, TabContainerTabsPlacement, SemanticColor, TabContainerTemplate_lit, TabContainerPopoverTemplate_lit, TabContainer_css, ResponsivePopoverCommon_css, TabLayout, TabsOverflowMode) { 'use strict';
|
|
2
2
|
|
|
3
3
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
|
|
4
4
|
|
|
@@ -81,14 +81,6 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
81
81
|
noAttribute: true,
|
|
82
82
|
defaultValue: "More",
|
|
83
83
|
},
|
|
84
|
-
_startOverflowItems: {
|
|
85
|
-
type: Object,
|
|
86
|
-
multiple: true,
|
|
87
|
-
},
|
|
88
|
-
_endOverflowItems: {
|
|
89
|
-
type: Object,
|
|
90
|
-
multiple: true,
|
|
91
|
-
},
|
|
92
84
|
_overflowItems: {
|
|
93
85
|
type: Object,
|
|
94
86
|
multiple: true,
|
|
@@ -136,7 +128,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
136
128
|
});
|
|
137
129
|
}
|
|
138
130
|
onBeforeRendering() {
|
|
139
|
-
this._allItemsAndSubItems = this._getAllSubItems(this.items
|
|
131
|
+
this._allItemsAndSubItems = this._getAllSubItems(this.items);
|
|
140
132
|
if (this._allItemsAndSubItems.length) {
|
|
141
133
|
const selectedTabs = this._allItemsAndSubItems.filter(tab => tab.selected);
|
|
142
134
|
if (selectedTabs.length) {
|
|
@@ -156,7 +148,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
156
148
|
}
|
|
157
149
|
onAfterRendering() {
|
|
158
150
|
this.items.forEach(item => {
|
|
159
|
-
item.
|
|
151
|
+
item._tabInStripDomRef = this.getDomRef().querySelector(`*[data-ui5-stable="${item.stableDomRef}"]`);
|
|
160
152
|
});
|
|
161
153
|
}
|
|
162
154
|
onEnterDOM() {
|
|
@@ -165,6 +157,17 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
165
157
|
onExitDOM() {
|
|
166
158
|
ResizeHandler__default.deregister(this._getHeader(), this._handleResize);
|
|
167
159
|
}
|
|
160
|
+
async _handleResize() {
|
|
161
|
+
if (this.responsivePopover && this.responsivePopover.opened) {
|
|
162
|
+
this.responsivePopover.close();
|
|
163
|
+
}
|
|
164
|
+
this._updateMediaRange();
|
|
165
|
+
await Render.renderFinished();
|
|
166
|
+
this._setItemsForStrip();
|
|
167
|
+
}
|
|
168
|
+
_updateMediaRange() {
|
|
169
|
+
this.mediaRange = MediaRange__default.getCurrentRange(MediaRange__default.RANGESETS.RANGE_4STEPS, this.getDomRef().offsetWidth);
|
|
170
|
+
}
|
|
168
171
|
_setItemsExternalProperties(items) {
|
|
169
172
|
items.filter(item => !item.isSeparator).forEach((item, index, arr) => {
|
|
170
173
|
item._isInline = this.tabLayout === TabLayout.Inline;
|
|
@@ -183,7 +186,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
183
186
|
}
|
|
184
187
|
async _onTabStripClick(event) {
|
|
185
188
|
const tab = getTab(event.target);
|
|
186
|
-
if (!tab) {
|
|
189
|
+
if (!tab || tab._realTab.disabled) {
|
|
187
190
|
return;
|
|
188
191
|
}
|
|
189
192
|
event.preventDefault();
|
|
@@ -193,9 +196,8 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
193
196
|
return;
|
|
194
197
|
}
|
|
195
198
|
if (!tab._realTab._hasOwnContent && tab._realTab.tabs.length) {
|
|
196
|
-
this._overflowItems = [];
|
|
197
199
|
this._overflowItems = tab._realTab.subTabs;
|
|
198
|
-
this._addStyleIndent(this._overflowItems
|
|
200
|
+
this._addStyleIndent(this._overflowItems);
|
|
199
201
|
this.responsivePopover = await this._respPopover();
|
|
200
202
|
if (this.responsivePopover.opened) {
|
|
201
203
|
this.responsivePopover.close();
|
|
@@ -224,7 +226,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
224
226
|
return;
|
|
225
227
|
}
|
|
226
228
|
this._overflowItems = tabInstance.subTabs;
|
|
227
|
-
this._addStyleIndent(this._overflowItems
|
|
229
|
+
this._addStyleIndent(this._overflowItems);
|
|
228
230
|
this.responsivePopover = await this._respPopover();
|
|
229
231
|
if (this.responsivePopover.opened) {
|
|
230
232
|
this.responsivePopover.close();
|
|
@@ -242,7 +244,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
242
244
|
}
|
|
243
245
|
_onTabStripKeyDown(event) {
|
|
244
246
|
const tab = getTab(event.target);
|
|
245
|
-
if (!tab) {
|
|
247
|
+
if (!tab || tab._realTab.disabled) {
|
|
246
248
|
return;
|
|
247
249
|
}
|
|
248
250
|
if (Keys.isEnter(event)) {
|
|
@@ -266,7 +268,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
266
268
|
}
|
|
267
269
|
_onTabStripKeyUp(event) {
|
|
268
270
|
const tab = getTab(event.target);
|
|
269
|
-
if (!tab) {
|
|
271
|
+
if (!tab || tab._realTab.disabled) {
|
|
270
272
|
return;
|
|
271
273
|
}
|
|
272
274
|
if (Keys.isSpace(event)) {
|
|
@@ -295,7 +297,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
295
297
|
const selectedTopLevel = this._getRootTab(this._selectedTab);
|
|
296
298
|
selectedTopLevel.focus();
|
|
297
299
|
}
|
|
298
|
-
_getAllSubItems(items, result, level = 1) {
|
|
300
|
+
_getAllSubItems(items, result = [], level = 1) {
|
|
299
301
|
items.forEach(item => {
|
|
300
302
|
if (item.hasAttribute("ui5-tab") || item.hasAttribute("ui5-tab-separator")) {
|
|
301
303
|
item._level = level;
|
|
@@ -385,35 +387,36 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
385
387
|
if (isEndOverflow) {
|
|
386
388
|
button = this.overflowButton[0] || overflow.querySelector("[ui5-button]");
|
|
387
389
|
this._overflowItems = items;
|
|
388
|
-
this._addStyleIndent(this._overflowItems
|
|
390
|
+
this._addStyleIndent(this._overflowItems);
|
|
389
391
|
}
|
|
390
392
|
if (isStartOverflow) {
|
|
391
393
|
button = this.startOverflowButton[0] || overflow.querySelector("[ui5-button]");
|
|
392
394
|
this._overflowItems = items;
|
|
393
|
-
this._addStyleIndent(this._overflowItems
|
|
395
|
+
this._addStyleIndent(this._overflowItems);
|
|
394
396
|
}
|
|
395
397
|
this.responsivePopover = await this._respPopover();
|
|
396
398
|
if (this.responsivePopover.opened) {
|
|
397
399
|
this.responsivePopover.close();
|
|
398
400
|
} else {
|
|
399
401
|
this.responsivePopover.initialFocus = this.responsivePopover.content[0].items.filter(item => item.classList.contains("ui5-tab-overflow-item"))[0].id;
|
|
400
|
-
this.responsivePopover.showAt(button);
|
|
402
|
+
await this.responsivePopover.showAt(button);
|
|
401
403
|
}
|
|
402
404
|
}
|
|
403
405
|
_getSelectedInPopover() {
|
|
404
406
|
return this.responsivePopover.content[0].items.filter(item => (item._realTab && item._realTab.selected));
|
|
405
407
|
}
|
|
406
|
-
_addStyleIndent(tabs
|
|
408
|
+
_addStyleIndent(tabs) {
|
|
409
|
+
const extraIndent = this._getAllSubItems(tabs)
|
|
410
|
+
.filter(tab => !tab.isSeparator)
|
|
411
|
+
.some(tab => tab.design !== SemanticColor.Default && tab.design !== SemanticColor.Neutral);
|
|
407
412
|
walk(tabs, tab => {
|
|
408
|
-
let level = tab._level;
|
|
409
|
-
if (
|
|
410
|
-
level
|
|
411
|
-
}
|
|
412
|
-
if (tab._level > 1 && tab.isSeparator) {
|
|
413
|
-
level -= 1;
|
|
413
|
+
let level = tab._level - 1;
|
|
414
|
+
if (tab.isSeparator) {
|
|
415
|
+
level += 1;
|
|
414
416
|
}
|
|
415
417
|
tab._style = {
|
|
416
|
-
"--_ui5-indentation-level": level
|
|
418
|
+
"--_ui5-tab-indentation-level": level,
|
|
419
|
+
"--_ui5-tab-extra-indent": extraIndent ? 1 : null,
|
|
417
420
|
};
|
|
418
421
|
});
|
|
419
422
|
}
|
|
@@ -424,14 +427,6 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
424
427
|
await this._onOverflowClick(event);
|
|
425
428
|
}
|
|
426
429
|
}
|
|
427
|
-
async _handleResize() {
|
|
428
|
-
if (this.responsivePopover && this.responsivePopover.opened) {
|
|
429
|
-
this.responsivePopover.close();
|
|
430
|
-
}
|
|
431
|
-
this._updateMediaRange();
|
|
432
|
-
await Render.renderFinished();
|
|
433
|
-
this._setItemsForStrip();
|
|
434
|
-
}
|
|
435
430
|
_setItemsForStrip() {
|
|
436
431
|
const tabStrip = this._getTabStrip();
|
|
437
432
|
let allItemsWidth = 0;
|
|
@@ -667,9 +662,6 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
667
662
|
}
|
|
668
663
|
return focusableTabs;
|
|
669
664
|
}
|
|
670
|
-
_updateMediaRange() {
|
|
671
|
-
this.mediaRange = MediaRange__default.getCurrentRange(MediaRange__default.RANGESETS.RANGE_4STEPS, this.getDomRef().offsetWidth);
|
|
672
|
-
}
|
|
673
665
|
_getHeader() {
|
|
674
666
|
return this.shadowRoot.querySelector(`#${this._id}-header`);
|
|
675
667
|
}
|
|
@@ -31,7 +31,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
31
31
|
return true;
|
|
32
32
|
}
|
|
33
33
|
getTabInStripDomRef() {
|
|
34
|
-
return this.
|
|
34
|
+
return this._tabInStripDomRef;
|
|
35
35
|
}
|
|
36
36
|
get stableDomRef() {
|
|
37
37
|
return this.getAttribute("stable-dom-ref") || `${this._id}-stable-dom-ref`;
|
|
@@ -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/delegate/ResizeHandler', 'sap/ui/webc/common/thirdparty/base/delegate/ItemNavigation', 'sap/ui/webc/common/thirdparty/base/types/Integer', 'sap/ui/webc/common/thirdparty/base/types/NavigationMode', 'sap/ui/webc/common/thirdparty/base/Device', 'sap/ui/webc/common/thirdparty/base/Keys', 'sap/ui/webc/common/thirdparty/base/util/TabbableElements', 'sap/ui/webc/common/thirdparty/base/i18nBundle', 'sap/ui/webc/common/thirdparty/base/util/debounce', 'sap/ui/webc/common/thirdparty/base/util/isElementInView', './types/TableGrowingMode', './BusyIndicator', './types/TableMode', './CheckBox', './generated/i18n/i18n-defaults', './generated/templates/TableTemplate.lit', './generated/themes/Table.css'], function (UI5Element, litRender, ResizeHandler, ItemNavigation, Integer, NavigationMode, Device, Keys, TabbableElements, i18nBundle, debounce, isElementInView, TableGrowingMode, BusyIndicator, TableMode, CheckBox, i18nDefaults, TableTemplate_lit, Table_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/delegate/ResizeHandler', 'sap/ui/webc/common/thirdparty/base/delegate/ItemNavigation', 'sap/ui/webc/common/thirdparty/base/types/Integer', 'sap/ui/webc/common/thirdparty/base/types/NavigationMode', 'sap/ui/webc/common/thirdparty/base/Device', 'sap/ui/webc/common/thirdparty/base/Keys', 'sap/ui/webc/common/thirdparty/base/util/getNormalizedTarget', 'sap/ui/webc/common/thirdparty/base/util/getActiveElement', 'sap/ui/webc/common/thirdparty/base/util/TabbableElements', 'sap/ui/webc/common/thirdparty/base/util/AriaLabelHelper', 'sap/ui/webc/common/thirdparty/base/i18nBundle', 'sap/ui/webc/common/thirdparty/base/util/debounce', 'sap/ui/webc/common/thirdparty/base/util/isElementInView', './types/TableGrowingMode', './BusyIndicator', './types/TableMode', './CheckBox', './generated/i18n/i18n-defaults', './generated/templates/TableTemplate.lit', './generated/themes/Table.css'], function (UI5Element, litRender, ResizeHandler, ItemNavigation, Integer, NavigationMode, Device, Keys, getNormalizedTarget, getActiveElement, TabbableElements, AriaLabelHelper, i18nBundle, debounce, isElementInView, TableGrowingMode, BusyIndicator, TableMode, CheckBox, i18nDefaults, TableTemplate_lit, Table_css) { 'use strict';
|
|
2
2
|
|
|
3
3
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
|
|
4
4
|
|
|
@@ -8,10 +8,13 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
8
8
|
var ItemNavigation__default = /*#__PURE__*/_interopDefaultLegacy(ItemNavigation);
|
|
9
9
|
var Integer__default = /*#__PURE__*/_interopDefaultLegacy(Integer);
|
|
10
10
|
var NavigationMode__default = /*#__PURE__*/_interopDefaultLegacy(NavigationMode);
|
|
11
|
+
var getNormalizedTarget__default = /*#__PURE__*/_interopDefaultLegacy(getNormalizedTarget);
|
|
12
|
+
var getActiveElement__default = /*#__PURE__*/_interopDefaultLegacy(getActiveElement);
|
|
11
13
|
var debounce__default = /*#__PURE__*/_interopDefaultLegacy(debounce);
|
|
12
14
|
var isElementInView__default = /*#__PURE__*/_interopDefaultLegacy(isElementInView);
|
|
13
15
|
|
|
14
16
|
const GROWING_WITH_SCROLL_DEBOUNCE_RATE = 250;
|
|
17
|
+
const PAGE_UP_DOWN_SIZE = 20;
|
|
15
18
|
const metadata = {
|
|
16
19
|
tag: "ui5-table",
|
|
17
20
|
managedSlots: true,
|
|
@@ -63,6 +66,14 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
63
66
|
type: TableMode,
|
|
64
67
|
defaultValue: TableMode.None,
|
|
65
68
|
},
|
|
69
|
+
accessibleName: {
|
|
70
|
+
type: String,
|
|
71
|
+
defaultValue: undefined,
|
|
72
|
+
},
|
|
73
|
+
accessibleNameRef: {
|
|
74
|
+
type: String,
|
|
75
|
+
defaultValue: "",
|
|
76
|
+
},
|
|
66
77
|
_hiddenColumns: {
|
|
67
78
|
type: Object,
|
|
68
79
|
multiple: true,
|
|
@@ -132,12 +143,17 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
132
143
|
navigationMode: NavigationMode__default.Vertical,
|
|
133
144
|
affectedPropertiesNames: ["_columnHeader"],
|
|
134
145
|
getItemsCallback: () => [this._columnHeader, ...this.rows],
|
|
135
|
-
skipItemsSize:
|
|
146
|
+
skipItemsSize: PAGE_UP_DOWN_SIZE,
|
|
136
147
|
});
|
|
137
148
|
this.fnOnRowFocused = this.onRowFocused.bind(this);
|
|
138
149
|
this._handleResize = this.popinContent.bind(this);
|
|
150
|
+
this.fnHandleF7 = this._handleF7.bind(this);
|
|
139
151
|
this.tableEndObserved = false;
|
|
140
152
|
this.addEventListener("ui5-selection-requested", this._handleSelect.bind(this));
|
|
153
|
+
this.addEventListener("ui5-_forward-after", this._onForwardAfter.bind(this));
|
|
154
|
+
this.addEventListener("ui5-_forward-before", this._onForwardBefore.bind(this));
|
|
155
|
+
this.lastFocusedElement = null;
|
|
156
|
+
this._forwardingFocus = false;
|
|
141
157
|
this._prevNestedElementIndex = 0;
|
|
142
158
|
}
|
|
143
159
|
onBeforeRendering() {
|
|
@@ -154,6 +170,8 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
154
170
|
row._busy = this.busy;
|
|
155
171
|
row.removeEventListener("ui5-_focused", this.fnOnRowFocused);
|
|
156
172
|
row.addEventListener("ui5-_focused", this.fnOnRowFocused);
|
|
173
|
+
row.removeEventListener("ui5-f7-pressed", this.fnHandleF7);
|
|
174
|
+
row.addEventListener("ui5-f7-pressed", this.fnHandleF7);
|
|
157
175
|
row.mode = this.mode;
|
|
158
176
|
});
|
|
159
177
|
this.visibleColumns = this.columns.filter((column, index) => {
|
|
@@ -162,7 +180,7 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
162
180
|
this._noDataDisplayed = !this.rows.length && !this.hideNoData;
|
|
163
181
|
this.visibleColumnsCount = this.visibleColumns.length;
|
|
164
182
|
this._allRowsSelected = selectedRows.length === this.rows.length;
|
|
165
|
-
this.
|
|
183
|
+
this._prevFocusedRow = this._prevFocusedRow || this.rows[0];
|
|
166
184
|
}
|
|
167
185
|
onAfterRendering() {
|
|
168
186
|
if (this.growsOnScroll) {
|
|
@@ -176,12 +194,6 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
176
194
|
}
|
|
177
195
|
ResizeHandler__default.register(this.getDomRef(), this._handleResize);
|
|
178
196
|
this._itemNavigation.setCurrentItem(this.rows.length ? this.rows[0] : this._columnHeader);
|
|
179
|
-
this.rows.forEach((row, index) => {
|
|
180
|
-
row._tabbableElements = TabbableElements.getTabbableElements(row);
|
|
181
|
-
if (index > 0) {
|
|
182
|
-
row._tabbableElements.forEach(el => el.setAttribute("tabindex", "-1"));
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
197
|
}
|
|
186
198
|
onExitDOM() {
|
|
187
199
|
ResizeHandler__default.deregister(this.getDomRef(), this._handleResize);
|
|
@@ -192,14 +204,15 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
192
204
|
}
|
|
193
205
|
}
|
|
194
206
|
_onkeydown(event) {
|
|
207
|
+
if (Keys.isTabNext(event) || Keys.isTabPrevious(event)) {
|
|
208
|
+
this._handleTab(event);
|
|
209
|
+
}
|
|
195
210
|
if (Keys.isCtrlA(event)) {
|
|
196
211
|
event.preventDefault();
|
|
197
212
|
this.isMultiSelect && this._selectAll(event);
|
|
198
|
-
return;
|
|
199
213
|
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
return this._handleArrowAlt(isAltUp, event.target);
|
|
214
|
+
if (Keys.isUpAlt(event) || Keys.isDownAlt(event)) {
|
|
215
|
+
this._handleArrowAlt(event);
|
|
203
216
|
}
|
|
204
217
|
if ((Keys.isUpShift(event) || Keys.isDownShift(event)) && this.isMultiSelect) {
|
|
205
218
|
this._handleArrowNav(event);
|
|
@@ -220,6 +233,43 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
220
233
|
this._handleHomeEndSelection(event);
|
|
221
234
|
}
|
|
222
235
|
}
|
|
236
|
+
_handleTab(event) {
|
|
237
|
+
const isNext = Keys.isTabNext(event);
|
|
238
|
+
const target = getNormalizedTarget__default(event.target);
|
|
239
|
+
const targetType = this.getFocusedElementType(event.target);
|
|
240
|
+
if (this.columnHeaderTabbables.includes(target)) {
|
|
241
|
+
if (isNext && this.columnHeaderLastElement === target) {
|
|
242
|
+
return this._focusNextElement(event);
|
|
243
|
+
}
|
|
244
|
+
return;
|
|
245
|
+
}
|
|
246
|
+
if (isNext && targetType === "columnHeader" && !this.columnHeaderTabbables.length) {
|
|
247
|
+
return this._focusNextElement(event);
|
|
248
|
+
}
|
|
249
|
+
if (targetType === "tableRow" || !targetType) {
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
switch (targetType) {
|
|
253
|
+
case "tableGroupRow":
|
|
254
|
+
return isNext ? this._focusNextElement(event) : this._focusForwardElement(event, false);
|
|
255
|
+
case "columnHeader":
|
|
256
|
+
return !isNext && this._focusForwardElement(event, false);
|
|
257
|
+
case "moreButton":
|
|
258
|
+
if (isNext) {
|
|
259
|
+
this._focusForwardElement(event, true);
|
|
260
|
+
} else {
|
|
261
|
+
event.preventDefault();
|
|
262
|
+
this.currentElement.focus();
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
_focusNextElement(event) {
|
|
267
|
+
if (!this.growsWithButton) {
|
|
268
|
+
this._focusForwardElement(event, true);
|
|
269
|
+
} else {
|
|
270
|
+
this.morеBtn.focus();
|
|
271
|
+
}
|
|
272
|
+
}
|
|
223
273
|
_handleArrowNav(event) {
|
|
224
274
|
const isRowFocused = this.currentElement.localName === "tr";
|
|
225
275
|
if (!isRowFocused) {
|
|
@@ -278,55 +328,131 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
278
328
|
previouslySelectedRows,
|
|
279
329
|
});
|
|
280
330
|
}
|
|
281
|
-
_handleArrowAlt(
|
|
282
|
-
const
|
|
283
|
-
const
|
|
331
|
+
_handleArrowAlt(event) {
|
|
332
|
+
const shouldMoveUp = Keys.isUpAlt(event);
|
|
333
|
+
const focusedElementType = this.getFocusedElementType(event.target);
|
|
284
334
|
if (shouldMoveUp) {
|
|
285
335
|
switch (focusedElementType) {
|
|
286
336
|
case "tableRow":
|
|
287
|
-
|
|
288
|
-
|
|
337
|
+
case "tableGroupRow":
|
|
338
|
+
this._prevFocusedRow = event.target;
|
|
339
|
+
return this._onColumnHeaderClick(event);
|
|
289
340
|
case "columnHeader":
|
|
290
|
-
return
|
|
341
|
+
return this.morеBtn ? this.morеBtn.focus() : this._prevFocusedRow.focus();
|
|
291
342
|
case "moreButton":
|
|
292
|
-
return this.
|
|
343
|
+
return this._prevFocusedRow ? this._prevFocusedRow.focus() : this._onColumnHeaderClick(event);
|
|
293
344
|
}
|
|
294
345
|
} else {
|
|
295
346
|
switch (focusedElementType) {
|
|
296
347
|
case "tableRow":
|
|
297
|
-
|
|
298
|
-
|
|
348
|
+
case "tableGroupRow":
|
|
349
|
+
this._prevFocusedRow = event.target;
|
|
350
|
+
return this.morеBtn ? this.morеBtn.focus() : this._onColumnHeaderClick(event);
|
|
299
351
|
case "columnHeader":
|
|
300
|
-
if (this.
|
|
301
|
-
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
return moreButton.focus();
|
|
352
|
+
if (this._prevFocusedRow) {
|
|
353
|
+
this._prevFocusedRow.focus();
|
|
354
|
+
} else if (this.morеBtn) {
|
|
355
|
+
this.morеBtn.focus();
|
|
305
356
|
}
|
|
306
357
|
return;
|
|
307
358
|
case "moreButton":
|
|
308
|
-
return this._onColumnHeaderClick();
|
|
359
|
+
return this._onColumnHeaderClick(event);
|
|
309
360
|
}
|
|
310
361
|
}
|
|
311
362
|
}
|
|
312
363
|
getFocusedElementType(element) {
|
|
313
|
-
if (element === this.
|
|
364
|
+
if (element === this.columnHeader) {
|
|
314
365
|
return "columnHeader";
|
|
315
366
|
}
|
|
316
|
-
if (element === this.
|
|
367
|
+
if (element === this.morеBtn) {
|
|
317
368
|
return "moreButton";
|
|
318
369
|
}
|
|
319
370
|
if (this.rows.includes(element)) {
|
|
320
|
-
|
|
371
|
+
const isGroupRow = element.hasAttribute("ui5-table-group-row");
|
|
372
|
+
return isGroupRow ? "tableGroupRow" : "tableRow";
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
_handleF7(event) {
|
|
376
|
+
const row = event.detail.row;
|
|
377
|
+
row._tabbables = TabbableElements.getTabbableElements(row);
|
|
378
|
+
const activeElement = getActiveElement__default();
|
|
379
|
+
const lastFocusedElement = row._tabbables[this._prevNestedElementIndex] || row._tabbables[0];
|
|
380
|
+
const targetIndex = row._tabbables.indexOf(activeElement);
|
|
381
|
+
if (!row._tabbables.length) {
|
|
382
|
+
return;
|
|
383
|
+
}
|
|
384
|
+
if (activeElement === row.root) {
|
|
385
|
+
lastFocusedElement.focus();
|
|
386
|
+
} else if (targetIndex > -1) {
|
|
387
|
+
this._prevNestedElementIndex = targetIndex;
|
|
388
|
+
row.root.focus();
|
|
321
389
|
}
|
|
322
390
|
}
|
|
391
|
+
_onfocusin(event) {
|
|
392
|
+
const target = getNormalizedTarget__default(event.target);
|
|
393
|
+
if (!this._isForwardElement(target)) {
|
|
394
|
+
this.lastFocusedElement = target;
|
|
395
|
+
return;
|
|
396
|
+
}
|
|
397
|
+
if (!this._forwardingFocus) {
|
|
398
|
+
if (this.lastFocusedElement) {
|
|
399
|
+
this.lastFocusedElement.focus();
|
|
400
|
+
} else {
|
|
401
|
+
this.currentElement.focus();
|
|
402
|
+
}
|
|
403
|
+
event.stopImmediatePropagation();
|
|
404
|
+
}
|
|
405
|
+
this._forwardingFocus = false;
|
|
406
|
+
}
|
|
407
|
+
_onForwardBefore(event) {
|
|
408
|
+
this.lastFocusedElement = event.detail.target;
|
|
409
|
+
this._focusForwardElement(event, false);
|
|
410
|
+
event.stopImmediatePropagation();
|
|
411
|
+
}
|
|
412
|
+
_onForwardAfter(event) {
|
|
413
|
+
this.lastFocusedElement = event.detail.target;
|
|
414
|
+
if (!this.growsWithButton) {
|
|
415
|
+
this._focusForwardElement(event, true);
|
|
416
|
+
} else {
|
|
417
|
+
this.morеBtn.focus();
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
_focusForwardElement(event, isAfter) {
|
|
421
|
+
this._forwardingFocus = true;
|
|
422
|
+
this.shadowRoot.querySelector(`#${this._id}-${isAfter ? "after" : "before"}`).focus();
|
|
423
|
+
}
|
|
424
|
+
_isForwardElement(node) {
|
|
425
|
+
const nodeId = node.id;
|
|
426
|
+
const afterElement = this._getForwardElement(true);
|
|
427
|
+
const beforeElement = this._getForwardElement(false);
|
|
428
|
+
if (this._id === nodeId || (beforeElement && beforeElement.id === nodeId)) {
|
|
429
|
+
return true;
|
|
430
|
+
}
|
|
431
|
+
return afterElement && afterElement.id === nodeId;
|
|
432
|
+
}
|
|
433
|
+
_getForwardElement(isAfter) {
|
|
434
|
+
const dir = isAfter ? "after" : "before";
|
|
435
|
+
if (!this[`_${dir}Element`]) {
|
|
436
|
+
this[`_${dir}Element`] = this.shadowRoot.querySelector(`#${this._id}-${dir}`);
|
|
437
|
+
}
|
|
438
|
+
return this[`_${dir}Element`];
|
|
439
|
+
}
|
|
323
440
|
onRowFocused(event) {
|
|
324
441
|
this._itemNavigation.setCurrentItem(event.target);
|
|
325
442
|
}
|
|
326
|
-
|
|
327
|
-
this.getColumnHeader().focus();
|
|
443
|
+
_onColumnHeaderFocused(event) {
|
|
328
444
|
this._itemNavigation.setCurrentItem(this._columnHeader);
|
|
329
445
|
}
|
|
446
|
+
_onColumnHeaderClick(event) {
|
|
447
|
+
if (!event.target) {
|
|
448
|
+
this.columnHeader.focus();
|
|
449
|
+
}
|
|
450
|
+
const target = getNormalizedTarget__default(event.target);
|
|
451
|
+
const isNestedElement = this.columnHeaderTabbables.includes(target);
|
|
452
|
+
if (!isNestedElement) {
|
|
453
|
+
this.columnHeader.focus();
|
|
454
|
+
}
|
|
455
|
+
}
|
|
330
456
|
_onColumnHeaderKeydown(event) {
|
|
331
457
|
if (Keys.isSpace(event)) {
|
|
332
458
|
event.preventDefault();
|
|
@@ -423,10 +549,10 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
423
549
|
}
|
|
424
550
|
this.getRowParent(parent);
|
|
425
551
|
}
|
|
426
|
-
|
|
552
|
+
get columnHeader() {
|
|
427
553
|
return this.getDomRef() && this.getDomRef().querySelector(`#${this._id}-columnHeader`);
|
|
428
554
|
}
|
|
429
|
-
|
|
555
|
+
get morеBtn() {
|
|
430
556
|
return this.growsWithButton && this.getDomRef() && this.getDomRef().querySelector(`#${this._id}-growingButton`);
|
|
431
557
|
}
|
|
432
558
|
handleResize(event) {
|
|
@@ -515,6 +641,9 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
515
641
|
}).join(" ");
|
|
516
642
|
return `${headerRowText} ${columnsTitle}`;
|
|
517
643
|
}
|
|
644
|
+
get tableAriaLabelText() {
|
|
645
|
+
return AriaLabelHelper.getEffectiveAriaLabelText(this);
|
|
646
|
+
}
|
|
518
647
|
get ariaLabelSelectAllText() {
|
|
519
648
|
return Table.i18nBundle.getText(i18nDefaults.ARIA_LABEL_SELECT_ALL_CHECKBOX);
|
|
520
649
|
}
|
|
@@ -548,6 +677,12 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
548
677
|
get currentElement() {
|
|
549
678
|
return this._itemNavigation._getCurrentItem();
|
|
550
679
|
}
|
|
680
|
+
get columnHeaderTabbables() {
|
|
681
|
+
return TabbableElements.getTabbableElements(this.columnHeader);
|
|
682
|
+
}
|
|
683
|
+
get columnHeaderLastElement() {
|
|
684
|
+
return TabbableElements.getLastTabbableElement(this.columnHeader);
|
|
685
|
+
}
|
|
551
686
|
}
|
|
552
687
|
Table.define();
|
|
553
688
|
|