@rolatech/angular-notification 17.1.0 → 17.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,11 +3,11 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
3
3
  import { CommonModule } from '@angular/common';
4
4
  import { RouterModule } from '@angular/router';
5
5
  import * as fromServices from './lib/services';
6
- export function provideAngularNotifications() {
6
+ export function provideAngularNotification() {
7
7
  const providers = [
8
8
  ...fromServices.services,
9
9
  importProvidersFrom(CommonModule, ReactiveFormsModule, FormsModule, RouterModule),
10
10
  ];
11
11
  return makeEnvironmentProviders(providers);
12
12
  }
13
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdmlkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJzL2FuZ3VsYXItbm90aWZpY2F0aW9uL3NyYy9wcm92aWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQWtDLG1CQUFtQixFQUFFLHdCQUF3QixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzlHLE9BQU8sRUFBRSxXQUFXLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNsRSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sS0FBSyxZQUFZLE1BQU0sZ0JBQWdCLENBQUM7QUFFL0MsTUFBTSxVQUFVLDJCQUEyQjtJQUN6QyxNQUFNLFNBQVMsR0FBd0M7UUFDckQsR0FBRyxZQUFZLENBQUMsUUFBUTtRQUN4QixtQkFBbUIsQ0FBQyxZQUFZLEVBQUUsbUJBQW1CLEVBQUUsV0FBVyxFQUFFLFlBQVksQ0FBQztL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XRlcic7XG5pbXBvcnQgKiBhcyBmcm9tU2VydmljZXMgZnJvbSAnLi9saWIvc2VydmljZXMnO1xuXG5leHBvcnQgZnVuY3Rpb24gcHJvdmlkZUFuZ3VsYXJOb3RpZmljYXRpb24oKTogRW52aXJvbm1lbnRQcm92aWRlcnMge1xuICBjb25zdCBwcm92aWRlcnM6IChQcm92aWRlciB8IEVudmlyb25tZW50UHJvdmlkZXJzKVtdID0gW1xuICAgIC4uLmZyb21TZXJ2aWNlcy5zZXJ2aWNlcyxcbiAgICBpbXBvcnRQcm92aWRlcnNGcm9tKENvbW1vbk1vZHVsZSwgUmVhY3RpdmVGb3Jtc01vZHVsZSwgRm9ybXNNb2R1bGUsIFJvdXRlck1vZHVsZSksXG4gIF07XG4gIHJldHVybiBtYWtlRW52aXJvbm1lbnRQcm92aWRlcnMocHJvdmlkZXJzKTtcbn1cbiJdfQ==
@@ -457,7 +457,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImpor
457
457
  args: [{ selector: 'rolatech-notification-layout', standalone: true, imports: [RouterLinkActive, RouterLink, RouterOutlet], template: "<div class=\"p-3 max-w-[1120px] m-auto\">\n <div class=\"text-3xl font-medium p-2\">\u901A\u77E5\u4E2D\u5FC3</div>\n <div class=\"flex gap-3 items-center mb-2 p-2\">\n @for (item of links; track $index) {\n <div class=\"font-medium\">\n <a\n class=\"text-gray-600 py-2\"\n [routerLink]=\"item.link\"\n routerLinkActive=\"active\"\n [routerLinkActiveOptions]=\"{ exact: true }\"\n >{{ item.name }}</a\n >\n </div>\n }\n </div>\n <div>\n <router-outlet></router-outlet>\n </div>\n</div>\n", styles: [".active{color:#000;border-bottom:4px solid #ff6600}\n"] }]
458
458
  }] });
459
459
 
