@openui5/sap.ui.webc.main 1.93.3 → 1.96.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.reuse/dep5 +6 -11
- package/THIRDPARTY.txt +10 -16
- package/package.json +3 -3
- package/src/sap/ui/webc/main/.library +1 -1
- package/src/sap/ui/webc/main/Avatar.js +16 -26
- package/src/sap/ui/webc/main/AvatarGroup.js +4 -20
- package/src/sap/ui/webc/main/Badge.js +1 -1
- package/src/sap/ui/webc/main/Breadcrumbs.js +128 -0
- package/src/sap/ui/webc/main/BreadcrumbsItem.js +98 -0
- package/src/sap/ui/webc/main/BusyIndicator.js +9 -1
- package/src/sap/ui/webc/main/Button.js +12 -2
- package/src/sap/ui/webc/main/Calendar.js +12 -2
- package/src/sap/ui/webc/main/CalendarDate.js +1 -1
- package/src/sap/ui/webc/main/Card.js +11 -71
- package/src/sap/ui/webc/main/CardHeader.js +127 -0
- package/src/sap/ui/webc/main/Carousel.js +13 -25
- package/src/sap/ui/webc/main/CheckBox.js +14 -7
- package/src/sap/ui/webc/main/ColorPalette.js +6 -27
- package/src/sap/ui/webc/main/ColorPaletteItem.js +1 -1
- package/src/sap/ui/webc/main/ColorPicker.js +4 -2
- package/src/sap/ui/webc/main/ComboBox.js +22 -17
- package/src/sap/ui/webc/main/ComboBoxGroupItem.js +58 -0
- package/src/sap/ui/webc/main/ComboBoxItem.js +1 -1
- package/src/sap/ui/webc/main/CustomListItem.js +4 -2
- package/src/sap/ui/webc/main/DatePicker.js +61 -3
- package/src/sap/ui/webc/main/DateRangePicker.js +66 -8
- package/src/sap/ui/webc/main/DateTimePicker.js +61 -3
- package/src/sap/ui/webc/main/Dialog.js +15 -12
- 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 +23 -4
- package/src/sap/ui/webc/main/Label.js +1 -1
- package/src/sap/ui/webc/main/Link.js +12 -2
- package/src/sap/ui/webc/main/List.js +38 -2
- package/src/sap/ui/webc/main/MessageStrip.js +4 -2
- package/src/sap/ui/webc/main/MultiComboBox.js +10 -4
- package/src/sap/ui/webc/main/MultiComboBoxItem.js +1 -1
- package/src/sap/ui/webc/main/MultiInput.js +26 -5
- package/src/sap/ui/webc/main/Option.js +1 -1
- package/src/sap/ui/webc/main/Panel.js +12 -2
- package/src/sap/ui/webc/main/Popover.js +21 -8
- package/src/sap/ui/webc/main/ProgressIndicator.js +1 -1
- package/src/sap/ui/webc/main/RadioButton.js +28 -21
- package/src/sap/ui/webc/main/RangeSlider.js +7 -3
- package/src/sap/ui/webc/main/RatingIndicator.js +12 -3
- package/src/sap/ui/webc/main/ResponsivePopover.js +22 -17
- package/src/sap/ui/webc/main/SegmentedButton.js +15 -15
- package/src/sap/ui/webc/main/SegmentedButtonItem.js +135 -0
- package/src/sap/ui/webc/main/Select.js +16 -1
- package/src/sap/ui/webc/main/Slider.js +7 -3
- package/src/sap/ui/webc/main/StandardListItem.js +4 -2
- package/src/sap/ui/webc/main/StepInput.js +19 -2
- package/src/sap/ui/webc/main/SuggestionGroupItem.js +58 -0
- package/src/sap/ui/webc/main/SuggestionItem.js +1 -11
- package/src/sap/ui/webc/main/Switch.js +4 -2
- package/src/sap/ui/webc/main/Tab.js +1 -1
- package/src/sap/ui/webc/main/TabContainer.js +1 -1
- package/src/sap/ui/webc/main/TabSeparator.js +1 -1
- package/src/sap/ui/webc/main/Table.js +12 -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 +69 -0
- package/src/sap/ui/webc/main/TableRow.js +1 -1
- package/src/sap/ui/webc/main/TextArea.js +22 -3
- package/src/sap/ui/webc/main/TimePicker.js +7 -3
- package/src/sap/ui/webc/main/Title.js +1 -1
- package/src/sap/ui/webc/main/Toast.js +1 -1
- package/src/sap/ui/webc/main/ToggleButton.js +12 -2
- package/src/sap/ui/webc/main/Token.js +4 -2
- 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/library.js +117 -31
- package/src/sap/ui/webc/main/thirdparty/Avatar.js +12 -15
- package/src/sap/ui/webc/main/thirdparty/AvatarGroup.js +15 -7
- package/src/sap/ui/webc/main/thirdparty/Badge.js +11 -5
- package/src/sap/ui/webc/main/thirdparty/Breadcrumbs.js +332 -0
- package/src/sap/ui/webc/main/thirdparty/BreadcrumbsItem.js +41 -0
- package/src/sap/ui/webc/main/thirdparty/BusyIndicator.js +30 -1
- package/src/sap/ui/webc/main/thirdparty/Button.js +2 -9
- package/src/sap/ui/webc/main/thirdparty/Calendar.js +12 -4
- package/src/sap/ui/webc/main/thirdparty/CalendarHeader.js +73 -2
- package/src/sap/ui/webc/main/thirdparty/Card.js +8 -115
- package/src/sap/ui/webc/main/thirdparty/CardHeader.js +141 -0
- package/src/sap/ui/webc/main/thirdparty/Carousel.js +89 -36
- package/src/sap/ui/webc/main/thirdparty/CheckBox.js +5 -29
- package/src/sap/ui/webc/main/thirdparty/ColorPalette.js +13 -10
- package/src/sap/ui/webc/main/thirdparty/ColorPaletteItem.js +0 -3
- package/src/sap/ui/webc/main/thirdparty/ColorPicker.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/ComboBox.js +85 -65
- package/src/sap/ui/webc/main/thirdparty/ComboBoxGroupItem.js +39 -0
- package/src/sap/ui/webc/main/thirdparty/DateComponentBase.js +3 -0
- package/src/sap/ui/webc/main/thirdparty/DatePicker.js +44 -14
- package/src/sap/ui/webc/main/thirdparty/DateRangePicker.js +16 -17
- package/src/sap/ui/webc/main/thirdparty/DateTimePicker.js +0 -1
- package/src/sap/ui/webc/main/thirdparty/DayPicker.js +23 -4
- package/src/sap/ui/webc/main/thirdparty/Dialog.js +117 -32
- package/src/sap/ui/webc/main/thirdparty/FileUploader.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/Icon.js +17 -1
- package/src/sap/ui/webc/main/thirdparty/Input.js +18 -5
- package/src/sap/ui/webc/main/thirdparty/Interfaces.js +4 -0
- package/src/sap/ui/webc/main/thirdparty/Link.js +44 -6
- package/src/sap/ui/webc/main/thirdparty/List.js +12 -5
- package/src/sap/ui/webc/main/thirdparty/ListItem.js +6 -0
- package/src/sap/ui/webc/main/thirdparty/MultiComboBox.js +5 -4
- package/src/sap/ui/webc/main/thirdparty/MultiInput.js +0 -1
- package/src/sap/ui/webc/main/thirdparty/Panel.js +7 -4
- package/src/sap/ui/webc/main/thirdparty/Popover.js +8 -8
- package/src/sap/ui/webc/main/thirdparty/Popup.js +39 -8
- package/src/sap/ui/webc/main/thirdparty/RadioButton.js +18 -16
- package/src/sap/ui/webc/main/thirdparty/RadioButtonGroup.js +31 -31
- package/src/sap/ui/webc/main/thirdparty/RatingIndicator.js +4 -4
- package/src/sap/ui/webc/main/thirdparty/ResponsivePopover.js +7 -4
- package/src/sap/ui/webc/main/thirdparty/SegmentedButton.js +63 -38
- package/src/sap/ui/webc/main/thirdparty/SegmentedButtonItem.js +39 -0
- package/src/sap/ui/webc/main/thirdparty/Select.js +51 -20
- package/src/sap/ui/webc/main/thirdparty/StepInput.js +9 -4
- package/src/sap/ui/webc/main/thirdparty/SuggestionGroupItem.js +36 -0
- package/src/sap/ui/webc/main/thirdparty/SuggestionItem.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/SuggestionListItem.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/TabContainer.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/Table.js +9 -2
- package/src/sap/ui/webc/main/thirdparty/TableGroupRow.js +89 -0
- package/src/sap/ui/webc/main/thirdparty/TableRow.js +7 -1
- package/src/sap/ui/webc/main/thirdparty/TextArea.js +3 -3
- package/src/sap/ui/webc/main/thirdparty/TimePickerBase.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/ToggleButton.js +8 -1
- package/src/sap/ui/webc/main/thirdparty/Tokenizer.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/TreeItem.js +3 -0
- package/src/sap/ui/webc/main/thirdparty/WheelSlider.js +6 -6
- package/src/sap/ui/webc/main/thirdparty/features/InputSuggestions.js +11 -3
- package/src/sap/ui/webc/main/thirdparty/generated/i18n/i18n-defaults.js +8 -1
- package/src/sap/ui/webc/main/thirdparty/generated/json-imports/Themes.js +7 -7
- 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 +5 -14
- package/src/sap/ui/webc/main/thirdparty/generated/templates/AvatarTemplate.lit.js +8 -17
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BadgeTemplate.lit.js +4 -14
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BreadcrumbsPopoverTemplate.lit.js +8 -0
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BreadcrumbsTemplate.lit.js +9 -0
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BusyIndicatorTemplate.lit.js +6 -15
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ButtonTemplate.lit.js +5 -14
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CalendarHeaderTemplate.lit.js +5 -12
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CalendarTemplate.lit.js +3 -12
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CardHeaderTemplate.lit.js +12 -0
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CardTemplate.lit.js +4 -18
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CarouselTemplate.lit.js +12 -21
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CheckBoxTemplate.lit.js +6 -15
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteDialogTemplate.lit.js +3 -12
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteItemTemplate.lit.js +3 -12
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteTemplate.lit.js +7 -16
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPickerTemplate.lit.js +3 -12
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ComboBoxPopoverTemplate.lit.js +19 -26
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ComboBoxTemplate.lit.js +6 -15
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CustomListItemTemplate.lit.js +12 -21
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DatePickerPopoverTemplate.lit.js +6 -15
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DatePickerTemplate.lit.js +5 -14
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DateTimePickerPopoverTemplate.lit.js +8 -17
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DayPickerTemplate.lit.js +12 -20
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DialogTemplate.lit.js +8 -17
- package/src/sap/ui/webc/main/thirdparty/generated/templates/FileUploaderPopoverTemplate.lit.js +6 -15
- package/src/sap/ui/webc/main/thirdparty/generated/templates/FileUploaderTemplate.lit.js +6 -15
- package/src/sap/ui/webc/main/thirdparty/generated/templates/GroupHeaderListItemTemplate.lit.js +3 -12
- package/src/sap/ui/webc/main/thirdparty/generated/templates/IconTemplate.lit.js +5 -14
- package/src/sap/ui/webc/main/thirdparty/generated/templates/InputPopoverTemplate.lit.js +23 -32
- package/src/sap/ui/webc/main/thirdparty/generated/templates/InputTemplate.lit.js +7 -16
- package/src/sap/ui/webc/main/thirdparty/generated/templates/LabelTemplate.lit.js +3 -12
- package/src/sap/ui/webc/main/thirdparty/generated/templates/LinkTemplate.lit.js +4 -13
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ListItemTemplate.lit.js +12 -21
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ListTemplate.lit.js +13 -22
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MessageStripTemplate.lit.js +7 -16
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MonthPickerTemplate.lit.js +5 -14
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiComboBoxPopoverTemplate.lit.js +19 -28
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiComboBoxTemplate.lit.js +8 -17
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiInputTemplate.lit.js +13 -22
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PanelTemplate.lit.js +8 -17
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PopoverTemplate.lit.js +8 -17
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PopupBlockLayerTemplate.lit.js +3 -8
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PopupTemplate.lit.js +3 -12
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ProgressIndicatorTemplate.lit.js +9 -18
- package/src/sap/ui/webc/main/thirdparty/generated/templates/RadioButtonTemplate.lit.js +6 -15
- package/src/sap/ui/webc/main/thirdparty/generated/templates/RangeSliderTemplate.lit.js +9 -18
- package/src/sap/ui/webc/main/thirdparty/generated/templates/RatingIndicatorTemplate.lit.js +8 -17
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ResponsivePopoverTemplate.lit.js +15 -23
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SegmentedButtonItemTemplate.lit.js +8 -0
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SegmentedButtonTemplate.lit.js +3 -12
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SelectPopoverTemplate.lit.js +19 -28
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SelectTemplate.lit.js +5 -14
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SliderBaseTemplate.lit.js +7 -16
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SliderTemplate.lit.js +8 -17
- package/src/sap/ui/webc/main/thirdparty/generated/templates/StandardListItemTemplate.lit.js +20 -29
- package/src/sap/ui/webc/main/thirdparty/generated/templates/StepInputTemplate.lit.js +4 -13
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SuggestionListItemTemplate.lit.js +23 -32
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SwitchTemplate.lit.js +5 -14
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabContainerPopoverTemplate.lit.js +5 -14
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabContainerTemplate.lit.js +15 -24
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabInOverflowTemplate.lit.js +5 -14
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabInStripTemplate.lit.js +9 -18
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabSeparatorTemplate.lit.js +3 -12
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabTemplate.lit.js +3 -12
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableCellTemplate.lit.js +3 -8
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableColumnTemplate.lit.js +3 -12
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableGroupRowTemplate.lit.js +7 -0
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableRowTemplate.lit.js +13 -22
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableTemplate.lit.js +12 -21
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TextAreaPopoverTemplate.lit.js +7 -16
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TextAreaTemplate.lit.js +7 -16
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TimePickerPopoverTemplate.lit.js +3 -12
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TimePickerTemplate.lit.js +5 -14
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TimeSelectionTemplate.lit.js +7 -16
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TitleTemplate.lit.js +9 -18
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ToastTemplate.lit.js +3 -12
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ToggleButtonTemplate.lit.js +5 -14
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenTemplate.lit.js +6 -15
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenizerPopoverTemplate.lit.js +8 -17
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenizerTemplate.lit.js +5 -14
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TreeListItemTemplate.lit.js +17 -26
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TreeTemplate.lit.js +4 -13
- package/src/sap/ui/webc/main/thirdparty/generated/templates/WheelSliderTemplate.lit.js +6 -15
- package/src/sap/ui/webc/main/thirdparty/generated/templates/YearPickerTemplate.lit.js +5 -14
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Avatar.css.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/generated/themes/AvatarGroup.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 +13 -0
- package/src/sap/ui/webc/main/thirdparty/generated/themes/BreadcrumbsPopover.css.js +13 -0
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Button.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 +13 -0
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CheckBox.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/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/DayPicker.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/Input.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/ListItem.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/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/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/StepInput.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/TableGroupRow.css.js +13 -0
- 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/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/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/{messagebundle_ar-23b6aec9.js → messagebundle_ar-7754de1c.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_bg-b642f80f.js → messagebundle_bg-041345aa.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_ca-20fa76b6.js → messagebundle_ca-df38eb0b.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_cs-f636c9f4.js → messagebundle_cs-51d17321.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_cy-668048df.js → messagebundle_cy-cc129f0c.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_da-ab0def1e.js → messagebundle_da-bc87b599.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_de-0bf4dd1a.js → messagebundle_de-518b0a75.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_el-4962a11e.js → messagebundle_el-9686b145.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_en-d45f8908.js → messagebundle_en-57ad19b6.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_en_GB-22be6c54.js → messagebundle_en_GB-588d53e3.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_en_US_sappsd-43f65212.js → messagebundle_en_US_sappsd-e370df7b.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_en_US_saprigi-12f3828e.js → messagebundle_en_US_saprigi-adf0ddb3.js} +5 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_en_US_saptrc-e9d14fae.js → messagebundle_en_US_saptrc-261422e2.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_es-357e1c36.js → messagebundle_es-ec258b44.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_es_MX-8e0d2258.js → messagebundle_es_MX-5f113e73.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_et-5a1ea785.js → messagebundle_et-901c732b.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_fi-25a76e5c.js → messagebundle_fi-0a2a6323.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_fr-48f2bd02.js → messagebundle_fr-5df8899a.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_fr_CA-6e11af7d.js → messagebundle_fr_CA-0de6a568.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_hi-b8e55814.js → messagebundle_hi-13e67957.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_hr-b2f08f08.js → messagebundle_hr-93fbc1d1.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_hu-81e9b34e.js → messagebundle_hu-dd94c35e.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_it-98262baf.js → messagebundle_it-0c46ce25.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_iw-29c5b67e.js → messagebundle_iw-946df0a2.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_ja-16deb9b7.js → messagebundle_ja-9cb333bb.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_kk-bc7929b4.js → messagebundle_kk-239d7820.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_ko-331e5063.js → messagebundle_ko-6f09e984.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_lt-5708d85e.js → messagebundle_lt-2d4f9935.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_lv-ce9a2b90.js → messagebundle_lv-d73bf0c0.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_ms-b991460e.js → messagebundle_ms-9b4b2929.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_nl-89ee9f6c.js → messagebundle_nl-55193168.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_no-1db10706.js → messagebundle_no-7f4a6832.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_pl-49ee2166.js → messagebundle_pl-89c36a34.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_pt-e1f22029.js → messagebundle_pt-b87f9645.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_pt_PT-19024d29.js → messagebundle_pt_PT-0e8230b0.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_ro-9e2d0cd1.js → messagebundle_ro-83e7f44d.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_ru-9f439834.js → messagebundle_ru-befd37d0.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_sh-3fe24f0e.js → messagebundle_sh-4edec182.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_sk-275cf4ec.js → messagebundle_sk-29160489.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_sl-f774c011.js → messagebundle_sl-fd9ba370.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_sv-716ad2e9.js → messagebundle_sv-57bfda52.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_th-503e18e9.js → messagebundle_th-184c45a0.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_tr-1db67daa.js → messagebundle_tr-d5781fbb.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_uk-58f2adad.js → messagebundle_uk-e49bb47f.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_vi-f523cd98.js → messagebundle_vi-ce27847a.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_zh_CN-761506cb.js → messagebundle_zh_CN-bdbfb1bd.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/{messagebundle_zh_TW-591c0661.js → messagebundle_zh_TW-ca1de535.js} +8 -1
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-09f8e92d.js +9 -0
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-19666884.js +9 -0
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-8e7c6ad9.js +9 -0
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-cb713657.js +9 -0
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-dd8f2f47.js +9 -0
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-e3a31f8e.js +9 -0
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-e44b2b84.js +9 -0
- package/src/sap/ui/webc/main/thirdparty/popup-utils/OpenedPopupsRegistry.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/popup-utils/PopoverRegistry.js +1 -1
- package/src/sap/ui/webc/main/thirdparty/types/{AvatarFitType.js → BreadcrumbsDesign.js} +7 -7
- package/src/sap/ui/webc/main/thirdparty/types/BreadcrumbsSeparatorStyle.js +24 -0
- package/src/sap/ui/webc/main/thirdparty/types/ButtonDesign.js +1 -0
- package/ui5.yaml +1 -1
- package/src/sap/ui/webc/main/DurationPicker.js +0 -271
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-39cac16d.js +0 -9
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-4ca42a34.js +0 -9
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-6fc1faf3.js +0 -9
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-94dc708f.js +0 -9
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-cb1a26d8.js +0 -9
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-d2d877b5.js +0 -9
- package/src/sap/ui/webc/main/thirdparty/parameters-bundle.css-e914e4ca.js +0 -9
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
sap.ui.define(['sap/ui/webc/common/thirdparty/base/delegate/ItemNavigation', 'sap/ui/webc/common/thirdparty/base/renderer/LitRenderer', 'sap/ui/webc/common/thirdparty/base/Keys', 'sap/ui/webc/common/thirdparty/base/types/Integer', 'sap/ui/webc/common/thirdparty/base/i18nBundle', 'sap/ui/webc/common/thirdparty/base/delegate/ResizeHandler', 'sap/ui/webc/common/thirdparty/base/types/NavigationMode', 'sap/ui/webc/common/thirdparty/base/UI5Element', './types/BreadcrumbsDesign', './types/BreadcrumbsSeparatorStyle', './BreadcrumbsItem', './generated/i18n/i18n-defaults', './Link', './Label', './ResponsivePopover', './List', './StandardListItem', './Icon', './generated/templates/BreadcrumbsTemplate.lit', './generated/templates/BreadcrumbsPopoverTemplate.lit', './generated/themes/Breadcrumbs.css', './generated/themes/BreadcrumbsPopover.css'], function (ItemNavigation, litRender, Keys, Integer, i18nBundle, ResizeHandler, NavigationMode, UI5Element, BreadcrumbsDesign, BreadcrumbsSeparatorStyle, BreadcrumbsItem, i18nDefaults, Link, Label, ResponsivePopover, List, StandardListItem, Icon, BreadcrumbsTemplate_lit, BreadcrumbsPopoverTemplate_lit, Breadcrumbs_css, BreadcrumbsPopover_css) { 'use strict';
|
|
2
|
+
|
|
3
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
|
|
4
|
+
|
|
5
|
+
var ItemNavigation__default = /*#__PURE__*/_interopDefaultLegacy(ItemNavigation);
|
|
6
|
+
var litRender__default = /*#__PURE__*/_interopDefaultLegacy(litRender);
|
|
7
|
+
var Integer__default = /*#__PURE__*/_interopDefaultLegacy(Integer);
|
|
8
|
+
var ResizeHandler__default = /*#__PURE__*/_interopDefaultLegacy(ResizeHandler);
|
|
9
|
+
var NavigationMode__default = /*#__PURE__*/_interopDefaultLegacy(NavigationMode);
|
|
10
|
+
var UI5Element__default = /*#__PURE__*/_interopDefaultLegacy(UI5Element);
|
|
11
|
+
|
|
12
|
+
const metadata = {
|
|
13
|
+
tag: "ui5-breadcrumbs",
|
|
14
|
+
managedSlots: true,
|
|
15
|
+
languageAware: true,
|
|
16
|
+
slots: {
|
|
17
|
+
"default": {
|
|
18
|
+
propertyName: "items",
|
|
19
|
+
type: HTMLElement,
|
|
20
|
+
invalidateOnChildChange: true,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
properties: {
|
|
24
|
+
design: {
|
|
25
|
+
type: BreadcrumbsDesign,
|
|
26
|
+
defaultValue: BreadcrumbsDesign.Standard,
|
|
27
|
+
},
|
|
28
|
+
separatorStyle: {
|
|
29
|
+
type: BreadcrumbsSeparatorStyle,
|
|
30
|
+
defaultValue: BreadcrumbsSeparatorStyle.Slash,
|
|
31
|
+
},
|
|
32
|
+
_overflowSize: {
|
|
33
|
+
type: Integer__default,
|
|
34
|
+
noAttribute: true,
|
|
35
|
+
defaultValue: 0,
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
events: {
|
|
39
|
+
"item-click": {
|
|
40
|
+
detail: {
|
|
41
|
+
item: { type: HTMLElement },
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
class Breadcrumbs extends UI5Element__default {
|
|
47
|
+
static get metadata() {
|
|
48
|
+
return metadata;
|
|
49
|
+
}
|
|
50
|
+
static get render() {
|
|
51
|
+
return litRender__default;
|
|
52
|
+
}
|
|
53
|
+
static get template() {
|
|
54
|
+
return BreadcrumbsTemplate_lit;
|
|
55
|
+
}
|
|
56
|
+
static get staticAreaTemplate() {
|
|
57
|
+
return BreadcrumbsPopoverTemplate_lit;
|
|
58
|
+
}
|
|
59
|
+
static get styles() {
|
|
60
|
+
return Breadcrumbs_css;
|
|
61
|
+
}
|
|
62
|
+
static get staticAreaStyles() {
|
|
63
|
+
return BreadcrumbsPopover_css;
|
|
64
|
+
}
|
|
65
|
+
constructor() {
|
|
66
|
+
super();
|
|
67
|
+
this.i18nBundle = i18nBundle.getI18nBundle("@ui5/webcomponents");
|
|
68
|
+
this._initItemNavigation();
|
|
69
|
+
this._onResizeHandler = this._updateOverflow.bind(this);
|
|
70
|
+
this._breadcrumbItemWidths = new WeakMap();
|
|
71
|
+
this._dropdownArrowLinkWidth = 0;
|
|
72
|
+
this._labelFocusAdaptor = {
|
|
73
|
+
id: `${this._id}-labelWrapper`,
|
|
74
|
+
getlabelWrapper: this.getCurrentLocationLabelWrapper.bind(this),
|
|
75
|
+
set _tabIndex(value) {
|
|
76
|
+
const wrapper = this.getlabelWrapper();
|
|
77
|
+
wrapper && wrapper.setAttribute("tabindex", value);
|
|
78
|
+
},
|
|
79
|
+
get _tabIndex() {
|
|
80
|
+
const wrapper = this.getlabelWrapper();
|
|
81
|
+
return (wrapper) ? wrapper.getAttribute("tabindex") : undefined;
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
onInvalidation(changeInfo) {
|
|
86
|
+
if (changeInfo.reason === "childchange") {
|
|
87
|
+
const itemIndex = this.getSlottedNodes("items").indexOf(changeInfo.child),
|
|
88
|
+
isInOverflow = itemIndex < this._overflowSize;
|
|
89
|
+
if (isInOverflow) {
|
|
90
|
+
this._overflowSize = itemIndex;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
onAfterRendering() {
|
|
95
|
+
this._cacheWidths();
|
|
96
|
+
this._updateOverflow();
|
|
97
|
+
}
|
|
98
|
+
onEnterDOM() {
|
|
99
|
+
ResizeHandler__default.register(this, this._onResizeHandler);
|
|
100
|
+
}
|
|
101
|
+
onExitDOM() {
|
|
102
|
+
ResizeHandler__default.deregister(this, this._onResizeHandler);
|
|
103
|
+
}
|
|
104
|
+
_initItemNavigation() {
|
|
105
|
+
if (!this._itemNavigation) {
|
|
106
|
+
this._itemNavigation = new ItemNavigation__default(this, {
|
|
107
|
+
navigationMode: NavigationMode__default.Horizontal,
|
|
108
|
+
getItemsCallback: () => this._getFocusableItems(),
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
_getFocusableItems() {
|
|
113
|
+
const items = this._links;
|
|
114
|
+
if (!this._isOverflowEmpty) {
|
|
115
|
+
items.unshift(this._dropdownArrowLink);
|
|
116
|
+
}
|
|
117
|
+
if (this._endsWithCurrentLocationLabel) {
|
|
118
|
+
items.push(this._labelFocusAdaptor);
|
|
119
|
+
}
|
|
120
|
+
return items;
|
|
121
|
+
}
|
|
122
|
+
_onfocusin(event) {
|
|
123
|
+
const target = event.target,
|
|
124
|
+
labelWrapper = this.getCurrentLocationLabelWrapper(),
|
|
125
|
+
currentItem = (target === labelWrapper) ? this._labelFocusAdaptor : target;
|
|
126
|
+
this._itemNavigation.setCurrentItem(currentItem);
|
|
127
|
+
}
|
|
128
|
+
_onkeydown(event) {
|
|
129
|
+
const isDropdownArrowFocused = this._isDropdownArrowFocused;
|
|
130
|
+
if (Keys.isShow(event) && isDropdownArrowFocused && !this._isOverflowEmpty) {
|
|
131
|
+
event.preventDefault();
|
|
132
|
+
this._toggleRespPopover();
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
if (Keys.isSpace(event) && isDropdownArrowFocused && !this._isOverflowEmpty && !this._isPickerOpen) {
|
|
136
|
+
event.preventDefault();
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
if ((Keys.isEnter(event) || Keys.isSpace(event)) && this._isCurrentLocationLabelFocused) {
|
|
140
|
+
this._onLabelPress();
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
_onkeyup(event) {
|
|
144
|
+
if (this._isDropdownArrowFocused && Keys.isSpace(event) && !this._isOverflowEmpty && !this._isPickerOpen) {
|
|
145
|
+
this._openRespPopover();
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
_cacheWidths() {
|
|
149
|
+
const map = this._breadcrumbItemWidths,
|
|
150
|
+
items = this.getSlottedNodes("items"),
|
|
151
|
+
label = this._currentLocationLabel;
|
|
152
|
+
for (let i = this._overflowSize; i < items.length; i++) {
|
|
153
|
+
const item = items[i],
|
|
154
|
+
link = this.shadowRoot.querySelector(`.ui5-breadcrumbs-link-wrapper #${item._id}-link`);
|
|
155
|
+
map.set(item, this._getElementWidth(link) || 0);
|
|
156
|
+
}
|
|
157
|
+
if (this._endsWithCurrentLocationLabel && label) {
|
|
158
|
+
const item = items[items.length - 1];
|
|
159
|
+
map.set(item, this._getElementWidth(label));
|
|
160
|
+
}
|
|
161
|
+
if (!this._isOverflowEmpty) {
|
|
162
|
+
this._dropdownArrowLinkWidth = this._getElementWidth(this._dropdownArrowLink);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
_updateOverflow() {
|
|
166
|
+
const items = this.getSlottedNodes("items"),
|
|
167
|
+
availableWidth = this.shadowRoot.querySelector(".ui5-breadcrumbs-root").offsetWidth;
|
|
168
|
+
let requiredWidth = this._getTotalContentWidth(),
|
|
169
|
+
overflowSize = 0;
|
|
170
|
+
if (requiredWidth > availableWidth) {
|
|
171
|
+
requiredWidth += this._dropdownArrowLinkWidth;
|
|
172
|
+
}
|
|
173
|
+
while ((requiredWidth > availableWidth) && (overflowSize < this._maxAllowedOverflowSize)) {
|
|
174
|
+
const itemToOverflow = items[overflowSize];
|
|
175
|
+
let itemWidth = 0;
|
|
176
|
+
if (this._isItemVisible(itemToOverflow)) {
|
|
177
|
+
itemWidth = this._breadcrumbItemWidths.get(itemToOverflow) || 0;
|
|
178
|
+
}
|
|
179
|
+
requiredWidth -= itemWidth;
|
|
180
|
+
overflowSize++;
|
|
181
|
+
}
|
|
182
|
+
this._overflowSize = overflowSize;
|
|
183
|
+
if (this._isOverflowEmpty && this._isPickerOpen) {
|
|
184
|
+
this.responsivePopover.close();
|
|
185
|
+
}
|
|
186
|
+
const focusableItems = this._getFocusableItems();
|
|
187
|
+
if (!focusableItems.some(x => x._tabIndex === "0")) {
|
|
188
|
+
this._itemNavigation.setCurrentItem(focusableItems[0]);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
_getElementWidth(element) {
|
|
192
|
+
if (element) {
|
|
193
|
+
return Math.ceil(element.getBoundingClientRect().width);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
_getTotalContentWidth() {
|
|
197
|
+
const items = this.getSlottedNodes("items"),
|
|
198
|
+
widthsMap = this._breadcrumbItemWidths,
|
|
199
|
+
totalLinksWidth = items.reduce((sum, link) => sum + widthsMap.get(link), 0);
|
|
200
|
+
return totalLinksWidth;
|
|
201
|
+
}
|
|
202
|
+
_onLinkPress(event) {
|
|
203
|
+
const link = event.target,
|
|
204
|
+
items = this.getSlottedNodes("items"),
|
|
205
|
+
item = items.find(x => `${x._id}-link` === link.id);
|
|
206
|
+
this.fireEvent("item-click", { item });
|
|
207
|
+
}
|
|
208
|
+
_onLabelPress() {
|
|
209
|
+
const items = this.getSlottedNodes("items"),
|
|
210
|
+
item = items[items.length - 1];
|
|
211
|
+
this.fireEvent("item-click", { item });
|
|
212
|
+
}
|
|
213
|
+
_onOverflowListItemSelect(event) {
|
|
214
|
+
const listItem = event.detail.item,
|
|
215
|
+
items = this.getSlottedNodes("items"),
|
|
216
|
+
item = items.find(x => `${x._id}-li` === listItem.id);
|
|
217
|
+
window.open(item.href, item.target || "_self", "noopener,noreferrer");
|
|
218
|
+
this.responsivePopover.close();
|
|
219
|
+
this.fireEvent("item-click", { item });
|
|
220
|
+
}
|
|
221
|
+
async _respPopover() {
|
|
222
|
+
const staticAreaItem = await this.getStaticAreaItemDomRef();
|
|
223
|
+
return staticAreaItem.querySelector("[ui5-responsive-popover]");
|
|
224
|
+
}
|
|
225
|
+
async _toggleRespPopover() {
|
|
226
|
+
this.responsivePopover = await this._respPopover();
|
|
227
|
+
if (this._isPickerOpen) {
|
|
228
|
+
this._closeRespPopover();
|
|
229
|
+
} else {
|
|
230
|
+
this._openRespPopover();
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
async _closeRespPopover() {
|
|
234
|
+
this.responsivePopover && this.responsivePopover.close();
|
|
235
|
+
}
|
|
236
|
+
async _openRespPopover() {
|
|
237
|
+
this.responsivePopover = await this._respPopover();
|
|
238
|
+
this.responsivePopover.showAt(this._dropdownArrowLink);
|
|
239
|
+
}
|
|
240
|
+
_isItemVisible(item) {
|
|
241
|
+
return !item.hidden && this._hasVisibleContent(item);
|
|
242
|
+
}
|
|
243
|
+
_hasVisibleContent(item) {
|
|
244
|
+
return item.innerText || Array.from(item.children).some(child => !child.hidden);
|
|
245
|
+
}
|
|
246
|
+
getCurrentLocationLabelWrapper() {
|
|
247
|
+
return this.shadowRoot.querySelector(".ui5-breadcrumbs-current-location > span");
|
|
248
|
+
}
|
|
249
|
+
get _endsWithCurrentLocationLabel() {
|
|
250
|
+
return this.design === BreadcrumbsDesign.Standard;
|
|
251
|
+
}
|
|
252
|
+
get _currentLocationText() {
|
|
253
|
+
const items = this.getSlottedNodes("items");
|
|
254
|
+
if (this._endsWithCurrentLocationLabel && items.length > 1) {
|
|
255
|
+
const item = items[items.length - 1];
|
|
256
|
+
if (this._isItemVisible(item)) {
|
|
257
|
+
return item.innerText;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
return "";
|
|
261
|
+
}
|
|
262
|
+
get _currentLocationLabel() {
|
|
263
|
+
return this.shadowRoot.querySelector(".ui5-breadcrumbs-current-location ui5-label");
|
|
264
|
+
}
|
|
265
|
+
get _isDropdownArrowFocused() {
|
|
266
|
+
return this._dropdownArrowLink._tabIndex === "0";
|
|
267
|
+
}
|
|
268
|
+
get _isCurrentLocationLabelFocused() {
|
|
269
|
+
const label = this.getCurrentLocationLabelWrapper();
|
|
270
|
+
return label && label.tabIndex === 0;
|
|
271
|
+
}
|
|
272
|
+
get _maxAllowedOverflowSize() {
|
|
273
|
+
const items = this.getSlottedNodes("items").filter(item => this._isItemVisible(item));
|
|
274
|
+
return items.length - 1;
|
|
275
|
+
}
|
|
276
|
+
get _dropdownArrowLink() {
|
|
277
|
+
return this.shadowRoot.querySelector(".ui5-breadcrumbs-dropdown-arrow-link-wrapper ui5-link");
|
|
278
|
+
}
|
|
279
|
+
get _overflowItemsData() {
|
|
280
|
+
return this.getSlottedNodes("items")
|
|
281
|
+
.slice(0, this._overflowSize)
|
|
282
|
+
.filter(item => this._isItemVisible(item))
|
|
283
|
+
.reverse();
|
|
284
|
+
}
|
|
285
|
+
get _linksData() {
|
|
286
|
+
const items = this.getSlottedNodes("items").slice(this._overflowSize);
|
|
287
|
+
if (this._endsWithCurrentLocationLabel) {
|
|
288
|
+
items.pop();
|
|
289
|
+
}
|
|
290
|
+
return items.filter(item => this._isItemVisible(item));
|
|
291
|
+
}
|
|
292
|
+
get _links() {
|
|
293
|
+
return Array.from(this.shadowRoot.querySelectorAll(".ui5-breadcrumbs-link-wrapper ui5-link"));
|
|
294
|
+
}
|
|
295
|
+
get _isOverflowEmpty() {
|
|
296
|
+
return this._overflowItemsData.length === 0;
|
|
297
|
+
}
|
|
298
|
+
get _ariaHasPopup() {
|
|
299
|
+
if (!this._isOverflowEmpty) {
|
|
300
|
+
return "listbox";
|
|
301
|
+
}
|
|
302
|
+
return undefined;
|
|
303
|
+
}
|
|
304
|
+
get _isPickerOpen() {
|
|
305
|
+
return !!this.responsivePopover && this.responsivePopover.opened;
|
|
306
|
+
}
|
|
307
|
+
get _accessibleNameText() {
|
|
308
|
+
return this.i18nBundle.getText(i18nDefaults.BREADCRUMBS_ARIA_LABEL);
|
|
309
|
+
}
|
|
310
|
+
get _dropdownArrowAccessibleNameText() {
|
|
311
|
+
return this.i18nBundle.getText(i18nDefaults.BREADCRUMBS_OVERFLOW_ARIA_LABEL);
|
|
312
|
+
}
|
|
313
|
+
get _cancelButtonText() {
|
|
314
|
+
return this.i18nBundle.getText(i18nDefaults.BREADCRUMBS_CANCEL_BUTTON);
|
|
315
|
+
}
|
|
316
|
+
static get dependencies() {
|
|
317
|
+
return [
|
|
318
|
+
BreadcrumbsItem,
|
|
319
|
+
Link,
|
|
320
|
+
Label,
|
|
321
|
+
ResponsivePopover,
|
|
322
|
+
List,
|
|
323
|
+
StandardListItem,
|
|
324
|
+
Icon,
|
|
325
|
+
];
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
Breadcrumbs.define();
|
|
329
|
+
|
|
330
|
+
return Breadcrumbs;
|
|
331
|
+
|
|
332
|
+
});
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element'], function (UI5Element) { 'use strict';
|
|
2
|
+
|
|
3
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
|
|
4
|
+
|
|
5
|
+
var UI5Element__default = /*#__PURE__*/_interopDefaultLegacy(UI5Element);
|
|
6
|
+
|
|
7
|
+
const metadata = {
|
|
8
|
+
tag: "ui5-breadcrumbs-item",
|
|
9
|
+
managedSlots: true,
|
|
10
|
+
properties: {
|
|
11
|
+
href: {
|
|
12
|
+
type: String,
|
|
13
|
+
},
|
|
14
|
+
target: {
|
|
15
|
+
type: String,
|
|
16
|
+
defaultValue: undefined,
|
|
17
|
+
},
|
|
18
|
+
accessibleName: {
|
|
19
|
+
type: String,
|
|
20
|
+
},
|
|
21
|
+
stableDomRef: {
|
|
22
|
+
type: String,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
slots: {
|
|
26
|
+
"default": {
|
|
27
|
+
type: Node,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
events: {},
|
|
31
|
+
};
|
|
32
|
+
class BreadcrumbsItem extends UI5Element__default {
|
|
33
|
+
static get metadata() {
|
|
34
|
+
return metadata;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
BreadcrumbsItem.define();
|
|
38
|
+
|
|
39
|
+
return BreadcrumbsItem;
|
|
40
|
+
|
|
41
|
+
});
|
|
@@ -1,9 +1,10 @@
|
|
|
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/Device', 'sap/ui/webc/common/thirdparty/base/i18nBundle', 'sap/ui/webc/common/thirdparty/base/Keys', './types/BusyIndicatorSize', './Label', './generated/templates/BusyIndicatorTemplate.lit', './generated/i18n/i18n-defaults', './generated/themes/BusyIndicator.css'], function (UI5Element, litRender, Device, i18nBundle, Keys, BusyIndicatorSize, Label, BusyIndicatorTemplate_lit, i18nDefaults, BusyIndicator_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/Device', 'sap/ui/webc/common/thirdparty/base/i18nBundle', 'sap/ui/webc/common/thirdparty/base/Keys', 'sap/ui/webc/common/thirdparty/base/types/Integer', './types/BusyIndicatorSize', './Label', './generated/templates/BusyIndicatorTemplate.lit', './generated/i18n/i18n-defaults', './generated/themes/BusyIndicator.css'], function (UI5Element, litRender, Device, i18nBundle, Keys, Integer, BusyIndicatorSize, Label, BusyIndicatorTemplate_lit, i18nDefaults, BusyIndicator_css) { 'use strict';
|
|
2
2
|
|
|
3
3
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
|
|
4
4
|
|
|
5
5
|
var UI5Element__default = /*#__PURE__*/_interopDefaultLegacy(UI5Element);
|
|
6
6
|
var litRender__default = /*#__PURE__*/_interopDefaultLegacy(litRender);
|
|
7
|
+
var Integer__default = /*#__PURE__*/_interopDefaultLegacy(Integer);
|
|
7
8
|
|
|
8
9
|
const metadata = {
|
|
9
10
|
tag: "ui5-busy-indicator",
|
|
@@ -25,6 +26,14 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
25
26
|
active: {
|
|
26
27
|
type: Boolean,
|
|
27
28
|
},
|
|
29
|
+
delay: {
|
|
30
|
+
type: Integer__default,
|
|
31
|
+
defaultValue: 1000,
|
|
32
|
+
},
|
|
33
|
+
_isBusy: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
noAttribute: true,
|
|
36
|
+
},
|
|
28
37
|
},
|
|
29
38
|
};
|
|
30
39
|
class BusyIndicator extends UI5Element__default {
|
|
@@ -43,6 +52,10 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
43
52
|
});
|
|
44
53
|
}
|
|
45
54
|
onExitDOM() {
|
|
55
|
+
if (this._busyTimeoutId) {
|
|
56
|
+
clearTimeout(this._busyTimeoutId);
|
|
57
|
+
delete this._busyTimeoutId;
|
|
58
|
+
}
|
|
46
59
|
this.removeEventListener("keydown", this._keydownHandler, true);
|
|
47
60
|
this.removeEventListener("keyup", this._preventEventHandler, true);
|
|
48
61
|
}
|
|
@@ -78,6 +91,22 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
78
91
|
},
|
|
79
92
|
};
|
|
80
93
|
}
|
|
94
|
+
onBeforeRendering() {
|
|
95
|
+
if (this.active) {
|
|
96
|
+
if (!this._isBusy && !this._busyTimeoutId) {
|
|
97
|
+
this._busyTimeoutId = setTimeout(() => {
|
|
98
|
+
delete this._busyTimeoutId;
|
|
99
|
+
this._isBusy = true;
|
|
100
|
+
}, Math.max(0, this.delay));
|
|
101
|
+
}
|
|
102
|
+
} else {
|
|
103
|
+
if (this._busyTimeoutId) {
|
|
104
|
+
clearTimeout(this._busyTimeoutId);
|
|
105
|
+
delete this._busyTimeoutId;
|
|
106
|
+
}
|
|
107
|
+
this._isBusy = false;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
81
110
|
_handleKeydown(event) {
|
|
82
111
|
if (!this.active) {
|
|
83
112
|
return;
|
|
@@ -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/FeaturesRegistry', 'sap/ui/webc/common/thirdparty/base/i18nBundle', 'sap/ui/webc/common/thirdparty/base/
|
|
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/FeaturesRegistry', 'sap/ui/webc/common/thirdparty/base/i18nBundle', 'sap/ui/webc/common/thirdparty/base/isLegacyBrowser', 'sap/ui/webc/common/thirdparty/base/Device', './types/ButtonDesign', './generated/templates/ButtonTemplate.lit', './Icon', './generated/i18n/i18n-defaults', './generated/themes/Button.css', './generated/themes/Button.ie11.css'], function (UI5Element, litRender, Keys, FeaturesRegistry, i18nBundle, isLegacyBrowser, Device, ButtonDesign, ButtonTemplate_lit, Icon, i18nDefaults, Button_css, Button_ie11_css) { 'use strict';
|
|
2
2
|
|
|
3
3
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
|
|
4
4
|
|
|
@@ -43,14 +43,10 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
43
43
|
hasIcon: {
|
|
44
44
|
type: Boolean,
|
|
45
45
|
},
|
|
46
|
-
|
|
46
|
+
accessibleName: {
|
|
47
47
|
type: String,
|
|
48
48
|
defaultValue: undefined,
|
|
49
49
|
},
|
|
50
|
-
ariaLabelledby: {
|
|
51
|
-
type: String,
|
|
52
|
-
defaultValue: "",
|
|
53
|
-
},
|
|
54
50
|
ariaExpanded: {
|
|
55
51
|
type: String,
|
|
56
52
|
},
|
|
@@ -198,9 +194,6 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/base/UI5Element', 'sap/ui/webc/com
|
|
|
198
194
|
"title": this.title || (this._buttonAccInfo && this._buttonAccInfo.title),
|
|
199
195
|
};
|
|
200
196
|
}
|
|
201
|
-
get ariaLabelText() {
|
|
202
|
-
return AriaLabelHelper.getEffectiveAriaLabelText(this);
|
|
203
|
-
}
|
|
204
197
|
static typeTextMappings() {
|
|
205
198
|
return {
|
|
206
199
|
"Positive": i18nDefaults.BUTTON_ARIA_TYPE_ACCEPT,
|
|
@@ -40,6 +40,8 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/localization/dates/CalendarDate',
|
|
|
40
40
|
values: { type: Array },
|
|
41
41
|
},
|
|
42
42
|
},
|
|
43
|
+
"show-month-press": {},
|
|
44
|
+
"show-year-press": {},
|
|
43
45
|
},
|
|
44
46
|
};
|
|
45
47
|
class Calendar extends CalendarPart {
|
|
@@ -75,11 +77,15 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/localization/dates/CalendarDate',
|
|
|
75
77
|
this._previousButtonDisabled = !this._currentPickerDOM._hasPreviousPage();
|
|
76
78
|
this._nextButtonDisabled = !this._currentPickerDOM._hasNextPage();
|
|
77
79
|
}
|
|
78
|
-
onHeaderShowMonthPress() {
|
|
80
|
+
onHeaderShowMonthPress(event) {
|
|
81
|
+
this._currentPickerDOM._autoFocus = false;
|
|
79
82
|
this._currentPicker = "month";
|
|
83
|
+
this.fireEvent("show-month-press", event);
|
|
80
84
|
}
|
|
81
|
-
onHeaderShowYearPress() {
|
|
85
|
+
onHeaderShowYearPress(event) {
|
|
86
|
+
this._currentPickerDOM._autoFocus = false;
|
|
82
87
|
this._currentPicker = "year";
|
|
88
|
+
this.fireEvent("show-year-press", event);
|
|
83
89
|
}
|
|
84
90
|
get _currentPickerDOM() {
|
|
85
91
|
return this.shadowRoot.querySelector(`[ui5-${this._currentPicker}picker]`);
|
|
@@ -118,19 +124,21 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/localization/dates/CalendarDate',
|
|
|
118
124
|
onSelectedMonthChange(event) {
|
|
119
125
|
this.timestamp = event.detail.timestamp;
|
|
120
126
|
this._currentPicker = "day";
|
|
127
|
+
this._currentPickerDOM._autoFocus = true;
|
|
121
128
|
}
|
|
122
129
|
onSelectedYearChange(event) {
|
|
123
130
|
this.timestamp = event.detail.timestamp;
|
|
124
131
|
this._currentPicker = "day";
|
|
132
|
+
this._currentPickerDOM._autoFocus = true;
|
|
125
133
|
}
|
|
126
134
|
onNavigate(event) {
|
|
127
135
|
this.timestamp = event.detail.timestamp;
|
|
128
136
|
}
|
|
129
137
|
_onkeydown(event) {
|
|
130
|
-
if (Keys.isF4(event) && this._currentPicker
|
|
138
|
+
if (Keys.isF4(event) && this._currentPicker !== "month") {
|
|
131
139
|
this._currentPicker = "month";
|
|
132
140
|
}
|
|
133
|
-
if (Keys.isF4Shift(event) && this._currentPicker
|
|
141
|
+
if (Keys.isF4Shift(event) && this._currentPicker !== "year") {
|
|
134
142
|
this._currentPicker = "year";
|
|
135
143
|
}
|
|
136
144
|
}
|
|
@@ -21,6 +21,9 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/localization/dates/CalendarDate',
|
|
|
21
21
|
primaryCalendarType: {
|
|
22
22
|
type: CalendarType__default,
|
|
23
23
|
},
|
|
24
|
+
secondaryCalendarType: {
|
|
25
|
+
type: CalendarType__default,
|
|
26
|
+
},
|
|
24
27
|
isNextButtonDisabled: {
|
|
25
28
|
type: Boolean,
|
|
26
29
|
},
|
|
@@ -30,6 +33,9 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/localization/dates/CalendarDate',
|
|
|
30
33
|
isMonthButtonHidden: {
|
|
31
34
|
type: Boolean,
|
|
32
35
|
},
|
|
36
|
+
isYearButtonHidden: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
},
|
|
33
39
|
},
|
|
34
40
|
events: {
|
|
35
41
|
"previous-press": {},
|
|
@@ -70,6 +76,13 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/localization/dates/CalendarDate',
|
|
|
70
76
|
this._yearButtonText = yearFormat.format(localDate, true);
|
|
71
77
|
this._prevButtonText = this.i18nBundle.getText(i18nDefaults.CALENDAR_HEADER_PREVIOUS_BUTTON);
|
|
72
78
|
this._nextButtonText = this.i18nBundle.getText(i18nDefaults.CALENDAR_HEADER_NEXT_BUTTON);
|
|
79
|
+
if (this.hasSecondaryCalendarType) {
|
|
80
|
+
const secondYearFormat = DateFormat__default.getDateInstance({ format: "y", calendarType: this.secondaryCalendarType });
|
|
81
|
+
const secoundaryMonths = this._getDisplayedSecondaryMonths(localDate);
|
|
82
|
+
this._secondaryMonthInfo = this._getDisplayedSecondaryMonthText(secoundaryMonths);
|
|
83
|
+
this._secondMonthButtonText = this._secondaryMonthInfo.text;
|
|
84
|
+
this._secondYearButtonText = secondYearFormat.format(localDate, true);
|
|
85
|
+
}
|
|
73
86
|
}
|
|
74
87
|
onPrevButtonClick(event) {
|
|
75
88
|
this.fireEvent("previous-press", event);
|
|
@@ -81,7 +94,15 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/localization/dates/CalendarDate',
|
|
|
81
94
|
this.fireEvent("show-month-press", event);
|
|
82
95
|
}
|
|
83
96
|
onMonthButtonKeyDown(event) {
|
|
84
|
-
if (Keys.isSpace(event)
|
|
97
|
+
if (Keys.isSpace(event)) {
|
|
98
|
+
event.preventDefault();
|
|
99
|
+
}
|
|
100
|
+
if (Keys.isEnter(event)) {
|
|
101
|
+
this.fireEvent("show-month-press", event);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
onMonthButtonKeyUp(event) {
|
|
105
|
+
if (Keys.isSpace(event)) {
|
|
85
106
|
event.preventDefault();
|
|
86
107
|
this.fireEvent("show-month-press", event);
|
|
87
108
|
}
|
|
@@ -90,11 +111,56 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/localization/dates/CalendarDate',
|
|
|
90
111
|
this.fireEvent("show-year-press", event);
|
|
91
112
|
}
|
|
92
113
|
onYearButtonKeyDown(event) {
|
|
93
|
-
if (Keys.isSpace(event)
|
|
114
|
+
if (Keys.isSpace(event)) {
|
|
115
|
+
event.preventDefault();
|
|
116
|
+
}
|
|
117
|
+
if (Keys.isEnter(event)) {
|
|
118
|
+
this.fireEvent("show-year-press", event);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
onYearButtonKeyUp(event) {
|
|
122
|
+
if (Keys.isSpace(event)) {
|
|
94
123
|
event.preventDefault();
|
|
95
124
|
this.fireEvent("show-year-press", event);
|
|
96
125
|
}
|
|
97
126
|
}
|
|
127
|
+
_getDisplayedSecondaryMonthText(month) {
|
|
128
|
+
const localeData = getCachedLocaleDataInstance__default(getLocale__default());
|
|
129
|
+
const pattern = localeData.getIntervalPattern();
|
|
130
|
+
const secondaryMonthsNames = getCachedLocaleDataInstance__default(getLocale__default()).getMonthsStandAlone("abbreviated", this.secondaryCalendarType);
|
|
131
|
+
const secondaryMonthsNamesWide = getCachedLocaleDataInstance__default(getLocale__default()).getMonthsStandAlone("wide", this.secondaryCalendarType);
|
|
132
|
+
if (month.startMonth === month.endMonth) {
|
|
133
|
+
return {
|
|
134
|
+
text: localeData.getMonths("abbreviated", this.secondaryCalendarType)[month.startMonth],
|
|
135
|
+
textInfo: localeData.getMonths("wide", this.secondaryCalendarType)[month.startMonth],
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
return {
|
|
139
|
+
text: pattern.replace(/\{0\}/, secondaryMonthsNames[month.startMonth]).replace(/\{1\}/, secondaryMonthsNames[month.endMonth]),
|
|
140
|
+
textInfo: pattern.replace(/\{0\}/, secondaryMonthsNamesWide[month.startMonth]).replace(/\{1\}/, secondaryMonthsNamesWide[month.endMonth]),
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
_getDisplayedSecondaryMonths(localDate) {
|
|
144
|
+
let firstDate = CalendarDate__default.fromLocalJSDate(localDate, this.primaryCalendarType);
|
|
145
|
+
firstDate.setDate(1);
|
|
146
|
+
firstDate = new CalendarDate__default(firstDate, this.secondaryCalendarType);
|
|
147
|
+
const startMonth = firstDate.getMonth();
|
|
148
|
+
let lastDate = CalendarDate__default.fromLocalJSDate(localDate, this.primaryCalendarType);
|
|
149
|
+
lastDate.setDate(this._daysInMonth(lastDate));
|
|
150
|
+
lastDate = new CalendarDate__default(lastDate, this.secondaryCalendarType);
|
|
151
|
+
const endMonth = lastDate.getMonth();
|
|
152
|
+
return { startMonth, endMonth };
|
|
153
|
+
}
|
|
154
|
+
_daysInMonth(calendarDate) {
|
|
155
|
+
calendarDate = new CalendarDate__default(calendarDate);
|
|
156
|
+
calendarDate.setDate(1);
|
|
157
|
+
calendarDate.setMonth(calendarDate.getMonth() + 1);
|
|
158
|
+
calendarDate.setDate(0);
|
|
159
|
+
return calendarDate.getDate();
|
|
160
|
+
}
|
|
161
|
+
get hasSecondaryCalendarType() {
|
|
162
|
+
return !!this.secondaryCalendarType;
|
|
163
|
+
}
|
|
98
164
|
get classes() {
|
|
99
165
|
return {
|
|
100
166
|
prevButton: {
|
|
@@ -107,6 +173,11 @@ sap.ui.define(['sap/ui/webc/common/thirdparty/localization/dates/CalendarDate',
|
|
|
107
173
|
},
|
|
108
174
|
};
|
|
109
175
|
}
|
|
176
|
+
get accInfo() {
|
|
177
|
+
return {
|
|
178
|
+
ariaLabelMonthButton: this.hasSecondaryCalendarType ? `${this._monthButtonText},${this._secondaryMonthInfo.textInfo}` : `${this._monthButtonText}`,
|
|
179
|
+
};
|
|
180
|
+
}
|
|
110
181
|
}
|
|
111
182
|
CalendarHeader.define();
|
|
112
183
|
|