@openui5/sap.ui.webc.main 1.111.0 → 1.112.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/sap/ui/webc/main/.library +1 -1
- package/src/sap/ui/webc/main/Avatar.js +1 -1
- package/src/sap/ui/webc/main/AvatarGroup.js +1 -1
- package/src/sap/ui/webc/main/Badge.js +1 -1
- package/src/sap/ui/webc/main/Breadcrumbs.js +1 -1
- package/src/sap/ui/webc/main/BreadcrumbsItem.js +1 -1
- package/src/sap/ui/webc/main/BusyIndicator.js +1 -1
- package/src/sap/ui/webc/main/Button.js +1 -1
- package/src/sap/ui/webc/main/Calendar.js +1 -1
- package/src/sap/ui/webc/main/CalendarDate.js +1 -1
- package/src/sap/ui/webc/main/Card.js +1 -1
- package/src/sap/ui/webc/main/CardHeader.js +1 -1
- package/src/sap/ui/webc/main/Carousel.js +1 -1
- package/src/sap/ui/webc/main/CheckBox.js +1 -1
- package/src/sap/ui/webc/main/ColorPalette.js +1 -1
- package/src/sap/ui/webc/main/ColorPaletteItem.js +1 -1
- package/src/sap/ui/webc/main/ColorPalettePopover.js +1 -1
- package/src/sap/ui/webc/main/ColorPicker.js +1 -1
- package/src/sap/ui/webc/main/ComboBox.js +1 -1
- package/src/sap/ui/webc/main/ComboBoxGroupItem.js +1 -1
- package/src/sap/ui/webc/main/ComboBoxItem.js +1 -1
- package/src/sap/ui/webc/main/CustomListItem.js +1 -1
- package/src/sap/ui/webc/main/DatePicker.js +2 -2
- package/src/sap/ui/webc/main/DateRangePicker.js +2 -2
- package/src/sap/ui/webc/main/DateTimePicker.js +2 -2
- package/src/sap/ui/webc/main/Dialog.js +1 -1
- package/src/sap/ui/webc/main/FileUploader.js +1 -1
- package/src/sap/ui/webc/main/GroupHeaderListItem.js +1 -1
- package/src/sap/ui/webc/main/Icon.js +5 -11
- package/src/sap/ui/webc/main/Input.js +1 -1
- package/src/sap/ui/webc/main/Label.js +1 -1
- package/src/sap/ui/webc/main/Link.js +1 -1
- package/src/sap/ui/webc/main/List.js +1 -1
- package/src/sap/ui/webc/main/Menu.js +1 -1
- package/src/sap/ui/webc/main/MenuItem.js +1 -1
- package/src/sap/ui/webc/main/MessageStrip.js +1 -1
- package/src/sap/ui/webc/main/MultiComboBox.js +1 -1
- package/src/sap/ui/webc/main/MultiComboBoxGroupItem.js +1 -1
- package/src/sap/ui/webc/main/MultiComboBoxItem.js +1 -1
- package/src/sap/ui/webc/main/MultiInput.js +1 -1
- package/src/sap/ui/webc/main/Option.js +1 -1
- package/src/sap/ui/webc/main/Panel.js +1 -1
- package/src/sap/ui/webc/main/Popover.js +1 -1
- package/src/sap/ui/webc/main/ProgressIndicator.js +1 -1
- package/src/sap/ui/webc/main/RadioButton.js +1 -1
- package/src/sap/ui/webc/main/RangeSlider.js +1 -1
- package/src/sap/ui/webc/main/RatingIndicator.js +1 -1
- package/src/sap/ui/webc/main/ResponsivePopover.js +1 -1
- package/src/sap/ui/webc/main/SegmentedButton.js +1 -1
- package/src/sap/ui/webc/main/SegmentedButtonItem.js +1 -1
- package/src/sap/ui/webc/main/Select.js +1 -1
- package/src/sap/ui/webc/main/Slider.js +1 -1
- package/src/sap/ui/webc/main/SplitButton.js +1 -1
- package/src/sap/ui/webc/main/StandardListItem.js +1 -1
- package/src/sap/ui/webc/main/StepInput.js +1 -1
- package/src/sap/ui/webc/main/SuggestionGroupItem.js +1 -1
- package/src/sap/ui/webc/main/SuggestionItem.js +1 -1
- package/src/sap/ui/webc/main/Switch.js +1 -1
- package/src/sap/ui/webc/main/Tab.js +1 -1
- package/src/sap/ui/webc/main/TabContainer.js +1 -1
- package/src/sap/ui/webc/main/TabSeparator.js +1 -1
- package/src/sap/ui/webc/main/Table.js +1 -1
- package/src/sap/ui/webc/main/TableCell.js +1 -1
- package/src/sap/ui/webc/main/TableColumn.js +1 -1
- package/src/sap/ui/webc/main/TableGroupRow.js +1 -1
- package/src/sap/ui/webc/main/TableRow.js +1 -1
- package/src/sap/ui/webc/main/TextArea.js +1 -1
- package/src/sap/ui/webc/main/TimePicker.js +2 -2
- package/src/sap/ui/webc/main/Title.js +1 -1
- package/src/sap/ui/webc/main/Toast.js +1 -1
- package/src/sap/ui/webc/main/ToggleButton.js +1 -1
- package/src/sap/ui/webc/main/Token.js +1 -1
- package/src/sap/ui/webc/main/Tree.js +1 -1
- package/src/sap/ui/webc/main/TreeItem.js +1 -1
- package/src/sap/ui/webc/main/changeHandler/ChangeLinkTarget.js +1 -1
- package/src/sap/ui/webc/main/library.config.js +6 -0
- package/src/sap/ui/webc/main/library.js +2 -2
- package/src/sap/ui/webc/main/thirdparty/Avatar.js +7 -51
- package/src/sap/ui/webc/main/thirdparty/AvatarGroup.js +34 -100
- package/src/sap/ui/webc/main/thirdparty/Badge.js +4 -23
- package/src/sap/ui/webc/main/thirdparty/Breadcrumbs.js +43 -145
- package/src/sap/ui/webc/main/thirdparty/BreadcrumbsItem.js +4 -17
- package/src/sap/ui/webc/main/thirdparty/BusyIndicator.js +7 -36
- package/src/sap/ui/webc/main/thirdparty/Button.js +6 -73
- package/src/sap/ui/webc/main/thirdparty/Calendar.js +19 -74
- package/src/sap/ui/webc/main/thirdparty/CalendarDate.js +2 -8
- package/src/sap/ui/webc/main/thirdparty/CalendarHeader.js +1 -29
- package/src/sap/ui/webc/main/thirdparty/CalendarPart.js +6 -26
- package/src/sap/ui/webc/main/thirdparty/Card.js +5 -26
- package/src/sap/ui/webc/main/thirdparty/CardHeader.js +4 -47
- package/src/sap/ui/webc/main/thirdparty/Carousel.js +17 -107
- package/src/sap/ui/webc/main/thirdparty/CheckBox.js +9 -63
- package/src/sap/ui/webc/main/thirdparty/ColorPalette.js +5 -83
- package/src/sap/ui/webc/main/thirdparty/ColorPaletteItem.js +4 -26
- package/src/sap/ui/webc/main/thirdparty/ColorPalettePopover.js +7 -41
- package/src/sap/ui/webc/main/thirdparty/ColorPicker.js +51 -123
- package/src/sap/ui/webc/main/thirdparty/ComboBox.js +24 -212
- package/src/sap/ui/webc/main/thirdparty/ComboBoxGroupItem.js +5 -18
- package/src/sap/ui/webc/main/thirdparty/ComboBoxItem.js +2 -9
- package/src/sap/ui/webc/main/thirdparty/CustomListItem.js +3 -20
- package/src/sap/ui/webc/main/thirdparty/DateComponentBase.js +2 -25
- package/src/sap/ui/webc/main/thirdparty/DatePicker.js +28 -127
- package/src/sap/ui/webc/main/thirdparty/DateRangePicker.js +20 -85
- package/src/sap/ui/webc/main/thirdparty/DateTimePicker.js +20 -66
- package/src/sap/ui/webc/main/thirdparty/DayPicker.js +32 -158
- package/src/sap/ui/webc/main/thirdparty/Dialog.js +18 -104
- package/src/sap/ui/webc/main/thirdparty/DurationPicker.js +11 -56
- package/src/sap/ui/webc/main/thirdparty/FileUploader.js +9 -83
- package/src/sap/ui/webc/main/thirdparty/Filters.js +0 -9
- package/src/sap/ui/webc/main/thirdparty/GroupHeaderListItem.js +5 -20
- package/src/sap/ui/webc/main/thirdparty/Icon.js +8 -53
- package/src/sap/ui/webc/main/thirdparty/Input.js +75 -273
- package/src/sap/ui/webc/main/thirdparty/Interfaces.js +19 -20
- package/src/sap/ui/webc/main/thirdparty/Label.js +5 -21
- package/src/sap/ui/webc/main/thirdparty/Link.js +5 -48
- package/src/sap/ui/webc/main/thirdparty/List.js +33 -183
- package/src/sap/ui/webc/main/thirdparty/ListItem.js +10 -76
- package/src/sap/ui/webc/main/thirdparty/ListItemBase.js +5 -37
- package/src/sap/ui/webc/main/thirdparty/Menu.js +8 -91
- package/src/sap/ui/webc/main/thirdparty/MenuItem.js +3 -21
- package/src/sap/ui/webc/main/thirdparty/MessageStrip.js +4 -34
- package/src/sap/ui/webc/main/thirdparty/MonthPicker.js +12 -61
- package/src/sap/ui/webc/main/thirdparty/MultiComboBox.js +25 -299
- package/src/sap/ui/webc/main/thirdparty/MultiComboBoxGroupItem.js +5 -18
- package/src/sap/ui/webc/main/thirdparty/MultiComboBoxItem.js +2 -9
- package/src/sap/ui/webc/main/thirdparty/MultiInput.js +10 -71
- package/src/sap/ui/webc/main/thirdparty/Option.js +5 -22
- package/src/sap/ui/webc/main/thirdparty/Panel.js +4 -62
- package/src/sap/ui/webc/main/thirdparty/Popover.js +28 -143
- package/src/sap/ui/webc/main/thirdparty/Popup.js +20 -118
- package/src/sap/ui/webc/main/thirdparty/ProgressIndicator.js +6 -38
- package/src/sap/ui/webc/main/thirdparty/RadioButton.js +8 -76
- package/src/sap/ui/webc/main/thirdparty/RadioButtonGroup.js +8 -54
- package/src/sap/ui/webc/main/thirdparty/RangeSlider.js +79 -170
- package/src/sap/ui/webc/main/thirdparty/RatingIndicator.js +6 -49
- package/src/sap/ui/webc/main/thirdparty/ResponsivePopover.js +5 -35
- package/src/sap/ui/webc/main/thirdparty/SegmentedButton.js +9 -57
- package/src/sap/ui/webc/main/thirdparty/SegmentedButtonItem.js +2 -15
- package/src/sap/ui/webc/main/thirdparty/Select.js +15 -131
- package/src/sap/ui/webc/main/thirdparty/Slider.js +24 -65
- package/src/sap/ui/webc/main/thirdparty/SliderBase.js +74 -164
- package/src/sap/ui/webc/main/thirdparty/SplitButton.js +6 -67
- package/src/sap/ui/webc/main/thirdparty/StandardListItem.js +3 -25
- package/src/sap/ui/webc/main/thirdparty/StepInput.js +12 -106
- package/src/sap/ui/webc/main/thirdparty/SuggestionGroupItem.js +5 -17
- package/src/sap/ui/webc/main/thirdparty/SuggestionItem.js +4 -22
- package/src/sap/ui/webc/main/thirdparty/SuggestionListItem.js +2 -12
- package/src/sap/ui/webc/main/thirdparty/Switch.js +6 -41
- package/src/sap/ui/webc/main/thirdparty/Tab.js +6 -83
- package/src/sap/ui/webc/main/thirdparty/TabContainer.js +39 -259
- package/src/sap/ui/webc/main/thirdparty/TabSeparator.js +2 -17
- package/src/sap/ui/webc/main/thirdparty/Table.js +25 -185
- package/src/sap/ui/webc/main/thirdparty/TableCell.js +4 -18
- package/src/sap/ui/webc/main/thirdparty/TableColumn.js +4 -18
- package/src/sap/ui/webc/main/thirdparty/TableGroupRow.js +5 -28
- package/src/sap/ui/webc/main/thirdparty/TableRow.js +7 -81
- package/src/sap/ui/webc/main/thirdparty/TextArea.js +7 -97
- package/src/sap/ui/webc/main/thirdparty/TimePicker.js +3 -16
- package/src/sap/ui/webc/main/thirdparty/TimePickerBase.js +14 -93
- package/src/sap/ui/webc/main/thirdparty/TimeSelection.js +7 -95
- package/src/sap/ui/webc/main/thirdparty/Title.js +4 -22
- package/src/sap/ui/webc/main/thirdparty/Toast.js +8 -31
- package/src/sap/ui/webc/main/thirdparty/ToggleButton.js +2 -14
- package/src/sap/ui/webc/main/thirdparty/Token.js +4 -36
- package/src/sap/ui/webc/main/thirdparty/Tokenizer.js +12 -117
- package/src/sap/ui/webc/main/thirdparty/Tree.js +7 -53
- package/src/sap/ui/webc/main/thirdparty/TreeItem.js +4 -22
- package/src/sap/ui/webc/main/thirdparty/TreeListItem.js +5 -45
- package/src/sap/ui/webc/main/thirdparty/WheelSlider.js +6 -93
- package/src/sap/ui/webc/main/thirdparty/YearPicker.js +22 -72
- package/src/sap/ui/webc/main/thirdparty/features/ColorPaletteMoreColors.js +0 -8
- package/src/sap/ui/webc/main/thirdparty/features/InputElementsFormSupport.js +2 -19
- package/src/sap/ui/webc/main/thirdparty/features/InputSuggestions.js +24 -165
- package/src/sap/ui/webc/main/thirdparty/generated/json-imports/Themes.js +0 -16
- package/src/sap/ui/webc/main/thirdparty/generated/json-imports/i18n.js +0 -52
- package/src/sap/ui/webc/main/thirdparty/generated/templates/AvatarGroupTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/AvatarTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BadgeTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BreadcrumbsPopoverTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BreadcrumbsTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/BusyIndicatorTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ButtonTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CalendarHeaderTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CalendarTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CardHeaderTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CardTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CarouselTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CheckBoxTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteDialogTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteItemTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPalettePopoverTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPaletteTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ColorPickerTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ComboBoxPopoverTemplate.lit.js +1 -18
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ComboBoxTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/CustomListItemTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DatePickerPopoverTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DatePickerTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DateTimePickerPopoverTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DayPickerTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/DialogTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/FileUploaderPopoverTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/FileUploaderTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/GroupHeaderListItemTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/IconTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/InputPopoverTemplate.lit.js +1 -22
- package/src/sap/ui/webc/main/thirdparty/generated/templates/InputTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/LabelTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/LinkTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ListItemTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ListTemplate.lit.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MenuTemplate.lit.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MessageStripTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MonthPickerTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiComboBoxPopoverTemplate.lit.js +1 -25
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiComboBoxTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/MultiInputTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PanelTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PopoverTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PopupBlockLayerTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/PopupTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ProgressIndicatorTemplate.lit.js +1 -12
- package/src/sap/ui/webc/main/thirdparty/generated/templates/RadioButtonTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/RangeSliderTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/RatingIndicatorTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ResponsivePopoverTemplate.lit.js +1 -14
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SegmentedButtonItemTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SegmentedButtonTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SelectPopoverTemplate.lit.js +1 -18
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SelectTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SliderBaseTemplate.lit.js +1 -9
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SliderTemplate.lit.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SplitButtonTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/StandardListItemTemplate.lit.js +1 -19
- package/src/sap/ui/webc/main/thirdparty/generated/templates/StepInputTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SuggestionListItemTemplate.lit.js +1 -22
- package/src/sap/ui/webc/main/thirdparty/generated/templates/SwitchTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabContainerPopoverTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabContainerTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabInOverflowTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabInStripTemplate.lit.js +1 -9
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabSeparatorInOverflowTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabSeparatorInStripTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TabTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableCellTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableColumnTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableGroupRowTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableRowTemplate.lit.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TableTemplate.lit.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TextAreaPopoverTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TextAreaTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TimePickerPopoverTemplate.lit.js +1 -2
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TimePickerTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TimeSelectionTemplate.lit.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TitleTemplate.lit.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ToastTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/ToggleButtonTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenizerPopoverTemplate.lit.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TokenizerTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TreeListItemTemplate.lit.js +1 -16
- package/src/sap/ui/webc/main/thirdparty/generated/templates/TreeTemplate.lit.js +1 -3
- package/src/sap/ui/webc/main/thirdparty/generated/templates/WheelSliderTemplate.lit.js +1 -5
- package/src/sap/ui/webc/main/thirdparty/generated/templates/YearPickerTemplate.lit.js +1 -4
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Avatar.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/AvatarGroup.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Badge.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Breadcrumbs.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/BreadcrumbsPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/BrowserScrollbar.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/BusyIndicator.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Button.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Calendar.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CalendarHeader.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Card.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CardHeader.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Carousel.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CheckBox.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPalette.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPaletteItem.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPalettePopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPaletteStaticArea.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ColorPicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ComboBox.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ComboBoxPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/CustomListItem.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DatePicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DatePickerPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DateRangePicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DateTimePicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DateTimePickerPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/DayPicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Dialog.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/FileUploader.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/GroupHeaderListItem.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/GrowingButton.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Icon.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Input.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/InputIcon.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/InvisibleTextStyles.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Label.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Link.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/List.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ListItem.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ListItemBase.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Menu.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MessageStrip.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MonthPicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MultiComboBox.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MultiComboBoxPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/MultiInput.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Panel.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Popover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Popup.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/PopupGlobal.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/PopupStaticAreaStyles.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/PopupsCommon.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ProgressIndicator.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/RadioButton.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/RangeSlider.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/RatingIndicator.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ResponsivePopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ResponsivePopoverCommon.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SegmentedButton.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Select.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SelectPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SliderBase.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/SplitButton.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/StepInput.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Suggestions.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Switch.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Tab.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabContainer.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabInOverflow.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabInStrip.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabSemanticIcon.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabSeparatorInOverflow.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TabSeparatorInStrip.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Table.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableCell.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableColumn.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableGroupRow.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TableRow.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TapHighlightColor.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TextArea.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TimePicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TimePickerPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TimeSelection.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Title.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Toast.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ToggleButton.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Token.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Tokenizer.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TokenizerPopover.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/Tree.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/TreeListItem.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/ValueStateMessage.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/WheelSlider.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/generated/themes/YearPicker.css.js +0 -2
- package/src/sap/ui/webc/main/thirdparty/popup-utils/OpenedPopupsRegistry.js +0 -12
- package/src/sap/ui/webc/main/thirdparty/popup-utils/PopoverRegistry.js +4 -33
- package/src/sap/ui/webc/main/thirdparty/timepicker-utils/TimeSlider.js +0 -26
- package/src/sap/ui/webc/main/thirdparty/types/AvatarColorScheme.js +1 -15
- package/src/sap/ui/webc/main/thirdparty/types/AvatarGroupType.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/AvatarShape.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/AvatarSize.js +1 -9
- package/src/sap/ui/webc/main/thirdparty/types/BreadcrumbsDesign.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/BreadcrumbsSeparatorStyle.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/types/BusyIndicatorSize.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/ButtonDesign.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/types/CalendarSelectionMode.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/CarouselArrowsPlacement.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/GrowingMode.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/HasPopup.js +1 -9
- package/src/sap/ui/webc/main/thirdparty/types/InputType.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/types/LinkDesign.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/ListGrowingMode.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/ListItemType.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/ListMode.js +1 -11
- package/src/sap/ui/webc/main/thirdparty/types/ListSeparators.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/MessageStripDesign.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/types/PanelAccessibleRole.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/PopoverHorizontalAlign.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/types/PopoverPlacementType.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/types/PopoverVerticalAlign.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/types/Priority.js +1 -8
- package/src/sap/ui/webc/main/thirdparty/types/SemanticColor.js +1 -9
- package/src/sap/ui/webc/main/thirdparty/types/SwitchDesign.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/TabContainerTabsPlacement.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/TabLayout.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/TableGrowingMode.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/TableMode.js +1 -7
- package/src/sap/ui/webc/main/thirdparty/types/TableRowType.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/TabsOverflowMode.js +1 -6
- package/src/sap/ui/webc/main/thirdparty/types/TitleLevel.js +1 -10
- package/src/sap/ui/webc/main/thirdparty/types/ToastPlacement.js +1 -13
- package/src/sap/ui/webc/main/thirdparty/types/WrappingType.js +1 -6
- package/ui5.yaml +1 -1
@@ -12,9 +12,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
12
12
|
_Icon = _interopRequireDefault(_Icon);
|
13
13
|
_Button = _interopRequireDefault(_Button);
|
14
14
|
_MessageStrip = _interopRequireDefault(_MessageStrip);
|
15
|
-
|
16
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
17
|
-
|
18
16
|
// Styles
|
19
17
|
|
20
18
|
/**
|
@@ -25,9 +23,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
25
23
|
altTag: "ui5-messagestrip",
|
26
24
|
languageAware: true,
|
27
25
|
fastNavigation: true,
|
28
|
-
properties:
|
29
|
-
/** @lends sap.ui.webcomponents.main.MessageStrip.prototype */
|
30
|
-
{
|
26
|
+
properties: /** @lends sap.ui.webcomponents.main.MessageStrip.prototype */{
|
31
27
|
/**
|
32
28
|
* Defines the component type.
|
33
29
|
* <br><br>
|
@@ -43,7 +39,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
43
39
|
type: _MessageStripDesign.default,
|
44
40
|
defaultValue: _MessageStripDesign.default.Information
|
45
41
|
},
|
46
|
-
|
47
42
|
/**
|
48
43
|
* Defines whether the MessageStrip will show an icon in the beginning.
|
49
44
|
* You can directly provide an icon with the <code>icon</code> slot. Otherwise, the default icon for the type will be used.
|
@@ -56,7 +51,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
56
51
|
hideIcon: {
|
57
52
|
type: Boolean
|
58
53
|
},
|
59
|
-
|
60
54
|
/**
|
61
55
|
* Defines whether the MessageStrip renders close button.
|
62
56
|
*
|
@@ -69,9 +63,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
69
63
|
}
|
70
64
|
},
|
71
65
|
managedSlots: true,
|
72
|
-
slots:
|
73
|
-
/** @lends sap.ui.webcomponents.main.MessageStrip.prototype */
|
74
|
-
{
|
66
|
+
slots: /** @lends sap.ui.webcomponents.main.MessageStrip.prototype */{
|
75
67
|
/**
|
76
68
|
* Defines the text of the component.
|
77
69
|
* <br><br>
|
@@ -84,7 +76,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
84
76
|
"default": {
|
85
77
|
type: Node
|
86
78
|
},
|
87
|
-
|
88
79
|
/**
|
89
80
|
* Defines the content to be displayed as graphical element within the component.
|
90
81
|
* <br><br>
|
@@ -102,9 +93,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
102
93
|
type: HTMLElement
|
103
94
|
}
|
104
95
|
},
|
105
|
-
events:
|
106
|
-
/** @lends sap.ui.webcomponents.main.MessageStrip.prototype */
|
107
|
-
{
|
96
|
+
events: /** @lends sap.ui.webcomponents.main.MessageStrip.prototype */{
|
108
97
|
/**
|
109
98
|
* Fired when the close button is pressed either with a
|
110
99
|
* click/tap or by using the Enter or Space key.
|
@@ -115,6 +104,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
115
104
|
close: {}
|
116
105
|
}
|
117
106
|
};
|
107
|
+
|
118
108
|
/**
|
119
109
|
* @class
|
120
110
|
*
|
@@ -150,40 +140,31 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
150
140
|
* @public
|
151
141
|
* @since 0.9.0
|
152
142
|
*/
|
153
|
-
|
154
143
|
class MessageStrip extends _UI5Element.default {
|
155
144
|
static get metadata() {
|
156
145
|
return metadata;
|
157
146
|
}
|
158
|
-
|
159
147
|
static get render() {
|
160
148
|
return _LitRenderer.default;
|
161
149
|
}
|
162
|
-
|
163
150
|
static get template() {
|
164
151
|
return _MessageStripTemplate.default;
|
165
152
|
}
|
166
|
-
|
167
153
|
static get styles() {
|
168
154
|
return _MessageStrip.default;
|
169
155
|
}
|
170
|
-
|
171
156
|
constructor() {
|
172
157
|
super();
|
173
158
|
}
|
174
|
-
|
175
159
|
_closeClick() {
|
176
160
|
this.fireEvent("close", {});
|
177
161
|
}
|
178
|
-
|
179
162
|
static get dependencies() {
|
180
163
|
return [_Icon.default, _Button.default];
|
181
164
|
}
|
182
|
-
|
183
165
|
static async onDefine() {
|
184
166
|
MessageStrip.i18nBundle = await (0, _i18nBundle.getI18nBundle)("@ui5/webcomponents");
|
185
167
|
}
|
186
|
-
|
187
168
|
static designClassesMappings() {
|
188
169
|
return {
|
189
170
|
"Information": "ui5-message-strip-root--info",
|
@@ -192,7 +173,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
192
173
|
"Warning": "ui5-message-strip-root--warning"
|
193
174
|
};
|
194
175
|
}
|
195
|
-
|
196
176
|
static iconMappings() {
|
197
177
|
return {
|
198
178
|
"Information": "information",
|
@@ -201,7 +181,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
201
181
|
"Warning": "alert"
|
202
182
|
};
|
203
183
|
}
|
204
|
-
|
205
184
|
static designAnnouncementMappings() {
|
206
185
|
return {
|
207
186
|
"Information": MessageStrip.i18nBundle.getText(_i18nDefaults.MESSAGE_STRIP_INFORMATION),
|
@@ -210,19 +189,15 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
210
189
|
"Warning": MessageStrip.i18nBundle.getText(_i18nDefaults.MESSAGE_STRIP_WARNING)
|
211
190
|
};
|
212
191
|
}
|
213
|
-
|
214
192
|
get hiddenText() {
|
215
193
|
return `${MessageStrip.designAnnouncementMappings()[this.design]} ${this.hideCloseButton ? "" : this._closableText}`;
|
216
194
|
}
|
217
|
-
|
218
195
|
get _closeButtonText() {
|
219
196
|
return MessageStrip.i18nBundle.getText(_i18nDefaults.MESSAGE_STRIP_CLOSE_BUTTON);
|
220
197
|
}
|
221
|
-
|
222
198
|
get _closableText() {
|
223
199
|
return MessageStrip.i18nBundle.getText(_i18nDefaults.MESSAGE_STRIP_CLOSABLE);
|
224
200
|
}
|
225
|
-
|
226
201
|
get classes() {
|
227
202
|
return {
|
228
203
|
root: {
|
@@ -233,21 +208,16 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
233
208
|
}
|
234
209
|
};
|
235
210
|
}
|
236
|
-
|
237
211
|
get iconProvided() {
|
238
212
|
return this.icon.length > 0;
|
239
213
|
}
|
240
|
-
|
241
214
|
get standardIconName() {
|
242
215
|
return MessageStrip.iconMappings()[this.design];
|
243
216
|
}
|
244
|
-
|
245
217
|
get designClasses() {
|
246
218
|
return MessageStrip.designClassesMappings()[this.design];
|
247
219
|
}
|
248
|
-
|
249
220
|
}
|
250
|
-
|
251
221
|
MessageStrip.define();
|
252
222
|
var _default = MessageStrip;
|
253
223
|
_exports.default = _default;
|
@@ -12,17 +12,13 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/localization/getCachedL
|
|
12
12
|
_CalendarPart = _interopRequireDefault(_CalendarPart);
|
13
13
|
_MonthPickerTemplate = _interopRequireDefault(_MonthPickerTemplate);
|
14
14
|
_MonthPicker = _interopRequireDefault(_MonthPicker);
|
15
|
-
|
16
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
17
|
-
|
18
16
|
/**
|
19
17
|
* @public
|
20
18
|
*/
|
21
19
|
const metadata = {
|
22
20
|
tag: "ui5-monthpicker",
|
23
|
-
properties:
|
24
|
-
/** @lends sap.ui.webcomponents.main.MonthPicker.prototype */
|
25
|
-
{
|
21
|
+
properties: /** @lends sap.ui.webcomponents.main.MonthPicker.prototype */{
|
26
22
|
/**
|
27
23
|
* An array of UTC timestamps representing the selected date or dates depending on the capabilities of the picker component.
|
28
24
|
* @type {Array}
|
@@ -42,16 +38,13 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/localization/getCachedL
|
|
42
38
|
noAttribute: true
|
43
39
|
}
|
44
40
|
},
|
45
|
-
events:
|
46
|
-
/** @lends sap.ui.webcomponents.main.MonthPicker.prototype */
|
47
|
-
{
|
41
|
+
events: /** @lends sap.ui.webcomponents.main.MonthPicker.prototype */{
|
48
42
|
/**
|
49
43
|
* Fired when the user selects a month (space/enter/click).
|
50
44
|
* @public
|
51
45
|
* @event
|
52
46
|
*/
|
53
47
|
change: {},
|
54
|
-
|
55
48
|
/**
|
56
49
|
* Fired when the timestamp changes - the user navigates with the keyboard or clicks with the mouse.
|
57
50
|
* @since 1.0.0-rc.9
|
@@ -62,7 +55,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/localization/getCachedL
|
|
62
55
|
}
|
63
56
|
};
|
64
57
|
const PAGE_SIZE = 12; // Total months on a single page
|
65
|
-
|
66
58
|
const ROW_SIZE = 3; // Months per row (4 rows of 3 months each)
|
67
59
|
|
68
60
|
/**
|
@@ -79,54 +71,42 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/localization/getCachedL
|
|
79
71
|
* @tagname ui5-monthpicker
|
80
72
|
* @public
|
81
73
|
*/
|
82
|
-
|
83
74
|
class MonthPicker extends _CalendarPart.default {
|
84
75
|
static get metadata() {
|
85
76
|
return metadata;
|
86
77
|
}
|
87
|
-
|
88
78
|
static get template() {
|
89
79
|
return _MonthPickerTemplate.default;
|
90
80
|
}
|
91
|
-
|
92
81
|
static get styles() {
|
93
82
|
return _MonthPicker.default;
|
94
83
|
}
|
95
|
-
|
96
84
|
onBeforeRendering() {
|
97
85
|
this._buildMonths();
|
98
86
|
}
|
99
|
-
|
100
87
|
_buildMonths() {
|
101
88
|
if (this._hidden) {
|
102
89
|
return;
|
103
90
|
}
|
104
|
-
|
105
91
|
const localeData = (0, _getCachedLocaleDataInstance.default)((0, _getLocale.default)());
|
106
92
|
const monthsNames = localeData.getMonthsStandAlone("wide", this._primaryCalendarType);
|
107
93
|
const months = [];
|
108
94
|
const calendarDate = this._calendarDate; // store the value of the expensive getter
|
109
|
-
|
110
95
|
const minDate = this._minDate; // store the value of the expensive getter
|
111
|
-
|
112
96
|
const maxDate = this._maxDate; // store the value of the expensive getter
|
113
|
-
|
114
97
|
const tempDate = new _CalendarDate.default(calendarDate, this._primaryCalendarType);
|
115
98
|
let timestamp;
|
116
|
-
/* eslint-disable no-loop-func */
|
117
99
|
|
100
|
+
/* eslint-disable no-loop-func */
|
118
101
|
for (let i = 0; i < 12; i++) {
|
119
102
|
tempDate.setMonth(i);
|
120
103
|
timestamp = tempDate.valueOf() / 1000;
|
121
104
|
const isSelected = this.selectedDates.some(itemTimestamp => {
|
122
105
|
const date = _CalendarDate.default.fromTimestamp(itemTimestamp * 1000, this._primaryCalendarType);
|
123
|
-
|
124
106
|
return date.getYear() === tempDate.getYear() && date.getMonth() === tempDate.getMonth();
|
125
107
|
});
|
126
108
|
const isFocused = tempDate.getMonth() === calendarDate.getMonth();
|
127
|
-
|
128
109
|
const isDisabled = this._isOutOfSelectableRange(tempDate, minDate, maxDate);
|
129
|
-
|
130
110
|
const month = {
|
131
111
|
timestamp: timestamp.toString(),
|
132
112
|
focusRef: isFocused,
|
@@ -137,36 +117,28 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/localization/getCachedL
|
|
137
117
|
disabled: isDisabled,
|
138
118
|
classes: "ui5-mp-item"
|
139
119
|
};
|
140
|
-
|
141
120
|
if (isSelected) {
|
142
121
|
month.classes += " ui5-mp-item--selected";
|
143
122
|
}
|
144
|
-
|
145
123
|
if (isDisabled) {
|
146
124
|
month.classes += " ui5-mp-item--disabled";
|
147
125
|
}
|
148
|
-
|
149
126
|
const quarterIndex = parseInt(i / ROW_SIZE);
|
150
|
-
|
151
127
|
if (months[quarterIndex]) {
|
152
128
|
months[quarterIndex].push(month);
|
153
129
|
} else {
|
154
130
|
months[quarterIndex] = [month];
|
155
131
|
}
|
156
132
|
}
|
157
|
-
|
158
133
|
this._months = months;
|
159
134
|
}
|
160
|
-
|
161
135
|
onAfterRendering() {
|
162
136
|
if (!this._hidden) {
|
163
137
|
this.focus();
|
164
138
|
}
|
165
139
|
}
|
166
|
-
|
167
140
|
_onkeydown(event) {
|
168
141
|
let preventDefault = true;
|
169
|
-
|
170
142
|
if ((0, _Keys.isEnter)(event)) {
|
171
143
|
this._selectMonth(event);
|
172
144
|
} else if ((0, _Keys.isSpace)(event)) {
|
@@ -187,126 +159,107 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/localization/getCachedL
|
|
187
159
|
this._onHomeOrEnd((0, _Keys.isHome)(event));
|
188
160
|
} else if ((0, _Keys.isHomeCtrl)(event)) {
|
189
161
|
this._setTimestamp(parseInt(this._months[0][0].timestamp)); // first month of first row
|
190
|
-
|
191
162
|
} else if ((0, _Keys.isEndCtrl)(event)) {
|
192
163
|
this._setTimestamp(parseInt(this._months[PAGE_SIZE / ROW_SIZE - 1][ROW_SIZE - 1].timestamp)); // last month of last row
|
193
|
-
|
194
164
|
} else {
|
195
165
|
preventDefault = false;
|
196
166
|
}
|
197
|
-
|
198
167
|
if (preventDefault) {
|
199
168
|
event.preventDefault();
|
200
169
|
}
|
201
170
|
}
|
202
|
-
|
203
171
|
_onHomeOrEnd(homePressed) {
|
204
172
|
this._months.forEach(row => {
|
205
173
|
const indexInRow = row.findIndex(item => _CalendarDate.default.fromTimestamp(parseInt(item.timestamp) * 1000).getMonth() === this._calendarDate.getMonth());
|
206
|
-
|
207
174
|
if (indexInRow !== -1) {
|
208
175
|
// The current month is on this row
|
209
176
|
const index = homePressed ? 0 : ROW_SIZE - 1; // select the first (if Home) or last (if End) month on the row
|
210
|
-
|
211
177
|
this._setTimestamp(parseInt(row[index].timestamp));
|
212
178
|
}
|
213
179
|
});
|
214
180
|
}
|
181
|
+
|
215
182
|
/**
|
216
183
|
* Sets the timestamp to an absolute value
|
217
184
|
* @param value
|
218
185
|
* @private
|
219
186
|
*/
|
220
|
-
|
221
|
-
|
222
187
|
_setTimestamp(value) {
|
223
188
|
this._safelySetTimestamp(value);
|
224
|
-
|
225
189
|
this.fireEvent("navigate", {
|
226
190
|
timestamp: this.timestamp
|
227
191
|
});
|
228
192
|
}
|
193
|
+
|
229
194
|
/**
|
230
195
|
* Modifies timestamp by a given amount of months and, if necessary, loads the prev/next page
|
231
196
|
* @param amount
|
232
197
|
* @private
|
233
198
|
*/
|
234
|
-
|
235
|
-
|
236
199
|
_modifyTimestampBy(amount) {
|
237
200
|
// Modify the current timestamp
|
238
|
-
this._safelyModifyTimestampBy(amount, "month");
|
239
|
-
|
201
|
+
this._safelyModifyTimestampBy(amount, "month");
|
240
202
|
|
203
|
+
// Notify the calendar to update its timestamp
|
241
204
|
this.fireEvent("navigate", {
|
242
205
|
timestamp: this.timestamp
|
243
206
|
});
|
244
207
|
}
|
245
|
-
|
246
208
|
_onkeyup(event) {
|
247
209
|
if ((0, _Keys.isSpace)(event)) {
|
248
210
|
this._selectMonth(event);
|
249
211
|
}
|
250
212
|
}
|
213
|
+
|
251
214
|
/**
|
252
215
|
* User clicked with the mouser or pressed Enter/Space
|
253
216
|
* @param event
|
254
217
|
* @private
|
255
218
|
*/
|
256
|
-
|
257
|
-
|
258
219
|
_selectMonth(event) {
|
259
220
|
event.preventDefault();
|
260
|
-
|
261
221
|
if (event.target.className.indexOf("ui5-mp-item") > -1) {
|
262
222
|
const timestamp = this._getTimestampFromDom(event.target);
|
263
|
-
|
264
223
|
this._safelySetTimestamp(timestamp);
|
265
|
-
|
266
224
|
this.fireEvent("change", {
|
267
225
|
timestamp: this.timestamp
|
268
226
|
});
|
269
227
|
}
|
270
228
|
}
|
229
|
+
|
271
230
|
/**
|
272
231
|
* Called from Calendar.js
|
273
232
|
* @protected
|
274
233
|
*/
|
275
|
-
|
276
|
-
|
277
234
|
_hasPreviousPage() {
|
278
235
|
return this._calendarDate.getYear() !== this._minDate.getYear();
|
279
236
|
}
|
237
|
+
|
280
238
|
/**
|
281
239
|
* Called from Calendar.js
|
282
240
|
* @protected
|
283
241
|
*/
|
284
|
-
|
285
|
-
|
286
242
|
_hasNextPage() {
|
287
243
|
return this._calendarDate.getYear() !== this._maxDate.getYear();
|
288
244
|
}
|
245
|
+
|
289
246
|
/**
|
290
247
|
* Called by Calendar.js
|
291
248
|
* User pressed the "<" button in the calendar header (same as PageUp)
|
292
249
|
* @protected
|
293
250
|
*/
|
294
|
-
|
295
|
-
|
296
251
|
_showPreviousPage() {
|
297
252
|
this._modifyTimestampBy(-PAGE_SIZE);
|
298
253
|
}
|
254
|
+
|
299
255
|
/**
|
300
256
|
* Called by Calendar.js
|
301
257
|
* User pressed the ">" button in the calendar header (same as PageDown)
|
302
258
|
* @protected
|
303
259
|
*/
|
304
|
-
|
305
|
-
|
306
260
|
_showNextPage() {
|
307
261
|
this._modifyTimestampBy(PAGE_SIZE);
|
308
262
|
}
|
309
|
-
|
310
263
|
_isOutOfSelectableRange(date, minDate, maxDate) {
|
311
264
|
const month = date.getMonth();
|
312
265
|
const year = date.getYear();
|
@@ -316,9 +269,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/localization/getCachedL
|
|
316
269
|
const maxMonth = maxDate.getMonth();
|
317
270
|
return year < minYear || year === minYear && month < minMonth || year > maxYear || year === maxYear && month > maxMonth;
|
318
271
|
}
|
319
|
-
|
320
272
|
}
|
321
|
-
|
322
273
|
MonthPicker.define();
|
323
274
|
var _default = MonthPicker;
|
324
275
|
_exports.default = _default;
|