-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ui5-user-settings-dialog): introduce new components UserSettingsDialog
, UserSettingsItem
, and UserSettingsView
#10832
Conversation
We have discussed the following changes together with @adrian-bobev
|
UserSettingsDialog
, UserSettingsItem
, and UserSettingsView
🎉 This PR is included in version v2.8.0-rc.3 🎉 The release is available on v2.8.0-rc.3 Your semantic-release bot 📦🚀 |
The change introduces several components - UserSettingsDialog, UserSettingsItem, and UserSettingsView to build application forms more easily and according to the latest design guidelines.
Overview
The user settings dialog is used to display and operate preferences in a size-limited window in front of the regular app screen. It prompts the user for an action or confirmation and acts as a container that can hold any control.
Structure
UserSettingsDialog
(ui5-user-settings-dialog
) is the top-level container component, responsible for the content layout and responsiveness.UserSettingsItem
(ui5-user-setting-item
) represents the details of a setting with name, icon, title, and state. It builds the layout based on the content.UserSettingsView
(ui5-user-settings-view
) is each option of the setting which will be shown in the content.The user settings dialog contains title, search, settings list as well as fixed settings, content area and close button.
The content can include a page, tabs or pages with a secondary page.
UserSettingsItem with content page.
UserSettingsItem with content tabs.
UserSettingsItem content of pages with a secondary page. Here we can navigate back to the main page.
To be possible this navigation we should add some JavaScript code.
In this case, it will look like this:
Responsiveness
The Settings component reacts and changes its layout on predefined breakpoints.
Width - Full width.
Height - Full height.
Width - 80% of the screen size.
Height - 80% of the screen size.
Maximum Width -640px.
Maximum Height - 680px.
Minimum Width - 960px.
Height - 680px or 88% of the screen size.
Maximum Width - 960px.
Maximum Height - 960px.
API
UserSettingsDialog
props
slot
UserSettingsItem
props
slot
UserSettingsView
props
slot
Test Pages
fiori/test/pages/UserSettingsDialog.html