-
Notifications
You must be signed in to change notification settings - Fork 473
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(core):
Notification
simplify to directive (#8168)
Co-authored-by: taiga-family-bot <[email protected]>
- Loading branch information
1 parent
7e6c6ab
commit 2fc8ad3
Showing
123 changed files
with
1,016 additions
and
1,422 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
|
||
:host { | ||
display: block; | ||
overflow: hidden; | ||
} | ||
|
||
.t-header { | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,3 +110,7 @@ | |
visibility: visible; | ||
opacity: 1; | ||
} | ||
|
||
tui-doc-code { | ||
overflow: hidden; | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
<tui-notification | ||
[hideClose]="!item.closeable" | ||
size="m" | ||
[appearance]="item.appearance" | ||
[icon]="item.icon" | ||
[status]="item.status" | ||
(close)="close()" | ||
> | ||
<label | ||
*ngIf="item.label" | ||
automation-id="tui-notification-alert__heading" | ||
class="t-heading" | ||
> | ||
<span tuiTitle> | ||
<ng-container *polymorpheusOutlet="item.label as text; context: item"> | ||
{{ text }} | ||
</ng-container> | ||
</label> | ||
<div | ||
automation-id="tui-notification-alert__content" | ||
class="t-content" | ||
<span tuiSubtitle> | ||
<span | ||
*polymorpheusOutlet="item.content as text; context: item" | ||
[innerHTML]="text" | ||
></span> | ||
</span> | ||
</span> | ||
<button | ||
*ngIf="item.closeable" | ||
tuiIconButton | ||
[iconStart]="icons.close" | ||
(click)="item.$implicit.complete()" | ||
> | ||
<div | ||
*polymorpheusOutlet="item.content as text; context: item" | ||
[innerHTML]="text" | ||
></div> | ||
</div> | ||
{{ close() }} | ||
</button> | ||
</tui-notification> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from './notification.component'; | ||
export * from './notification.directive'; | ||
export * from './notification.options'; |
63 changes: 0 additions & 63 deletions
63
projects/core/components/notification/notification.component.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.