-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(FTM): New Toolbar - Implement Preview Button and Preview Toolbar (…
…#30854) This pull request includes several updates to the `DotEmaShellComponent` and `DotUveToolbarComponent` to improve their functionality and styling. The most important changes include modifying location handling methods, updating button styles, and restructuring the toolbar component. ### Changes to `DotEmaShellComponent`: * Replaced `replaceState` with `go` in the `#updateLocation` method to improve URL handling. * Updated test cases to use `location.go` instead of `location.replaceState` for consistency. [[1]](diffhunk://#diff-8843e3a4ce8c16e83408b1a6dcc3ad54eaddd17f8e986bbdb502e11bd4446ab4L310-R310) [[2]](diffhunk://#diff-8843e3a4ce8c16e83408b1a6dcc3ad54eaddd17f8e986bbdb502e11bd4446ab4L379-R379) [[3]](diffhunk://#diff-8843e3a4ce8c16e83408b1a6dcc3ad54eaddd17f8e986bbdb502e11bd4446ab4L564-R564) ### Changes to `DotUveToolbarComponent`: * Added new styles for the toolbar and its components, including buttons and chips, to enhance the user interface. * Refactored the toolbar component template to include separate templates for edit and preview modes and added new buttons and functionality for better user experience. [[1]](diffhunk://#diff-9937556e73b051b878ba22ad1ce971a70019a617d7979b3e0bcc814801ad350bL1-R34)R1, [[2]](diffhunk://#diff-9937556e73b051b878ba22ad1ce971a70019a617d7979b3e0bcc814801ad350bR52-R115) * Updated test cases to reflect the new structure and functionality of the toolbar component, ensuring proper testing of the new features. [[1]](diffhunk://#diff-3eaa147616a5d1ff374a5fa27b0f38f0159a9039ef7e8d672dec43631f48a9e1R49-L53) [[2]](diffhunk://#diff-3eaa147616a5d1ff374a5fa27b0f38f0159a9039ef7e8d672dec43631f48a9e1L110-L169) [[3]](diffhunk://#diff-3eaa147616a5d1ff374a5fa27b0f38f0159a9039ef7e8d672dec43631f48a9e1L186-L189) [[4]](diffhunk://#diff-3eaa147616a5d1ff374a5fa27b0f38f0159a9039ef7e8d672dec43631f48a9e1L205-R201) [[5]](diffhunk://#diff-3eaa147616a5d1ff374a5fa27b0f38f0159a9039ef7e8d672dec43631f48a9e1L222-R237) ### Other Changes: * Added a new severity style for text buttons in `_splitbutton.scss` to standardize button appearance. * Updated button styles in `dot-ema-bookmarks.component.html` to include a smaller size class for better visual consistency. ### Video https://github.com/user-attachments/assets/576dce00-f7f0-47eb-a744-7eaac368dcf4
- Loading branch information
Showing
19 changed files
with
459 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 38 additions & 1 deletion
39
...portlet/src/lib/edit-ema-editor/components/dot-uve-toolbar/dot-uve-toolbar.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,44 @@ | ||
@use "variables" as *; | ||
|
||
::ng-deep { | ||
.uve-toolbar { | ||
padding: 0 $spacing-4; | ||
transition: padding 0.2s ease; | ||
border-color: $color-palette-primary-200; | ||
border-top: 1px solid transparent; // Avoid jump | ||
} | ||
|
||
.uve-toolbar-preview { | ||
border-top-color: $color-palette-primary-200; | ||
padding-inline: $spacing-5; | ||
} | ||
|
||
.p-chip.uve-toolbar-chips { | ||
height: $field-height-sm; | ||
background-color: $color-palette-primary-op-10; | ||
border-color: $color-palette-primary-op-10; | ||
} | ||
} | ||
|
||
.p-toolbar-group-start, | ||
.p-toolbar-group-end { | ||
.p-toolbar-group-end, | ||
.p-toolbar-group-center { | ||
padding: $spacing-1 0; | ||
align-items: center; | ||
gap: $spacing-1; | ||
align-self: stretch; | ||
} | ||
|
||
.vertical-divider { | ||
align-self: stretch; | ||
position: relative; | ||
&::before { | ||
border-left: 1px solid $color-palette-primary-200; | ||
position: absolute; | ||
display: block; | ||
top: 0; | ||
left: 50%; | ||
height: 100%; | ||
content: ""; | ||
} | ||
} |
Oops, something went wrong.