Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | 1x 9x 9x 9x 9x | /**
* Copyright (c) Siemens 2016 - 2026
* SPDX-License-Identifier: MIT
*/
import { AsyncPipe } from '@angular/common';
import { ChangeDetectionStrategy, Component, input, output } from '@angular/core';
import { areAnimationsDisabled } from '@siemens/element-ng/common';
import { Observable } from 'rxjs';
import { SiToastNotificationComponent } from '../si-toast-notification/si-toast-notification.component';
import { SiToast } from '../si-toast.model';
@Component({
selector: 'si-toast-notification-drawer',
imports: [AsyncPipe, SiToastNotificationComponent],
templateUrl: './si-toast-notification-drawer.component.html',
styleUrl: './si-toast-notification-drawer.component.scss',
changeDetection: ChangeDetectionStrategy.OnPush,
host: {
'aria-live': 'polite',
'[class.animations-disabled]': 'animationsDisabled'
}
})
export class SiToastNotificationDrawerComponent {
readonly toasts = input<Observable<SiToast[]>>();
readonly paused = output<SiToast>();
readonly resumed = output<SiToast>();
protected animationsDisabled = areAnimationsDisabled();
}
|