460
- function provideAngularNotifications() {
460
+ function provideAngularNotification() {
461
461
  const providers = [
462
462
  ...services,
463
463
  importProvidersFrom(CommonModule, ReactiveFormsModule, FormsModule, RouterModule),
@@ -478,5 +478,5 @@ const notificationRoutes = [
478
478
  * Generated bundle index. Do not edit.
479
479
  */
480
480
 
481
- export { NotificationDetailComponent, NotificationIconComponent, NotificationIndexComponent, NotificationItemComponent, NotificationLayoutComponent, NotificationService, NotificationTemplateService, notificationRoutes, provideAngularNotifications };
481
+ export { NotificationDetailComponent, NotificationIconComponent, NotificationIndexComponent, NotificationItemComponent, NotificationLayoutComponent, NotificationService, NotificationTemplateService, notificationRoutes, provideAngularNotification };
482
482
  //# sourceMappingURL=rolatech-angular-notification.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"rolatech-angular-notification.mjs","sources":["../../../../libs/angular-notification/src/lib/services/notification-template.service.ts","../../../../libs/angular-notification/src/lib/state/store.ts","../../../../libs/angular-notification/src/lib/services/notification.service.ts","../../../../libs/angular-notification/src/lib/services/index.ts","../../../../libs/angular-notification/src/lib/components/notification-icon/notification-icon.component.ts","../../../../libs/angular-notification/src/lib/components/notification-icon/notification-icon.component.html","../../../../libs/angular-notification/src/lib/components/notification-detail/notification-detail.component.ts","../../../../libs/angular-notification/src/lib/components/notification-detail/notification-detail.component.html","../../../../libs/angular-notification/src/lib/interfaces/notification.ts","../../../../libs/angular-notification/src/lib/components/notification-item/notification-item.component.ts","../../../../libs/angular-notification/src/lib/components/notification-item/notification-item.component.html","../../../../libs/angular-notification/src/lib/components/notification-index/notification-index.component.ts","../../../../libs/angular-notification/src/lib/components/notification-index/notification-index.component.html","../../../../libs/angular-notification/src/lib/components/notification-layout/notification-layout.component.ts","../../../../libs/angular-notification/src/lib/components/notification-layout/notification-layout.component.html","../../../../libs/angular-notification/src/provider.ts","../../../../libs/angular-notification/src/lib/notification.routes.ts","../../../../libs/angular-notification/src/rolatech-angular-notification.ts"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\nimport { Injectable, inject } from '@angular/core';\nimport { APP_CONFIG } from '@rolatech/angular-common';\nimport { catchError } from 'rxjs';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class NotificationTemplateService {\n environment = inject(APP_CONFIG);\n http = inject(HttpClient);\n\n find(options: any) {\n return this.http\n .get<any>(`${this.environment.baseUrl}/notifications`, {\n params: options,\n withCredentials: true,\n })\n .pipe(\n catchError((error) => {\n throw error;\n })\n );\n }\n me(options: any) {\n return this.http\n .get<any>(`${this.environment.baseUrl}/notifications/me`, {\n params: options,\n withCredentials: true,\n })\n .pipe(\n catchError((error) => {\n throw error;\n })\n );\n }\n get(id: string) {\n return this.http\n .get<any>(`${this.environment.baseUrl}/notifications/${id}`, {\n withCredentials: true,\n })\n .pipe(\n catchError((error) => {\n throw error;\n })\n );\n }\n read(ids: Array<string>) {\n return this.http\n .get<any>(`${this.environment.baseUrl}/notifications/${ids}`, {\n withCredentials: true,\n })\n .pipe(\n catchError((error) => {\n throw error;\n })\n );\n }\n delete(id: string) {\n return this.http\n .get<any>(`${this.environment.baseUrl}/notifications/${id}`, {\n withCredentials: true,\n })\n .pipe(\n catchError((error) => {\n throw error;\n })\n );\n }\n findByUserId(userId: string) {\n return this.http\n .get<any>(`${this.environment.baseUrl}/notifications/by?userId=${userId}`, {\n withCredentials: true,\n })\n .pipe(\n catchError((error) => {\n throw error;\n })\n );\n }\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable, inject } from '@angular/core';\nimport { map, BehaviorSubject, catchError } from 'rxjs';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class StoreService {\n $count = new BehaviorSubject(0);\n getCount() {\n return this.$count.asObservable();\n }\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable, inject } from '@angular/core';\nimport { APP_CONFIG } from '@rolatech/angular-common';\nimport { map, BehaviorSubject, catchError } from 'rxjs';\nimport { StoreService } from '../state/store';\n@Injectable({\n providedIn: 'root',\n})\nexport class NotificationService {\n environment = inject(APP_CONFIG);\n http = inject(HttpClient);\n storeService = inject(StoreService);\n\n find(options: any) {\n return this.http\n .get<any>(`${this.environment.baseUrl}/notifications`, {\n params: options,\n withCredentials: true,\n })\n .pipe(\n catchError((error) => {\n throw error;\n }),\n );\n }\n me(options: any) {\n return this.http\n .get<any>(`${this.environment.baseUrl}/notifications/me`, {\n params: options,\n withCredentials: true,\n })\n .pipe(\n catchError((error) => {\n throw error;\n }),\n );\n }\n get(id: string) {\n return this.http\n .get<any>(`${this.environment.baseUrl}/notifications/${id}`, {\n withCredentials: true,\n })\n .pipe(\n catchError((error) => {\n throw error;\n }),\n );\n }\n read(ids: Array<string>) {\n return this.http\n .get<any>(`${this.environment.baseUrl}/notifications/${ids}`, {\n withCredentials: true,\n })\n .pipe(\n catchError((error) => {\n throw error;\n }),\n );\n }\n update(id: string) {\n return this.http\n .put<any>(\n `${this.environment.baseUrl}/notifications/${id}`,\n { status: 'READ' },\n {\n withCredentials: true,\n },\n )\n .pipe(\n map((res) => {\n const value = this.storeService.$count.value - 1;\n this.storeService.$count.next(value);\n }),\n catchError((error) => {\n throw error;\n }),\n );\n }\n readAll() {\n return this.http\n .put<any>(\n `${this.environment.baseUrl}/notifications/status/all`,\n { status: 'READ' },\n {\n withCredentials: true,\n },\n )\n .pipe(\n map((res) => {\n this.storeService.$count.next(0);\n }),\n catchError((error) => {\n throw error;\n }),\n );\n }\n delete(id: string) {\n return this.http\n .get<any>(`${this.environment.baseUrl}/notifications/${id}`, {\n withCredentials: true,\n })\n .pipe(\n catchError((error) => {\n throw error;\n }),\n );\n }\n findByUserId(userId: string) {\n return this.http\n .get<any>(`${this.environment.baseUrl}/notifications/by?userId=${userId}`, {\n withCredentials: true,\n })\n .pipe(\n catchError((error) => {\n throw error;\n }),\n );\n }\n countByStatus(status: string) {\n return this.http\n .get<any>(`${this.environment.baseUrl}/notifications/count/by?status=${status}`, {\n withCredentials: true,\n })\n .pipe(\n map(({ data }) => {\n this.storeService.$count.next(data);\n return data;\n }),\n catchError((error) => {\n throw error;\n }),\n );\n }\n}\n","import { NotificationTemplateService } from './notification-template.service';\nimport { NotificationService } from './notification.service';\n\nexport { NotificationService, NotificationTemplateService };\nexport const services: any[] = [NotificationService, NotificationTemplateService];\n","import { Component, Input, OnDestroy, OnInit, inject } from '@angular/core';\nimport { NotificationService } from '../../services';\nimport { Subscription } from 'rxjs';\nimport { StoreService } from '../../state/store';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { RouterModule } from '@angular/router';\nimport { AngularComponentsModule } from '@rolatech/angular-components';\n\n@Component({\n standalone: true,\n imports: [AngularCommonModule, AngularComponentsModule],\n selector: 'rolatech-notification-icon',\n templateUrl: './notification-icon.component.html',\n styleUrls: ['./notification-icon.component.scss'],\n})\nexport class NotificationIconComponent implements OnInit, OnDestroy {\n @Input()\n router = '/notifications';\n notifications: any = [];\n notificationService = inject(NotificationService);\n storeService = inject(StoreService);\n\n count = 0;\n private countSubscription!: Subscription;\n ngOnInit(): void {\n this.countNotificationByStatus();\n this.storeService.$count.subscribe((data) => {\n this.count = data;\n });\n }\n ngOnDestroy() {\n if (this.countSubscription) this.countSubscription.unsubscribe();\n }\n\n countNotificationByStatus() {\n this.notificationService.countByStatus('UNREAD').subscribe({\n next: (res) => {\n this.loadUnreadNotifications();\n },\n });\n }\n loadUnreadNotifications() {\n const options = {\n filter: 'status:UNREAD',\n };\n this.notificationService.me(options).subscribe({\n next: (res) => {\n this.notifications = res.data;\n },\n });\n }\n readAll() {\n this.notificationService.readAll().subscribe({\n next: (res) => {\n this.notifications = [];\n },\n });\n }\n}\n","<div class=\"px-2\">\n <button mat-icon-button class=\"flex\" onclick=\"this.blur()\" [matMenuTriggerFor]=\"notificationsMenu\">\n <mat-icon aria-hidden=\"false\" [matBadge]=\"count\" [matBadgeHidden]=\"count === 0\">notifications</mat-icon>\n </button>\n</div>\n<mat-menu #notificationsMenu=\"matMenu\" class=\"custom-menu\">\n <div class=\"flex flex-col divide-y min-w-[256px]\">\n <div class=\"h-11 px-3 flex justify-between items-center\">\n <span class=\"font-medium\">通知消息</span>\n @if (count) {\n <span class=\"text-sm font-medium cursor-pointer hover:underline\" (click)=\"readAll()\">全部已读</span>\n }\n </div>\n <div>\n @if (notifications && notifications.length > 0) {\n <div class=\"divide-y\">\n @for (item of notifications; track item) {\n <div class=\"p-2 cursor-pointer hover:bg-gray-100\" [routerLink]=\"[router, item.id]\">\n <div>\n {{ item.title }}\n </div>\n <div class=\"text-sm\">\n {{ item.content }}\n </div>\n </div>\n }\n </div>\n } @else {\n <div class=\"h-32 flex justify-center items-center\">暂无通知</div>\n }\n </div>\n <div class=\"h-11 flex justify-center items-center cursor-pointer hover:bg-gray-100\" [routerLink]=\"router\">\n <a class=\"flex justify-center items-center\">\n <span class=\"text-sm text-orange-600\"> 通知中心 </span>\n </a>\n </div>\n </div>\n</mat-menu>\n","import { Component, OnInit, inject } from '@angular/core';\nimport { INotification } from '../../interfaces/notification';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport { NotificationService } from '../../services';\nimport { BaseComponent } from '@rolatech/angular-components';\n\n@Component({\n selector: 'rolatech-notification-detail',\n templateUrl: './notification-detail.component.html',\n styleUrls: ['./notification-detail.component.scss'],\n standalone: true,\n imports: [],\n})\nexport class NotificationDetailComponent extends BaseComponent implements OnInit {\n notificationService = inject(NotificationService);\n snackBar = inject(MatSnackBar);\n notification!: INotification;\n ngOnInit(): void {\n this.get();\n }\n get() {\n this.notificationService.get(this.id).subscribe({\n next: (res: any) => {\n this.notification = res.data;\n this.titleService.setTitle(`通知 | ${this.notification.title}`);\n },\n });\n }\n}\n","@if (notification) {\n <div class=\"p-3\">\n <div class=\"text-xl\">{{ notification.title }}</div>\n <div class=\"text-md\">\n {{ notification.content }}\n </div>\n </div>\n}\n","export interface INotification {\n id: string;\n title: string;\n content: string;\n userId: string;\n status: NotificationStatus | string;\n createdAt: string;\n updatedAt: string;\n}\nexport enum NotificationStatus {\n UNREAD = <any>'未读',\n READ = <any>'已读',\n}\n","import { Component, EventEmitter, Input, OnInit, Output, inject } from '@angular/core';\nimport { INotification } from '../../interfaces/notification';\nimport { trigger, state, style, transition, animate } from '@angular/animations';\nimport { MatIconModule } from '@angular/material/icon';\nimport { NgClass, DatePipe } from '@angular/common';\n\n@Component({\n selector: 'rolatech-notification-item',\n templateUrl: './notification-item.component.html',\n styleUrls: ['./notification-item.component.scss'],\n animations: [\n trigger('contentAnimation', [\n state(\n 'hidden',\n style({\n height: '0',\n opacity: 0,\n }),\n ),\n state(\n 'visible',\n style({\n height: '*',\n opacity: 1,\n }),\n ),\n transition('hidden <=> visible', animate('300ms ease-in-out')),\n ]),\n ],\n standalone: true,\n imports: [NgClass, MatIconModule, DatePipe],\n})\nexport class NotificationItemComponent {\n @Input()\n notification!: INotification;\n isContentHidden = true;\n @Input()\n expand = false;\n @Output() toggle = new EventEmitter<INotification>();\n\n toggleContent() {\n this.isContentHidden = !this.isContentHidden;\n }\n onToggle(item: INotification) {\n this.toggle.emit(item);\n }\n}\n","<div class=\"border-b\" [ngClass]=\"expand ? 'shadow shadow-light-400' : ''\">\n <div\n class=\"flex justify-between items-center h-16 cursor-pointer px-3\"\n [ngClass]=\"notification.status === 'READ' ? 'text-gray-400' : ''\"\n (click)=\"onToggle(notification)\"\n >\n <div>{{ notification.title }}</div>\n <div class=\"flex items-center opacity-60\">\n <div class=\"text-sm mr-3\">{{ notification.createdAt | date }}</div>\n <mat-icon>{{ expand ? 'keyboard_arrow_up' : 'keyboard_arrow_down' }}</mat-icon>\n </div>\n </div>\n <div\n [class.hidden]=\"!expand\"\n [@contentAnimation]=\"expand\"\n class=\"p-3\"\n [ngClass]=\"notification.status === 'READ' ? 'text-gray-400' : ''\"\n >\n {{ notification.content }}\n </div>\n <div class=\"divide\"></div>\n</div>\n","import { Component, OnInit, ViewChild, inject } from '@angular/core';\nimport { NotificationService } from '../../services';\nimport { INotification, NotificationStatus } from '../../interfaces/notification';\nimport { MatPaginator, PageEvent } from '@angular/material/paginator';\nimport { MatTableDataSource } from '@angular/material/table';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport { NotificationIconComponent } from '../notification-icon/notification-icon.component';\nimport { NotificationItemComponent } from '../notification-item/notification-item.component';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule } from '@rolatech/angular-components';\n\n@Component({\n selector: 'rolatech-notification-index',\n templateUrl: './notification-index.component.html',\n styleUrls: ['./notification-index.component.scss'],\n standalone: true,\n imports: [NotificationItemComponent, AngularCommonModule, AngularComponentsModule],\n})\nexport class NotificationIndexComponent implements OnInit {\n notificationService = inject(NotificationService);\n snackBar = inject(MatSnackBar);\n notifications: INotification[] = [];\n filter = '';\n pageEvent!: PageEvent;\n length = 100;\n pageSize = 15;\n pageSizeOptions: number[] = [5, 10, 25, 100];\n\n isLoading = false;\n isSearch = false;\n selectedId = '';\n\n notificationIconComponent = NotificationIconComponent;\n\n displayedColumns: string[] = ['title', 'status', 'createdAt', 'actions'];\n @ViewChild('paginator')\n paginator!: MatPaginator;\n\n orderOptions = [\n {\n key: 'createdAt',\n value: '创建时间',\n icon: 'arrow_upward',\n sort: 'asc',\n },\n {\n key: 'createdAt',\n value: '创建时间',\n icon: 'arrow_downward',\n sort: 'desc',\n },\n {\n key: 'status',\n value: '状态',\n icon: 'arrow_upward',\n sort: 'asc',\n },\n {\n key: 'status',\n value: '状态',\n icon: 'arrow_downward',\n sort: 'desc',\n },\n ];\n status: any = NotificationStatus;\n orderString = 'createdAt desc';\n dataSource = new MatTableDataSource<INotification>();\n ngOnInit(): void {\n this.find(null);\n }\n\n find(event?: PageEvent | null): any {\n this.isLoading = true;\n const page = event ? event.pageIndex + 1 : 1;\n const limit = event ? event.pageSize : 15;\n const sort = this.orderString;\n const options = {\n page,\n limit,\n sort,\n filter: this.filter,\n };\n this.notificationService.me(options).subscribe({\n next: (res) => {\n this.notifications = res.data;\n this.dataSource.data = this.notifications;\n this.length = res.meta.pagination.count;\n this.isLoading = false;\n },\n error: (e) => {\n this.isLoading = false;\n this.snackBar.open(e.message);\n },\n });\n }\n read(item: any) {\n this.selectedId = item.id;\n if (item.status === 'READ') {\n return;\n }\n this.notificationService.update(item.id).subscribe({\n next: (res) => {\n item.status = 'READ';\n },\n });\n }\n}\n","@if (isLoading) {\n <div style=\"height: 80%\">\n <!-- <app-loading-spinner></app-loading-spinner> -->\n </div>\n} @else {\n @for (item of notifications; track $index) {\n <div class=\"divide-y\">\n <rolatech-notification-item\n [notification]=\"item\"\n (toggle)=\"read(item)\"\n [expand]=\"item.id === selectedId\"\n ></rolatech-notification-item>\n </div>\n }\n}\n<mat-paginator\n #paginator\n [length]=\"length\"\n [pageSize]=\"pageSize\"\n [pageSizeOptions]=\"pageSizeOptions\"\n (page)=\"pageEvent = find($event)\"\n hidePageSize\n showFirstLastButtons\n>\n</mat-paginator>\n","import { Component } from '@angular/core';\nimport { RouterLinkActive, RouterLink, RouterOutlet } from '@angular/router';\n\n@Component({\n selector: 'rolatech-notification-layout',\n templateUrl: './notification-layout.component.html',\n styleUrls: ['./notification-layout.component.scss'],\n standalone: true,\n imports: [RouterLinkActive, RouterLink, RouterOutlet],\n})\nexport class NotificationLayoutComponent {\n links = [\n {\n name: '全部',\n icon: 'dashboard',\n link: '.',\n },\n {\n name: '课程',\n icon: 'category',\n link: 'course',\n },\n {\n name: '订单',\n icon: 'category',\n link: 'order',\n },\n ];\n}\n","<div class=\"p-3 max-w-[1120px] m-auto\">\n <div class=\"text-3xl font-medium p-2\">通知中心</div>\n <div class=\"flex gap-3 items-center mb-2 p-2\">\n @for (item of links; track $index) {\n <div class=\"font-medium\">\n <a\n class=\"text-gray-600 py-2\"\n [routerLink]=\"item.link\"\n routerLinkActive=\"active\"\n [routerLinkActiveOptions]=\"{ exact: true }\"\n >{{ item.name }}</a\n >\n </div>\n }\n </div>\n <div>\n <router-outlet></router-outlet>\n </div>\n</div>\n","import { EnvironmentProviders, Provider, importProvidersFrom, makeEnvironmentProviders } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { RouterModule } from '@angular/router';\nimport * as fromServices from './lib/services';\n\nexport function provideAngularNotifications(): EnvironmentProviders {\n const providers: (Provider | EnvironmentProviders)[] = [\n ...fromServices.services,\n importProvidersFrom(CommonModule, ReactiveFormsModule, FormsModule, RouterModule),\n ];\n return makeEnvironmentProviders(providers);\n}\n","import { Routes } from '@angular/router';\nimport { NotificationIndexComponent } from './components/notification-index/notification-index.component';\nimport { NotificationDetailComponent } from './components/notification-detail/notification-detail.component';\nimport { NotificationLayoutComponent } from './components/notification-layout/notification-layout.component';\n\nexport const notificationRoutes: Routes = [\n {\n path: '',\n component: NotificationLayoutComponent,\n children: [{ path: '', component: NotificationIndexComponent }],\n },\n { path: ':id', component: NotificationDetailComponent },\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","fromServices.services"],"mappings":";;;;;;;;;;;;;;;;;;;;MAQa,2BAA2B,CAAA;AACtC,IAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AACjC,IAAA,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AAE1B,IAAA,IAAI,CAAC,OAAY,EAAA;QACf,OAAO,IAAI,CAAC,IAAI;aACb,GAAG,CAAM,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,gBAAgB,EAAE;AACrD,YAAA,MAAM,EAAE,OAAO;AACf,YAAA,eAAe,EAAE,IAAI;SACtB,CAAC;AACD,aAAA,IAAI,CACH,UAAU,CAAC,CAAC,KAAK,KAAI;AACnB,YAAA,MAAM,KAAK,CAAC;SACb,CAAC,CACH,CAAC;KACL;AACD,IAAA,EAAE,CAAC,OAAY,EAAA;QACb,OAAO,IAAI,CAAC,IAAI;aACb,GAAG,CAAM,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,mBAAmB,EAAE;AACxD,YAAA,MAAM,EAAE,OAAO;AACf,YAAA,eAAe,EAAE,IAAI;SACtB,CAAC;AACD,aAAA,IAAI,CACH,UAAU,CAAC,CAAC,KAAK,KAAI;AACnB,YAAA,MAAM,KAAK,CAAC;SACb,CAAC,CACH,CAAC;KACL;AACD,IAAA,GAAG,CAAC,EAAU,EAAA;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8B,EAAA,UAAA,EAG5B,IAAI,EACP,OAAA,EAAA,CAAC,gBAAgB,EAAE,UAAU,EAAE,YAAY,CAAC,EAAA,QAAA,EAAA,2jBAAA,EAAA,MAAA,EAAA,CAAA,uDAAA,CAAA,EAAA,CAAA;;;SEFvC,2BAA2B,GAAA;AACzC,IAAA,MAAM,SAAS,GAAwC;QACrD,GAAGC,QAAqB;QACxB,mBAAmB,CAAC,YAAY,EAAE,mBAAmB,EAAE,WAAW,EAAE,YAAY,CAAC;KAClF,CAAC;AACF,IAAA,OAAO,wBAAwB,CAAC,SAAS,CAAC,CAAC;AAC7C;;ACPa,MAAA,kBAAkB,GAAW;AACxC,IAAA;AACE,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,SAAS,EAAE,2BAA2B;QACtC,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,0BAA0B,EAAE,CAAC;AAChE,KAAA;AACD,IAAA,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,2BAA2B,EAAE;;;ACXzD;;AAEG;;;;"}
1
+ {"version":3,"file":"rolatech-angular-notification.mjs","sources":["../../../../libs/angular-notification/src/lib/services/notification-template.service.ts","../../../../libs/angular-notification/src/lib/state/store.ts","../../../../libs/angular-notification/src/lib/services/notification.service.ts","../../../../libs/angular-notification/src/lib/services/index.ts","../../../../libs/angular-notification/src/lib/components/notification-icon/notification-icon.component.ts","../../../../libs/angular-notification/src/lib/components/notification-icon/notification-icon.component.html","../../../../libs/angular-notification/src/lib/components/notification-detail/notification-detail.component.ts","../../../../libs/angular-notification/src/lib/components/notification-detail/notification-detail.component.html","../../../../libs/angular-notification/src/lib/interfaces/notification.ts","../../../../libs/angular-notification/src/lib/components/notification-item/notification-item.component.ts","../../../../libs/angular-notification/src/lib/components/notification-item/notification-item.component.html","../../../../libs/angular-notification/src/lib/components/notification-index/notification-index.component.ts","../../../../libs/angular-notification/src/lib/components/notification-index/notification-index.component.html","../../../../libs/angular-notification/src/lib/components/notification-layout/notification-layout.component.ts","../../../../libs/angular-notification/src/lib/components/notification-layout/notification-layout.component.html","../../../../libs/angular-notification/src/provider.ts","../../../../libs/angular-notification/src/lib/notification.routes.ts","../../../../libs/angular-notification/src/rolatech-angular-notification.ts"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\nimport { Injectable, inject } from '@angular/core';\nimport { APP_CONFIG } from '@rolatech/angular-common';\nimport { catchError } from 'rxjs';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class NotificationTemplateService {\n environment = inject(APP_CONFIG);\n http = inject(HttpClient);\n\n find(options: any) {\n return this.http\n .get<any>(`${this.environment.baseUrl}/notifications`, {\n params: options,\n withCredentials: true,\n })\n .pipe(\n catchError((error) => {\n throw error;\n })\n );\n }\n me(options: any) {\n return this.http\n .get<any>(`${this.environment.baseUrl}/notifications/me`, {\n params: options,\n withCredentials: true,\n })\n .pipe(\n catchError((error) => {\n throw error;\n })\n );\n }\n get(id: string) {\n return this.http\n .get<any>(`${this.environment.baseUrl}/notifications/${id}`, {\n withCredentials: true,\n })\n .pipe(\n catchError((error) => {\n throw error;\n })\n );\n }\n read(ids: Array<string>) {\n return this.http\n .get<any>(`${this.environment.baseUrl}/notifications/${ids}`, {\n withCredentials: true,\n })\n .pipe(\n catchError((error) => {\n throw error;\n })\n );\n }\n delete(id: string) {\n return this.http\n .get<any>(`${this.environment.baseUrl}/notifications/${id}`, {\n withCredentials: true,\n })\n .pipe(\n catchError((error) => {\n throw error;\n })\n );\n }\n findByUserId(userId: string) {\n return this.http\n .get<any>(`${this.environment.baseUrl}/notifications/by?userId=${userId}`, {\n withCredentials: true,\n })\n .pipe(\n catchError((error) => {\n throw error;\n })\n );\n }\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable, inject } from '@angular/core';\nimport { map, BehaviorSubject, catchError } from 'rxjs';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class StoreService {\n $count = new BehaviorSubject(0);\n getCount() {\n return this.$count.asObservable();\n }\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable, inject } from '@angular/core';\nimport { APP_CONFIG } from '@rolatech/angular-common';\nimport { map, BehaviorSubject, catchError } from 'rxjs';\nimport { StoreService } from '../state/store';\n@Injectable({\n providedIn: 'root',\n})\nexport class NotificationService {\n environment = inject(APP_CONFIG);\n http = inject(HttpClient);\n storeService = inject(StoreService);\n\n find(options: any) {\n return this.http\n .get<any>(`${this.environment.baseUrl}/notifications`, {\n params: options,\n withCredentials: true,\n })\n .pipe(\n catchError((error) => {\n throw error;\n }),\n );\n }\n me(options: any) {\n return this.http\n .get<any>(`${this.environment.baseUrl}/notifications/me`, {\n params: options,\n withCredentials: true,\n })\n .pipe(\n catchError((error) => {\n throw error;\n }),\n );\n }\n get(id: string) {\n return this.http\n .get<any>(`${this.environment.baseUrl}/notifications/${id}`, {\n withCredentials: true,\n })\n .pipe(\n catchError((error) => {\n throw error;\n }),\n );\n }\n read(ids: Array<string>) {\n return this.http\n .get<any>(`${this.environment.baseUrl}/notifications/${ids}`, {\n withCredentials: true,\n })\n .pipe(\n catchError((error) => {\n throw error;\n }),\n );\n }\n update(id: string) {\n return this.http\n .put<any>(\n `${this.environment.baseUrl}/notifications/${id}`,\n { status: 'READ' },\n {\n withCredentials: true,\n },\n )\n .pipe(\n map((res) => {\n const value = this.storeService.$count.value - 1;\n this.storeService.$count.next(value);\n }),\n catchError((error) => {\n throw error;\n }),\n );\n }\n readAll() {\n return this.http\n .put<any>(\n `${this.environment.baseUrl}/notifications/status/all`,\n { status: 'READ' },\n {\n withCredentials: true,\n },\n )\n .pipe(\n map((res) => {\n this.storeService.$count.next(0);\n }),\n catchError((error) => {\n throw error;\n }),\n );\n }\n delete(id: string) {\n return this.http\n .get<any>(`${this.environment.baseUrl}/notifications/${id}`, {\n withCredentials: true,\n })\n .pipe(\n catchError((error) => {\n throw error;\n }),\n );\n }\n findByUserId(userId: string) {\n return this.http\n .get<any>(`${this.environment.baseUrl}/notifications/by?userId=${userId}`, {\n withCredentials: true,\n })\n .pipe(\n catchError((error) => {\n throw error;\n }),\n );\n }\n countByStatus(status: string) {\n return this.http\n .get<any>(`${this.environment.baseUrl}/notifications/count/by?status=${status}`, {\n withCredentials: true,\n })\n .pipe(\n map(({ data }) => {\n this.storeService.$count.next(data);\n return data;\n }),\n catchError((error) => {\n throw error;\n }),\n );\n }\n}\n","import { NotificationTemplateService } from './notification-template.service';\nimport { NotificationService } from './notification.service';\n\nexport { NotificationService, NotificationTemplateService };\nexport const services: any[] = [NotificationService, NotificationTemplateService];\n","import { Component, Input, OnDestroy, OnInit, inject } from '@angular/core';\nimport { NotificationService } from '../../services';\nimport { Subscription } from 'rxjs';\nimport { StoreService } from '../../state/store';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { RouterModule } from '@angular/router';\nimport { AngularComponentsModule } from '@rolatech/angular-components';\n\n@Component({\n standalone: true,\n imports: [AngularCommonModule, AngularComponentsModule],\n selector: 'rolatech-notification-icon',\n templateUrl: './notification-icon.component.html',\n styleUrls: ['./notification-icon.component.scss'],\n})\nexport class NotificationIconComponent implements OnInit, OnDestroy {\n @Input()\n router = '/notifications';\n notifications: any = [];\n notificationService = inject(NotificationService);\n storeService = inject(StoreService);\n\n count = 0;\n private countSubscription!: Subscription;\n ngOnInit(): void {\n this.countNotificationByStatus();\n this.storeService.$count.subscribe((data) => {\n this.count = data;\n });\n }\n ngOnDestroy() {\n if (this.countSubscription) this.countSubscription.unsubscribe();\n }\n\n countNotificationByStatus() {\n this.notificationService.countByStatus('UNREAD').subscribe({\n next: (res) => {\n this.loadUnreadNotifications();\n },\n });\n }\n loadUnreadNotifications() {\n const options = {\n filter: 'status:UNREAD',\n };\n this.notificationService.me(options).subscribe({\n next: (res) => {\n this.notifications = res.data;\n },\n });\n }\n readAll() {\n this.notificationService.readAll().subscribe({\n next: (res) => {\n this.notifications = [];\n },\n });\n }\n}\n","<div class=\"px-2\">\n <button mat-icon-button class=\"flex\" onclick=\"this.blur()\" [matMenuTriggerFor]=\"notificationsMenu\">\n <mat-icon aria-hidden=\"false\" [matBadge]=\"count\" [matBadgeHidden]=\"count === 0\">notifications</mat-icon>\n </button>\n</div>\n<mat-menu #notificationsMenu=\"matMenu\" class=\"custom-menu\">\n <div class=\"flex flex-col divide-y min-w-[256px]\">\n <div class=\"h-11 px-3 flex justify-between items-center\">\n <span class=\"font-medium\">通知消息</span>\n @if (count) {\n <span class=\"text-sm font-medium cursor-pointer hover:underline\" (click)=\"readAll()\">全部已读</span>\n }\n </div>\n <div>\n @if (notifications && notifications.length > 0) {\n <div class=\"divide-y\">\n @for (item of notifications; track item) {\n <div class=\"p-2 cursor-pointer hover:bg-gray-100\" [routerLink]=\"[router, item.id]\">\n <div>\n {{ item.title }}\n </div>\n <div class=\"text-sm\">\n {{ item.content }}\n </div>\n </div>\n }\n </div>\n } @else {\n <div class=\"h-32 flex justify-center items-center\">暂无通知</div>\n }\n </div>\n <div class=\"h-11 flex justify-center items-center cursor-pointer hover:bg-gray-100\" [routerLink]=\"router\">\n <a class=\"flex justify-center items-center\">\n <span class=\"text-sm text-orange-600\"> 通知中心 </span>\n </a>\n </div>\n </div>\n</mat-menu>\n","import { Component, OnInit, inject } from '@angular/core';\nimport { INotification } from '../../interfaces/notification';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport { NotificationService } from '../../services';\nimport { BaseComponent } from '@rolatech/angular-components';\n\n@Component({\n selector: 'rolatech-notification-detail',\n templateUrl: './notification-detail.component.html',\n styleUrls: ['./notification-detail.component.scss'],\n standalone: true,\n imports: [],\n})\nexport class NotificationDetailComponent extends BaseComponent implements OnInit {\n notificationService = inject(NotificationService);\n snackBar = inject(MatSnackBar);\n notification!: INotification;\n ngOnInit(): void {\n this.get();\n }\n get() {\n this.notificationService.get(this.id).subscribe({\n next: (res: any) => {\n this.notification = res.data;\n this.titleService.setTitle(`通知 | ${this.notification.title}`);\n },\n });\n }\n}\n","@if (notification) {\n <div class=\"p-3\">\n <div class=\"text-xl\">{{ notification.title }}</div>\n <div class=\"text-md\">\n {{ notification.content }}\n </div>\n </div>\n}\n","export interface INotification {\n id: string;\n title: string;\n content: string;\n userId: string;\n status: NotificationStatus | string;\n createdAt: string;\n updatedAt: string;\n}\nexport enum NotificationStatus {\n UNREAD = <any>'未读',\n READ = <any>'已读',\n}\n","import { Component, EventEmitter, Input, OnInit, Output, inject } from '@angular/core';\nimport { INotification } from '../../interfaces/notification';\nimport { trigger, state, style, transition, animate } from '@angular/animations';\nimport { MatIconModule } from '@angular/material/icon';\nimport { NgClass, DatePipe } from '@angular/common';\n\n@Component({\n selector: 'rolatech-notification-item',\n templateUrl: './notification-item.component.html',\n styleUrls: ['./notification-item.component.scss'],\n animations: [\n trigger('contentAnimation', [\n state(\n 'hidden',\n style({\n height: '0',\n opacity: 0,\n }),\n ),\n state(\n 'visible',\n style({\n height: '*',\n opacity: 1,\n }),\n ),\n transition('hidden <=> visible', animate('300ms ease-in-out')),\n ]),\n ],\n standalone: true,\n imports: [NgClass, MatIconModule, DatePipe],\n})\nexport class NotificationItemComponent {\n @Input()\n notification!: INotification;\n isContentHidden = true;\n @Input()\n expand = false;\n @Output() toggle = new EventEmitter<INotification>();\n\n toggleContent() {\n this.isContentHidden = !this.isContentHidden;\n }\n onToggle(item: INotification) {\n this.toggle.emit(item);\n }\n}\n","<div class=\"border-b\" [ngClass]=\"expand ? 'shadow shadow-light-400' : ''\">\n <div\n class=\"flex justify-between items-center h-16 cursor-pointer px-3\"\n [ngClass]=\"notification.status === 'READ' ? 'text-gray-400' : ''\"\n (click)=\"onToggle(notification)\"\n >\n <div>{{ notification.title }}</div>\n <div class=\"flex items-center opacity-60\">\n <div class=\"text-sm mr-3\">{{ notification.createdAt | date }}</div>\n <mat-icon>{{ expand ? 'keyboard_arrow_up' : 'keyboard_arrow_down' }}</mat-icon>\n </div>\n </div>\n <div\n [class.hidden]=\"!expand\"\n [@contentAnimation]=\"expand\"\n class=\"p-3\"\n [ngClass]=\"notification.status === 'READ' ? 'text-gray-400' : ''\"\n >\n {{ notification.content }}\n </div>\n <div class=\"divide\"></div>\n</div>\n","import { Component, OnInit, ViewChild, inject } from '@angular/core';\nimport { NotificationService } from '../../services';\nimport { INotification, NotificationStatus } from '../../interfaces/notification';\nimport { MatPaginator, PageEvent } from '@angular/material/paginator';\nimport { MatTableDataSource } from '@angular/material/table';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport { NotificationIconComponent } from '../notification-icon/notification-icon.component';\nimport { NotificationItemComponent } from '../notification-item/notification-item.component';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { AngularComponentsModule } from '@rolatech/angular-components';\n\n@Component({\n selector: 'rolatech-notification-index',\n templateUrl: './notification-index.component.html',\n styleUrls: ['./notification-index.component.scss'],\n standalone: true,\n imports: [NotificationItemComponent, AngularCommonModule, AngularComponentsModule],\n})\nexport class NotificationIndexComponent implements OnInit {\n notificationService = inject(NotificationService);\n snackBar = inject(MatSnackBar);\n notifications: INotification[] = [];\n filter = '';\n pageEvent!: PageEvent;\n length = 100;\n pageSize = 15;\n pageSizeOptions: number[] = [5, 10, 25, 100];\n\n isLoading = false;\n isSearch = false;\n selectedId = '';\n\n notificationIconComponent = NotificationIconComponent;\n\n displayedColumns: string[] = ['title', 'status', 'createdAt', 'actions'];\n @ViewChild('paginator')\n paginator!: MatPaginator;\n\n orderOptions = [\n {\n key: 'createdAt',\n value: '创建时间',\n icon: 'arrow_upward',\n sort: 'asc',\n },\n {\n key: 'createdAt',\n value: '创建时间',\n icon: 'arrow_downward',\n sort: 'desc',\n },\n {\n key: 'status',\n value: '状态',\n icon: 'arrow_upward',\n sort: 'asc',\n },\n {\n key: 'status',\n value: '状态',\n icon: 'arrow_downward',\n sort: 'desc',\n },\n ];\n status: any = NotificationStatus;\n orderString = 'createdAt desc';\n dataSource = new MatTableDataSource<INotification>();\n ngOnInit(): void {\n this.find(null);\n }\n\n find(event?: PageEvent | null): any {\n this.isLoading = true;\n const page = event ? event.pageIndex + 1 : 1;\n const limit = event ? event.pageSize : 15;\n const sort = this.orderString;\n const options = {\n page,\n limit,\n sort,\n filter: this.filter,\n };\n this.notificationService.me(options).subscribe({\n next: (res) => {\n this.notifications = res.data;\n this.dataSource.data = this.notifications;\n this.length = res.meta.pagination.count;\n this.isLoading = false;\n },\n error: (e) => {\n this.isLoading = false;\n this.snackBar.open(e.message);\n },\n });\n }\n read(item: any) {\n this.selectedId = item.id;\n if (item.status === 'READ') {\n return;\n }\n this.notificationService.update(item.id).subscribe({\n next: (res) => {\n item.status = 'READ';\n },\n });\n }\n}\n","@if (isLoading) {\n <div style=\"height: 80%\">\n <!-- <app-loading-spinner></app-loading-spinner> -->\n </div>\n} @else {\n @for (item of notifications; track $index) {\n <div class=\"divide-y\">\n <rolatech-notification-item\n [notification]=\"item\"\n (toggle)=\"read(item)\"\n [expand]=\"item.id === selectedId\"\n ></rolatech-notification-item>\n </div>\n }\n}\n<mat-paginator\n #paginator\n [length]=\"length\"\n [pageSize]=\"pageSize\"\n [pageSizeOptions]=\"pageSizeOptions\"\n (page)=\"pageEvent = find($event)\"\n hidePageSize\n showFirstLastButtons\n>\n</mat-paginator>\n","import { Component } from '@angular/core';\nimport { RouterLinkActive, RouterLink, RouterOutlet } from '@angular/router';\n\n@Component({\n selector: 'rolatech-notification-layout',\n templateUrl: './notification-layout.component.html',\n styleUrls: ['./notification-layout.component.scss'],\n standalone: true,\n imports: [RouterLinkActive, RouterLink, RouterOutlet],\n})\nexport class NotificationLayoutComponent {\n links = [\n {\n name: '全部',\n icon: 'dashboard',\n link: '.',\n },\n {\n name: '课程',\n icon: 'category',\n link: 'course',\n },\n {\n name: '订单',\n icon: 'category',\n link: 'order',\n },\n ];\n}\n","<div class=\"p-3 max-w-[1120px] m-auto\">\n <div class=\"text-3xl font-medium p-2\">通知中心</div>\n <div class=\"flex gap-3 items-center mb-2 p-2\">\n @for (item of links; track $index) {\n <div class=\"font-medium\">\n <a\n class=\"text-gray-600 py-2\"\n [routerLink]=\"item.link\"\n routerLinkActive=\"active\"\n [routerLinkActiveOptions]=\"{ exact: true }\"\n >{{ item.name }}</a\n >\n </div>\n }\n </div>\n <div>\n <router-outlet></router-outlet>\n </div>\n</div>\n","import { EnvironmentProviders, Provider, importProvidersFrom, makeEnvironmentProviders } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { RouterModule } from '@angular/router';\nimport * as fromServices from './lib/services';\n\nexport function provideAngularNotification(): EnvironmentProviders {\n const providers: (Provider | EnvironmentProviders)[] = [\n ...fromServices.services,\n importProvidersFrom(CommonModule, ReactiveFormsModule, FormsModule, RouterModule),\n ];\n return makeEnvironmentProviders(providers);\n}\n","import { Routes } from '@angular/router';\nimport { NotificationIndexComponent } from './components/notification-index/notification-index.component';\nimport { NotificationDetailComponent } from './components/notification-detail/notification-detail.component';\nimport { NotificationLayoutComponent } from './components/notification-layout/notification-layout.component';\n\nexport const notificationRoutes: Routes = [\n {\n path: '',\n component: NotificationLayoutComponent,\n children: [{ path: '', component: NotificationIndexComponent }],\n },\n { path: ':id', component: NotificationDetailComponent },\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","fromServices.services"],"mappings":";;;;;;;;;;;;;;;;;;;;MAQa,2BAA2B,CAAA;AACtC,IAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AACjC,IAAA,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AAE1B,IAAA,IAAI,CAAC,OAAY,EAAA;QACf,OAAO,IAAI,CAAC,IAAI;aACb,GAAG,CAAM,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,gBAAgB,EAAE;AACrD,YAAA,MAAM,EAAE,OAAO;AACf,YAAA,eAAe,EAAE,IAAI;SACtB,CAAC;AACD,aAAA,IAAI,CACH,UAAU,CAAC,CAAC,KAAK,KAAI;AACnB,YAAA,MAAM,KAAK,CAAC;SACb,CAAC,CACH,CAAC;KACL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,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,UAAU,oOAAE,YAAY,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,MAAA,CAAA,EAAA,OAAA,EAAA,CAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,QAAA,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAEzC,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAPvC,SAAS;+BACE,8BAA8B,EAAA,UAAA,EAG5B,IAAI,EACP,OAAA,EAAA,CAAC,gBAAgB,EAAE,UAAU,EAAE,YAAY,CAAC,EAAA,QAAA,EAAA,2jBAAA,EAAA,MAAA,EAAA,CAAA,uDAAA,CAAA,EAAA,CAAA;;;SEFvC,0BAA0B,GAAA;AACxC,IAAA,MAAM,SAAS,GAAwC;QACrD,GAAGC,QAAqB;QACxB,mBAAmB,CAAC,YAAY,EAAE,mBAAmB,EAAE,WAAW,EAAE,YAAY,CAAC;KAClF,CAAC;AACF,IAAA,OAAO,wBAAwB,CAAC,SAAS,CAAC,CAAC;AAC7C;;ACPa,MAAA,kBAAkB,GAAW;AACxC,IAAA;AACE,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,SAAS,EAAE,2BAA2B;QACtC,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,0BAA0B,EAAE,CAAC;AAChE,KAAA;AACD,IAAA,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,2BAA2B,EAAE;;;ACXzD;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolatech/angular-notification",
3
- "version": "17.1.0",
3
+ "version": "17.1.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.0.0",
6
6
  "@angular/core": "^17.0.0",
package/provider.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  import { EnvironmentProviders } from '@angular/core';
2
- export declare function provideAngularNotifications(): EnvironmentProviders;
2
+ export declare function provideAngularNotification(): EnvironmentProviders;