@openui5/sap.ui.webc.main 1.111.1 → 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,17 +12,13 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/localization/DateFormat
|
|
12
12
|
_CalendarPart = _interopRequireDefault(_CalendarPart);
|
13
13
|
_YearPickerTemplate = _interopRequireDefault(_YearPickerTemplate);
|
14
14
|
_YearPicker = _interopRequireDefault(_YearPicker);
|
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-yearpicker",
|
23
|
-
properties:
|
24
|
-
/** @lends sap.ui.webcomponents.main.YearPicker.prototype */
|
25
|
-
{
|
21
|
+
properties: /** @lends sap.ui.webcomponents.main.YearPicker.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/DateFormat
|
|
42
38
|
noAttribute: true
|
43
39
|
}
|
44
40
|
},
|
45
|
-
events:
|
46
|
-
/** @lends sap.ui.webcomponents.main.YearPicker.prototype */
|
47
|
-
{
|
41
|
+
events: /** @lends sap.ui.webcomponents.main.YearPicker.prototype */{
|
48
42
|
/**
|
49
43
|
* Fired when the user selects a year (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/DateFormat
|
|
62
55
|
}
|
63
56
|
};
|
64
57
|
const PAGE_SIZE = 20; // Total years on a single page
|
65
|
-
|
66
58
|
const ROW_SIZE = 4; // Years per row (5 rows of 4 years each)
|
67
59
|
|
68
60
|
/**
|
@@ -77,54 +69,42 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/localization/DateFormat
|
|
77
69
|
* @tagname ui5-yearpicker
|
78
70
|
* @public
|
79
71
|
*/
|
80
|
-
|
81
72
|
class YearPicker extends _CalendarPart.default {
|
82
73
|
static get metadata() {
|
83
74
|
return metadata;
|
84
75
|
}
|
85
|
-
|
86
76
|
static get styles() {
|
87
77
|
return _YearPicker.default;
|
88
78
|
}
|
89
|
-
|
90
79
|
static get template() {
|
91
80
|
return _YearPickerTemplate.default;
|
92
81
|
}
|
93
|
-
|
94
82
|
onBeforeRendering() {
|
95
83
|
this._buildYears();
|
96
84
|
}
|
97
|
-
|
98
85
|
_buildYears() {
|
99
86
|
if (this._hidden) {
|
100
87
|
return;
|
101
88
|
}
|
102
|
-
|
103
89
|
const oYearFormat = _DateFormat.default.getDateInstance({
|
104
90
|
format: "y",
|
105
91
|
calendarType: this._primaryCalendarType
|
106
92
|
}, (0, _getLocale.default)());
|
107
|
-
|
108
93
|
this._calculateFirstYear();
|
109
|
-
|
110
94
|
this._lastYear = this._firstYear + PAGE_SIZE - 1;
|
111
95
|
const calendarDate = this._calendarDate; // store the value of the expensive getter
|
112
|
-
|
113
96
|
const minDate = this._minDate; // store the value of the expensive getter
|
114
|
-
|
115
97
|
const maxDate = this._maxDate; // store the value of the expensive getter
|
116
|
-
|
117
98
|
const tempDate = new _CalendarDate.default(calendarDate, this._primaryCalendarType);
|
118
99
|
tempDate.setYear(this._firstYear);
|
119
100
|
const intervals = [];
|
120
101
|
let timestamp;
|
121
|
-
/* eslint-disable no-loop-func */
|
122
102
|
|
103
|
+
/* eslint-disable no-loop-func */
|
123
104
|
for (let i = 0; i < PAGE_SIZE; i++) {
|
124
105
|
timestamp = tempDate.valueOf() / 1000;
|
125
106
|
const isSelected = this.selectedDates.some(itemTimestamp => {
|
126
107
|
const date = _CalendarDate.default.fromTimestamp(itemTimestamp * 1000, this._primaryCalendarType);
|
127
|
-
|
128
108
|
return date.getYear() === tempDate.getYear();
|
129
109
|
});
|
130
110
|
const isFocused = tempDate.getYear() === calendarDate.getYear();
|
@@ -139,69 +119,59 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/localization/DateFormat
|
|
139
119
|
disabled: isDisabled,
|
140
120
|
classes: "ui5-yp-item"
|
141
121
|
};
|
142
|
-
|
143
122
|
if (isSelected) {
|
144
123
|
year.classes += " ui5-yp-item--selected";
|
145
124
|
}
|
146
|
-
|
147
125
|
if (isDisabled) {
|
148
126
|
year.classes += " ui5-yp-item--disabled";
|
149
127
|
}
|
150
|
-
|
151
128
|
const intervalIndex = parseInt(i / ROW_SIZE);
|
152
|
-
|
153
129
|
if (intervals[intervalIndex]) {
|
154
130
|
intervals[intervalIndex].push(year);
|
155
131
|
} else {
|
156
132
|
intervals[intervalIndex] = [year];
|
157
133
|
}
|
158
|
-
|
159
134
|
tempDate.setYear(tempDate.getYear() + 1);
|
160
135
|
}
|
161
|
-
|
162
136
|
this._years = intervals;
|
163
137
|
}
|
164
|
-
|
165
138
|
_calculateFirstYear() {
|
166
139
|
const absoluteMaxYear = (0, _ExtremeDates.getMaxCalendarDate)(this._primaryCalendarType).getYear(); // 9999
|
140
|
+
const currentYear = this._calendarDate.getYear();
|
167
141
|
|
168
|
-
|
169
|
-
|
170
|
-
|
142
|
+
// 1. If first load - center the current year (set first year to be current year minus half page size)
|
171
143
|
if (!this._firstYear) {
|
172
144
|
this._firstYear = currentYear - PAGE_SIZE / 2;
|
173
|
-
}
|
174
|
-
|
145
|
+
}
|
175
146
|
|
147
|
+
// 2. If out of range - change by a page (20) - do not center in order to keep the same position as the last page
|
176
148
|
if (currentYear < this._firstYear) {
|
177
149
|
this._firstYear -= PAGE_SIZE;
|
178
150
|
} else if (currentYear >= this._firstYear + PAGE_SIZE) {
|
179
151
|
this._firstYear += PAGE_SIZE;
|
180
|
-
}
|
181
|
-
|
152
|
+
}
|
182
153
|
|
154
|
+
// 3. If the date was changed by more than 20 years - reset _firstYear completely
|
183
155
|
if (Math.abs(this._firstYear - currentYear) >= PAGE_SIZE) {
|
184
156
|
this._firstYear = currentYear - PAGE_SIZE / 2;
|
185
|
-
}
|
186
|
-
|
157
|
+
}
|
187
158
|
|
159
|
+
// Keep it in the range between the min and max year
|
188
160
|
this._firstYear = Math.max(this._firstYear, this._minDate.getYear());
|
189
|
-
this._firstYear = Math.min(this._firstYear, this._maxDate.getYear());
|
161
|
+
this._firstYear = Math.min(this._firstYear, this._maxDate.getYear());
|
190
162
|
|
163
|
+
// If first year is > 9980, make it 9980 to not show any years beyond 9999
|
191
164
|
if (this._firstYear > absoluteMaxYear - PAGE_SIZE + 1) {
|
192
165
|
this._firstYear = absoluteMaxYear - PAGE_SIZE + 1;
|
193
166
|
}
|
194
167
|
}
|
195
|
-
|
196
168
|
onAfterRendering() {
|
197
169
|
if (!this._hidden) {
|
198
170
|
this.focus();
|
199
171
|
}
|
200
172
|
}
|
201
|
-
|
202
173
|
_onkeydown(event) {
|
203
174
|
let preventDefault = true;
|
204
|
-
|
205
175
|
if ((0, _Keys.isEnter)(event)) {
|
206
176
|
this._selectYear(event);
|
207
177
|
} else if ((0, _Keys.isSpace)(event)) {
|
@@ -222,128 +192,108 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/localization/DateFormat
|
|
222
192
|
this._onHomeOrEnd((0, _Keys.isHome)(event));
|
223
193
|
} else if ((0, _Keys.isHomeCtrl)(event)) {
|
224
194
|
this._setTimestamp(parseInt(this._years[0][0].timestamp)); // first year of first row
|
225
|
-
|
226
195
|
} else if ((0, _Keys.isEndCtrl)(event)) {
|
227
196
|
this._setTimestamp(parseInt(this._years[PAGE_SIZE / ROW_SIZE - 1][ROW_SIZE - 1].timestamp)); // last year of last row
|
228
|
-
|
229
197
|
} else {
|
230
198
|
preventDefault = false;
|
231
199
|
}
|
232
|
-
|
233
200
|
if (preventDefault) {
|
234
201
|
event.preventDefault();
|
235
202
|
}
|
236
203
|
}
|
237
|
-
|
238
204
|
_onHomeOrEnd(homePressed) {
|
239
205
|
this._years.forEach(row => {
|
240
206
|
const indexInRow = row.findIndex(item => _CalendarDate.default.fromTimestamp(parseInt(item.timestamp) * 1000).getYear() === this._calendarDate.getYear());
|
241
|
-
|
242
207
|
if (indexInRow !== -1) {
|
243
208
|
// The current year is on this row
|
244
209
|
const index = homePressed ? 0 : ROW_SIZE - 1; // select the first (if Home) or last (if End) year on the row
|
245
|
-
|
246
210
|
this._setTimestamp(parseInt(row[index].timestamp));
|
247
211
|
}
|
248
212
|
});
|
249
213
|
}
|
214
|
+
|
250
215
|
/**
|
251
216
|
* Sets the timestamp to an absolute value
|
252
217
|
* @param value
|
253
218
|
* @private
|
254
219
|
*/
|
255
|
-
|
256
|
-
|
257
220
|
_setTimestamp(value) {
|
258
221
|
this._safelySetTimestamp(value);
|
259
|
-
|
260
222
|
this.fireEvent("navigate", {
|
261
223
|
timestamp: this.timestamp
|
262
224
|
});
|
263
225
|
}
|
226
|
+
|
264
227
|
/**
|
265
228
|
* Modifies timestamp by a given amount of years and, if necessary, loads the prev/next page
|
266
229
|
* @param amount
|
267
230
|
* @private
|
268
231
|
*/
|
269
|
-
|
270
|
-
|
271
232
|
_modifyTimestampBy(amount) {
|
272
233
|
// Modify the current timestamp
|
273
|
-
this._safelyModifyTimestampBy(amount, "year");
|
274
|
-
|
234
|
+
this._safelyModifyTimestampBy(amount, "year");
|
275
235
|
|
236
|
+
// Notify the calendar to update its timestamp
|
276
237
|
this.fireEvent("navigate", {
|
277
238
|
timestamp: this.timestamp
|
278
239
|
});
|
279
240
|
}
|
280
|
-
|
281
241
|
_onkeyup(event) {
|
282
242
|
if ((0, _Keys.isSpace)(event)) {
|
283
243
|
this._selectYear(event);
|
284
244
|
}
|
285
245
|
}
|
246
|
+
|
286
247
|
/**
|
287
248
|
* User clicked with the mouser or pressed Enter/Space
|
288
249
|
* @param event
|
289
250
|
* @private
|
290
251
|
*/
|
291
|
-
|
292
|
-
|
293
252
|
_selectYear(event) {
|
294
253
|
event.preventDefault();
|
295
|
-
|
296
254
|
if (event.target.className.indexOf("ui5-yp-item") > -1) {
|
297
255
|
const timestamp = this._getTimestampFromDom(event.target);
|
298
|
-
|
299
256
|
this._safelySetTimestamp(timestamp);
|
300
|
-
|
301
257
|
this.fireEvent("change", {
|
302
258
|
timestamp: this.timestamp
|
303
259
|
});
|
304
260
|
}
|
305
261
|
}
|
262
|
+
|
306
263
|
/**
|
307
264
|
* Called from Calendar.js
|
308
265
|
* @protected
|
309
266
|
*/
|
310
|
-
|
311
|
-
|
312
267
|
_hasPreviousPage() {
|
313
268
|
return this._firstYear > this._minDate.getYear();
|
314
269
|
}
|
270
|
+
|
315
271
|
/**
|
316
272
|
* Called from Calendar.js
|
317
273
|
* @protected
|
318
274
|
*/
|
319
|
-
|
320
|
-
|
321
275
|
_hasNextPage() {
|
322
276
|
return this._firstYear + PAGE_SIZE - 1 < this._maxDate.getYear();
|
323
277
|
}
|
278
|
+
|
324
279
|
/**
|
325
280
|
* Called by Calendar.js
|
326
281
|
* User pressed the "<" button in the calendar header (same as PageUp)
|
327
282
|
* @protected
|
328
283
|
*/
|
329
|
-
|
330
|
-
|
331
284
|
_showPreviousPage() {
|
332
285
|
this._modifyTimestampBy(-PAGE_SIZE);
|
333
286
|
}
|
287
|
+
|
334
288
|
/**
|
335
289
|
* Called by Calendar.js
|
336
290
|
* User pressed the ">" button in the calendar header (same as PageDown)
|
337
291
|
* @protected
|
338
292
|
*/
|
339
|
-
|
340
|
-
|
341
293
|
_showNextPage() {
|
342
294
|
this._modifyTimestampBy(PAGE_SIZE);
|
343
295
|
}
|
344
|
-
|
345
296
|
}
|
346
|
-
|
347
297
|
YearPicker.define();
|
348
298
|
var _default = YearPicker;
|
349
299
|
_exports.default = _default;
|
@@ -8,32 +8,24 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/FeaturesRegistry",
|
|
8
8
|
_Dialog = _interopRequireDefault(_Dialog);
|
9
9
|
_Button = _interopRequireDefault(_Button);
|
10
10
|
_ColorPicker = _interopRequireDefault(_ColorPicker);
|
11
|
-
|
12
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
13
|
-
|
14
12
|
class ColorPaletteMoreColors {
|
15
13
|
static get dependencies() {
|
16
14
|
return [_Dialog.default, _Button.default, _ColorPicker.default];
|
17
15
|
}
|
18
|
-
|
19
16
|
static async init() {
|
20
17
|
ColorPaletteMoreColors.i18nBundle = await (0, _i18nBundle.getI18nBundle)("@ui5/webcomponents");
|
21
18
|
}
|
22
|
-
|
23
19
|
get colorPaletteDialogTitle() {
|
24
20
|
return ColorPaletteMoreColors.i18nBundle.getText(_i18nDefaults.COLOR_PALETTE_DIALOG_TITLE);
|
25
21
|
}
|
26
|
-
|
27
22
|
get colorPaletteDialogOKButton() {
|
28
23
|
return ColorPaletteMoreColors.i18nBundle.getText(_i18nDefaults.COLOR_PALETTE_DIALOG_OK_BUTTON);
|
29
24
|
}
|
30
|
-
|
31
25
|
get colorPaletteCancelButton() {
|
32
26
|
return ColorPaletteMoreColors.i18nBundle.getText(_i18nDefaults.COLOR_PALETTE_DIALOG_CANCEL_BUTTON);
|
33
27
|
}
|
34
|
-
|
35
28
|
}
|
36
|
-
|
37
29
|
(0, _FeaturesRegistry.registerFeature)("ColorPaletteMoreColors", ColorPaletteMoreColors);
|
38
30
|
var _default = ColorPaletteMoreColors;
|
39
31
|
_exports.default = _default;
|
@@ -5,7 +5,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/FeaturesRegistry"]
|
|
5
5
|
value: true
|
6
6
|
});
|
7
7
|
_exports.default = void 0;
|
8
|
-
|
9
8
|
class FormSupport {
|
10
9
|
/**
|
11
10
|
*
|
@@ -15,7 +14,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/FeaturesRegistry"]
|
|
15
14
|
static syncNativeHiddenInput(element, nativeInputUpdateCallback) {
|
16
15
|
const needsNativeInput = !!element.name || element.required;
|
17
16
|
let nativeInput = element.querySelector("input[data-ui5-form-support]");
|
18
|
-
|
19
17
|
if (needsNativeInput && !nativeInput) {
|
20
18
|
nativeInput = document.createElement("input");
|
21
19
|
nativeInput.style.clip = "rect(0 0 0 0)";
|
@@ -31,62 +29,49 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/FeaturesRegistry"]
|
|
31
29
|
nativeInput.setAttribute("data-ui5-form-support", "");
|
32
30
|
nativeInput.addEventListener("focusin", event => element.focus());
|
33
31
|
nativeInput.slot = "formSupport"; // Needed for IE - otherwise input elements are not part of the real DOM tree and are not detected by forms
|
34
|
-
|
35
32
|
element.appendChild(nativeInput);
|
36
33
|
}
|
37
|
-
|
38
34
|
if (!needsNativeInput && nativeInput) {
|
39
35
|
element.removeChild(nativeInput);
|
40
36
|
}
|
41
|
-
|
42
37
|
if (needsNativeInput) {
|
43
38
|
nativeInput.name = element.name;
|
44
39
|
(nativeInputUpdateCallback || copyDefaultProperties)(element, nativeInput);
|
45
40
|
}
|
46
41
|
}
|
47
|
-
|
48
42
|
static syncNativeFileInput(element, nativeInputUpdateCallback, nativeInputChangeCallback) {
|
49
43
|
const needsNativeInput = !!element.name;
|
50
44
|
let nativeInput = element.querySelector(`input[type=${element._type || "hidden"}][data-ui5-form-support]`);
|
51
|
-
|
52
45
|
if (needsNativeInput && !nativeInput) {
|
53
46
|
nativeInput = document.createElement("input");
|
54
47
|
nativeInput.type = element._type;
|
55
48
|
nativeInput.setAttribute("data-ui5-form-support", "");
|
56
49
|
nativeInput.slot = "formSupport"; // Needed to visualize the input in the light dom
|
57
|
-
|
58
50
|
nativeInput.style.position = "absolute";
|
59
51
|
nativeInput.style.top = "0";
|
60
52
|
nativeInput.style.left = "0";
|
61
53
|
nativeInput.style.width = "100%";
|
62
54
|
nativeInput.style.height = "100%";
|
63
55
|
nativeInput.style.opacity = "0";
|
64
|
-
|
65
56
|
if (element.multiple) {
|
66
57
|
nativeInput.multiple = true;
|
67
58
|
}
|
68
|
-
|
69
59
|
nativeInput.addEventListener("change", nativeInputChangeCallback);
|
70
60
|
element.appendChild(nativeInput);
|
71
61
|
}
|
72
|
-
|
73
62
|
if (!needsNativeInput && nativeInput) {
|
74
63
|
element.removeChild(nativeInput);
|
75
64
|
}
|
76
|
-
|
77
65
|
if (needsNativeInput) {
|
78
66
|
nativeInput.name = element.name;
|
79
67
|
(nativeInputUpdateCallback || copyDefaultProperties)(element, nativeInput);
|
80
68
|
}
|
81
69
|
}
|
82
|
-
|
83
70
|
static triggerFormSubmit(element) {
|
84
71
|
let currentElement = element.parentElement;
|
85
|
-
|
86
72
|
while (currentElement && currentElement.tagName.toLowerCase() !== "form") {
|
87
73
|
currentElement = currentElement.parentElement;
|
88
74
|
}
|
89
|
-
|
90
75
|
if (currentElement) {
|
91
76
|
// eslint-disable-next-line no-undef
|
92
77
|
currentElement.dispatchEvent(new SubmitEvent("submit", {
|
@@ -97,15 +82,13 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/FeaturesRegistry"]
|
|
97
82
|
currentElement.submit();
|
98
83
|
}
|
99
84
|
}
|
100
|
-
|
101
85
|
}
|
102
|
-
|
103
86
|
const copyDefaultProperties = (element, nativeInput) => {
|
104
87
|
nativeInput.disabled = element.disabled;
|
105
88
|
nativeInput.value = element.value;
|
106
|
-
};
|
107
|
-
|
89
|
+
};
|
108
90
|
|
91
|
+
// Add form support to the global features registry so that Web Components can find and use it
|
109
92
|
(0, _FeaturesRegistry.registerFeature)("FormSupport", FormSupport);
|
110
93
|
var _default = FormSupport;
|
111
94
|
_exports.default = _default;
|