@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
@@ -21,27 +21,27 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
21
21
|
_CheckBox = _interopRequireDefault(_CheckBox);
|
22
22
|
_TableTemplate = _interopRequireDefault(_TableTemplate);
|
23
23
|
_Table = _interopRequireDefault(_Table);
|
24
|
-
|
25
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
26
|
-
|
27
25
|
// Ensure the dependency as it is being used in the renderer
|
26
|
+
|
28
27
|
// Texts
|
28
|
+
|
29
29
|
// Template
|
30
|
+
|
30
31
|
// Styles
|
32
|
+
|
31
33
|
const GROWING_WITH_SCROLL_DEBOUNCE_RATE = 250; // ms
|
32
34
|
|
33
35
|
const PAGE_UP_DOWN_SIZE = 20;
|
36
|
+
|
34
37
|
/**
|
35
38
|
* @public
|
36
39
|
*/
|
37
|
-
|
38
40
|
const metadata = {
|
39
41
|
tag: "ui5-table",
|
40
42
|
managedSlots: true,
|
41
43
|
fastNavigation: true,
|
42
|
-
slots:
|
43
|
-
/** @lends sap.ui.webcomponents.main.Table.prototype */
|
44
|
-
{
|
44
|
+
slots: /** @lends sap.ui.webcomponents.main.Table.prototype */{
|
45
45
|
/**
|
46
46
|
* Defines the component rows.
|
47
47
|
* <br><br>
|
@@ -57,7 +57,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
57
57
|
individualSlots: true,
|
58
58
|
invalidateOnChildChange: true
|
59
59
|
},
|
60
|
-
|
61
60
|
/**
|
62
61
|
* Defines the configuration for the columns of the component.
|
63
62
|
* <br><br>
|
@@ -76,9 +75,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
76
75
|
}
|
77
76
|
}
|
78
77
|
},
|
79
|
-
properties:
|
80
|
-
/** @lends sap.ui.webcomponents.main.Table.prototype */
|
81
|
-
{
|
78
|
+
properties: /** @lends sap.ui.webcomponents.main.Table.prototype */{
|
82
79
|
/**
|
83
80
|
* Defines the text that will be displayed when there is no data and <code>hideNoData</code> is not present.
|
84
81
|
*
|
@@ -89,7 +86,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
89
86
|
noDataText: {
|
90
87
|
type: String
|
91
88
|
},
|
92
|
-
|
93
89
|
/**
|
94
90
|
* Defines the text that will be displayed inside the growing button at the bottom of the table,
|
95
91
|
* meant for loading more rows upon press.
|
@@ -107,7 +103,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
107
103
|
growingButtonText: {
|
108
104
|
type: String
|
109
105
|
},
|
110
|
-
|
111
106
|
/**
|
112
107
|
* Defines the subtext that will be displayed under the <code>growingButtonText</code>.
|
113
108
|
*
|
@@ -122,7 +117,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
122
117
|
growingButtonSubtext: {
|
123
118
|
type: String
|
124
119
|
},
|
125
|
-
|
126
120
|
/**
|
127
121
|
* Defines if the value of <code>noDataText</code> will be diplayed when there is no rows present in the table.
|
128
122
|
*
|
@@ -134,7 +128,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
134
128
|
hideNoData: {
|
135
129
|
type: Boolean
|
136
130
|
},
|
137
|
-
|
138
131
|
/**
|
139
132
|
* Defines whether the table will have growing capability either by pressing a <code>More</code> button,
|
140
133
|
* or via user scroll. In both cases <code>load-more</code> event is fired.
|
@@ -160,7 +153,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
160
153
|
type: _TableGrowingMode.default,
|
161
154
|
defaultValue: _TableGrowingMode.default.None
|
162
155
|
},
|
163
|
-
|
164
156
|
/**
|
165
157
|
* Defines if the table is in busy state.
|
166
158
|
* <b>
|
@@ -175,7 +167,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
175
167
|
busy: {
|
176
168
|
type: Boolean
|
177
169
|
},
|
178
|
-
|
179
170
|
/**
|
180
171
|
* Defines the delay in milliseconds, after which the busy indicator will show up for this component.
|
181
172
|
*
|
@@ -187,7 +178,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
187
178
|
type: _Integer.default,
|
188
179
|
defaultValue: 1000
|
189
180
|
},
|
190
|
-
|
191
181
|
/**
|
192
182
|
* Determines whether the column headers remain fixed at the top of the page during
|
193
183
|
* vertical scrolling as long as the Web Component is in the viewport.
|
@@ -217,7 +207,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
217
207
|
stickyColumnHeader: {
|
218
208
|
type: Boolean
|
219
209
|
},
|
220
|
-
|
221
210
|
/**
|
222
211
|
* Defines the mode of the component.
|
223
212
|
* <br><br>
|
@@ -236,7 +225,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
236
225
|
type: _TableMode.default,
|
237
226
|
defaultValue: _TableMode.default.None
|
238
227
|
},
|
239
|
-
|
240
228
|
/**
|
241
229
|
* Defines the accessible aria name of the component.
|
242
230
|
*
|
@@ -249,7 +237,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
249
237
|
type: String,
|
250
238
|
defaultValue: undefined
|
251
239
|
},
|
252
|
-
|
253
240
|
/**
|
254
241
|
* Receives id(or many ids) of the elements that label the component.
|
255
242
|
*
|
@@ -269,7 +256,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
269
256
|
_noDataDisplayed: {
|
270
257
|
type: Boolean
|
271
258
|
},
|
272
|
-
|
273
259
|
/**
|
274
260
|
* Defines the active state of the <code>More</code> button.
|
275
261
|
* @private
|
@@ -277,7 +263,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
277
263
|
_loadMoreActive: {
|
278
264
|
type: Boolean
|
279
265
|
},
|
280
|
-
|
281
266
|
/**
|
282
267
|
* Used to represent the table column header for the purpose of the item navigation as it does not work with DOM objects directly
|
283
268
|
* @private
|
@@ -285,7 +270,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
285
270
|
_columnHeader: {
|
286
271
|
type: Object
|
287
272
|
},
|
288
|
-
|
289
273
|
/**
|
290
274
|
* Defines if the entire table is in view port.
|
291
275
|
* @private
|
@@ -293,7 +277,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
293
277
|
_inViewport: {
|
294
278
|
type: Boolean
|
295
279
|
},
|
296
|
-
|
297
280
|
/**
|
298
281
|
* Defines whether all rows are selected or not when table is in MultiSelect mode.
|
299
282
|
* @type {boolean}
|
@@ -305,9 +288,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
305
288
|
type: Boolean
|
306
289
|
}
|
307
290
|
},
|
308
|
-
events:
|
309
|
-
/** @lends sap.ui.webcomponents.main.Table.prototype */
|
310
|
-
{
|
291
|
+
events: /** @lends sap.ui.webcomponents.main.Table.prototype */{
|
311
292
|
/**
|
312
293
|
* Fired when a row in <code>Active</code> mode is clicked or <code>Enter</code> key is pressed.
|
313
294
|
*
|
@@ -322,7 +303,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
322
303
|
}
|
323
304
|
}
|
324
305
|
},
|
325
|
-
|
326
306
|
/**
|
327
307
|
* Fired when <code>ui5-table-column</code> is shown as a pop-in instead of hiding it.
|
328
308
|
*
|
@@ -336,7 +316,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
336
316
|
poppedColumns: {}
|
337
317
|
}
|
338
318
|
},
|
339
|
-
|
340
319
|
/**
|
341
320
|
* Fired when the user presses the <code>More</code> button or scrolls to the table's end.
|
342
321
|
* <br><br>
|
@@ -347,7 +326,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
347
326
|
* @since 1.0.0-rc.11
|
348
327
|
*/
|
349
328
|
"load-more": {},
|
350
|
-
|
351
329
|
/**
|
352
330
|
* Fired when selection is changed by user interaction
|
353
331
|
* in <code>SingleSelect</code> and <code>MultiSelect</code> modes.
|
@@ -370,6 +348,7 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
370
348
|
}
|
371
349
|
}
|
372
350
|
};
|
351
|
+
|
373
352
|
/**
|
374
353
|
* @class
|
375
354
|
*
|
@@ -440,35 +419,29 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
440
419
|
* @appenddocs TableColumn TableRow TableGroupRow TableCell
|
441
420
|
* @public
|
442
421
|
*/
|
443
|
-
|
444
422
|
class Table extends _UI5Element.default {
|
445
423
|
static get metadata() {
|
446
424
|
return metadata;
|
447
425
|
}
|
448
|
-
|
449
426
|
static get styles() {
|
450
427
|
return _Table.default;
|
451
428
|
}
|
452
|
-
|
453
429
|
static get render() {
|
454
430
|
return _LitRenderer.default;
|
455
431
|
}
|
456
|
-
|
457
432
|
static get template() {
|
458
433
|
return _TableTemplate.default;
|
459
434
|
}
|
460
|
-
|
461
435
|
static get dependencies() {
|
462
436
|
return [_BusyIndicator.default, _CheckBox.default];
|
463
437
|
}
|
464
|
-
|
465
438
|
static async onDefine() {
|
466
439
|
Table.i18nBundle = await (0, _i18nBundle.getI18nBundle)("@ui5/webcomponents");
|
467
440
|
}
|
468
|
-
|
469
441
|
constructor() {
|
470
|
-
super();
|
442
|
+
super();
|
471
443
|
|
444
|
+
// The ItemNavigation requires each item to 1) have a "_tabIndex" property and 2) be either a UI5Element, or have an id property (to find it in the component's shadow DOM by)
|
472
445
|
this._columnHeader = {
|
473
446
|
id: `${this._id}-columnHeader`,
|
474
447
|
_tabIndex: "0"
|
@@ -485,15 +458,17 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
485
458
|
this.tableEndObserved = false;
|
486
459
|
this.addEventListener("ui5-selection-requested", this._handleSelect.bind(this));
|
487
460
|
this.addEventListener("ui5-_forward-after", this._onForwardAfter.bind(this));
|
488
|
-
this.addEventListener("ui5-_forward-before", this._onForwardBefore.bind(this));
|
461
|
+
this.addEventListener("ui5-_forward-before", this._onForwardBefore.bind(this));
|
489
462
|
|
490
|
-
|
463
|
+
// Stores the last focused element within the table.
|
464
|
+
this.lastFocusedElement = null;
|
491
465
|
|
492
|
-
|
466
|
+
// Indicates whether the table is forwarding focus before or after the current table row.
|
467
|
+
this._forwardingFocus = false;
|
493
468
|
|
469
|
+
// Stores the last focused nested element index (within a table row) for F7 navigation.
|
494
470
|
this._prevNestedElementIndex = 0;
|
495
471
|
}
|
496
|
-
|
497
472
|
onBeforeRendering() {
|
498
473
|
const columnSettings = this.getColumnPropagationSettings();
|
499
474
|
const columnSettingsString = JSON.stringify(columnSettings);
|
@@ -504,7 +479,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
504
479
|
row._columnsInfo = columnSettings;
|
505
480
|
row._columnsInfoString = JSON.stringify(row._columnsInfo);
|
506
481
|
}
|
507
|
-
|
508
482
|
row._ariaPosition = Table.i18nBundle.getText(_i18nDefaults.TABLE_ROW_POSITION, index + 1, rowsCount);
|
509
483
|
row._busy = this.busy;
|
510
484
|
row.removeEventListener("ui5-_focused", this.fnOnRowFocused);
|
@@ -518,111 +492,81 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
518
492
|
});
|
519
493
|
this._noDataDisplayed = !this.rows.length && !this.hideNoData;
|
520
494
|
this.visibleColumnsCount = this.visibleColumns.length;
|
521
|
-
|
522
495
|
if (this.isMultiSelect) {
|
523
496
|
// we have to count the selection column as well
|
524
497
|
this.visibleColumnsCount += 1;
|
525
498
|
}
|
526
|
-
|
527
499
|
this._allRowsSelected = selectedRows.length === this.rows.length;
|
528
500
|
this._prevFocusedRow = this._prevFocusedRow || this.rows[0];
|
529
501
|
}
|
530
|
-
|
531
502
|
onAfterRendering() {
|
532
503
|
if (this.growsOnScroll) {
|
533
504
|
this.observeTableEnd();
|
534
505
|
}
|
535
|
-
|
536
506
|
this.checkTableInViewport();
|
537
507
|
}
|
538
|
-
|
539
508
|
onEnterDOM() {
|
540
509
|
this.growingIntersectionObserver = this.getIntersectionObserver();
|
541
|
-
|
542
510
|
_ResizeHandler.default.register(this.getDomRef(), this._handleResize);
|
543
|
-
|
544
511
|
this._itemNavigation.setCurrentItem(this.rows.length ? this.rows[0] : this._columnHeader);
|
545
512
|
}
|
546
|
-
|
547
513
|
onExitDOM() {
|
548
514
|
_ResizeHandler.default.deregister(this.getDomRef(), this._handleResize);
|
549
|
-
|
550
515
|
this.growingIntersectionObserver.disconnect();
|
551
516
|
this.growingIntersectionObserver = null;
|
552
517
|
this.tableEndObserved = false;
|
553
518
|
}
|
554
|
-
|
555
519
|
_onkeydown(event) {
|
556
520
|
if ((0, _Keys.isTabNext)(event) || (0, _Keys.isTabPrevious)(event)) {
|
557
521
|
this._handleTab(event);
|
558
522
|
}
|
559
|
-
|
560
523
|
if ((0, _Keys.isCtrlA)(event)) {
|
561
524
|
event.preventDefault();
|
562
525
|
this.isMultiSelect && this._selectAll(event);
|
563
526
|
}
|
564
|
-
|
565
527
|
if ((0, _Keys.isUpAlt)(event) || (0, _Keys.isDownAlt)(event)) {
|
566
528
|
this._handleArrowAlt(event);
|
567
529
|
}
|
568
|
-
|
569
530
|
if (((0, _Keys.isUpShift)(event) || (0, _Keys.isDownShift)(event)) && this.isMultiSelect) {
|
570
531
|
this._handleArrowNav(event);
|
571
532
|
}
|
572
|
-
|
573
533
|
if ((0, _Keys.isHomeCtrl)(event)) {
|
574
534
|
event.preventDefault();
|
575
|
-
|
576
535
|
this._itemNavigation._handleHome(event);
|
577
|
-
|
578
536
|
this._itemNavigation._applyTabIndex();
|
579
|
-
|
580
537
|
this._itemNavigation._focusCurrentItem();
|
581
538
|
}
|
582
|
-
|
583
539
|
if ((0, _Keys.isEndCtrl)(event)) {
|
584
540
|
event.preventDefault();
|
585
|
-
|
586
541
|
this._itemNavigation._handleEnd(event);
|
587
|
-
|
588
542
|
this._itemNavigation._applyTabIndex();
|
589
|
-
|
590
543
|
this._itemNavigation._focusCurrentItem();
|
591
544
|
}
|
592
|
-
|
593
545
|
if (((0, _Keys.isHomeShift)(event) || (0, _Keys.isEndShift)(event)) && this.isMultiSelect) {
|
594
546
|
this._handleHomeEndSelection(event);
|
595
547
|
}
|
596
548
|
}
|
597
|
-
|
598
549
|
_handleTab(event) {
|
599
550
|
const isNext = (0, _Keys.isTabNext)(event);
|
600
551
|
const target = (0, _getNormalizedTarget.default)(event.target);
|
601
552
|
const targetType = this.getFocusedElementType(event.target);
|
602
|
-
|
603
553
|
if (this.columnHeaderTabbables.includes(target)) {
|
604
554
|
if (isNext && this.columnHeaderLastElement === target) {
|
605
555
|
return this._focusNextElement(event);
|
606
556
|
}
|
607
|
-
|
608
557
|
return;
|
609
558
|
}
|
610
|
-
|
611
559
|
if (isNext && targetType === "columnHeader" && !this.columnHeaderTabbables.length) {
|
612
560
|
return this._focusNextElement(event);
|
613
561
|
}
|
614
|
-
|
615
562
|
if (targetType === "tableRow" || !targetType) {
|
616
563
|
return;
|
617
564
|
}
|
618
|
-
|
619
565
|
switch (targetType) {
|
620
566
|
case "tableGroupRow":
|
621
567
|
return isNext ? this._focusNextElement(event) : this._focusForwardElement(event, false);
|
622
|
-
|
623
568
|
case "columnHeader":
|
624
569
|
return !isNext && this._focusForwardElement(event, false);
|
625
|
-
|
626
570
|
case "moreButton":
|
627
571
|
if (isNext) {
|
628
572
|
this._focusForwardElement(event, true);
|
@@ -630,10 +574,8 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
630
574
|
event.preventDefault();
|
631
575
|
this.currentElement.focus();
|
632
576
|
}
|
633
|
-
|
634
577
|
}
|
635
578
|
}
|
636
|
-
|
637
579
|
_focusNextElement(event) {
|
638
580
|
if (!this.growsWithButton) {
|
639
581
|
this._focusForwardElement(event, true);
|
@@ -641,14 +583,11 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
641
583
|
this.morеBtn.focus();
|
642
584
|
}
|
643
585
|
}
|
644
|
-
|
645
586
|
_handleArrowNav(event) {
|
646
587
|
const isRowFocused = this.currentElement.localName === "tr";
|
647
|
-
|
648
588
|
if (!isRowFocused) {
|
649
589
|
return;
|
650
590
|
}
|
651
|
-
|
652
591
|
const previouslySelectedRows = this.selectedRows;
|
653
592
|
const currentItem = this.currentItem;
|
654
593
|
const currentItemIdx = this.currentItemIdx;
|
@@ -657,83 +596,69 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
657
596
|
const prevItem = this.rows[prevItemIdx];
|
658
597
|
const nextItem = this.rows[nextItemIdx];
|
659
598
|
const wasSelected = currentItem.selected;
|
660
|
-
|
661
599
|
if ((0, _Keys.isUpShift)(event) && !prevItem || (0, _Keys.isDownShift)(event) && !nextItem) {
|
662
600
|
return;
|
663
601
|
}
|
664
|
-
|
665
602
|
if ((0, _Keys.isUpShift)(event)) {
|
666
603
|
currentItem.selected = currentItem.selected && !prevItem.selected;
|
667
604
|
prevItem.selected = currentItem.selected || wasSelected && !currentItem.selected;
|
668
605
|
prevItem.focus();
|
669
606
|
}
|
670
|
-
|
671
607
|
if ((0, _Keys.isDownShift)(event)) {
|
672
608
|
currentItem.selected = currentItem.selected && !nextItem.selected;
|
673
609
|
nextItem.selected = currentItem.selected || wasSelected && !currentItem.selected;
|
674
610
|
nextItem.focus();
|
675
611
|
}
|
676
|
-
|
677
612
|
const selectedRows = this.selectedRows;
|
678
613
|
this.fireEvent("selection-change", {
|
679
614
|
selectedRows,
|
680
615
|
previouslySelectedRows
|
681
616
|
});
|
682
617
|
}
|
683
|
-
|
684
618
|
_handleHomeEndSelection(event) {
|
685
619
|
const isRowFocused = this.currentElement.localName === "tr";
|
686
|
-
|
687
620
|
if (!isRowFocused) {
|
688
621
|
return;
|
689
622
|
}
|
690
|
-
|
691
623
|
const rows = this.rows;
|
692
624
|
const previouslySelectedRows = this.selectedRows;
|
693
625
|
const currentItemIdx = this.currentItemIdx;
|
694
|
-
|
695
626
|
if ((0, _Keys.isHomeShift)(event)) {
|
696
627
|
rows.slice(0, currentItemIdx + 1).forEach(item => {
|
697
628
|
item.selected = true;
|
698
629
|
});
|
699
630
|
rows[0].focus();
|
700
631
|
}
|
701
|
-
|
702
632
|
if ((0, _Keys.isEndShift)(event)) {
|
703
633
|
rows.slice(currentItemIdx).forEach(item => {
|
704
634
|
item.selected = true;
|
705
635
|
});
|
706
636
|
rows[rows.length - 1].focus();
|
707
637
|
}
|
708
|
-
|
709
638
|
const selectedRows = this.selectedRows;
|
710
639
|
this.fireEvent("selection-change", {
|
711
640
|
selectedRows,
|
712
641
|
previouslySelectedRows
|
713
642
|
});
|
714
643
|
}
|
644
|
+
|
715
645
|
/**
|
716
646
|
* Handles Alt + Up/Down.
|
717
647
|
* Switches focus between column header, last focused item, and "More" button (if applicable).
|
718
648
|
* @private
|
719
649
|
* @param {CustomEvent} event
|
720
650
|
*/
|
721
|
-
|
722
|
-
|
723
651
|
_handleArrowAlt(event) {
|
724
652
|
const shouldMoveUp = (0, _Keys.isUpAlt)(event);
|
725
653
|
const focusedElementType = this.getFocusedElementType(event.target);
|
726
|
-
|
727
654
|
if (shouldMoveUp) {
|
728
655
|
switch (focusedElementType) {
|
729
656
|
case "tableRow":
|
730
657
|
case "tableGroupRow":
|
731
658
|
this._prevFocusedRow = event.target;
|
732
659
|
return this._onColumnHeaderClick(event);
|
733
|
-
|
734
660
|
case "columnHeader":
|
735
661
|
return this.morеBtn ? this.morеBtn.focus() : this._prevFocusedRow.focus();
|
736
|
-
|
737
662
|
case "moreButton":
|
738
663
|
return this._prevFocusedRow ? this._prevFocusedRow.focus() : this._onColumnHeaderClick(event);
|
739
664
|
}
|
@@ -743,62 +668,52 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
743
668
|
case "tableGroupRow":
|
744
669
|
this._prevFocusedRow = event.target;
|
745
670
|
return this.morеBtn ? this.morеBtn.focus() : this._onColumnHeaderClick(event);
|
746
|
-
|
747
671
|
case "columnHeader":
|
748
672
|
if (this._prevFocusedRow) {
|
749
673
|
this._prevFocusedRow.focus();
|
750
674
|
} else if (this.morеBtn) {
|
751
675
|
this.morеBtn.focus();
|
752
676
|
}
|
753
|
-
|
754
677
|
return;
|
755
|
-
|
756
678
|
case "moreButton":
|
757
679
|
return this._onColumnHeaderClick(event);
|
758
680
|
}
|
759
681
|
}
|
760
682
|
}
|
683
|
+
|
761
684
|
/**
|
762
685
|
* Determines the type of the currently focused element.
|
763
686
|
* @private
|
764
687
|
* @param {object} element The DOM element
|
765
688
|
* @returns {("columnHeader"|"tableRow"|"tableGroupRow"|"moreButton")} A string identifier
|
766
689
|
*/
|
767
|
-
|
768
|
-
|
769
690
|
getFocusedElementType(element) {
|
770
691
|
if (element === this.columnHeader) {
|
771
692
|
return "columnHeader";
|
772
693
|
}
|
773
|
-
|
774
694
|
if (element === this.morеBtn) {
|
775
695
|
return "moreButton";
|
776
696
|
}
|
777
|
-
|
778
697
|
if (this.rows.includes(element)) {
|
779
698
|
const isGroupRow = element.hasAttribute("ui5-table-group-row");
|
780
699
|
return isGroupRow ? "tableGroupRow" : "tableRow";
|
781
700
|
}
|
782
701
|
}
|
702
|
+
|
783
703
|
/**
|
784
704
|
* Toggles focus between the table row's root and the last focused nested element.
|
785
705
|
* @private
|
786
706
|
* @param {CustomEvent} event "ui5-f7-pressed"
|
787
707
|
*/
|
788
|
-
|
789
|
-
|
790
708
|
_handleF7(event) {
|
791
709
|
const row = event.detail.row;
|
792
710
|
row._tabbables = (0, _TabbableElements.getTabbableElements)(row);
|
793
711
|
const activeElement = (0, _getActiveElement.default)();
|
794
712
|
const lastFocusedElement = row._tabbables[this._prevNestedElementIndex] || row._tabbables[0];
|
795
|
-
|
796
713
|
const targetIndex = row._tabbables.indexOf(activeElement);
|
797
|
-
|
798
714
|
if (!row._tabbables.length) {
|
799
715
|
return;
|
800
716
|
}
|
801
|
-
|
802
717
|
if (activeElement === row.root) {
|
803
718
|
lastFocusedElement.focus();
|
804
719
|
} else if (targetIndex > -1) {
|
@@ -806,148 +721,112 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
806
721
|
row.root.focus();
|
807
722
|
}
|
808
723
|
}
|
809
|
-
|
810
724
|
_onfocusin(event) {
|
811
725
|
const target = (0, _getNormalizedTarget.default)(event.target);
|
812
|
-
|
813
726
|
if (!this._isForwardElement(target)) {
|
814
727
|
this.lastFocusedElement = target;
|
815
728
|
return;
|
816
729
|
}
|
817
|
-
|
818
730
|
if (!this._forwardingFocus) {
|
819
731
|
if (this.lastFocusedElement) {
|
820
732
|
this.lastFocusedElement.focus();
|
821
733
|
} else {
|
822
734
|
this.currentElement.focus();
|
823
735
|
}
|
824
|
-
|
825
736
|
event.stopImmediatePropagation();
|
826
737
|
}
|
827
|
-
|
828
738
|
this._forwardingFocus = false;
|
829
739
|
}
|
830
|
-
|
831
740
|
_onForwardBefore(event) {
|
832
741
|
this.lastFocusedElement = event.detail.target;
|
833
|
-
|
834
742
|
this._focusForwardElement(event, false);
|
835
|
-
|
836
743
|
event.stopImmediatePropagation();
|
837
744
|
}
|
838
|
-
|
839
745
|
_onForwardAfter(event) {
|
840
746
|
this.lastFocusedElement = event.detail.target;
|
841
|
-
|
842
747
|
if (!this.growsWithButton) {
|
843
748
|
this._focusForwardElement(event, true);
|
844
749
|
} else {
|
845
750
|
this.morеBtn.focus();
|
846
751
|
}
|
847
752
|
}
|
848
|
-
|
849
753
|
_focusForwardElement(event, isAfter) {
|
850
754
|
this._forwardingFocus = true;
|
851
755
|
this.shadowRoot.querySelector(`#${this._id}-${isAfter ? "after" : "before"}`).focus();
|
852
756
|
}
|
853
|
-
|
854
757
|
_isForwardElement(node) {
|
855
758
|
const nodeId = node.id;
|
856
|
-
|
857
759
|
const afterElement = this._getForwardElement(true);
|
858
|
-
|
859
760
|
const beforeElement = this._getForwardElement(false);
|
860
|
-
|
861
761
|
if (this._id === nodeId || beforeElement && beforeElement.id === nodeId) {
|
862
762
|
return true;
|
863
763
|
}
|
864
|
-
|
865
764
|
return afterElement && afterElement.id === nodeId;
|
866
765
|
}
|
867
|
-
|
868
766
|
_getForwardElement(isAfter) {
|
869
767
|
const dir = isAfter ? "after" : "before";
|
870
|
-
|
871
768
|
if (!this[`_${dir}Element`]) {
|
872
769
|
this[`_${dir}Element`] = this.shadowRoot.querySelector(`#${this._id}-${dir}`);
|
873
770
|
}
|
874
|
-
|
875
771
|
return this[`_${dir}Element`];
|
876
772
|
}
|
877
|
-
|
878
773
|
onRowFocused(event) {
|
879
774
|
this._itemNavigation.setCurrentItem(event.target);
|
880
775
|
}
|
881
|
-
|
882
776
|
_onColumnHeaderFocused(event) {
|
883
777
|
this._itemNavigation.setCurrentItem(this._columnHeader);
|
884
778
|
}
|
885
|
-
|
886
779
|
_onColumnHeaderClick(event) {
|
887
780
|
if (!event.target) {
|
888
781
|
this.columnHeader.focus();
|
889
782
|
}
|
890
|
-
|
891
783
|
const target = (0, _getNormalizedTarget.default)(event.target);
|
892
784
|
const isNestedElement = this.columnHeaderTabbables.includes(target);
|
893
|
-
|
894
785
|
if (!isNestedElement) {
|
895
786
|
this.columnHeader.focus();
|
896
787
|
}
|
897
788
|
}
|
898
|
-
|
899
789
|
_onColumnHeaderKeydown(event) {
|
900
790
|
if ((0, _Keys.isSpace)(event)) {
|
901
791
|
event.preventDefault();
|
902
792
|
this.isMultiSelect && this._selectAll();
|
903
793
|
}
|
904
794
|
}
|
905
|
-
|
906
795
|
_onLoadMoreKeydown(event) {
|
907
796
|
if ((0, _Keys.isSpace)(event)) {
|
908
797
|
event.preventDefault();
|
909
798
|
this._loadMoreActive = true;
|
910
799
|
}
|
911
|
-
|
912
800
|
if ((0, _Keys.isEnter)(event)) {
|
913
801
|
this._onLoadMoreClick();
|
914
|
-
|
915
802
|
this._loadMoreActive = true;
|
916
803
|
}
|
917
804
|
}
|
918
|
-
|
919
805
|
_onLoadMoreKeyup(event) {
|
920
806
|
if ((0, _Keys.isSpace)(event)) {
|
921
807
|
this._onLoadMoreClick();
|
922
808
|
}
|
923
|
-
|
924
809
|
this._loadMoreActive = false;
|
925
810
|
}
|
926
|
-
|
927
811
|
_onLoadMoreClick() {
|
928
812
|
this.fireEvent("load-more");
|
929
813
|
}
|
930
|
-
|
931
814
|
observeTableEnd() {
|
932
815
|
if (!this.tableEndObserved) {
|
933
816
|
this.getIntersectionObserver().observe(this.tableEndDOM);
|
934
817
|
this.tableEndObserved = true;
|
935
818
|
}
|
936
819
|
}
|
937
|
-
|
938
820
|
onInteresection(entries) {
|
939
821
|
if (entries.some(entry => entry.isIntersecting)) {
|
940
822
|
(0, _debounce.default)(this.loadMore.bind(this), GROWING_WITH_SCROLL_DEBOUNCE_RATE);
|
941
823
|
}
|
942
824
|
}
|
943
|
-
|
944
825
|
loadMore() {
|
945
826
|
this.fireEvent("load-more");
|
946
827
|
}
|
947
|
-
|
948
828
|
_handleSingleSelect(event) {
|
949
829
|
const row = this.getRowParent(event.target);
|
950
|
-
|
951
830
|
if (!row.selected) {
|
952
831
|
const previouslySelectedRows = this.selectedRows;
|
953
832
|
this.rows.forEach(item => {
|
@@ -962,29 +841,24 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
962
841
|
});
|
963
842
|
}
|
964
843
|
}
|
965
|
-
|
966
844
|
_handleMultiSelect(event) {
|
967
845
|
const row = this.getRowParent(event.target);
|
968
846
|
const previouslySelectedRows = this.selectedRows;
|
969
847
|
row.selected = !row.selected;
|
970
848
|
const selectedRows = this.selectedRows;
|
971
|
-
|
972
849
|
if (selectedRows.length === this.rows.length) {
|
973
850
|
this._allRowsSelected = true;
|
974
851
|
} else {
|
975
852
|
this._allRowsSelected = false;
|
976
853
|
}
|
977
|
-
|
978
854
|
this.fireEvent("selection-change", {
|
979
855
|
selectedRows,
|
980
856
|
previouslySelectedRows
|
981
857
|
});
|
982
858
|
}
|
983
|
-
|
984
859
|
_handleSelect(event) {
|
985
860
|
this[`_handle${this.mode}`](event);
|
986
861
|
}
|
987
|
-
|
988
862
|
_selectAll(event) {
|
989
863
|
const bAllSelected = !this._allRowsSelected;
|
990
864
|
const previouslySelectedRows = this.rows.filter(row => row.selected);
|
@@ -998,44 +872,36 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
998
872
|
previouslySelectedRows
|
999
873
|
});
|
1000
874
|
}
|
1001
|
-
|
1002
875
|
getRowParent(child) {
|
1003
876
|
const parent = child.parentElement;
|
1004
|
-
|
1005
877
|
if (child.hasAttribute("ui5-table-row")) {
|
1006
878
|
return child;
|
1007
879
|
}
|
1008
|
-
|
1009
880
|
if (parent && parent.hasAttribute("ui5-table-row")) {
|
1010
881
|
return parent;
|
1011
882
|
}
|
1012
|
-
|
1013
883
|
this.getRowParent(parent);
|
1014
884
|
}
|
1015
|
-
|
1016
885
|
get columnHeader() {
|
1017
886
|
return this.getDomRef() && this.getDomRef().querySelector(`#${this._id}-columnHeader`);
|
1018
887
|
}
|
1019
|
-
|
1020
888
|
get morеBtn() {
|
1021
889
|
return this.growsWithButton && this.getDomRef() && this.getDomRef().querySelector(`#${this._id}-growingButton`);
|
1022
890
|
}
|
1023
|
-
|
1024
891
|
handleResize(event) {
|
1025
892
|
this.checkTableInViewport();
|
1026
893
|
this.popinContent(event);
|
1027
894
|
}
|
1028
|
-
|
1029
895
|
checkTableInViewport() {
|
1030
896
|
this._inViewport = (0, _isElementInView.default)(this.getDomRef());
|
1031
897
|
}
|
1032
|
-
|
1033
898
|
popinContent(_event) {
|
1034
899
|
const clientRect = this.getDomRef().getBoundingClientRect();
|
1035
900
|
const tableWidth = clientRect.width;
|
1036
901
|
const hiddenColumns = [];
|
1037
|
-
const visibleColumnsIndexes = [];
|
902
|
+
const visibleColumnsIndexes = [];
|
1038
903
|
|
904
|
+
// store the hidden columns
|
1039
905
|
this.columns.forEach((column, index) => {
|
1040
906
|
if (tableWidth < column.minWidth && column.minWidth !== Infinity) {
|
1041
907
|
hiddenColumns[index] = {
|
@@ -1047,19 +913,16 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
1047
913
|
visibleColumnsIndexes.push(index);
|
1048
914
|
}
|
1049
915
|
});
|
1050
|
-
|
1051
916
|
if (visibleColumnsIndexes.length) {
|
1052
917
|
if (!this.isMultiSelect) {
|
1053
918
|
this.columns[visibleColumnsIndexes[0]].first = true;
|
1054
919
|
}
|
1055
|
-
|
1056
920
|
this.columns[visibleColumnsIndexes[visibleColumnsIndexes.length - 1]].last = true;
|
1057
|
-
}
|
1058
|
-
|
921
|
+
}
|
1059
922
|
|
923
|
+
// invalidate only if hidden columns count has changed
|
1060
924
|
if (this._hiddenColumns.length !== hiddenColumns.length) {
|
1061
925
|
this._hiddenColumns = hiddenColumns;
|
1062
|
-
|
1063
926
|
if (hiddenColumns.length) {
|
1064
927
|
this.fireEvent("popin-change", {
|
1065
928
|
poppedColumns: this._hiddenColumns
|
@@ -1067,14 +930,13 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
1067
930
|
}
|
1068
931
|
}
|
1069
932
|
}
|
933
|
+
|
1070
934
|
/**
|
1071
935
|
* Gets settings to be propagated from columns to rows.
|
1072
936
|
*
|
1073
937
|
* @returns {object}
|
1074
938
|
* @memberof Table
|
1075
939
|
*/
|
1076
|
-
|
1077
|
-
|
1078
940
|
getColumnPropagationSettings() {
|
1079
941
|
return this.columns.map((column, index) => {
|
1080
942
|
return {
|
@@ -1087,7 +949,6 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
1087
949
|
};
|
1088
950
|
}, this);
|
1089
951
|
}
|
1090
|
-
|
1091
952
|
getIntersectionObserver() {
|
1092
953
|
if (!this.growingIntersectionObserver) {
|
1093
954
|
this.growingIntersectionObserver = new IntersectionObserver(this.onInteresection.bind(this), {
|
@@ -1096,10 +957,8 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
1096
957
|
threshold: 1.0
|
1097
958
|
});
|
1098
959
|
}
|
1099
|
-
|
1100
960
|
return this.growingIntersectionObserver;
|
1101
961
|
}
|
1102
|
-
|
1103
962
|
get styles() {
|
1104
963
|
return {
|
1105
964
|
busy: {
|
@@ -1107,19 +966,15 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
1107
966
|
}
|
1108
967
|
};
|
1109
968
|
}
|
1110
|
-
|
1111
969
|
get growsWithButton() {
|
1112
970
|
return this.growing === _TableGrowingMode.default.Button;
|
1113
971
|
}
|
1114
|
-
|
1115
972
|
get growsOnScroll() {
|
1116
973
|
return this.growing === _TableGrowingMode.default.Scroll;
|
1117
974
|
}
|
1118
|
-
|
1119
975
|
get _growingButtonText() {
|
1120
976
|
return this.growingButtonText || Table.i18nBundle.getText(_i18nDefaults.LOAD_MORE_TEXT);
|
1121
977
|
}
|
1122
|
-
|
1123
978
|
get ariaLabelText() {
|
1124
979
|
const headerRowText = Table.i18nBundle.getText(_i18nDefaults.TABLE_HEADER_ROW_TEXT);
|
1125
980
|
const columnsTitle = this.columns.map(column => {
|
@@ -1127,61 +982,46 @@ sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/UI5Element", "sap/
|
|
1127
982
|
}).join(" ");
|
1128
983
|
return `${headerRowText} ${columnsTitle}`;
|
1129
984
|
}
|
1130
|
-
|
1131
985
|
get tableAriaLabelText() {
|
1132
986
|
return (0, _AriaLabelHelper.getEffectiveAriaLabelText)(this);
|
1133
987
|
}
|
1134
|
-
|
1135
988
|
get ariaLabelSelectAllText() {
|
1136
989
|
return Table.i18nBundle.getText(_i18nDefaults.ARIA_LABEL_SELECT_ALL_CHECKBOX);
|
1137
990
|
}
|
1138
|
-
|
1139
991
|
get loadMoreAriaLabelledBy() {
|
1140
992
|
if (this.moreDataText) {
|
1141
993
|
return `${this._id}-growingButton-text ${this._id}-growingButton-subtext`;
|
1142
994
|
}
|
1143
|
-
|
1144
995
|
return `${this._id}-growingButton-text`;
|
1145
996
|
}
|
1146
|
-
|
1147
997
|
get tableEndDOM() {
|
1148
998
|
return this.shadowRoot.querySelector(".ui5-table-end-marker");
|
1149
999
|
}
|
1150
|
-
|
1151
1000
|
get busyIndPosition() {
|
1152
1001
|
return this._inViewport ? "absolute" : "sticky";
|
1153
1002
|
}
|
1154
|
-
|
1155
1003
|
get isMultiSelect() {
|
1156
1004
|
return this.mode === "MultiSelect";
|
1157
1005
|
}
|
1158
|
-
|
1159
1006
|
get selectedRows() {
|
1160
1007
|
return this.rows.filter(row => row.selected);
|
1161
1008
|
}
|
1162
|
-
|
1163
1009
|
get currentItemIdx() {
|
1164
1010
|
return this.rows.indexOf(this.currentItem);
|
1165
1011
|
}
|
1166
|
-
|
1167
1012
|
get currentItem() {
|
1168
1013
|
return this.getRootNode().activeElement;
|
1169
1014
|
}
|
1170
|
-
|
1171
1015
|
get currentElement() {
|
1172
1016
|
return this._itemNavigation._getCurrentItem();
|
1173
1017
|
}
|
1174
|
-
|
1175
1018
|
get columnHeaderTabbables() {
|
1176
1019
|
return (0, _TabbableElements.getTabbableElements)(this.columnHeader);
|
1177
1020
|
}
|
1178
|
-
|
1179
1021
|
get columnHeaderLastElement() {
|
1180
1022
|
return (0, _TabbableElements.getLastTabbableElement)(this.columnHeader);
|
1181
1023
|
}
|
1182
|
-
|
1183
1024
|
}
|
1184
|
-
|
1185
1025
|
Table.define();
|
1186
1026
|
var _default = Table;
|
1187
1027
|
_exports.default = _default;
|