forked from dotCMS/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(announcements): modal closing enhancement for announcements (dot…
…CMS#27707) * dotCMS#27434 Adding modal closing enhancement * dotCMS#27434 Adding modal closing enhancement * Clean up * Clean up * Applying style * PR Feedback * PR feedback * dotCMS#27434 Adding toolbar * PR feedback
- Loading branch information
1 parent
f8f9376
commit dcbdf1b
Showing
18 changed files
with
230 additions
and
124 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
127 changes: 63 additions & 64 deletions
127
...dot-toolbar/components/dot-toolbar-announcements/dot-toolbar-announcements.component.html
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,67 +1,66 @@ | ||
<h5 class="announcements__title">{{ 'announcements' | dm }}</h5> | ||
<ul class="announcements__list"> | ||
@for (item of announcements(); track item.identifier;) { | ||
<li | ||
class="announcements__list-item" | ||
[class.announcements__list-item--active]="!item.hasBeenRead"> | ||
<span class="announcements__badge" *ngIf="!item.hasBeenRead"></span> | ||
<span | ||
class="announcements__image pi" | ||
[ngClass]="typesIcons[item.type | lowercase] || typesIcons['important']"></span> | ||
<a | ||
class="announcements__url" | ||
[href]="item.url" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
data-testId="announcement_link" | ||
aria-labelledby="announcement-label date-label"> | ||
<div class="announcements__content"> | ||
<span class="announcements__label">{{ item.title }}</span> | ||
<span class="announcements__date">{{ item.announcementDateAsISO8601 | date }}</span> | ||
<div class="dot-mask" *ngIf="showMask()" data-testId="dot-mask"></div> | ||
<p-overlayPanel | ||
#toolbarAnnouncements | ||
(onHide)="hideDialog()" | ||
appendTo="body" | ||
styleClass="toolbar-announcements__container"> | ||
<div class="announcements__main-container"> | ||
<h5 class="announcements__title">{{ 'announcements' | dm }}</h5> | ||
<ul class="announcements__list"> | ||
@for (item of announcements(); track item.identifier;) { | ||
<li | ||
class="announcements__list-item" | ||
[class.announcements__list-item--active]="!item.hasBeenRead"> | ||
<span class="announcements__badge" *ngIf="!item.hasBeenRead"></span> | ||
<span | ||
class="announcements__image pi" | ||
[ngClass]="typesIcons[item.type | lowercase] || typesIcons['important']"></span> | ||
<a | ||
class="announcements__url" | ||
[href]="item.url" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
data-testId="announcement_link" | ||
aria-labelledby="announcement-label date-label"> | ||
<div class="announcements__content"> | ||
<span class="announcements__label">{{ item.title }}</span> | ||
<span class="announcements__date">{{ | ||
item.announcementDateAsISO8601 | date | ||
}}</span> | ||
</div> | ||
</a> | ||
</li> | ||
} | ||
</ul> | ||
|
||
<div class="announcements__container"> | ||
<div class="announcements__link-container"> | ||
<i class="pi pi-external-link"></i> | ||
<a | ||
class="announcements__link" | ||
[href]="linkToDotCms()" | ||
target="_blank" | ||
data-testId="announcement_link_all" | ||
rel="noopener" | ||
>{{ 'announcements.show.all' | dm }}</a | ||
> | ||
</div> | ||
</a> | ||
</li> | ||
} | ||
</ul> | ||
</div> | ||
|
||
<div class="announcements__container"> | ||
<div class="announcements__link-container"> | ||
<i class="pi pi-external-link"></i> | ||
<a | ||
class="announcements__link" | ||
[href]="linkToDotCms()" | ||
target="_blank" | ||
data-testId="announcement_link_all" | ||
rel="noopener" | ||
>{{ 'announcements.show.all' | dm }}</a | ||
> | ||
@for (item of aboutLinks; track $index) { | ||
<h5 class="announcements__title">{{ item.title | dm }}</h5> | ||
<div class="announcements__about"> | ||
@for (item of item.items; track $index) { | ||
<a | ||
class="announcements__about-link" | ||
[href]="item.url" | ||
data-testId="announcement_link" | ||
target="_blank" | ||
rel="noopener" | ||
>{{ item.label }}</a | ||
> | ||
} | ||
</div> | ||
} | ||
</div> | ||
</div> | ||
|
||
<h5 class="announcements__title">{{ 'announcements.knowledge.center' | dm }}</h5> | ||
<div class="announcements__about"> | ||
@for (item of knowledgeCenterLinks(); track item.id;) { | ||
<a | ||
class="announcements__about-link" | ||
[href]="item.url" | ||
data-testId="announcement_link" | ||
target="_blank" | ||
rel="noopener" | ||
>{{ item.label }}</a | ||
> | ||
} | ||
</div> | ||
|
||
<h5 class="announcements__title">{{ 'announcements.knowledge.contact.us' | dm }}</h5> | ||
<div class="announcements__about"> | ||
@for (item of contactLinks(); track item.id;) { | ||
<a | ||
class="announcements__about-link" | ||
[href]="item.url" | ||
data-testId="announcement_link" | ||
target="_blank" | ||
rel="noopener" | ||
>{{ item.label }}</a | ||
> | ||
} | ||
</div> | ||
</p-overlayPanel> |
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
Oops, something went wrong.