@ui5/webcomponents 2.0.0-rc.6 → 2.0.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/CHANGELOG.md +150 -0
- package/README.md +1 -4
- package/dist/.tsbuildinfo +1 -1
- package/dist/Avatar.d.ts +13 -18
- package/dist/Avatar.js +77 -17
- package/dist/Avatar.js.map +1 -1
- package/dist/AvatarGroup.d.ts +1 -1
- package/dist/AvatarGroup.js +21 -3
- package/dist/AvatarGroup.js.map +1 -1
- package/dist/Bar.d.ts +1 -1
- package/dist/Bar.js +7 -2
- package/dist/Bar.js.map +1 -1
- package/dist/Breadcrumbs.d.ts +1 -1
- package/dist/Breadcrumbs.js +25 -5
- package/dist/Breadcrumbs.js.map +1 -1
- package/dist/BreadcrumbsItem.d.ts +3 -3
- package/dist/BreadcrumbsItem.js +1 -1
- package/dist/BreadcrumbsItem.js.map +1 -1
- package/dist/BusyIndicator.d.ts +5 -5
- package/dist/BusyIndicator.js +33 -5
- package/dist/BusyIndicator.js.map +1 -1
- package/dist/Button.d.ts +9 -9
- package/dist/Button.js +107 -7
- package/dist/Button.js.map +1 -1
- package/dist/Calendar.d.ts +46 -7
- package/dist/Calendar.js +143 -16
- package/dist/Calendar.js.map +1 -1
- package/dist/CalendarDate.d.ts +1 -0
- package/dist/CalendarDate.js +11 -0
- package/dist/CalendarDate.js.map +1 -1
- package/dist/CalendarDateRange.d.ts +1 -0
- package/dist/CalendarDateRange.js +18 -0
- package/dist/CalendarDateRange.js.map +1 -1
- package/dist/CalendarLegend.js +24 -0
- package/dist/CalendarLegend.js.map +1 -1
- package/dist/CalendarLegendItem.d.ts +2 -2
- package/dist/CalendarLegendItem.js +16 -2
- package/dist/CalendarLegendItem.js.map +1 -1
- package/dist/CalendarPart.js +1 -2
- package/dist/CalendarPart.js.map +1 -1
- package/dist/Card.d.ts +4 -4
- package/dist/Card.js.map +1 -1
- package/dist/CardHeader.d.ts +6 -6
- package/dist/CardHeader.js +20 -2
- package/dist/CardHeader.js.map +1 -1
- package/dist/Carousel.d.ts +9 -9
- package/dist/Carousel.js +104 -14
- package/dist/Carousel.js.map +1 -1
- package/dist/CheckBox.d.ts +9 -9
- package/dist/CheckBox.js +85 -3
- package/dist/CheckBox.js.map +1 -1
- package/dist/ColorPalette.d.ts +2 -4
- package/dist/ColorPalette.js +34 -17
- package/dist/ColorPalette.js.map +1 -1
- package/dist/ColorPaletteItem.d.ts +3 -3
- package/dist/ColorPaletteItem.js +37 -5
- package/dist/ColorPaletteItem.js.map +1 -1
- package/dist/ColorPalettePopover.js +30 -4
- package/dist/ColorPalettePopover.js.map +1 -1
- package/dist/ColorPicker.d.ts +3 -3
- package/dist/ColorPicker.js +49 -8
- package/dist/ColorPicker.js.map +1 -1
- package/dist/ComboBox.d.ts +12 -11
- package/dist/ComboBox.js +108 -12
- package/dist/ComboBox.js.map +1 -1
- package/dist/ComboBoxItem.d.ts +4 -4
- package/dist/ComboBoxItem.js +18 -0
- package/dist/ComboBoxItem.js.map +1 -1
- package/dist/ComboBoxItemGroup.d.ts +2 -2
- package/dist/ComboBoxItemGroup.js +9 -1
- package/dist/ComboBoxItemGroup.js.map +1 -1
- package/dist/DateComponentBase.d.ts +3 -3
- package/dist/DateComponentBase.js +20 -3
- package/dist/DateComponentBase.js.map +1 -1
- package/dist/DatePicker.d.ts +7 -7
- package/dist/DatePicker.js +58 -4
- package/dist/DatePicker.js.map +1 -1
- package/dist/DateRangePicker.d.ts +2 -2
- package/dist/DateRangePicker.js +11 -4
- package/dist/DateRangePicker.js.map +1 -1
- package/dist/DateTimePicker.js +25 -2
- package/dist/DateTimePicker.js.map +1 -1
- package/dist/DayPicker.js +52 -18
- package/dist/DayPicker.js.map +1 -1
- package/dist/Dialog.d.ts +2 -2
- package/dist/Dialog.js +48 -2
- package/dist/Dialog.js.map +1 -1
- package/dist/DropIndicator.js +31 -4
- package/dist/DropIndicator.js.map +1 -1
- package/dist/FileUploader.d.ts +5 -5
- package/dist/FileUploader.js +43 -2
- package/dist/FileUploader.js.map +1 -1
- package/dist/Filters.js +2 -2
- package/dist/Filters.js.map +1 -1
- package/dist/Form.d.ts +5 -3
- package/dist/Form.js +65 -15
- package/dist/Form.js.map +1 -1
- package/dist/FormGroup.d.ts +4 -3
- package/dist/FormGroup.js +19 -11
- package/dist/FormGroup.js.map +1 -1
- package/dist/FormItem.d.ts +2 -1
- package/dist/FormItem.js +15 -5
- package/dist/FormItem.js.map +1 -1
- package/dist/Icon.d.ts +5 -5
- package/dist/Icon.js +38 -6
- package/dist/Icon.js.map +1 -1
- package/dist/Input.d.ts +34 -39
- package/dist/Input.js +197 -78
- package/dist/Input.js.map +1 -1
- package/dist/Label.d.ts +3 -3
- package/dist/Label.js +30 -2
- package/dist/Label.js.map +1 -1
- package/dist/Link.d.ts +19 -19
- package/dist/Link.js +59 -8
- package/dist/Link.js.map +1 -1
- package/dist/List.d.ts +17 -17
- package/dist/List.js +73 -12
- package/dist/List.js.map +1 -1
- package/dist/ListItem.d.ts +10 -4
- package/dist/ListItem.js +63 -6
- package/dist/ListItem.js.map +1 -1
- package/dist/ListItemBase.d.ts +3 -3
- package/dist/ListItemBase.js +41 -1
- package/dist/ListItemBase.js.map +1 -1
- package/dist/ListItemCustom.d.ts +2 -2
- package/dist/ListItemCustom.js +10 -0
- package/dist/ListItemCustom.js.map +1 -1
- package/dist/ListItemGroup.d.ts +4 -4
- package/dist/ListItemGroup.js +9 -1
- package/dist/ListItemGroup.js.map +1 -1
- package/dist/ListItemGroupHeader.d.ts +2 -2
- package/dist/ListItemGroupHeader.js.map +1 -1
- package/dist/ListItemStandard.d.ts +14 -24
- package/dist/ListItemStandard.js +48 -15
- package/dist/ListItemStandard.js.map +1 -1
- package/dist/Menu.d.ts +23 -9
- package/dist/Menu.js +49 -15
- package/dist/Menu.js.map +1 -1
- package/dist/MenuItem.d.ts +20 -20
- package/dist/MenuItem.js +42 -8
- package/dist/MenuItem.js.map +1 -1
- package/dist/MenuSeparator.d.ts +25 -0
- package/dist/MenuSeparator.js +59 -0
- package/dist/MenuSeparator.js.map +1 -0
- package/dist/MessageStrip.d.ts +1 -0
- package/dist/MessageStrip.js +46 -6
- package/dist/MessageStrip.js.map +1 -1
- package/dist/MonthPicker.js +14 -7
- package/dist/MonthPicker.js.map +1 -1
- package/dist/MultiComboBox.d.ts +30 -23
- package/dist/MultiComboBox.js +206 -109
- package/dist/MultiComboBox.js.map +1 -1
- package/dist/MultiComboBoxItem.js +8 -0
- package/dist/MultiComboBoxItem.js.map +1 -1
- package/dist/MultiComboBoxItemGroup.d.ts +2 -2
- package/dist/MultiComboBoxItemGroup.js +1 -1
- package/dist/MultiComboBoxItemGroup.js.map +1 -1
- package/dist/MultiInput.d.ts +4 -4
- package/dist/MultiInput.js +18 -2
- package/dist/MultiInput.js.map +1 -1
- package/dist/NavigationMenuItem.d.ts +5 -5
- package/dist/NavigationMenuItem.js.map +1 -1
- package/dist/Option.d.ts +14 -8
- package/dist/Option.js +4 -1
- package/dist/Option.js.map +1 -1
- package/dist/OptionCustom.d.ts +12 -6
- package/dist/OptionCustom.js +4 -1
- package/dist/OptionCustom.js.map +1 -1
- package/dist/Panel.d.ts +7 -7
- package/dist/Panel.js +64 -4
- package/dist/Panel.js.map +1 -1
- package/dist/Popover.d.ts +2 -2
- package/dist/Popover.js +71 -11
- package/dist/Popover.js.map +1 -1
- package/dist/Popup.d.ts +5 -5
- package/dist/Popup.js +46 -4
- package/dist/Popup.js.map +1 -1
- package/dist/ProgressIndicator.d.ts +4 -4
- package/dist/ProgressIndicator.js +24 -4
- package/dist/ProgressIndicator.js.map +1 -1
- package/dist/RadioButton.d.ts +11 -11
- package/dist/RadioButton.js +78 -5
- package/dist/RadioButton.js.map +1 -1
- package/dist/RangeSlider.js +22 -3
- package/dist/RangeSlider.js.map +1 -1
- package/dist/RatingIndicator.d.ts +6 -6
- package/dist/RatingIndicator.js +55 -6
- package/dist/RatingIndicator.js.map +1 -1
- package/dist/ResponsivePopover.js +19 -0
- package/dist/ResponsivePopover.js.map +1 -1
- package/dist/SegmentedButton.d.ts +2 -0
- package/dist/SegmentedButton.js +15 -3
- package/dist/SegmentedButton.js.map +1 -1
- package/dist/SegmentedButtonItem.d.ts +9 -9
- package/dist/SegmentedButtonItem.js +49 -7
- package/dist/SegmentedButtonItem.js.map +1 -1
- package/dist/Select.d.ts +8 -9
- package/dist/Select.js +60 -11
- package/dist/Select.js.map +1 -1
- package/dist/Slider.js +9 -2
- package/dist/Slider.js.map +1 -1
- package/dist/SliderBase.d.ts +4 -4
- package/dist/SliderBase.js +61 -7
- package/dist/SliderBase.js.map +1 -1
- package/dist/SpecialCalendarDate.d.ts +11 -4
- package/dist/SpecialCalendarDate.js +23 -5
- package/dist/SpecialCalendarDate.js.map +1 -1
- package/dist/SplitButton.d.ts +3 -3
- package/dist/SplitButton.js +54 -4
- package/dist/SplitButton.js.map +1 -1
- package/dist/StepInput.d.ts +8 -8
- package/dist/StepInput.js +70 -19
- package/dist/StepInput.js.map +1 -1
- package/dist/SuggestionItem.d.ts +16 -60
- package/dist/SuggestionItem.js +26 -27
- package/dist/SuggestionItem.js.map +1 -1
- package/dist/SuggestionItemCustom.d.ts +31 -0
- package/dist/SuggestionItemCustom.js +48 -0
- package/dist/SuggestionItemCustom.js.map +1 -0
- package/dist/SuggestionItemGroup.d.ts +19 -0
- package/dist/SuggestionItemGroup.js +35 -0
- package/dist/SuggestionItemGroup.js.map +1 -0
- package/dist/SuggestionListItem.d.ts +1 -1
- package/dist/Switch.d.ts +17 -17
- package/dist/Switch.js +40 -2
- package/dist/Switch.js.map +1 -1
- package/dist/Tab.d.ts +10 -10
- package/dist/Tab.js +41 -2
- package/dist/Tab.js.map +1 -1
- package/dist/TabContainer.d.ts +6 -6
- package/dist/TabContainer.js +81 -16
- package/dist/TabContainer.js.map +1 -1
- package/dist/Table.d.ts +23 -7
- package/dist/Table.js +71 -5
- package/dist/Table.js.map +1 -1
- package/dist/TableCell.d.ts +1 -0
- package/dist/TableCell.js +1 -0
- package/dist/TableCell.js.map +1 -1
- package/dist/TableCellBase.d.ts +2 -0
- package/dist/TableCellBase.js +7 -0
- package/dist/TableCellBase.js.map +1 -1
- package/dist/TableGrowing.d.ts +6 -5
- package/dist/TableGrowing.js +27 -1
- package/dist/TableGrowing.js.map +1 -1
- package/dist/TableHeaderCell.d.ts +1 -0
- package/dist/TableHeaderCell.js +42 -5
- package/dist/TableHeaderCell.js.map +1 -1
- package/dist/TableHeaderRow.d.ts +1 -0
- package/dist/TableHeaderRow.js +11 -0
- package/dist/TableHeaderRow.js.map +1 -1
- package/dist/TableNavigation.d.ts +3 -1
- package/dist/TableNavigation.js +25 -9
- package/dist/TableNavigation.js.map +1 -1
- package/dist/TableRow.d.ts +9 -0
- package/dist/TableRow.js +38 -0
- package/dist/TableRow.js.map +1 -1
- package/dist/TableRowBase.d.ts +3 -2
- package/dist/TableRowBase.js +16 -9
- package/dist/TableRowBase.js.map +1 -1
- package/dist/TableSelection.d.ts +27 -0
- package/dist/TableSelection.js +160 -6
- package/dist/TableSelection.js.map +1 -1
- package/dist/TableUtils.d.ts +7 -0
- package/dist/TableUtils.js +14 -0
- package/dist/TableUtils.js.map +1 -0
- package/dist/Tag.d.ts +2 -2
- package/dist/Tag.js +64 -6
- package/dist/Tag.js.map +1 -1
- package/dist/Text.js +10 -2
- package/dist/Text.js.map +1 -1
- package/dist/TextArea.d.ts +9 -9
- package/dist/TextArea.js +97 -7
- package/dist/TextArea.js.map +1 -1
- package/dist/TimePicker.d.ts +9 -9
- package/dist/TimePicker.js +41 -4
- package/dist/TimePicker.js.map +1 -1
- package/dist/TimePickerClock.d.ts +1 -1
- package/dist/TimePickerClock.js +121 -14
- package/dist/TimePickerClock.js.map +1 -1
- package/dist/TimePickerInternals.d.ts +4 -4
- package/dist/TimePickerInternals.js +33 -11
- package/dist/TimePickerInternals.js.map +1 -1
- package/dist/TimeSelectionClocks.js +15 -0
- package/dist/TimeSelectionClocks.js.map +1 -1
- package/dist/TimeSelectionInputs.d.ts +2 -2
- package/dist/TimeSelectionInputs.js +6 -3
- package/dist/TimeSelectionInputs.js.map +1 -1
- package/dist/Title.d.ts +1 -1
- package/dist/Title.js +20 -3
- package/dist/Title.js.map +1 -1
- package/dist/Toast.d.ts +1 -7
- package/dist/Toast.js +52 -23
- package/dist/Toast.js.map +1 -1
- package/dist/ToggleButton.js +9 -0
- package/dist/ToggleButton.js.map +1 -1
- package/dist/ToggleSpinButton.d.ts +1 -1
- package/dist/ToggleSpinButton.js +22 -4
- package/dist/ToggleSpinButton.js.map +1 -1
- package/dist/Token.d.ts +2 -2
- package/dist/Token.js +49 -1
- package/dist/Token.js.map +1 -1
- package/dist/Tokenizer.d.ts +2 -1
- package/dist/Tokenizer.js +73 -10
- package/dist/Tokenizer.js.map +1 -1
- package/dist/Toolbar.d.ts +6 -6
- package/dist/Toolbar.js +23 -8
- package/dist/Toolbar.js.map +1 -1
- package/dist/ToolbarButton.d.ts +11 -11
- package/dist/ToolbarButton.js +39 -6
- package/dist/ToolbarButton.js.map +1 -1
- package/dist/ToolbarItem.d.ts +1 -1
- package/dist/ToolbarItem.js +18 -2
- package/dist/ToolbarItem.js.map +1 -1
- package/dist/ToolbarSelect.d.ts +5 -5
- package/dist/ToolbarSelect.js +16 -4
- package/dist/ToolbarSelect.js.map +1 -1
- package/dist/ToolbarSelectOption.js +9 -0
- package/dist/ToolbarSelectOption.js.map +1 -1
- package/dist/ToolbarSeparator.js +4 -0
- package/dist/ToolbarSeparator.js.map +1 -1
- package/dist/ToolbarSpacer.js +1 -2
- package/dist/ToolbarSpacer.js.map +1 -1
- package/dist/Tree.d.ts +12 -12
- package/dist/Tree.js +11 -2
- package/dist/Tree.js.map +1 -1
- package/dist/TreeItem.d.ts +5 -5
- package/dist/TreeItem.js +1 -1
- package/dist/TreeItem.js.map +1 -1
- package/dist/TreeItemBase.d.ts +5 -5
- package/dist/TreeItemBase.js +61 -6
- package/dist/TreeItemBase.js.map +1 -1
- package/dist/TreeItemCustom.js +9 -0
- package/dist/TreeItemCustom.js.map +1 -1
- package/dist/YearPicker.js +14 -7
- package/dist/YearPicker.js.map +1 -1
- package/dist/bundle.common.bootstrap.d.ts +1 -1
- package/dist/bundle.esm.d.ts +3 -1
- package/dist/bundle.esm.js +4 -0
- package/dist/bundle.esm.js.map +1 -1
- package/dist/css/themes/Avatar.css +1 -1
- package/dist/css/themes/AvatarGroup.css +1 -1
- package/dist/css/themes/Bar.css +1 -1
- package/dist/css/themes/Breadcrumbs.css +1 -1
- package/dist/css/themes/BusyIndicator.css +1 -1
- package/dist/css/themes/Button.css +1 -1
- package/dist/css/themes/Calendar.css +1 -1
- package/dist/css/themes/CalendarHeader.css +1 -1
- package/dist/css/themes/CalendarLegend.css +1 -1
- package/dist/css/themes/CalendarLegendItem.css +1 -1
- package/dist/css/themes/Card.css +1 -1
- package/dist/css/themes/CardHeader.css +1 -1
- package/dist/css/themes/Carousel.css +1 -1
- package/dist/css/themes/CheckBox.css +1 -1
- package/dist/css/themes/ColorPalette.css +1 -1
- package/dist/css/themes/ColorPaletteItem.css +1 -1
- package/dist/css/themes/ColorPalettePopover.css +1 -1
- package/dist/css/themes/ColorPicker.css +1 -1
- package/dist/css/themes/ComboBox.css +1 -1
- package/dist/css/themes/DatePicker.css +1 -1
- package/dist/css/themes/DateTimePickerPopover.css +1 -1
- package/dist/css/themes/DayPicker.css +1 -1
- package/dist/css/themes/Dialog.css +1 -1
- package/dist/css/themes/FileUploader.css +1 -1
- package/dist/css/themes/Form.css +1 -1
- package/dist/css/themes/FormItem.css +1 -1
- package/dist/css/themes/FormLabelSpan.css +1 -1
- package/dist/css/themes/GrowingButton.css +1 -1
- package/dist/css/themes/Icon.css +1 -1
- package/dist/css/themes/Input.css +1 -1
- package/dist/css/themes/InputIcon.css +1 -1
- package/dist/css/themes/InputSharedStyles.css +1 -1
- package/dist/css/themes/Link.css +1 -1
- package/dist/css/themes/List.css +1 -1
- package/dist/css/themes/ListItem.css +1 -1
- package/dist/css/themes/ListItemBase.css +1 -1
- package/dist/css/themes/ListItemCustom.css +1 -1
- package/dist/css/themes/ListItemGroup.css +1 -1
- package/dist/css/themes/ListItemGroupHeader.css +1 -1
- package/dist/css/themes/ListItemIcon.css +1 -1
- package/dist/css/themes/Menu.css +1 -1
- package/dist/css/themes/MenuItem.css +1 -1
- package/dist/css/themes/MenuSeparator.css +1 -0
- package/dist/css/themes/MessageStrip.css +1 -1
- package/dist/css/themes/MonthPicker.css +1 -1
- package/dist/css/themes/MultiComboBox.css +1 -1
- package/dist/css/themes/MultiComboBoxPopover.css +1 -1
- package/dist/css/themes/MultiInput.css +1 -1
- package/dist/css/themes/NavigationMenu.css +1 -1
- package/dist/css/themes/NavigationMenuItem.css +1 -1
- package/dist/css/themes/OptionBase.css +1 -1
- package/dist/css/themes/Panel.css +1 -1
- package/dist/css/themes/Popover.css +1 -1
- package/dist/css/themes/PopupsCommon.css +1 -1
- package/dist/css/themes/ProgressIndicator.css +1 -1
- package/dist/css/themes/RadioButton.css +1 -1
- package/dist/css/themes/RangeSlider.css +1 -1
- package/dist/css/themes/RatingIndicator.css +1 -1
- package/dist/css/themes/ResponsivePopover.css +1 -1
- package/dist/css/themes/ResponsivePopoverCommon.css +1 -1
- package/dist/css/themes/SegmentedButton.css +1 -1
- package/dist/css/themes/SegmentedButtonItem.css +1 -1
- package/dist/css/themes/Select.css +1 -1
- package/dist/css/themes/SliderBase.css +1 -1
- package/dist/css/themes/SplitButton.css +1 -1
- package/dist/css/themes/StepInput.css +1 -1
- package/dist/css/themes/SuggestionItem.css +1 -0
- package/dist/css/themes/SuggestionItemCustom.css +1 -0
- package/dist/css/themes/Suggestions.css +1 -1
- package/dist/css/themes/Switch.css +1 -1
- package/dist/css/themes/TabContainer.css +1 -1
- package/dist/css/themes/TabInOverflow.css +1 -1
- package/dist/css/themes/TabInStrip.css +1 -1
- package/dist/css/themes/TabSemanticIcon.css +1 -1
- package/dist/css/themes/TabSeparatorInOverflow.css +1 -1
- package/dist/css/themes/Table.css +1 -1
- package/dist/css/themes/TableCellBase.css +1 -1
- package/dist/css/themes/TableHeaderRow.css +1 -1
- package/dist/css/themes/TableRow.css +1 -1
- package/dist/css/themes/TableRowBase.css +1 -1
- package/dist/css/themes/Tag.css +1 -1
- package/dist/css/themes/Text.css +1 -1
- package/dist/css/themes/TextArea.css +1 -1
- package/dist/css/themes/TimePicker.css +1 -1
- package/dist/css/themes/Toast.css +1 -1
- package/dist/css/themes/ToggleButton.css +1 -1
- package/dist/css/themes/Token.css +1 -1
- package/dist/css/themes/Tokenizer.css +1 -1
- package/dist/css/themes/TokenizerPopover.css +1 -1
- package/dist/css/themes/Toolbar.css +1 -1
- package/dist/css/themes/ToolbarPopover.css +1 -1
- package/dist/css/themes/TreeItem.css +1 -1
- package/dist/css/themes/ValueStateMessage.css +1 -1
- package/dist/css/themes/YearPicker.css +1 -1
- package/dist/css/themes/sap_fiori_3/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_dark_exp/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_exp/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_hcb_exp/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_hcw_exp/parameters-bundle.css +1 -1
- package/dist/custom-elements-internal.json +1748 -1765
- package/dist/custom-elements.json +1476 -1532
- package/dist/features/InputSuggestions.d.ts +22 -48
- package/dist/features/InputSuggestions.js +63 -106
- package/dist/features/InputSuggestions.js.map +1 -1
- package/dist/generated/assets/i18n/messagebundle_ar.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_bg.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ca.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_cnr.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_cs.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_cy.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_da.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_de.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_el.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_en.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_en_GB.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_es.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_es_MX.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_et.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_fi.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_fr.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_fr_CA.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_hi.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_hr.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_hu.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_it.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_iw.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ja.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_kk.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ko.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_lt.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_lv.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_mk.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ms.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_nl.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_no.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_pl.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_pt.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_pt_PT.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ro.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ru.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_sh.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_sk.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_sl.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_sr.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_sv.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_th.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_tr.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_uk.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_vi.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_zh_CN.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_zh_TW.json +1 -1
- package/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_dark_exp/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_exp/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_hcb_exp/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_hcw_exp/parameters-bundle.css.json +1 -1
- package/dist/generated/templates/AvatarTemplate.lit.js +1 -1
- package/dist/generated/templates/AvatarTemplate.lit.js.map +1 -1
- package/dist/generated/templates/CalendarHeaderTemplate.lit.d.ts +1 -1
- package/dist/generated/templates/CalendarHeaderTemplate.lit.js +3 -3
- package/dist/generated/templates/CalendarHeaderTemplate.lit.js.map +1 -1
- package/dist/generated/templates/CalendarTemplate.lit.js +4 -2
- package/dist/generated/templates/CalendarTemplate.lit.js.map +1 -1
- package/dist/generated/templates/ComboBoxPopoverTemplate.lit.js +1 -1
- package/dist/generated/templates/ComboBoxPopoverTemplate.lit.js.map +1 -1
- package/dist/generated/templates/ComboBoxTemplate.lit.js +1 -1
- package/dist/generated/templates/ComboBoxTemplate.lit.js.map +1 -1
- package/dist/generated/templates/InputPopoverTemplate.lit.js +8 -12
- package/dist/generated/templates/InputPopoverTemplate.lit.js.map +1 -1
- package/dist/generated/templates/InputTemplate.lit.js +8 -12
- package/dist/generated/templates/InputTemplate.lit.js.map +1 -1
- package/dist/generated/templates/ListItemStandardTemplate.lit.js +18 -20
- package/dist/generated/templates/ListItemStandardTemplate.lit.js.map +1 -1
- package/dist/generated/templates/MenuSeparatorTemplate.lit.d.ts +4 -0
- package/dist/generated/templates/MenuSeparatorTemplate.lit.js +5 -0
- package/dist/generated/templates/MenuSeparatorTemplate.lit.js.map +1 -0
- package/dist/generated/templates/MessageStripTemplate.lit.js +1 -1
- package/dist/generated/templates/MessageStripTemplate.lit.js.map +1 -1
- package/dist/generated/templates/MultiComboBoxPopoverTemplate.lit.js +11 -11
- package/dist/generated/templates/MultiComboBoxPopoverTemplate.lit.js.map +1 -1
- package/dist/generated/templates/MultiComboBoxTemplate.lit.js +11 -11
- package/dist/generated/templates/MultiComboBoxTemplate.lit.js.map +1 -1
- package/dist/generated/templates/MultiInputTemplate.lit.js +7 -11
- package/dist/generated/templates/MultiInputTemplate.lit.js.map +1 -1
- package/dist/generated/templates/SuggestionItemCustomTemplate.lit.d.ts +4 -0
- package/dist/generated/templates/SuggestionItemCustomTemplate.lit.js +5 -0
- package/dist/generated/templates/SuggestionItemCustomTemplate.lit.js.map +1 -0
- package/dist/generated/templates/SuggestionItemGroupTemplate.lit.d.ts +4 -0
- package/dist/generated/templates/SuggestionItemGroupTemplate.lit.js +8 -0
- package/dist/generated/templates/SuggestionItemGroupTemplate.lit.js.map +1 -0
- package/dist/generated/templates/SuggestionItemTemplate.lit.d.ts +4 -0
- package/dist/generated/templates/SuggestionItemTemplate.lit.js +6 -0
- package/dist/generated/templates/SuggestionItemTemplate.lit.js.map +1 -0
- package/dist/generated/templates/SuggestionListItemTemplate.lit.js +21 -23
- package/dist/generated/templates/SuggestionListItemTemplate.lit.js.map +1 -1
- package/dist/generated/templates/TabContainerTemplate.lit.js +2 -2
- package/dist/generated/templates/TabContainerTemplate.lit.js.map +1 -1
- package/dist/generated/templates/TableHeaderRowTemplate.lit.js +2 -2
- package/dist/generated/templates/TableHeaderRowTemplate.lit.js.map +1 -1
- package/dist/generated/templates/TableRowTemplate.lit.js +6 -5
- package/dist/generated/templates/TableRowTemplate.lit.js.map +1 -1
- package/dist/generated/templates/TableTemplate.lit.js +6 -6
- package/dist/generated/templates/TableTemplate.lit.js.map +1 -1
- package/dist/generated/templates/ToastTemplate.lit.js +1 -1
- package/dist/generated/templates/ToastTemplate.lit.js.map +1 -1
- package/dist/generated/themes/Avatar.css.js +1 -1
- package/dist/generated/themes/Avatar.css.js.map +1 -1
- package/dist/generated/themes/AvatarGroup.css.js +1 -1
- package/dist/generated/themes/AvatarGroup.css.js.map +1 -1
- package/dist/generated/themes/Bar.css.js +1 -1
- package/dist/generated/themes/Bar.css.js.map +1 -1
- package/dist/generated/themes/Breadcrumbs.css.js +1 -1
- package/dist/generated/themes/Breadcrumbs.css.js.map +1 -1
- package/dist/generated/themes/BusyIndicator.css.js +1 -1
- package/dist/generated/themes/BusyIndicator.css.js.map +1 -1
- package/dist/generated/themes/Button.css.js +1 -1
- package/dist/generated/themes/Button.css.js.map +1 -1
- package/dist/generated/themes/Calendar.css.js +1 -1
- package/dist/generated/themes/Calendar.css.js.map +1 -1
- package/dist/generated/themes/CalendarHeader.css.js +1 -1
- package/dist/generated/themes/CalendarHeader.css.js.map +1 -1
- package/dist/generated/themes/CalendarLegend.css.js +1 -1
- package/dist/generated/themes/CalendarLegend.css.js.map +1 -1
- package/dist/generated/themes/CalendarLegendItem.css.js +1 -1
- package/dist/generated/themes/CalendarLegendItem.css.js.map +1 -1
- package/dist/generated/themes/Card.css.js +1 -1
- package/dist/generated/themes/Card.css.js.map +1 -1
- package/dist/generated/themes/CardHeader.css.js +1 -1
- package/dist/generated/themes/CardHeader.css.js.map +1 -1
- package/dist/generated/themes/Carousel.css.js +1 -1
- package/dist/generated/themes/Carousel.css.js.map +1 -1
- package/dist/generated/themes/CheckBox.css.js +1 -1
- package/dist/generated/themes/CheckBox.css.js.map +1 -1
- package/dist/generated/themes/ColorPalette.css.js +1 -1
- package/dist/generated/themes/ColorPalette.css.js.map +1 -1
- package/dist/generated/themes/ColorPaletteItem.css.js +1 -1
- package/dist/generated/themes/ColorPaletteItem.css.js.map +1 -1
- package/dist/generated/themes/ColorPalettePopover.css.js +1 -1
- package/dist/generated/themes/ColorPalettePopover.css.js.map +1 -1
- package/dist/generated/themes/ColorPicker.css.js +1 -1
- package/dist/generated/themes/ColorPicker.css.js.map +1 -1
- package/dist/generated/themes/ComboBox.css.js +1 -1
- package/dist/generated/themes/ComboBox.css.js.map +1 -1
- package/dist/generated/themes/DatePicker.css.js +1 -1
- package/dist/generated/themes/DatePicker.css.js.map +1 -1
- package/dist/generated/themes/DateTimePickerPopover.css.js +1 -1
- package/dist/generated/themes/DateTimePickerPopover.css.js.map +1 -1
- package/dist/generated/themes/DayPicker.css.js +1 -1
- package/dist/generated/themes/DayPicker.css.js.map +1 -1
- package/dist/generated/themes/Dialog.css.js +1 -1
- package/dist/generated/themes/Dialog.css.js.map +1 -1
- package/dist/generated/themes/FileUploader.css.js +1 -1
- package/dist/generated/themes/FileUploader.css.js.map +1 -1
- package/dist/generated/themes/Form.css.js +1 -1
- package/dist/generated/themes/Form.css.js.map +1 -1
- package/dist/generated/themes/FormItem.css.js +1 -1
- package/dist/generated/themes/FormItem.css.js.map +1 -1
- package/dist/generated/themes/FormLabelSpan.css.js +1 -1
- package/dist/generated/themes/FormLabelSpan.css.js.map +1 -1
- package/dist/generated/themes/GrowingButton.css.js +1 -1
- package/dist/generated/themes/GrowingButton.css.js.map +1 -1
- package/dist/generated/themes/Icon.css.js +1 -1
- package/dist/generated/themes/Icon.css.js.map +1 -1
- package/dist/generated/themes/Input.css.js +1 -1
- package/dist/generated/themes/Input.css.js.map +1 -1
- package/dist/generated/themes/InputIcon.css.js +1 -1
- package/dist/generated/themes/InputIcon.css.js.map +1 -1
- package/dist/generated/themes/InputSharedStyles.css.js +1 -1
- package/dist/generated/themes/InputSharedStyles.css.js.map +1 -1
- package/dist/generated/themes/Link.css.js +1 -1
- package/dist/generated/themes/Link.css.js.map +1 -1
- package/dist/generated/themes/List.css.js +1 -1
- package/dist/generated/themes/List.css.js.map +1 -1
- package/dist/generated/themes/ListItem.css.js +1 -1
- package/dist/generated/themes/ListItem.css.js.map +1 -1
- package/dist/generated/themes/ListItemBase.css.js +1 -1
- package/dist/generated/themes/ListItemBase.css.js.map +1 -1
- package/dist/generated/themes/ListItemCustom.css.js +1 -1
- package/dist/generated/themes/ListItemCustom.css.js.map +1 -1
- package/dist/generated/themes/ListItemGroup.css.js +1 -1
- package/dist/generated/themes/ListItemGroup.css.js.map +1 -1
- package/dist/generated/themes/ListItemGroupHeader.css.js +1 -1
- package/dist/generated/themes/ListItemGroupHeader.css.js.map +1 -1
- package/dist/generated/themes/ListItemIcon.css.js +1 -1
- package/dist/generated/themes/ListItemIcon.css.js.map +1 -1
- package/dist/generated/themes/Menu.css.js +1 -1
- package/dist/generated/themes/Menu.css.js.map +1 -1
- package/dist/generated/themes/MenuItem.css.js +1 -1
- package/dist/generated/themes/MenuItem.css.js.map +1 -1
- package/dist/generated/themes/MenuSeparator.css.d.ts +3 -0
- package/dist/generated/themes/MenuSeparator.css.js +9 -0
- package/dist/generated/themes/MenuSeparator.css.js.map +1 -0
- package/dist/generated/themes/MessageStrip.css.js +1 -1
- package/dist/generated/themes/MessageStrip.css.js.map +1 -1
- package/dist/generated/themes/MonthPicker.css.js +1 -1
- package/dist/generated/themes/MonthPicker.css.js.map +1 -1
- package/dist/generated/themes/MultiComboBox.css.js +1 -1
- package/dist/generated/themes/MultiComboBox.css.js.map +1 -1
- package/dist/generated/themes/MultiComboBoxPopover.css.js +1 -1
- package/dist/generated/themes/MultiComboBoxPopover.css.js.map +1 -1
- package/dist/generated/themes/MultiInput.css.js +1 -1
- package/dist/generated/themes/MultiInput.css.js.map +1 -1
- package/dist/generated/themes/NavigationMenu.css.js +1 -1
- package/dist/generated/themes/NavigationMenu.css.js.map +1 -1
- package/dist/generated/themes/NavigationMenuItem.css.js +1 -1
- package/dist/generated/themes/NavigationMenuItem.css.js.map +1 -1
- package/dist/generated/themes/OptionBase.css.js +1 -1
- package/dist/generated/themes/OptionBase.css.js.map +1 -1
- package/dist/generated/themes/Panel.css.js +1 -1
- package/dist/generated/themes/Panel.css.js.map +1 -1
- package/dist/generated/themes/Popover.css.js +1 -1
- package/dist/generated/themes/Popover.css.js.map +1 -1
- package/dist/generated/themes/PopupsCommon.css.js +1 -1
- package/dist/generated/themes/PopupsCommon.css.js.map +1 -1
- package/dist/generated/themes/ProgressIndicator.css.js +1 -1
- package/dist/generated/themes/ProgressIndicator.css.js.map +1 -1
- package/dist/generated/themes/RadioButton.css.js +1 -1
- package/dist/generated/themes/RadioButton.css.js.map +1 -1
- package/dist/generated/themes/RangeSlider.css.js +1 -1
- package/dist/generated/themes/RangeSlider.css.js.map +1 -1
- package/dist/generated/themes/RatingIndicator.css.js +1 -1
- package/dist/generated/themes/RatingIndicator.css.js.map +1 -1
- package/dist/generated/themes/ResponsivePopover.css.js +1 -1
- package/dist/generated/themes/ResponsivePopover.css.js.map +1 -1
- package/dist/generated/themes/ResponsivePopoverCommon.css.js +1 -1
- package/dist/generated/themes/ResponsivePopoverCommon.css.js.map +1 -1
- package/dist/generated/themes/SegmentedButton.css.js +1 -1
- package/dist/generated/themes/SegmentedButton.css.js.map +1 -1
- package/dist/generated/themes/SegmentedButtonItem.css.js +1 -1
- package/dist/generated/themes/SegmentedButtonItem.css.js.map +1 -1
- package/dist/generated/themes/Select.css.js +1 -1
- package/dist/generated/themes/Select.css.js.map +1 -1
- package/dist/generated/themes/SliderBase.css.js +1 -1
- package/dist/generated/themes/SliderBase.css.js.map +1 -1
- package/dist/generated/themes/SplitButton.css.js +1 -1
- package/dist/generated/themes/SplitButton.css.js.map +1 -1
- package/dist/generated/themes/StepInput.css.js +1 -1
- package/dist/generated/themes/StepInput.css.js.map +1 -1
- package/dist/generated/themes/SuggestionItem.css.d.ts +3 -0
- package/dist/generated/themes/SuggestionItem.css.js +9 -0
- package/dist/generated/themes/SuggestionItem.css.js.map +1 -0
- package/dist/generated/themes/SuggestionItemCustom.css.d.ts +3 -0
- package/dist/generated/themes/SuggestionItemCustom.css.js +9 -0
- package/dist/generated/themes/SuggestionItemCustom.css.js.map +1 -0
- package/dist/generated/themes/Suggestions.css.js +1 -1
- package/dist/generated/themes/Suggestions.css.js.map +1 -1
- package/dist/generated/themes/Switch.css.js +1 -1
- package/dist/generated/themes/Switch.css.js.map +1 -1
- package/dist/generated/themes/TabContainer.css.js +1 -1
- package/dist/generated/themes/TabContainer.css.js.map +1 -1
- package/dist/generated/themes/TabInOverflow.css.js +1 -1
- package/dist/generated/themes/TabInOverflow.css.js.map +1 -1
- package/dist/generated/themes/TabInStrip.css.js +1 -1
- package/dist/generated/themes/TabInStrip.css.js.map +1 -1
- package/dist/generated/themes/TabSemanticIcon.css.js +1 -1
- package/dist/generated/themes/TabSemanticIcon.css.js.map +1 -1
- package/dist/generated/themes/TabSeparatorInOverflow.css.js +1 -1
- package/dist/generated/themes/TabSeparatorInOverflow.css.js.map +1 -1
- package/dist/generated/themes/Table.css.js +1 -1
- package/dist/generated/themes/Table.css.js.map +1 -1
- package/dist/generated/themes/TableCellBase.css.js +1 -1
- package/dist/generated/themes/TableCellBase.css.js.map +1 -1
- package/dist/generated/themes/TableHeaderRow.css.js +1 -1
- package/dist/generated/themes/TableHeaderRow.css.js.map +1 -1
- package/dist/generated/themes/TableRow.css.js +1 -1
- package/dist/generated/themes/TableRow.css.js.map +1 -1
- package/dist/generated/themes/TableRowBase.css.js +1 -1
- package/dist/generated/themes/TableRowBase.css.js.map +1 -1
- package/dist/generated/themes/Tag.css.js +1 -1
- package/dist/generated/themes/Tag.css.js.map +1 -1
- package/dist/generated/themes/Text.css.js +1 -1
- package/dist/generated/themes/Text.css.js.map +1 -1
- package/dist/generated/themes/TextArea.css.js +1 -1
- package/dist/generated/themes/TextArea.css.js.map +1 -1
- package/dist/generated/themes/TimePicker.css.js +1 -1
- package/dist/generated/themes/TimePicker.css.js.map +1 -1
- package/dist/generated/themes/Toast.css.js +1 -1
- package/dist/generated/themes/Toast.css.js.map +1 -1
- package/dist/generated/themes/ToggleButton.css.js +1 -1
- package/dist/generated/themes/ToggleButton.css.js.map +1 -1
- package/dist/generated/themes/Token.css.js +1 -1
- package/dist/generated/themes/Token.css.js.map +1 -1
- package/dist/generated/themes/Tokenizer.css.js +1 -1
- package/dist/generated/themes/Tokenizer.css.js.map +1 -1
- package/dist/generated/themes/TokenizerPopover.css.js +1 -1
- package/dist/generated/themes/TokenizerPopover.css.js.map +1 -1
- package/dist/generated/themes/Toolbar.css.js +1 -1
- package/dist/generated/themes/Toolbar.css.js.map +1 -1
- package/dist/generated/themes/ToolbarPopover.css.js +1 -1
- package/dist/generated/themes/ToolbarPopover.css.js.map +1 -1
- package/dist/generated/themes/TreeItem.css.js +1 -1
- package/dist/generated/themes/TreeItem.css.js.map +1 -1
- package/dist/generated/themes/ValueStateMessage.css.js +1 -1
- package/dist/generated/themes/ValueStateMessage.css.js.map +1 -1
- package/dist/generated/themes/YearPicker.css.js +1 -1
- package/dist/generated/themes/YearPicker.css.js.map +1 -1
- package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_dark_exp/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_dark_exp/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_hcb_exp/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_hcb_exp/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_hcw_exp/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_hcw_exp/parameters-bundle.css.js.map +1 -1
- package/dist/types/IconMode.d.ts +4 -4
- package/dist/types/IconMode.js +4 -4
- package/dist/types/IconMode.js.map +1 -1
- package/dist/types/{ListSeparators.d.ts → ListSeparator.d.ts} +3 -2
- package/dist/types/{ListSeparators.js → ListSeparator.js} +9 -8
- package/dist/types/ListSeparator.js.map +1 -0
- package/dist/vscode.html-custom-data.json +64 -80
- package/dist/web-types.json +511 -518
- package/package.json +11 -9
- package/src/Avatar.hbs +1 -1
- package/src/Calendar.hbs +3 -19
- package/src/CalendarHeader.hbs +10 -10
- package/src/ComboBoxPopover.hbs +1 -1
- package/src/InputPopover.hbs +1 -22
- package/src/ListItemStandard.hbs +3 -9
- package/src/MenuSeparator.hbs +6 -0
- package/src/MessageStrip.hbs +1 -1
- package/src/MultiComboBox.hbs +1 -0
- package/src/MultiComboBoxPopover.hbs +14 -7
- package/src/SuggestionItem.hbs +14 -0
- package/src/SuggestionItemCustom.hbs +5 -0
- package/src/SuggestionItemGroup.hbs +1 -0
- package/src/TabContainer.hbs +2 -2
- package/src/Table.hbs +6 -12
- package/src/TableHeaderRow.hbs +2 -1
- package/src/TableRow.hbs +6 -2
- package/src/Toast.hbs +1 -1
- package/src/i18n/messagebundle_ar.properties +15 -2
- package/src/i18n/messagebundle_bg.properties +15 -2
- package/src/i18n/messagebundle_ca.properties +31 -18
- package/src/i18n/messagebundle_cnr.properties +15 -2
- package/src/i18n/messagebundle_cs.properties +15 -2
- package/src/i18n/messagebundle_cy.properties +25 -12
- package/src/i18n/messagebundle_da.properties +15 -2
- package/src/i18n/messagebundle_de.properties +18 -5
- package/src/i18n/messagebundle_el.properties +15 -2
- package/src/i18n/messagebundle_en.properties +15 -2
- package/src/i18n/messagebundle_en_GB.properties +15 -2
- package/src/i18n/messagebundle_en_US_saprigi.properties +15 -2
- package/src/i18n/messagebundle_es.properties +15 -2
- package/src/i18n/messagebundle_es_MX.properties +18 -5
- package/src/i18n/messagebundle_et.properties +15 -2
- package/src/i18n/messagebundle_fi.properties +15 -2
- package/src/i18n/messagebundle_fr.properties +33 -20
- package/src/i18n/messagebundle_fr_CA.properties +33 -20
- package/src/i18n/messagebundle_hi.properties +15 -2
- package/src/i18n/messagebundle_hr.properties +15 -2
- package/src/i18n/messagebundle_hu.properties +15 -2
- package/src/i18n/messagebundle_id.properties +15 -2
- package/src/i18n/messagebundle_it.properties +19 -6
- package/src/i18n/messagebundle_iw.properties +17 -4
- package/src/i18n/messagebundle_ja.properties +15 -2
- package/src/i18n/messagebundle_kk.properties +19 -6
- package/src/i18n/messagebundle_ko.properties +18 -5
- package/src/i18n/messagebundle_lt.properties +15 -2
- package/src/i18n/messagebundle_lv.properties +15 -2
- package/src/i18n/messagebundle_mk.properties +15 -2
- package/src/i18n/messagebundle_ms.properties +15 -2
- package/src/i18n/messagebundle_nl.properties +15 -2
- package/src/i18n/messagebundle_no.properties +15 -2
- package/src/i18n/messagebundle_pl.properties +15 -2
- package/src/i18n/messagebundle_pt.properties +15 -2
- package/src/i18n/messagebundle_pt_PT.properties +15 -2
- package/src/i18n/messagebundle_ro.properties +15 -2
- package/src/i18n/messagebundle_ru.properties +15 -2
- package/src/i18n/messagebundle_sh.properties +15 -2
- package/src/i18n/messagebundle_sk.properties +15 -2
- package/src/i18n/messagebundle_sl.properties +15 -2
- package/src/i18n/messagebundle_sr.properties +15 -2
- package/src/i18n/messagebundle_sv.properties +15 -2
- package/src/i18n/messagebundle_th.properties +16 -3
- package/src/i18n/messagebundle_tr.properties +16 -3
- package/src/i18n/messagebundle_uk.properties +16 -3
- package/src/i18n/messagebundle_vi.properties +15 -2
- package/src/i18n/messagebundle_zh_CN.properties +15 -2
- package/src/i18n/messagebundle_zh_TW.properties +15 -2
- package/src/themes/Calendar.css +6 -5
- package/src/themes/CheckBox.css +3 -8
- package/src/themes/Link.css +2 -2
- package/src/themes/ListItem.css +9 -13
- package/src/themes/MenuItem.css +0 -4
- package/src/themes/MenuSeparator.css +11 -0
- package/src/themes/SegmentedButtonItem.css +2 -1
- package/src/themes/SuggestionItem.css +14 -0
- package/src/themes/SuggestionItemCustom.css +3 -0
- package/src/themes/Suggestions.css +0 -5
- package/src/themes/TabContainer.css +1 -1
- package/src/themes/Table.css +3 -2
- package/src/themes/TableRow.css +15 -1
- package/src/themes/Tag.css +5 -75
- package/src/themes/TextArea.css +2 -2
- package/src/themes/base/CheckBox-parameters.css +2 -4
- package/src/themes/base/Table-parameters.css +1 -0
- package/src/themes/base/Tag-parameters.css +2 -1
- package/src/themes/base/sizes-parameters.css +1 -2
- package/src/themes/sap_fiori_3/CheckBox-parameters.css +0 -3
- package/src/themes/sap_fiori_3/Tag-parameters.css +5 -0
- package/src/themes/sap_fiori_3/parameters-bundle.css +1 -1
- package/src/themes/sap_fiori_3_dark/CheckBox-parameters.css +0 -3
- package/src/themes/sap_fiori_3_hcb/CheckBox-parameters.css +1 -0
- package/src/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
- package/src/themes/sap_fiori_3_hcb/sizes-parameters.css +4 -0
- package/src/themes/sap_fiori_3_hcw/CheckBox-parameters.css +1 -0
- package/src/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
- package/src/themes/sap_fiori_3_hcw/sizes-parameters.css +4 -0
- package/src/themes/sap_horizon/CheckBox-parameters.css +0 -1
- package/src/themes/sap_horizon/RatingIndicator-parameters.css +5 -3
- package/src/themes/sap_horizon/sizes-parameters.css +3 -0
- package/src/themes/sap_horizon_dark/CheckBox-parameters.css +0 -1
- package/src/themes/sap_horizon_dark/RatingIndicator-parameters.css +5 -3
- package/src/themes/sap_horizon_dark/sizes-parameters.css +3 -0
- package/src/themes/sap_horizon_exp/CheckBox-parameters.css +0 -1
- package/src/themes/sap_horizon_hcb/CheckBox-parameters.css +1 -1
- package/src/themes/sap_horizon_hcb/RatingIndicator-parameters.css +5 -3
- package/src/themes/sap_horizon_hcb/sizes-parameters.css +4 -0
- package/src/themes/sap_horizon_hcw/CheckBox-parameters.css +1 -1
- package/src/themes/sap_horizon_hcw/RatingIndicator-parameters.css +5 -3
- package/src/themes/sap_horizon_hcw/sizes-parameters.css +4 -0
- package/dist/CalendarHeader.d.ts +0 -80
- package/dist/CalendarHeader.js +0 -160
- package/dist/CalendarHeader.js.map +0 -1
- package/dist/SuggestionGroupItem.d.ts +0 -28
- package/dist/SuggestionGroupItem.js +0 -43
- package/dist/SuggestionGroupItem.js.map +0 -1
- package/dist/styles/Icon.css +0 -33
- package/dist/styles/Icon.module.css +0 -33
- package/dist/types/ListSeparators.js.map +0 -1
- package/src/styles/Icon.module.css +0 -1
package/dist/Form.js
CHANGED
|
@@ -9,13 +9,11 @@ import customElement from "@ui5/webcomponents-base/dist/decorators/customElement
|
|
|
9
9
|
import property from "@ui5/webcomponents-base/dist/decorators/property.js";
|
|
10
10
|
import slot from "@ui5/webcomponents-base/dist/decorators/slot.js";
|
|
11
11
|
import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
|
|
12
|
-
import Integer from "@ui5/webcomponents-base/dist/types/Integer.js";
|
|
13
12
|
// Template
|
|
14
13
|
import FormTemplate from "./generated/templates/FormTemplate.lit.js";
|
|
15
14
|
// Styles
|
|
16
15
|
import FormCss from "./generated/themes/Form.css.js";
|
|
17
16
|
import Title from "./Title.js";
|
|
18
|
-
import FormItemSpacing from "./types/FormItemSpacing.js";
|
|
19
17
|
const additionalStylesMap = new Map();
|
|
20
18
|
const StepColumn = {
|
|
21
19
|
"S": 1,
|
|
@@ -107,9 +105,61 @@ const StepColumn = {
|
|
|
107
105
|
*
|
|
108
106
|
* @public
|
|
109
107
|
* @since 2.0.0
|
|
108
|
+
* @experimental This component is availabe since 2.0 under an experimental flag and its API and behaviour are subject to change.
|
|
110
109
|
* @extends UI5Element
|
|
111
110
|
*/
|
|
112
111
|
let Form = class Form extends UI5Element {
|
|
112
|
+
constructor() {
|
|
113
|
+
super(...arguments);
|
|
114
|
+
/**
|
|
115
|
+
* Defines the number of columns to distribute the form content by breakpoint.
|
|
116
|
+
*
|
|
117
|
+
* Supported values:
|
|
118
|
+
* - `S` - 1 column by default (1 column is recommended)
|
|
119
|
+
* - `M` - 1 column by default (up to 2 columns are recommended)
|
|
120
|
+
* - `L` - 2 columns by default (up to 3 columns are recommended)
|
|
121
|
+
* - `XL` - 2 columns by default (up to 6 columns are recommended)
|
|
122
|
+
*
|
|
123
|
+
* @default "S1 M1 L2 XL2"
|
|
124
|
+
* @public
|
|
125
|
+
*/
|
|
126
|
+
this.layout = "S1 M1 L2 XL2";
|
|
127
|
+
/**
|
|
128
|
+
* Defines the width proportion of the labels and fields of a FormItem by breakpoint.
|
|
129
|
+
*
|
|
130
|
+
* By default, the labels take 4/12 (or 1/3) of the form item in M,L and XL sizes,
|
|
131
|
+
* and 12/12 in S size, e.g in S the label is on top of its associated field.
|
|
132
|
+
*
|
|
133
|
+
* The supported values are between 1 and 12. Greater the number, more space the label will use.
|
|
134
|
+
*
|
|
135
|
+
* **Note:** If "12" is set, the label will be displayed on top of its assosiated field.
|
|
136
|
+
* @default "S12 M4 L4 XL4"
|
|
137
|
+
* @public
|
|
138
|
+
*/
|
|
139
|
+
this.labelSpan = "S12 M4 L4 XL4";
|
|
140
|
+
/**
|
|
141
|
+
* Defines the vertical spacing between form items.
|
|
142
|
+
*
|
|
143
|
+
* **Note:** If the Form is meant to be switched between "non-edit" and "edit" modes,
|
|
144
|
+
* we recommend using "Large" item spacing in "non-edit" mode, and "Normal" - for "edit" mode,
|
|
145
|
+
* to avoid "jumping" effect, caused by the hight difference between texts in "non-edit" mode and the input fields in "edit" mode.
|
|
146
|
+
*
|
|
147
|
+
* @default "Normal"
|
|
148
|
+
* @public
|
|
149
|
+
*/
|
|
150
|
+
this.itemSpacing = "Normal";
|
|
151
|
+
/**
|
|
152
|
+
* @private
|
|
153
|
+
*/
|
|
154
|
+
this.columnsS = 1;
|
|
155
|
+
this.labelSpanS = 12;
|
|
156
|
+
this.columnsM = 1;
|
|
157
|
+
this.labelSpanM = 4;
|
|
158
|
+
this.columnsL = 2;
|
|
159
|
+
this.labelSpanL = 4;
|
|
160
|
+
this.columnsXl = 2;
|
|
161
|
+
this.labelSpanXl = 4;
|
|
162
|
+
}
|
|
113
163
|
onBeforeRendering() {
|
|
114
164
|
// Parse the layout and set it to the FormGroups/FormItems.
|
|
115
165
|
this.setColumnLayout();
|
|
@@ -251,7 +301,7 @@ let Form = class Form extends UI5Element {
|
|
|
251
301
|
const key = `${step}-${colsNumber}`;
|
|
252
302
|
if (!additionalStylesMap.has(key)) {
|
|
253
303
|
let containerQuery;
|
|
254
|
-
let supporedColumnsNumber;
|
|
304
|
+
let supporedColumnsNumber = StepColumn.S;
|
|
255
305
|
let stepSpanCSS = "";
|
|
256
306
|
let cols = colsNumber;
|
|
257
307
|
if (step === "S") {
|
|
@@ -275,7 +325,7 @@ let Form = class Form extends UI5Element {
|
|
|
275
325
|
:host([columns-${step.toLocaleLowerCase()}="${cols}"]) .ui5-form-layout {
|
|
276
326
|
grid-template-columns: repeat(${cols}, 1fr);
|
|
277
327
|
}
|
|
278
|
-
|
|
328
|
+
|
|
279
329
|
.ui5-form-column-span${step}-${cols},
|
|
280
330
|
.ui5-form-item-span-${cols} {
|
|
281
331
|
grid-column: span ${cols};
|
|
@@ -299,16 +349,16 @@ let Form = class Form extends UI5Element {
|
|
|
299
349
|
}
|
|
300
350
|
};
|
|
301
351
|
__decorate([
|
|
302
|
-
property(
|
|
352
|
+
property()
|
|
303
353
|
], Form.prototype, "layout", void 0);
|
|
304
354
|
__decorate([
|
|
305
|
-
property(
|
|
355
|
+
property()
|
|
306
356
|
], Form.prototype, "labelSpan", void 0);
|
|
307
357
|
__decorate([
|
|
308
358
|
property()
|
|
309
359
|
], Form.prototype, "headerText", void 0);
|
|
310
360
|
__decorate([
|
|
311
|
-
property(
|
|
361
|
+
property()
|
|
312
362
|
], Form.prototype, "itemSpacing", void 0);
|
|
313
363
|
__decorate([
|
|
314
364
|
slot({ type: HTMLElement })
|
|
@@ -322,28 +372,28 @@ __decorate([
|
|
|
322
372
|
})
|
|
323
373
|
], Form.prototype, "items", void 0);
|
|
324
374
|
__decorate([
|
|
325
|
-
property({
|
|
375
|
+
property({ type: Number })
|
|
326
376
|
], Form.prototype, "columnsS", void 0);
|
|
327
377
|
__decorate([
|
|
328
|
-
property({
|
|
378
|
+
property({ type: Number })
|
|
329
379
|
], Form.prototype, "labelSpanS", void 0);
|
|
330
380
|
__decorate([
|
|
331
|
-
property({
|
|
381
|
+
property({ type: Number })
|
|
332
382
|
], Form.prototype, "columnsM", void 0);
|
|
333
383
|
__decorate([
|
|
334
|
-
property({
|
|
384
|
+
property({ type: Number })
|
|
335
385
|
], Form.prototype, "labelSpanM", void 0);
|
|
336
386
|
__decorate([
|
|
337
|
-
property({
|
|
387
|
+
property({ type: Number })
|
|
338
388
|
], Form.prototype, "columnsL", void 0);
|
|
339
389
|
__decorate([
|
|
340
|
-
property({
|
|
390
|
+
property({ type: Number })
|
|
341
391
|
], Form.prototype, "labelSpanL", void 0);
|
|
342
392
|
__decorate([
|
|
343
|
-
property({
|
|
393
|
+
property({ type: Number })
|
|
344
394
|
], Form.prototype, "columnsXl", void 0);
|
|
345
395
|
__decorate([
|
|
346
|
-
property({
|
|
396
|
+
property({ type: Number })
|
|
347
397
|
], Form.prototype, "labelSpanXl", void 0);
|
|
348
398
|
Form = __decorate([
|
|
349
399
|
customElement({
|
package/dist/Form.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.js","sourceRoot":"","sources":["../src/Form.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAC7E,OAAO,OAAO,MAAM,+CAA+C,CAAC;AAEpE,WAAW;A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,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;sCAChC;AAElB;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;wCAC9B;AAGpB;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;uCAC/B;AAEnB;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;yCAC7B;AApGhB,IAAI;IAPT,aAAa,CAAC;QACd,GAAG,EAAE,UAAU;QACf,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,OAAO;QACf,QAAQ,EAAE,YAAY;QACtB,YAAY,EAAE,CAAC,KAAK,CAAC;KACrB,CAAC;GACI,IAAI,CAwTT;AAED,IAAI,CAAC,MAAM,EAAE,CAAC;AAEd,eAAe,IAAI,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport Integer from \"@ui5/webcomponents-base/dist/types/Integer.js\";\n\n// Template\nimport FormTemplate from \"./generated/templates/FormTemplate.lit.js\";\n\n// Styles\nimport FormCss from \"./generated/themes/Form.css.js\";\n\nimport Title from \"./Title.js\";\nimport FormItemSpacing from \"./types/FormItemSpacing.js\";\nimport type FormGroup from \"./FormGroup.js\";\n\nconst additionalStylesMap = new Map<string, string>();\n\nconst StepColumn = {\n\t\"S\": 1,\n\t\"M\": 2,\n\t\"L\": 3,\n\t\"XL\": 6,\n};\n\n/**\n * Interface for components that can be slotted inside `ui5-form` as items.\n * @public\n * @since 2.0.0\n */\ninterface IFormItem extends HTMLElement {\n\tlabelSpan: string\n\titemSpacing: `${FormItemSpacing}`;\n\treadonly isGroup: boolean;\n\tcolsXl?: number;\n\tcolsL?: number;\n\tcolsM?: number;\n\tcolsS?: number;\n\tcolumnSpan?: number;\n}\n\ntype GroupItemsInfo = {\n\tgroupItem: IFormItem,\n\tclasses: string,\n\titems: Array<ItemsInfo>,\n}\n\ntype ItemsInfo = {\n\titem: IFormItem,\n\tclasses: string,\n}\n\n/**\n * @class\n *\n * ### Overview\n *\n * The Form is a layout component that arranges labels and form fields (like input fields) pairs\n * into a specific number of columns.\n *\n * ### Structure\n *\n * - **Form** (`ui5-form`) is the top-level container component, responsible for the content layout and responsiveness.\n * - **FormGroup** (`ui5-form-group`) enables the grouping of the Form content.\n * - **FormItem** (`ui5-form-item`) is a pair of label and form fields and can be used directly in a Form, or as part of a FormGroup.\n *\n * The simplest Form (`ui5-form`) consists of a header area on top,\n * displaying a header text (see the `headingText` property) and content below - an arbitrary number of FormItems (ui5-form-item),\n * representing the pairs of label and form fields.\n *\n * And, there is also \"grouping\" available to assist the implementation of richer UIs.\n * This is enabled by the FormGroup (`ui5-form-group`) component.\n * In this case, the Form is structured into FormGroups and each FormGroup consists of FormItems.\n *\n * ### Responsiveness\n *\n * The Form component reacts and changes its layout on predefined breakpoints.\n * Depending on its size, the Form content (FormGroups and FormItems) gets divided into one or more columns as follows:\n * - **S** (< 600px) – 1 column is recommended (default: 1)\n * - **M** (600px - 1022px) – up to 2 columns are recommended (default: 1)\n * - **L** (1023px - 1439px) - up to 3 columns are recommended (default: 2)\n * - **XL** (> 1439px) – up to 6 columns are recommended (default: 2)\n *\n * To change the layout, use the `layout` property - f.e. layout=\"S1 M2 L3 XL6\".\n *\n * ### Groups\n *\n * To make better use of screen space, there is built-in logic to determine how many columns should a FormGroup occupy.\n *\n * - **Example #1** (perfect match):\n * 4 columns and 4 groups: each group will use 1 column.\n *\n * - **Example #2** (balanced distribution):\n * 4 columns and 2 groups: each group will use 2 columns.\n * 6 columns and 2 groups: each group will use 3 columns.\n *\n * - **Example #3** (unbalanced distribution):\n * 3 columns and 2 groups: the larger one will use 2 columns, the smaller 1 column.\n * 5 columns and 3 groups: two of the groups will use 2 columns each, the smallest 1 column.\n *\n * **Note:** The size of a group element is determined by the number of FormItems assigned to it.\n * In the case of equality, the first in the DOM will use more columns, and the last - fewer columns.\n *\n * - **Example #4** (more groups than columns):\n * 3 columns and 4 groups: each FormGroup uses only 1 column, the last FormGroup will wrap on the second row.\n *\n * ### Groups Column Span\n *\n * To influence the built-in group distribution, described in the previous section,\n * you can use the FormGroup's `columnSpan` property, that defines how many columns the group should expand to.\n *\n * ### Items Column Span\n *\n * FormItem's columnSpan property defines how many columns the form item should expand to inside a form group or the form.\n *\n * ### Items Label Span\n *\n * The placement of the labels depends on the size of the used column.\n * If there is enough space, the labels are next to their associated fields, otherwise - above the fields.\n * By default, the labels take 4/12 of the FormItem, leaving 8/12 parts to associated fields.\n * You can control what space the labels should take via the `labelSpan` property.\n *\n * **For example:** To always place the labels on top set: `labelSpan=\"S12 M12 L12 XL12\"` property.\n *\n * ### ES6 Module Import\n *\n * - import @ui5/webcomponents/dist/Form.js\";\n * - import @ui5/webcomponents/dist/FormGroup.js\";\n * - import @ui5/webcomponents/dist/FormItem.js\";\n *\n * @csspart header - Used to style the wrapper of the header.\n * @csspart layout - Used to style the element defining the form column layout.\n * @csspart column - Used to style a single column of the form column layout.\n *\n * @public\n * @since 2.0.0\n * @extends UI5Element\n */\n@customElement({\n\ttag: \"ui5-form\",\n\trenderer: litRender,\n\tstyles: FormCss,\n\ttemplate: FormTemplate,\n\tdependencies: [Title],\n})\nclass Form extends UI5Element {\n\t/**\n\t * Defines the number of columns to distribute the form content by breakpoint.\n\t *\n\t * Supported values:\n\t * - `S` - 1 column by default (1 column is recommended)\n\t * - `M` - 1 column by default (up to 2 columns are recommended)\n\t * - `L` - 2 columns by default (up to 3 columns are recommended)\n\t * - `XL` - 2 columns by default (up to 6 columns are recommended)\n\t *\n\t * @default \"S1 M1 L2 XL2\"\n\t * @public\n\t */\n\t@property({ type: String, defaultValue: \"S1 M1 L2 XL2\" })\n\tlayout!: string;\n\n\t/**\n\t * Defines the width proportion of the labels and fields of a FormItem by breakpoint.\n\t *\n\t * By default, the labels take 4/12 (or 1/3) of the form item in M,L and XL sizes,\n\t * and 12/12 in S size, e.g in S the label is on top of its associated field.\n\t *\n\t * The supported values are between 1 and 12. Greater the number, more space the label will use.\n\t *\n\t * **Note:** If \"12\" is set, the label will be displayed on top of its assosiated field.\n\t * @default \"S12 M4 L4 XL4\"\n\t * @public\n\t */\n\t@property({ type: String, defaultValue: \"S12 M4 L4 XL4\" })\n\tlabelSpan!: string;\n\n\t/**\n\t * Defines the header text of the component.\n\t *\n\t * **Note:** The property gets overridden by the `header` slot.\n\t *\n\t * @default \"\"\n\t * @public\n\t */\n\t@property()\n\theaderText!: string;\n\n\t/**\n\t * Defines the vertical spacing between form items.\n\t *\n\t * **Note:** If the Form is meant to be switched between \"non-edit\" and \"edit\" modes,\n\t * we recommend using \"Large\" item spacing in \"non-edit\" mode, and \"Normal\" - for \"edit\" mode,\n\t * to avoid \"jumping\" effect, caused by the hight difference between texts in \"non-edit\" mode and the input fields in \"edit\" mode.\n\t *\n\t * @default \"Normal\"\n\t * @public\n\t */\n\t@property({ type: FormItemSpacing, defaultValue: FormItemSpacing.Normal })\n\titemSpacing!: `${FormItemSpacing}`;\n\n\t/**\n\t * Defines the component header area.\n\t *\n\t * **Note:** When a `header` is provided, the `headerText` property is ignored.\n\t * @public\n\t */\n\t@slot({ type: HTMLElement })\n\theader!: Array<HTMLElement>;\n\n\t/**\n\t * Defines the component content - FormGroups or FormItems.\n\t *\n\t * **Note:** Mixing FormGroups and standalone FormItems (not belonging to a group) is not supported.\n\t * Either use FormGroups and make sure all FormItems are part of a FormGroup, or use just FormItems without any FormGroups.\n\t * @public\n\t */\n\t@slot({\n\t\ttype: HTMLElement,\n\t\t\"default\": true,\n\t\tindividualSlots: true,\n\t\tinvalidateOnChildChange: true,\n\t})\n\titems!: Array<IFormItem>;\n\n\t/**\n\t * @private\n\t */\n\t@property({ validator: Integer, defaultValue: 1 })\n\tcolumnsS!: number;\n\t@property({ validator: Integer, defaultValue: 12 })\n\tlabelSpanS!: number;\n\n\t@property({ validator: Integer, defaultValue: 1 })\n\tcolumnsM!: number;\n\t@property({ validator: Integer, defaultValue: 4 })\n\tlabelSpanM!: number;\n\n\t@property({ validator: Integer, defaultValue: 2 })\n\tcolumnsL!: number;\n\t@property({ validator: Integer, defaultValue: 4 })\n\tlabelSpanL!: number;\n\n\t@property({ validator: Integer, defaultValue: 2 })\n\tcolumnsXl!: number;\n\t@property({ validator: Integer, defaultValue: 4 })\n\tlabelSpanXl!: number;\n\n\tonBeforeRendering() {\n\t\t// Parse the layout and set it to the FormGroups/FormItems.\n\t\tthis.setColumnLayout();\n\n\t\t// Parse the labelSpan and set it to the FormGroups/FormItems.\n\t\tthis.setLabelSpan();\n\n\t\t// Define how many columns a group should take.\n\t\tthis.setGroupsColSpan();\n\t}\n\n\tonAfterRendering() {\n\t\t// Create additional CSS for number of columns that are not supported by default.\n\t\tthis.createAdditionalCSSStyleSheet();\n\t}\n\n\tsetColumnLayout() {\n\t\tconst layoutArr = this.layout.split(\" \");\n\t\tlayoutArr.forEach((breakpoint: string) => {\n\t\t\tif (breakpoint.startsWith(\"S\")) {\n\t\t\t\tthis.columnsS = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"M\")) {\n\t\t\t\tthis.columnsM = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"L\")) {\n\t\t\t\tthis.columnsL = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"XL\")) {\n\t\t\t\tthis.columnsXl = parseInt(breakpoint.slice(2));\n\t\t\t}\n\t\t});\n\t}\n\n\tsetLabelSpan() {\n\t\tthis.labelSpan.split(\" \").forEach((breakpoint: string) => {\n\t\t\tif (breakpoint.startsWith(\"S\")) {\n\t\t\t\tthis.labelSpanS = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"M\")) {\n\t\t\t\tthis.labelSpanM = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"L\")) {\n\t\t\t\tthis.labelSpanL = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"XL\")) {\n\t\t\t\tthis.labelSpanXl = parseInt(breakpoint.slice(2));\n\t\t\t}\n\t\t});\n\n\t\tthis.items.forEach((item: IFormItem) => {\n\t\t\titem.labelSpan = this.labelSpan;\n\t\t\titem.itemSpacing = this.itemSpacing;\n\t\t});\n\t}\n\n\tsetGroupsColSpan() {\n\t\tif (!this.hasGroupItems) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst itemsCount = this.items.length;\n\t\tconst sortedItems = [...this.items].sort((itemA: IFormItem, itemB: IFormItem) => {\n\t\t\treturn (itemB as FormGroup)?.items.length - (itemA as FormGroup)?.items.length;\n\t\t});\n\n\t\tsortedItems.forEach((item: IFormItem, idx: number) => {\n\t\t\titem.colsXl = this.getGroupsColSpan(this.columnsXl, itemsCount, idx, item);\n\t\t\titem.colsL = this.getGroupsColSpan(this.columnsL, itemsCount, idx, item);\n\t\t\titem.colsM = this.getGroupsColSpan(this.columnsM, itemsCount, idx, item);\n\t\t\titem.colsS = this.getGroupsColSpan(this.columnsS, itemsCount, idx, item);\n\t\t});\n\t}\n\n\tgetGroupsColSpan(cols: number, groups: number, index: number, group: IFormItem): number {\n\t\t// Case 0: column span is set from outside.\n\t\tif (group.columnSpan) {\n\t\t\treturn group.columnSpan;\n\t\t}\n\n\t\t// CASE 1: The number of available columns match the number of groups, or only 1 column is available - each group takes 1 column.\n\t\t// For example: 1 column - 1 group, 2 columns - 2 groups, 3 columns - 3 groups, 4columns - 4 groups\n\t\tif (cols === 1 || cols <= groups) {\n\t\t\treturn 1;\n\t\t}\n\n\t\t// CASE 2: The number of available columns IS multiple of the number of groups.\n\t\t// For example: 2 column - 1 group, 3 columns - 1 groups, 4 columns - 1 group, 4 columns - 2 groups\n\t\tif (cols % groups === 0) {\n\t\t\treturn cols / groups;\n\t\t}\n\n\t\t// CASE 3: The number of available columns IS NOT multiple of the number of groups.\n\t\tconst MIN_COL_SPAN = 1;\n\t\tconst delta = cols - groups;\n\n\t\t// 7 cols & 4 groups => 2, 2, 2, 1\n\t\tif (delta <= groups) {\n\t\t\treturn index < delta ? MIN_COL_SPAN + 1 : MIN_COL_SPAN;\n\t\t}\n\n\t\t// 7 cols & 3 groups => 3, 2, 2\n\t\treturn index === 0 ? MIN_COL_SPAN + (delta - groups) + 1 : MIN_COL_SPAN + 1;\n\t}\n\n\tget hasGroupItems(): boolean {\n\t\treturn this.items.some((item: IFormItem) => item.isGroup);\n\t}\n\n\tget hasHeader(): boolean {\n\t\treturn this.hasCustomHeader || !!this.headerText;\n\t}\n\n\tget hasCustomHeader(): boolean {\n\t\treturn !!this.header.length;\n\t}\n\n\tget ariaLabelledByID(): string | undefined {\n\t\treturn this.hasCustomHeader ? undefined : `${this._id}-header-text`;\n\t}\n\n\tget groupItemsInfo(): Array<GroupItemsInfo> {\n\t\treturn this.items.map((groupItem: IFormItem) => {\n\t\t\treturn {\n\t\t\t\tgroupItem,\n\t\t\t\tclasses: `ui5-form-column-spanL-${groupItem.colsL} ui5-form-column-spanXL-${groupItem.colsXl} ui5-form-column-spanM-${groupItem.colsM} ui5-form-column-spanS-${groupItem.colsS}`,\n\t\t\t\titems: this.getItemsInfo((Array.from(groupItem.children) as Array<IFormItem>)),\n\t\t\t};\n\t\t});\n\t}\n\n\tget itemsInfo(): Array<ItemsInfo> {\n\t\treturn this.getItemsInfo();\n\t}\n\n\tgetItemsInfo(items?: Array<IFormItem>): Array<ItemsInfo> {\n\t\treturn (items || this.items).map((item: IFormItem) => {\n\t\t\treturn {\n\t\t\t\titem,\n\t\t\t\tclasses: item.columnSpan ? `ui5-form-item-span-${item.columnSpan}` : \"\",\n\t\t\t};\n\t\t});\n\t}\n\n\tcreateAdditionalCSSStyleSheet() {\n\t\t[\n\t\t\t{ breakpoint: \"S\", columns: this.columnsS },\n\t\t\t{ breakpoint: \"M\", columns: this.columnsM },\n\t\t\t{ breakpoint: \"L\", columns: this.columnsL },\n\t\t\t{ breakpoint: \"XL\", columns: this.columnsXl },\n\t\t].forEach(step => {\n\t\t\tconst additionalStyle: string | undefined = this.getAdditionalCSS(step.breakpoint, step.columns);\n\n\t\t\tif (additionalStyle) {\n\t\t\t\tthis.shadowRoot!.adoptedStyleSheets = [...this.shadowRoot!.adoptedStyleSheets, this.getCSSStyleSheet(additionalStyle)];\n\t\t\t}\n\t\t});\n\t}\n\n\tgetAdditionalCSS(step: string, colsNumber: number): string | undefined {\n\t\tif (StepColumn[step as keyof typeof StepColumn] >= colsNumber) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst key = `${step}-${colsNumber}`;\n\n\t\tif (!additionalStylesMap.has(key)) {\n\t\t\tlet containerQuery;\n\t\t\tlet supporedColumnsNumber!: number;\n\t\t\tlet stepSpanCSS = \"\";\n\t\t\tlet cols = colsNumber;\n\n\t\t\tif (step === \"S\") {\n\t\t\t\tsupporedColumnsNumber = StepColumn.S;\n\t\t\t\tcontainerQuery = `@container (max-width: 599px) {`;\n\t\t\t} else if (step === \"M\") {\n\t\t\t\tsupporedColumnsNumber = StepColumn.M;\n\t\t\t\tcontainerQuery = `@container (width > 599px) and (width < 1024px) {`;\n\t\t\t} else if (step === \"L\") {\n\t\t\t\tsupporedColumnsNumber = StepColumn.L;\n\t\t\t\tcontainerQuery = `@container (width > 1023px) and (width < 1439px) {`;\n\t\t\t} else if (step === \"XL\") {\n\t\t\t\tcontainerQuery = `@container (min-width: 1440px) {`;\n\t\t\t\tsupporedColumnsNumber = StepColumn.XL;\n\t\t\t}\n\n\t\t\twhile (cols > supporedColumnsNumber) {\n\t\t\t\tstepSpanCSS += `\n\t\t\t\t:host([columns-${step.toLocaleLowerCase()}=\"${cols}\"]) .ui5-form-layout {\n\t\t\t\t\tgrid-template-columns: repeat(${cols}, 1fr);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t.ui5-form-column-span${step}-${cols},\n\t\t\t\t.ui5-form-item-span-${cols} {\n\t\t\t\t\tgrid-column: span ${cols};\n\t\t\t\t}\n\n\t\t\t\t.ui5-form-column-span${step}-${cols} .ui5-form-group-layout {\n\t\t\t\t\tgrid-template-columns: repeat(${cols}, 1fr);\n\t\t\t\t}\n\t\t\t\t`;\n\t\t\t\tcols--;\n\t\t\t}\n\n\t\t\tconst css = `${containerQuery}${stepSpanCSS}}`;\n\t\t\tadditionalStylesMap.set(key, css);\n\t\t}\n\n\t\treturn additionalStylesMap.get(key)!;\n\t}\n\n\tgetCSSStyleSheet(cssText: string): CSSStyleSheet {\n\t\tconst style = new CSSStyleSheet();\n\t\tstyle.replaceSync(cssText);\n\t\treturn style;\n\t}\n}\n\nForm.define();\n\nexport default Form;\nexport {\n\tIFormItem,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"Form.js","sourceRoot":"","sources":["../src/Form.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AACnE,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAE7E,WAAW;AACX,OAAO,YAAY,MAAM,2CAA2C,CAAC;AAErE,SAAS;AACT,OAAO,OAAO,MAAM,gCAAgC,CAAC;AAErD,OAAO,KAAK,MAAM,YAAY,CAAC;AAI/B,MAAM,mBAAmB,GAAG,IAAI,GAAG,EAAkB,CAAC;AAEtD,MAAM,UAAU,GAAG;IAClB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;CACP,CAAC;AA8BF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AC;yCACX;AApGX,IAAI;IAPT,aAAa,CAAC;QACd,GAAG,EAAE,UAAU;QACf,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,OAAO;QACf,QAAQ,EAAE,YAAY;QACtB,YAAY,EAAE,CAAC,KAAK,CAAC;KACrB,CAAC;GACI,IAAI,CAwTT;AAED,IAAI,CAAC,MAAM,EAAE,CAAC;AAEd,eAAe,IAAI,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\n\n// Template\nimport FormTemplate from \"./generated/templates/FormTemplate.lit.js\";\n\n// Styles\nimport FormCss from \"./generated/themes/Form.css.js\";\n\nimport Title from \"./Title.js\";\nimport type FormItemSpacing from \"./types/FormItemSpacing.js\";\nimport type FormGroup from \"./FormGroup.js\";\n\nconst additionalStylesMap = new Map<string, string>();\n\nconst StepColumn = {\n\t\"S\": 1,\n\t\"M\": 2,\n\t\"L\": 3,\n\t\"XL\": 6,\n};\n\n/**\n * Interface for components that can be slotted inside `ui5-form` as items.\n * @public\n * @experimental\n * @since 2.0.0\n */\ninterface IFormItem extends HTMLElement {\n\tlabelSpan: string\n\titemSpacing: `${FormItemSpacing}`;\n\treadonly isGroup: boolean;\n\tcolsXl?: number;\n\tcolsL?: number;\n\tcolsM?: number;\n\tcolsS?: number;\n\tcolumnSpan?: number;\n}\n\ntype GroupItemsInfo = {\n\tgroupItem: IFormItem,\n\tclasses: string,\n\titems: Array<ItemsInfo>,\n}\n\ntype ItemsInfo = {\n\titem: IFormItem,\n\tclasses: string,\n}\n\n/**\n * @class\n *\n * ### Overview\n *\n * The Form is a layout component that arranges labels and form fields (like input fields) pairs\n * into a specific number of columns.\n *\n * ### Structure\n *\n * - **Form** (`ui5-form`) is the top-level container component, responsible for the content layout and responsiveness.\n * - **FormGroup** (`ui5-form-group`) enables the grouping of the Form content.\n * - **FormItem** (`ui5-form-item`) is a pair of label and form fields and can be used directly in a Form, or as part of a FormGroup.\n *\n * The simplest Form (`ui5-form`) consists of a header area on top,\n * displaying a header text (see the `headingText` property) and content below - an arbitrary number of FormItems (ui5-form-item),\n * representing the pairs of label and form fields.\n *\n * And, there is also \"grouping\" available to assist the implementation of richer UIs.\n * This is enabled by the FormGroup (`ui5-form-group`) component.\n * In this case, the Form is structured into FormGroups and each FormGroup consists of FormItems.\n *\n * ### Responsiveness\n *\n * The Form component reacts and changes its layout on predefined breakpoints.\n * Depending on its size, the Form content (FormGroups and FormItems) gets divided into one or more columns as follows:\n * - **S** (< 600px) – 1 column is recommended (default: 1)\n * - **M** (600px - 1022px) – up to 2 columns are recommended (default: 1)\n * - **L** (1023px - 1439px) - up to 3 columns are recommended (default: 2)\n * - **XL** (> 1439px) – up to 6 columns are recommended (default: 2)\n *\n * To change the layout, use the `layout` property - f.e. layout=\"S1 M2 L3 XL6\".\n *\n * ### Groups\n *\n * To make better use of screen space, there is built-in logic to determine how many columns should a FormGroup occupy.\n *\n * - **Example #1** (perfect match):\n * 4 columns and 4 groups: each group will use 1 column.\n *\n * - **Example #2** (balanced distribution):\n * 4 columns and 2 groups: each group will use 2 columns.\n * 6 columns and 2 groups: each group will use 3 columns.\n *\n * - **Example #3** (unbalanced distribution):\n * 3 columns and 2 groups: the larger one will use 2 columns, the smaller 1 column.\n * 5 columns and 3 groups: two of the groups will use 2 columns each, the smallest 1 column.\n *\n * **Note:** The size of a group element is determined by the number of FormItems assigned to it.\n * In the case of equality, the first in the DOM will use more columns, and the last - fewer columns.\n *\n * - **Example #4** (more groups than columns):\n * 3 columns and 4 groups: each FormGroup uses only 1 column, the last FormGroup will wrap on the second row.\n *\n * ### Groups Column Span\n *\n * To influence the built-in group distribution, described in the previous section,\n * you can use the FormGroup's `columnSpan` property, that defines how many columns the group should expand to.\n *\n * ### Items Column Span\n *\n * FormItem's columnSpan property defines how many columns the form item should expand to inside a form group or the form.\n *\n * ### Items Label Span\n *\n * The placement of the labels depends on the size of the used column.\n * If there is enough space, the labels are next to their associated fields, otherwise - above the fields.\n * By default, the labels take 4/12 of the FormItem, leaving 8/12 parts to associated fields.\n * You can control what space the labels should take via the `labelSpan` property.\n *\n * **For example:** To always place the labels on top set: `labelSpan=\"S12 M12 L12 XL12\"` property.\n *\n * ### ES6 Module Import\n *\n * - import @ui5/webcomponents/dist/Form.js\";\n * - import @ui5/webcomponents/dist/FormGroup.js\";\n * - import @ui5/webcomponents/dist/FormItem.js\";\n *\n * @csspart header - Used to style the wrapper of the header.\n * @csspart layout - Used to style the element defining the form column layout.\n * @csspart column - Used to style a single column of the form column layout.\n *\n * @public\n * @since 2.0.0\n * @experimental This component is availabe since 2.0 under an experimental flag and its API and behaviour are subject to change.\n * @extends UI5Element\n */\n@customElement({\n\ttag: \"ui5-form\",\n\trenderer: litRender,\n\tstyles: FormCss,\n\ttemplate: FormTemplate,\n\tdependencies: [Title],\n})\nclass Form extends UI5Element {\n\t/**\n\t * Defines the number of columns to distribute the form content by breakpoint.\n\t *\n\t * Supported values:\n\t * - `S` - 1 column by default (1 column is recommended)\n\t * - `M` - 1 column by default (up to 2 columns are recommended)\n\t * - `L` - 2 columns by default (up to 3 columns are recommended)\n\t * - `XL` - 2 columns by default (up to 6 columns are recommended)\n\t *\n\t * @default \"S1 M1 L2 XL2\"\n\t * @public\n\t */\n\t@property()\n\tlayout = \"S1 M1 L2 XL2\"\n\n\t/**\n\t * Defines the width proportion of the labels and fields of a FormItem by breakpoint.\n\t *\n\t * By default, the labels take 4/12 (or 1/3) of the form item in M,L and XL sizes,\n\t * and 12/12 in S size, e.g in S the label is on top of its associated field.\n\t *\n\t * The supported values are between 1 and 12. Greater the number, more space the label will use.\n\t *\n\t * **Note:** If \"12\" is set, the label will be displayed on top of its assosiated field.\n\t * @default \"S12 M4 L4 XL4\"\n\t * @public\n\t */\n\t@property()\n\tlabelSpan = \"S12 M4 L4 XL4\";\n\n\t/**\n\t * Defines the header text of the component.\n\t *\n\t * **Note:** The property gets overridden by the `header` slot.\n\t *\n\t * @default undefined\n\t * @public\n\t */\n\t@property()\n\theaderText?: string;\n\n\t/**\n\t * Defines the vertical spacing between form items.\n\t *\n\t * **Note:** If the Form is meant to be switched between \"non-edit\" and \"edit\" modes,\n\t * we recommend using \"Large\" item spacing in \"non-edit\" mode, and \"Normal\" - for \"edit\" mode,\n\t * to avoid \"jumping\" effect, caused by the hight difference between texts in \"non-edit\" mode and the input fields in \"edit\" mode.\n\t *\n\t * @default \"Normal\"\n\t * @public\n\t */\n\t@property()\n\titemSpacing: `${FormItemSpacing}` = \"Normal\";\n\n\t/**\n\t * Defines the component header area.\n\t *\n\t * **Note:** When a `header` is provided, the `headerText` property is ignored.\n\t * @public\n\t */\n\t@slot({ type: HTMLElement })\n\theader!: Array<HTMLElement>;\n\n\t/**\n\t * Defines the component content - FormGroups or FormItems.\n\t *\n\t * **Note:** Mixing FormGroups and standalone FormItems (not belonging to a group) is not supported.\n\t * Either use FormGroups and make sure all FormItems are part of a FormGroup, or use just FormItems without any FormGroups.\n\t * @public\n\t */\n\t@slot({\n\t\ttype: HTMLElement,\n\t\t\"default\": true,\n\t\tindividualSlots: true,\n\t\tinvalidateOnChildChange: true,\n\t})\n\titems!: Array<IFormItem>;\n\n\t/**\n\t * @private\n\t */\n\t@property({ type: Number })\n\tcolumnsS = 1;\n\t@property({ type: Number })\n\tlabelSpanS = 12\n\n\t@property({ type: Number })\n\tcolumnsM = 1;\n\t@property({ type: Number })\n\tlabelSpanM = 4;\n\n\t@property({ type: Number })\n\tcolumnsL = 2;\n\t@property({ type: Number })\n\tlabelSpanL = 4;\n\n\t@property({ type: Number })\n\tcolumnsXl = 2;\n\t@property({ type: Number })\n\tlabelSpanXl = 4;\n\n\tonBeforeRendering() {\n\t\t// Parse the layout and set it to the FormGroups/FormItems.\n\t\tthis.setColumnLayout();\n\n\t\t// Parse the labelSpan and set it to the FormGroups/FormItems.\n\t\tthis.setLabelSpan();\n\n\t\t// Define how many columns a group should take.\n\t\tthis.setGroupsColSpan();\n\t}\n\n\tonAfterRendering() {\n\t\t// Create additional CSS for number of columns that are not supported by default.\n\t\tthis.createAdditionalCSSStyleSheet();\n\t}\n\n\tsetColumnLayout() {\n\t\tconst layoutArr = this.layout.split(\" \");\n\t\tlayoutArr.forEach((breakpoint: string) => {\n\t\t\tif (breakpoint.startsWith(\"S\")) {\n\t\t\t\tthis.columnsS = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"M\")) {\n\t\t\t\tthis.columnsM = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"L\")) {\n\t\t\t\tthis.columnsL = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"XL\")) {\n\t\t\t\tthis.columnsXl = parseInt(breakpoint.slice(2));\n\t\t\t}\n\t\t});\n\t}\n\n\tsetLabelSpan() {\n\t\tthis.labelSpan.split(\" \").forEach((breakpoint: string) => {\n\t\t\tif (breakpoint.startsWith(\"S\")) {\n\t\t\t\tthis.labelSpanS = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"M\")) {\n\t\t\t\tthis.labelSpanM = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"L\")) {\n\t\t\t\tthis.labelSpanL = parseInt(breakpoint.slice(1));\n\t\t\t} else if (breakpoint.startsWith(\"XL\")) {\n\t\t\t\tthis.labelSpanXl = parseInt(breakpoint.slice(2));\n\t\t\t}\n\t\t});\n\n\t\tthis.items.forEach((item: IFormItem) => {\n\t\t\titem.labelSpan = this.labelSpan;\n\t\t\titem.itemSpacing = this.itemSpacing;\n\t\t});\n\t}\n\n\tsetGroupsColSpan() {\n\t\tif (!this.hasGroupItems) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst itemsCount = this.items.length;\n\t\tconst sortedItems = [...this.items].sort((itemA: IFormItem, itemB: IFormItem) => {\n\t\t\treturn (itemB as FormGroup)?.items.length - (itemA as FormGroup)?.items.length;\n\t\t});\n\n\t\tsortedItems.forEach((item: IFormItem, idx: number) => {\n\t\t\titem.colsXl = this.getGroupsColSpan(this.columnsXl, itemsCount, idx, item);\n\t\t\titem.colsL = this.getGroupsColSpan(this.columnsL, itemsCount, idx, item);\n\t\t\titem.colsM = this.getGroupsColSpan(this.columnsM, itemsCount, idx, item);\n\t\t\titem.colsS = this.getGroupsColSpan(this.columnsS, itemsCount, idx, item);\n\t\t});\n\t}\n\n\tgetGroupsColSpan(cols: number, groups: number, index: number, group: IFormItem): number {\n\t\t// Case 0: column span is set from outside.\n\t\tif (group.columnSpan) {\n\t\t\treturn group.columnSpan;\n\t\t}\n\n\t\t// CASE 1: The number of available columns match the number of groups, or only 1 column is available - each group takes 1 column.\n\t\t// For example: 1 column - 1 group, 2 columns - 2 groups, 3 columns - 3 groups, 4columns - 4 groups\n\t\tif (cols === 1 || cols <= groups) {\n\t\t\treturn 1;\n\t\t}\n\n\t\t// CASE 2: The number of available columns IS multiple of the number of groups.\n\t\t// For example: 2 column - 1 group, 3 columns - 1 groups, 4 columns - 1 group, 4 columns - 2 groups\n\t\tif (cols % groups === 0) {\n\t\t\treturn cols / groups;\n\t\t}\n\n\t\t// CASE 3: The number of available columns IS NOT multiple of the number of groups.\n\t\tconst MIN_COL_SPAN = 1;\n\t\tconst delta = cols - groups;\n\n\t\t// 7 cols & 4 groups => 2, 2, 2, 1\n\t\tif (delta <= groups) {\n\t\t\treturn index < delta ? MIN_COL_SPAN + 1 : MIN_COL_SPAN;\n\t\t}\n\n\t\t// 7 cols & 3 groups => 3, 2, 2\n\t\treturn index === 0 ? MIN_COL_SPAN + (delta - groups) + 1 : MIN_COL_SPAN + 1;\n\t}\n\n\tget hasGroupItems(): boolean {\n\t\treturn this.items.some((item: IFormItem) => item.isGroup);\n\t}\n\n\tget hasHeader(): boolean {\n\t\treturn this.hasCustomHeader || !!this.headerText;\n\t}\n\n\tget hasCustomHeader(): boolean {\n\t\treturn !!this.header.length;\n\t}\n\n\tget ariaLabelledByID(): string | undefined {\n\t\treturn this.hasCustomHeader ? undefined : `${this._id}-header-text`;\n\t}\n\n\tget groupItemsInfo(): Array<GroupItemsInfo> {\n\t\treturn this.items.map((groupItem: IFormItem) => {\n\t\t\treturn {\n\t\t\t\tgroupItem,\n\t\t\t\tclasses: `ui5-form-column-spanL-${groupItem.colsL} ui5-form-column-spanXL-${groupItem.colsXl} ui5-form-column-spanM-${groupItem.colsM} ui5-form-column-spanS-${groupItem.colsS}`,\n\t\t\t\titems: this.getItemsInfo((Array.from(groupItem.children) as Array<IFormItem>)),\n\t\t\t};\n\t\t});\n\t}\n\n\tget itemsInfo(): Array<ItemsInfo> {\n\t\treturn this.getItemsInfo();\n\t}\n\n\tgetItemsInfo(items?: Array<IFormItem>): Array<ItemsInfo> {\n\t\treturn (items || this.items).map((item: IFormItem) => {\n\t\t\treturn {\n\t\t\t\titem,\n\t\t\t\tclasses: item.columnSpan ? `ui5-form-item-span-${item.columnSpan}` : \"\",\n\t\t\t};\n\t\t});\n\t}\n\n\tcreateAdditionalCSSStyleSheet() {\n\t\t[\n\t\t\t{ breakpoint: \"S\", columns: this.columnsS },\n\t\t\t{ breakpoint: \"M\", columns: this.columnsM },\n\t\t\t{ breakpoint: \"L\", columns: this.columnsL },\n\t\t\t{ breakpoint: \"XL\", columns: this.columnsXl },\n\t\t].forEach(step => {\n\t\t\tconst additionalStyle: string | undefined = this.getAdditionalCSS(step.breakpoint, step.columns);\n\n\t\t\tif (additionalStyle) {\n\t\t\t\tthis.shadowRoot!.adoptedStyleSheets = [...this.shadowRoot!.adoptedStyleSheets, this.getCSSStyleSheet(additionalStyle)];\n\t\t\t}\n\t\t});\n\t}\n\n\tgetAdditionalCSS(step: string, colsNumber: number): string | undefined {\n\t\tif (StepColumn[step as keyof typeof StepColumn] >= colsNumber) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst key = `${step}-${colsNumber}`;\n\n\t\tif (!additionalStylesMap.has(key)) {\n\t\t\tlet containerQuery;\n\t\t\tlet supporedColumnsNumber = StepColumn.S;\n\t\t\tlet stepSpanCSS = \"\";\n\t\t\tlet cols = colsNumber;\n\n\t\t\tif (step === \"S\") {\n\t\t\t\tsupporedColumnsNumber = StepColumn.S;\n\t\t\t\tcontainerQuery = `@container (max-width: 599px) {`;\n\t\t\t} else if (step === \"M\") {\n\t\t\t\tsupporedColumnsNumber = StepColumn.M;\n\t\t\t\tcontainerQuery = `@container (width > 599px) and (width < 1024px) {`;\n\t\t\t} else if (step === \"L\") {\n\t\t\t\tsupporedColumnsNumber = StepColumn.L;\n\t\t\t\tcontainerQuery = `@container (width > 1023px) and (width < 1439px) {`;\n\t\t\t} else if (step === \"XL\") {\n\t\t\t\tcontainerQuery = `@container (min-width: 1440px) {`;\n\t\t\t\tsupporedColumnsNumber = StepColumn.XL;\n\t\t\t}\n\n\t\t\twhile (cols > supporedColumnsNumber) {\n\t\t\t\tstepSpanCSS += `\n\t\t\t\t:host([columns-${step.toLocaleLowerCase()}=\"${cols}\"]) .ui5-form-layout {\n\t\t\t\t\tgrid-template-columns: repeat(${cols}, 1fr);\n\t\t\t\t}\n\n\t\t\t\t.ui5-form-column-span${step}-${cols},\n\t\t\t\t.ui5-form-item-span-${cols} {\n\t\t\t\t\tgrid-column: span ${cols};\n\t\t\t\t}\n\n\t\t\t\t.ui5-form-column-span${step}-${cols} .ui5-form-group-layout {\n\t\t\t\t\tgrid-template-columns: repeat(${cols}, 1fr);\n\t\t\t\t}\n\t\t\t\t`;\n\t\t\t\tcols--;\n\t\t\t}\n\n\t\t\tconst css = `${containerQuery}${stepSpanCSS}}`;\n\t\t\tadditionalStylesMap.set(key, css);\n\t\t}\n\n\t\treturn additionalStylesMap.get(key)!;\n\t}\n\n\tgetCSSStyleSheet(cssText: string): CSSStyleSheet {\n\t\tconst style = new CSSStyleSheet();\n\t\tstyle.replaceSync(cssText);\n\t\treturn style;\n\t}\n}\n\nForm.define();\n\nexport default Form;\nexport {\n\tIFormItem,\n};\n"]}
|
package/dist/FormGroup.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
|
|
2
2
|
import type FormItem from "./FormItem.js";
|
|
3
3
|
import type { IFormItem } from "./Form.js";
|
|
4
|
-
import FormItemSpacing from "./types/FormItemSpacing.js";
|
|
4
|
+
import type FormItemSpacing from "./types/FormItemSpacing.js";
|
|
5
5
|
/**
|
|
6
6
|
* @class
|
|
7
7
|
*
|
|
@@ -26,16 +26,17 @@ import FormItemSpacing from "./types/FormItemSpacing.js";
|
|
|
26
26
|
* @public
|
|
27
27
|
* @implements {IFormItem}
|
|
28
28
|
* @since 2.0.0
|
|
29
|
+
* @experimental This component is availabe since 2.0 under an experimental flag and its API and behaviour are subject to change.
|
|
29
30
|
* @extends UI5Element
|
|
30
31
|
*/
|
|
31
32
|
declare class FormGroup extends UI5Element implements IFormItem {
|
|
32
33
|
/**
|
|
33
34
|
* Defines header text of the component.
|
|
34
35
|
*
|
|
35
|
-
* @default
|
|
36
|
+
* @default undefined
|
|
36
37
|
* @public
|
|
37
38
|
*/
|
|
38
|
-
headerText
|
|
39
|
+
headerText?: string;
|
|
39
40
|
/**
|
|
40
41
|
* Defines column span of the component,
|
|
41
42
|
* e.g how many columns the group should span to.
|
package/dist/FormGroup.js
CHANGED
|
@@ -5,11 +5,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
|
|
8
|
-
import Integer from "@ui5/webcomponents-base/dist/types/Integer.js";
|
|
9
8
|
import customElement from "@ui5/webcomponents-base/dist/decorators/customElement.js";
|
|
10
9
|
import property from "@ui5/webcomponents-base/dist/decorators/property.js";
|
|
11
10
|
import slot from "@ui5/webcomponents-base/dist/decorators/slot.js";
|
|
12
|
-
import FormItemSpacing from "./types/FormItemSpacing.js";
|
|
13
11
|
/**
|
|
14
12
|
* @class
|
|
15
13
|
*
|
|
@@ -34,9 +32,22 @@ import FormItemSpacing from "./types/FormItemSpacing.js";
|
|
|
34
32
|
* @public
|
|
35
33
|
* @implements {IFormItem}
|
|
36
34
|
* @since 2.0.0
|
|
35
|
+
* @experimental This component is availabe since 2.0 under an experimental flag and its API and behaviour are subject to change.
|
|
37
36
|
* @extends UI5Element
|
|
38
37
|
*/
|
|
39
38
|
let FormGroup = class FormGroup extends UI5Element {
|
|
39
|
+
constructor() {
|
|
40
|
+
super(...arguments);
|
|
41
|
+
/**
|
|
42
|
+
* @private
|
|
43
|
+
*/
|
|
44
|
+
this.colsS = 1;
|
|
45
|
+
this.colsM = 1;
|
|
46
|
+
this.colsL = 1;
|
|
47
|
+
this.colsXl = 1;
|
|
48
|
+
this.itemSpacing = "Normal";
|
|
49
|
+
this.labelSpan = "S12 M4 L4 XL4";
|
|
50
|
+
}
|
|
40
51
|
onBeforeRendering() {
|
|
41
52
|
this.processFormItems();
|
|
42
53
|
}
|
|
@@ -54,7 +65,7 @@ __decorate([
|
|
|
54
65
|
property()
|
|
55
66
|
], FormGroup.prototype, "headerText", void 0);
|
|
56
67
|
__decorate([
|
|
57
|
-
property({
|
|
68
|
+
property({ type: Number })
|
|
58
69
|
], FormGroup.prototype, "columnSpan", void 0);
|
|
59
70
|
__decorate([
|
|
60
71
|
slot({
|
|
@@ -63,23 +74,20 @@ __decorate([
|
|
|
63
74
|
})
|
|
64
75
|
], FormGroup.prototype, "items", void 0);
|
|
65
76
|
__decorate([
|
|
66
|
-
property({
|
|
77
|
+
property({ type: Number })
|
|
67
78
|
], FormGroup.prototype, "colsS", void 0);
|
|
68
79
|
__decorate([
|
|
69
|
-
property({
|
|
80
|
+
property({ type: Number })
|
|
70
81
|
], FormGroup.prototype, "colsM", void 0);
|
|
71
82
|
__decorate([
|
|
72
|
-
property({
|
|
83
|
+
property({ type: Number })
|
|
73
84
|
], FormGroup.prototype, "colsL", void 0);
|
|
74
85
|
__decorate([
|
|
75
|
-
property({
|
|
86
|
+
property({ type: Number })
|
|
76
87
|
], FormGroup.prototype, "colsXl", void 0);
|
|
77
88
|
__decorate([
|
|
78
|
-
property(
|
|
89
|
+
property()
|
|
79
90
|
], FormGroup.prototype, "itemSpacing", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
property({ type: String, defaultValue: "S12 M4 L4 XL4" })
|
|
82
|
-
], FormGroup.prototype, "labelSpan", void 0);
|
|
83
91
|
FormGroup = __decorate([
|
|
84
92
|
customElement("ui5-form-group")
|
|
85
93
|
], FormGroup);
|
package/dist/FormGroup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormGroup.js","sourceRoot":"","sources":["../src/FormGroup.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,
|
|
1
|
+
{"version":3,"file":"FormGroup.js","sourceRoot":"","sources":["../src/FormGroup.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AAMnE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,UAAU;IAAlC;;QA8BC;;WAEG;QAEH,UAAK,GAAG,CAAC,CAAC;QAGV,UAAK,GAAG,CAAC,CAAC;QAGV,UAAK,GAAG,CAAC,CAAC;QAGV,WAAM,GAAG,CAAC,CAAC;QAGX,gBAAW,GAAyB,QAAQ,CAAC;QAE7C,cAAS,GAAG,eAAe,CAAC;IAgB7B,CAAC;IAdA,iBAAiB;QAChB,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACzB,CAAC;IAED,gBAAgB;QACf,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAc,EAAE,EAAE;YACrC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;YAChC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACrC,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,IAAI,OAAO;QACV,OAAO,IAAI,CAAC;IACb,CAAC;CACD,CAAA;AAxDA;IADC,QAAQ,EAAE;6CACS;AAUpB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CACP;AAUpB;IAJC,IAAI,CAAC;QACL,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,IAAI;KACf,CAAC;wCACsB;AAMxB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCACjB;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCACjB;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCACjB;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;yCAChB;AAGX;IADC,QAAQ,EAAE;8CACkC;AA9CxC,SAAS;IADd,aAAa,CAAC,gBAAgB,CAAC;GAC1B,SAAS,CAgEd;AAED,SAAS,CAAC,MAAM,EAAE,CAAC;AAEnB,eAAe,SAAS,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\n\nimport type FormItem from \"./FormItem.js\";\nimport type { IFormItem } from \"./Form.js\";\nimport type FormItemSpacing from \"./types/FormItemSpacing.js\";\n\n/**\n * @class\n *\n * ### Overview\n *\n * The FormGroup (ui5-form-group) represents a group inside the Form (ui5-form) component\n * and it consists of FormItem (ui5-form-item) components.\n *\n * The layout of the FormGroup is mostly defined and controlled by the overarching Form (ui5-form) component.\n * Still, one can influence the layout via the FormGroup's `columnSpan` property,\n * that defines how many columns the group should expand to.\n *\n * ### Usage\n *\n * Тhe FormGroup (ui5-form-group) allows to split a Form into groups,\n * e.g to group FormItems that logically belong together.\n *\n * ### ES6 Module Import\n *\n * - import @ui5/webcomponents/dist/FormGroup.js\";\n *\n * @public\n * @implements {IFormItem}\n * @since 2.0.0\n * @experimental This component is availabe since 2.0 under an experimental flag and its API and behaviour are subject to change.\n * @extends UI5Element\n */\n@customElement(\"ui5-form-group\")\nclass FormGroup extends UI5Element implements IFormItem {\n\t/**\n\t * Defines header text of the component.\n\t *\n\t * @default undefined\n\t * @public\n\t */\n\t@property()\n\theaderText?: string;\n\n\t/**\n\t * Defines column span of the component,\n\t * e.g how many columns the group should span to.\n\t *\n\t * @default undefined\n\t * @public\n\t */\n\t@property({ type: Number })\n\tcolumnSpan?: number;\n\n\t/**\n\t * Defines the items of the component.\n\t * @public\n\t */\n\t@slot({\n\t\ttype: HTMLElement,\n\t\t\"default\": true,\n\t})\n\titems!: Array<FormItem>;\n\n\t/**\n\t * @private\n\t */\n\t@property({ type: Number })\n\tcolsS = 1;\n\n\t@property({ type: Number })\n\tcolsM = 1;\n\n\t@property({ type: Number })\n\tcolsL = 1;\n\n\t@property({ type: Number })\n\tcolsXl = 1;\n\n\t@property()\n\titemSpacing: `${FormItemSpacing}` = \"Normal\";\n\n\tlabelSpan = \"S12 M4 L4 XL4\";\n\n\tonBeforeRendering() {\n\t\tthis.processFormItems();\n\t}\n\n\tprocessFormItems() {\n\t\tthis.items.forEach((item: FormItem) => {\n\t\t\titem.labelSpan = this.labelSpan;\n\t\t\titem.itemSpacing = this.itemSpacing;\n\t\t});\n\t}\n\n\tget isGroup() {\n\t\treturn true;\n\t}\n}\n\nFormGroup.define();\n\nexport default FormGroup;\n"]}
|
package/dist/FormItem.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
|
|
2
2
|
import type { IFormItem } from "./Form.js";
|
|
3
|
-
import FormItemSpacing from "./types/FormItemSpacing.js";
|
|
3
|
+
import type FormItemSpacing from "./types/FormItemSpacing.js";
|
|
4
4
|
/**
|
|
5
5
|
* @class
|
|
6
6
|
*
|
|
@@ -25,6 +25,7 @@ import FormItemSpacing from "./types/FormItemSpacing.js";
|
|
|
25
25
|
* @implements {IFormItem}
|
|
26
26
|
* @public
|
|
27
27
|
* @since 2.0.0
|
|
28
|
+
* @experimental This component is availabe since 2.0 under an experimental flag and its API and behaviour are subject to change.
|
|
28
29
|
* @extends UI5Element
|
|
29
30
|
*/
|
|
30
31
|
declare class FormItem extends UI5Element implements IFormItem {
|
package/dist/FormItem.js
CHANGED
|
@@ -9,12 +9,10 @@ import property from "@ui5/webcomponents-base/dist/decorators/property.js";
|
|
|
9
9
|
import customElement from "@ui5/webcomponents-base/dist/decorators/customElement.js";
|
|
10
10
|
import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
|
|
11
11
|
import slot from "@ui5/webcomponents-base/dist/decorators/slot.js";
|
|
12
|
-
import Integer from "@ui5/webcomponents-base/dist/types/Integer.js";
|
|
13
12
|
// Template
|
|
14
13
|
import FormItemTemplate from "./generated/templates/FormItemTemplate.lit.js";
|
|
15
14
|
// Styles
|
|
16
15
|
import FormItemCss from "./generated/themes/FormItem.css.js";
|
|
17
|
-
import FormItemSpacing from "./types/FormItemSpacing.js";
|
|
18
16
|
/**
|
|
19
17
|
* @class
|
|
20
18
|
*
|
|
@@ -39,15 +37,27 @@ import FormItemSpacing from "./types/FormItemSpacing.js";
|
|
|
39
37
|
* @implements {IFormItem}
|
|
40
38
|
* @public
|
|
41
39
|
* @since 2.0.0
|
|
40
|
+
* @experimental This component is availabe since 2.0 under an experimental flag and its API and behaviour are subject to change.
|
|
42
41
|
* @extends UI5Element
|
|
43
42
|
*/
|
|
44
43
|
let FormItem = class FormItem extends UI5Element {
|
|
44
|
+
constructor() {
|
|
45
|
+
super(...arguments);
|
|
46
|
+
/**
|
|
47
|
+
* @private
|
|
48
|
+
*/
|
|
49
|
+
this.labelSpan = "S12 M4 L4 XL4";
|
|
50
|
+
/**
|
|
51
|
+
* @private
|
|
52
|
+
*/
|
|
53
|
+
this.itemSpacing = "Normal";
|
|
54
|
+
}
|
|
45
55
|
get isGroup() {
|
|
46
56
|
return false;
|
|
47
57
|
}
|
|
48
58
|
};
|
|
49
59
|
__decorate([
|
|
50
|
-
property({
|
|
60
|
+
property({ type: Number })
|
|
51
61
|
], FormItem.prototype, "columnSpan", void 0);
|
|
52
62
|
__decorate([
|
|
53
63
|
slot()
|
|
@@ -60,10 +70,10 @@ __decorate([
|
|
|
60
70
|
})
|
|
61
71
|
], FormItem.prototype, "content", void 0);
|
|
62
72
|
__decorate([
|
|
63
|
-
property(
|
|
73
|
+
property()
|
|
64
74
|
], FormItem.prototype, "labelSpan", void 0);
|
|
65
75
|
__decorate([
|
|
66
|
-
property(
|
|
76
|
+
property()
|
|
67
77
|
], FormItem.prototype, "itemSpacing", void 0);
|
|
68
78
|
FormItem = __decorate([
|
|
69
79
|
customElement({
|
package/dist/FormItem.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormItem.js","sourceRoot":"","sources":["../src/FormItem.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAC7E,OAAO,IAAI,MAAM,iDAAiD,CAAC;
|
|
1
|
+
{"version":3,"file":"FormItem.js","sourceRoot":"","sources":["../src/FormItem.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,SAAS,MAAM,sDAAsD,CAAC;AAC7E,OAAO,IAAI,MAAM,iDAAiD,CAAC;AAEnE,WAAW;AACX,OAAO,gBAAgB,MAAM,+CAA+C,CAAC;AAE7E,SAAS;AACT,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAK7D;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAOH,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,UAAU;IAAjC;;QAkCC;;WAEG;QAEH,cAAS,GAAG,eAAe,CAAC;QAE5B;;WAEG;QAEH,gBAAW,GAAyB,QAAQ,CAAA;IAK7C,CAAC;IAHA,IAAI,OAAO;QACV,OAAO,KAAK,CAAC;IACd,CAAC;CACD,CAAA;AApCA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CACP;AAOpB;IADC,IAAI,EAAE;8CAC2B;AAYlC;IALC,IAAI,CAAC;QACL,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,IAAI;QACf,eAAe,EAAE,IAAI;KACrB,CAAC;yCAC2B;AAM7B;IADC,QAAQ,EAAE;2CACiB;AAM5B;IADC,QAAQ,EAAE;6CACiC;AA5CvC,QAAQ;IANb,aAAa,CAAC;QACd,GAAG,EAAE,eAAe;QACpB,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,WAAW;QACnB,QAAQ,EAAE,gBAAgB;KAC1B,CAAC;GACI,QAAQ,CAiDb;AAED,QAAQ,CAAC,MAAM,EAAE,CAAC;AAElB,eAAe,QAAQ,CAAC","sourcesContent":["import UI5Element from \"@ui5/webcomponents-base/dist/UI5Element.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport litRender from \"@ui5/webcomponents-base/dist/renderer/LitRenderer.js\";\nimport slot from \"@ui5/webcomponents-base/dist/decorators/slot.js\";\n\n// Template\nimport FormItemTemplate from \"./generated/templates/FormItemTemplate.lit.js\";\n\n// Styles\nimport FormItemCss from \"./generated/themes/FormItem.css.js\";\n\nimport type { IFormItem } from \"./Form.js\";\nimport type FormItemSpacing from \"./types/FormItemSpacing.js\";\n\n/**\n * @class\n *\n * ### Overview\n *\n * The FormItem (ui5-form-item) represents pair of a label and\n * one or more components (text or text fields), associated to it.\n *\n * ### Usage\n *\n * The FormItem is being used in FormGroup (ui5-form-group) or directly in Form (ui5-form).\n *\n * ### ES6 Module Import\n *\n * - import @ui5/webcomponents/dist/FormItem.js\";\n *\n * @csspart layout - Used to style the parent element of the label and content parts.\n * @csspart label - Used to style the label part of the form item.\n * @csspart content - Used to style the content part of the form item.\n *\n * @constructor\n * @implements {IFormItem}\n * @public\n * @since 2.0.0\n * @experimental This component is availabe since 2.0 under an experimental flag and its API and behaviour are subject to change.\n * @extends UI5Element\n */\n@customElement({\n\ttag: \"ui5-form-item\",\n\trenderer: litRender,\n\tstyles: FormItemCss,\n\ttemplate: FormItemTemplate,\n})\nclass FormItem extends UI5Element implements IFormItem {\n\t/**\n\t * Defines the column span of the component,\n\t * e.g how many columns the component should span to.\n\t *\n\t * **Note:** The column span should be a number between 1 and the available columns of the FormGroup (when items are placed in a group)\n\t * or the Form. The available columns can be affected by the FormGroup#columnSpan and/or the Form#layout.\n\t * A number bigger than the available columns won't take effect.\n\t *\n\t * @default undefined\n\t * @public\n\t */\n\t@property({ type: Number })\n\tcolumnSpan?: number;\n\n\t/**\n\t * Defines the label of the component.\n\t * @public\n\t */\n\t@slot()\n\tlabelContent!: Array<HTMLElement>;\n\n\t/**\n\t * Defines the content of the component,\n\t * associated to `labelContent`.\n\t * @public\n\t */\n\t@slot({\n\t\ttype: HTMLElement,\n\t\t\"default\": true,\n\t\tindividualSlots: true,\n\t})\n\tcontent!: Array<HTMLElement>;\n\n\t/**\n\t * @private\n\t */\n\t@property()\n\tlabelSpan = \"S12 M4 L4 XL4\";\n\n\t/**\n\t * @private\n\t */\n\t@property()\n\titemSpacing: `${FormItemSpacing}` = \"Normal\"\n\n\tget isGroup() {\n\t\treturn false;\n\t}\n}\n\nFormItem.define();\n\nexport default FormItem;\n"]}
|
package/dist/Icon.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
|
|
2
2
|
import type { I18nText } from "@ui5/webcomponents-base/dist/i18nBundle.js";
|
|
3
|
-
import IconDesign from "./types/IconDesign.js";
|
|
3
|
+
import type IconDesign from "./types/IconDesign.js";
|
|
4
4
|
import IconMode from "./types/IconMode.js";
|
|
5
5
|
/**
|
|
6
6
|
* Interface for components that represent an icon, usable in numerous higher-order components
|
|
@@ -108,20 +108,20 @@ declare class Icon extends UI5Element implements IIcon {
|
|
|
108
108
|
*
|
|
109
109
|
* Example:
|
|
110
110
|
* `name='business-suite/3d'`, `name='business-suite/1x2-grid-layout'`, `name='business-suite/4x4-grid-layout'`.
|
|
111
|
-
* @default
|
|
111
|
+
* @default undefined
|
|
112
112
|
* @public
|
|
113
113
|
*/
|
|
114
|
-
name
|
|
114
|
+
name?: string;
|
|
115
115
|
/**
|
|
116
116
|
* Defines the text alternative of the component.
|
|
117
117
|
* If not provided a default text alternative will be set, if present.
|
|
118
118
|
*
|
|
119
119
|
* **Note:** Every icon should have a text alternative in order to
|
|
120
120
|
* calculate its accessible name.
|
|
121
|
-
* @default
|
|
121
|
+
* @default undefined
|
|
122
122
|
* @public
|
|
123
123
|
*/
|
|
124
|
-
accessibleName
|
|
124
|
+
accessibleName?: string;
|
|
125
125
|
/**
|
|
126
126
|
* Defines whether the component should have a tooltip.
|
|
127
127
|
*
|
package/dist/Icon.js
CHANGED
|
@@ -15,7 +15,6 @@ import { isDesktop } from "@ui5/webcomponents-base/dist/Device.js";
|
|
|
15
15
|
import { isSpace, isEnter } from "@ui5/webcomponents-base/dist/Keys.js";
|
|
16
16
|
import executeTemplate from "@ui5/webcomponents-base/dist/renderer/executeTemplate.js";
|
|
17
17
|
import IconTemplate from "./generated/templates/IconTemplate.lit.js";
|
|
18
|
-
import IconDesign from "./types/IconDesign.js";
|
|
19
18
|
import IconMode from "./types/IconMode.js";
|
|
20
19
|
// Styles
|
|
21
20
|
import iconCss from "./generated/themes/Icon.css.js";
|
|
@@ -91,6 +90,39 @@ const ICON_NOT_FOUND = "ICON_NOT_FOUND";
|
|
|
91
90
|
* @public
|
|
92
91
|
*/
|
|
93
92
|
let Icon = class Icon extends UI5Element {
|
|
93
|
+
constructor() {
|
|
94
|
+
super(...arguments);
|
|
95
|
+
/**
|
|
96
|
+
* Defines the component semantic design.
|
|
97
|
+
* @default "Default"
|
|
98
|
+
* @public
|
|
99
|
+
* @since 1.9.2
|
|
100
|
+
*/
|
|
101
|
+
this.design = "Default";
|
|
102
|
+
/**
|
|
103
|
+
* Defines whether the component should have a tooltip.
|
|
104
|
+
*
|
|
105
|
+
* **Note:** The tooltip text should be provided via the `accessible-name` property.
|
|
106
|
+
* @default false
|
|
107
|
+
* @public
|
|
108
|
+
*/
|
|
109
|
+
this.showTooltip = false;
|
|
110
|
+
/**
|
|
111
|
+
* Defines the mode of the component.
|
|
112
|
+
* @default "Image"
|
|
113
|
+
* @public
|
|
114
|
+
* @since 2.0.0
|
|
115
|
+
*/
|
|
116
|
+
this.mode = "Image";
|
|
117
|
+
/**
|
|
118
|
+
* @private
|
|
119
|
+
*/
|
|
120
|
+
this.pathData = [];
|
|
121
|
+
/**
|
|
122
|
+
* @private
|
|
123
|
+
*/
|
|
124
|
+
this.invalid = false;
|
|
125
|
+
}
|
|
94
126
|
_onkeydown(e) {
|
|
95
127
|
if (this.mode !== IconMode.Interactive) {
|
|
96
128
|
return;
|
|
@@ -181,7 +213,7 @@ let Icon = class Icon extends UI5Element {
|
|
|
181
213
|
}
|
|
182
214
|
};
|
|
183
215
|
__decorate([
|
|
184
|
-
property(
|
|
216
|
+
property()
|
|
185
217
|
], Icon.prototype, "design", void 0);
|
|
186
218
|
__decorate([
|
|
187
219
|
property()
|
|
@@ -193,19 +225,19 @@ __decorate([
|
|
|
193
225
|
property({ type: Boolean })
|
|
194
226
|
], Icon.prototype, "showTooltip", void 0);
|
|
195
227
|
__decorate([
|
|
196
|
-
property(
|
|
228
|
+
property()
|
|
197
229
|
], Icon.prototype, "mode", void 0);
|
|
198
230
|
__decorate([
|
|
199
|
-
property({
|
|
231
|
+
property({ type: Array })
|
|
200
232
|
], Icon.prototype, "pathData", void 0);
|
|
201
233
|
__decorate([
|
|
202
|
-
property({ type: Object,
|
|
234
|
+
property({ type: Object, noAttribute: true })
|
|
203
235
|
], Icon.prototype, "accData", void 0);
|
|
204
236
|
__decorate([
|
|
205
237
|
property({ type: Boolean })
|
|
206
238
|
], Icon.prototype, "invalid", void 0);
|
|
207
239
|
__decorate([
|
|
208
|
-
property({ noAttribute: true
|
|
240
|
+
property({ noAttribute: true })
|
|
209
241
|
], Icon.prototype, "effectiveAccessibleName", void 0);
|
|
210
242
|
Icon = __decorate([
|
|
211
243
|
customElement({
|