From 52bcc7f7c78077140b935374720d27b82c08e557 Mon Sep 17 00:00:00 2001 From: tamaragruszka <156320606+tamaragruszka@users.noreply.github.com> Date: Mon, 29 Apr 2024 10:32:44 +0200 Subject: [PATCH] [ACS-7386] remove material module dependency and components conversion to standalone (#9595) --- .../add-notification.stories.component.ts | 8 +- .../notification-history.component.html | 93 +++++++++---------- .../notification-history.component.spec.ts | 2 +- .../notification-history.component.ts | 53 +++++++---- .../notification-history.module.ts | 24 +---- 5 files changed, 86 insertions(+), 94 deletions(-) diff --git a/lib/core/src/lib/notifications/components/add-notification.stories.component.ts b/lib/core/src/lib/notifications/components/add-notification.stories.component.ts index c3416ce5e0..6b1efd1927 100644 --- a/lib/core/src/lib/notifications/components/add-notification.stories.component.ts +++ b/lib/core/src/lib/notifications/components/add-notification.stories.component.ts @@ -17,16 +17,18 @@ import { Component } from '@angular/core'; import { NotificationService } from '../services/notification.service'; +import { MatButtonModule } from '@angular/material/button'; @Component({ selector: 'adf-add-notification-storybook', - template: `` + standalone: true, + imports: [MatButtonModule], + template: ` ` }) export class AddNotificationStorybookComponent { - infoCounter: number = 1; - constructor(private notificationService: NotificationService) { } + constructor(private notificationService: NotificationService) {} showInfo() { this.notificationService.showInfo(`Example notification ${this.infoCounter}`); diff --git a/lib/core/src/lib/notifications/components/notification-history.component.html b/lib/core/src/lib/notifications/components/notification-history.component.html index f216ed94ca..861767a6f2 100644 --- a/lib/core/src/lib/notifications/components/notification-history.component.html +++ b/lib/core/src/lib/notifications/components/notification-history.component.html @@ -1,38 +1,34 @@