@rolatech/angular-notification 19.0.0-beta.9 → 20.0.0-beta.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.
- package/fesm2022/rolatech-angular-notification.mjs +28 -38
- package/fesm2022/rolatech-angular-notification.mjs.map +1 -1
- package/index.d.ts +113 -6
- package/package.json +3 -3
- package/themes/_default.scss +1 -1
- package/lib/components/notification-detail/notification-detail.component.d.ts +0 -15
- package/lib/components/notification-icon/notification-icon.component.d.ts +0 -21
- package/lib/components/notification-index/notification-index.component.d.ts +0 -48
- package/lib/components/notification-item/notification-item.component.d.ts +0 -12
- package/lib/interfaces/notification.d.ts +0 -13
- package/lib/notification.routes.d.ts +0 -2
- package/provider.d.ts +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, inject, ViewEncapsulation, Component, output, viewChild, importProvidersFrom, makeEnvironmentProviders } from '@angular/core';
|
|
3
|
-
import { AngularCommonModule } from '@rolatech/angular-common';
|
|
2
|
+
import { input, inject, ViewEncapsulation, Component, output, viewChild, InjectionToken, importProvidersFrom, makeEnvironmentProviders } from '@angular/core';
|
|
3
|
+
import { AngularCommonModule, NOTIFICATIONS_CONFIG as NOTIFICATIONS_CONFIG$1 } from '@rolatech/angular-common';
|
|
4
4
|
import { NotificationService, NotificationStore } from '@rolatech/angular-services';
|
|
5
5
|
import { AngularComponentsModule, BaseComponent, ContainerComponent, ToolbarComponent, TabsComponent, TabComponent, ListComponent, EmptyComponent } from '@rolatech/angular-components';
|
|
6
6
|
import { OverlayContainer } from '@angular/cdk/overlay';
|
|
@@ -67,12 +67,12 @@ class NotificationIconComponent {
|
|
|
67
67
|
},
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
71
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
70
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: NotificationIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
71
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.3", type: NotificationIconComponent, isStandalone: true, selector: "rolatech-notification-icon", inputs: { router: { classPropertyName: "router", publicName: "router", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<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\" yPosition=\"below\">\n <div class=\"flex flex-col min-w-[256px] divide-y divide-[--rt-10-percent-layer]\">\n <div class=\"h-11 px-3 flex justify-between items-center\">\n <span class=\"text-xl font-bold\" i18n>Notifications</span>\n @if (count) {\n <span class=\"text-sm font-medium cursor-pointer hover:underline\" (click)=\"readAll()\" aria-hidden=\"true\" i18n\n >Read All</span\n >\n }\n </div>\n <div>\n @if (notifications && notifications.length > 0) {\n <div class=\"divide-y divide-[--rt-10-percent-layer]\">\n @for (item of notifications; track item) {\n <div class=\"p-3 cursor-pointer hover:bg-[--rt-raised-background]\" [routerLink]=\"[router(), item.id]\">\n <div class=\"text-lg mb-1\">\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\" i18n>There is no notifications</div>\n }\n </div>\n <div class=\"h-11 flex justify-center items-center cursor-pointer hover:bg-[--rt-raised-background]\" [routerLink]=\"router()\">\n <a class=\"flex justify-center items-center\">\n <span class=\"text-sm text-[--rt-brand-color]\" i18n> All notifications </span>\n </a>\n </div>\n </div>\n</mat-menu>\n", styles: ["rolatech-notification-icon{color:var(--rt-text-primary, #000)}.custom-menu{color:var(--rt-text-primary, #000);max-width:400px}\n"], dependencies: [{ kind: "ngmodule", type: AngularCommonModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "directive", type: i2.MatBadge, selector: "[matBadge]", inputs: ["matBadgeColor", "matBadgeOverlap", "matBadgeDisabled", "matBadgePosition", "matBadge", "matBadgeDescription", "matBadgeSize", "matBadgeHidden"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i5.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "directive", type: i5.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
72
72
|
}
|
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: NotificationIconComponent, decorators: [{
|
|
74
74
|
type: Component,
|
|
75
|
-
args: [{ imports: [AngularCommonModule, AngularComponentsModule], selector: 'rolatech-notification-icon', encapsulation: ViewEncapsulation.None, template: "<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\" yPosition=\"below\">\n <div class=\"flex flex-col min-w-[256px] divide-y divide-[--rt-10-percent-layer]\">\n <div class=\"h-11 px-3 flex justify-between items-center\">\n <span class=\"text-xl font-bold\"
|
|
75
|
+
args: [{ imports: [AngularCommonModule, AngularComponentsModule], selector: 'rolatech-notification-icon', encapsulation: ViewEncapsulation.None, template: "<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\" yPosition=\"below\">\n <div class=\"flex flex-col min-w-[256px] divide-y divide-[--rt-10-percent-layer]\">\n <div class=\"h-11 px-3 flex justify-between items-center\">\n <span class=\"text-xl font-bold\" i18n>Notifications</span>\n @if (count) {\n <span class=\"text-sm font-medium cursor-pointer hover:underline\" (click)=\"readAll()\" aria-hidden=\"true\" i18n\n >Read All</span\n >\n }\n </div>\n <div>\n @if (notifications && notifications.length > 0) {\n <div class=\"divide-y divide-[--rt-10-percent-layer]\">\n @for (item of notifications; track item) {\n <div class=\"p-3 cursor-pointer hover:bg-[--rt-raised-background]\" [routerLink]=\"[router(), item.id]\">\n <div class=\"text-lg mb-1\">\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\" i18n>There is no notifications</div>\n }\n </div>\n <div class=\"h-11 flex justify-center items-center cursor-pointer hover:bg-[--rt-raised-background]\" [routerLink]=\"router()\">\n <a class=\"flex justify-center items-center\">\n <span class=\"text-sm text-[--rt-brand-color]\" i18n> All notifications </span>\n </a>\n </div>\n </div>\n</mat-menu>\n", styles: ["rolatech-notification-icon{color:var(--rt-text-primary, #000)}.custom-menu{color:var(--rt-text-primary, #000);max-width:400px}\n"] }]
|
|
76
76
|
}] });
|
|
77
77
|
|
|
78
78
|
class NotificationDetailComponent extends BaseComponent {
|
|
@@ -90,10 +90,10 @@ class NotificationDetailComponent extends BaseComponent {
|
|
|
90
90
|
},
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
94
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
93
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: NotificationDetailComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
94
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.3", type: NotificationDetailComponent, isStandalone: true, selector: "rolatech-notification-detail", usesInheritance: true, ngImport: i0, template: "@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", styles: [""] });
|
|
95
95
|
}
|
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
96
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: NotificationDetailComponent, decorators: [{
|
|
97
97
|
type: Component,
|
|
98
98
|
args: [{ selector: 'rolatech-notification-detail', imports: [], template: "@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" }]
|
|
99
99
|
}] });
|
|
@@ -115,8 +115,8 @@ class NotificationItemComponent {
|
|
|
115
115
|
onToggle(item) {
|
|
116
116
|
this.toggle.emit(item);
|
|
117
117
|
}
|
|
118
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
119
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
118
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: NotificationItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
119
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.3", type: NotificationItemComponent, isStandalone: true, selector: "rolatech-notification-item", inputs: { notification: { classPropertyName: "notification", publicName: "notification", isSignal: true, isRequired: true, transformFunction: null }, expand: { classPropertyName: "expand", publicName: "expand", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { toggle: "toggle" }, ngImport: i0, template: "<div>\n <div\n class=\"flex justify-between items-center h-16 cursor-pointer px-3\"\n [ngClass]=\"notification().status === 'READ' ? 'text-[--rt-text-secondary]' : ''\"\n (click)=\"onToggle(notification())\"\n aria-hidden=\"true\"\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-[--rt-text-secondary]' : ''\"\n >\n {{ notification().content }}\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: DatePipe, name: "date" }], animations: [
|
|
120
120
|
trigger('contentAnimation', [
|
|
121
121
|
state('hidden', style({
|
|
122
122
|
height: '0',
|
|
@@ -130,7 +130,7 @@ class NotificationItemComponent {
|
|
|
130
130
|
]),
|
|
131
131
|
] });
|
|
132
132
|
}
|
|
133
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: NotificationItemComponent, decorators: [{
|
|
134
134
|
type: Component,
|
|
135
135
|
args: [{ selector: 'rolatech-notification-item', animations: [
|
|
136
136
|
trigger('contentAnimation', [
|
|
@@ -166,25 +166,25 @@ class NotificationIndexComponent {
|
|
|
166
166
|
orderOptions = [
|
|
167
167
|
{
|
|
168
168
|
key: 'createdAt',
|
|
169
|
-
value: '
|
|
169
|
+
value: 'Created At',
|
|
170
170
|
icon: 'arrow_upward',
|
|
171
171
|
sort: 'asc',
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
174
|
key: 'createdAt',
|
|
175
|
-
value: '
|
|
175
|
+
value: 'Created At',
|
|
176
176
|
icon: 'arrow_downward',
|
|
177
177
|
sort: 'desc',
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
key: 'status',
|
|
181
|
-
value: '
|
|
181
|
+
value: 'Status',
|
|
182
182
|
icon: 'arrow_upward',
|
|
183
183
|
sort: 'asc',
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
186
|
key: 'status',
|
|
187
|
-
value: '
|
|
187
|
+
value: 'Status',
|
|
188
188
|
icon: 'arrow_downward',
|
|
189
189
|
sort: 'desc',
|
|
190
190
|
},
|
|
@@ -192,22 +192,7 @@ class NotificationIndexComponent {
|
|
|
192
192
|
status = NotificationStatus;
|
|
193
193
|
orderString = 'createdAt desc';
|
|
194
194
|
dataSource = new MatTableDataSource();
|
|
195
|
-
links =
|
|
196
|
-
{
|
|
197
|
-
name: '全部',
|
|
198
|
-
icon: 'dashboard',
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
name: '课程',
|
|
202
|
-
icon: 'category',
|
|
203
|
-
type: 'course',
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
name: '订单',
|
|
207
|
-
icon: 'category',
|
|
208
|
-
type: 'order',
|
|
209
|
-
},
|
|
210
|
-
];
|
|
195
|
+
links = inject(NOTIFICATIONS_CONFIG$1).items;
|
|
211
196
|
ngOnInit() {
|
|
212
197
|
this.route.queryParams.subscribe(({ type }) => {
|
|
213
198
|
this.select = this.links.findIndex((item) => item.type === type);
|
|
@@ -258,10 +243,10 @@ class NotificationIndexComponent {
|
|
|
258
243
|
},
|
|
259
244
|
});
|
|
260
245
|
}
|
|
261
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
262
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
246
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: NotificationIndexComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
247
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.3", type: NotificationIndexComponent, isStandalone: true, selector: "rolatech-notification-index", viewQueries: [{ propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true, isSignal: true }], ngImport: i0, template: "<rolatech-container>\n <rolatech-toolbar title=\"Notifications\" large></rolatech-toolbar>\n <rolatech-tabs [select]=\"select\">\n @for (item of links; track item) {\n @if (item.type) {\n <rolatech-tab [label]=\"item.name\" routerLink=\"./\" [queryParams]=\"{ type: item.type }\"></rolatech-tab>\n } @else {\n <rolatech-tab [label]=\"item.name\" routerLink=\"./\"></rolatech-tab>\n }\n }\n </rolatech-tabs>\n <rolatech-list>\n @if (notifications) {\n @for (item of notifications; track $index) {\n <div class=\"p-3\">\n <rolatech-notification-item\n [notification]=\"item\"\n (toggle)=\"read(item)\"\n [expand]=\"item.id === selectedId\"\n ></rolatech-notification-item>\n </div>\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 } @else {\n <rolatech-empty></rolatech-empty>\n }\n </rolatech-list>\n</rolatech-container>\n", styles: [".notification-active{color:#000;border-bottom:4px solid #ff6600}\n"], dependencies: [{ kind: "component", type: NotificationItemComponent, selector: "rolatech-notification-item", inputs: ["notification", "expand"], outputs: ["toggle"] }, { kind: "ngmodule", type: AngularCommonModule }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: AngularComponentsModule }, { kind: "component", type: i2$1.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "component", type: ContainerComponent, selector: "rolatech-container" }, { kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }, { kind: "component", type: TabsComponent, selector: "rolatech-tabs", inputs: ["select", "loading"], outputs: ["selectChange"] }, { kind: "component", type: TabComponent, selector: "rolatech-tab", inputs: ["label"] }, { kind: "component", type: ListComponent, selector: "rolatech-list" }, { kind: "component", type: EmptyComponent, selector: "rolatech-empty" }], encapsulation: i0.ViewEncapsulation.None });
|
|
263
248
|
}
|
|
264
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
249
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: NotificationIndexComponent, decorators: [{
|
|
265
250
|
type: Component,
|
|
266
251
|
args: [{ selector: 'rolatech-notification-index', imports: [
|
|
267
252
|
NotificationItemComponent,
|
|
@@ -273,12 +258,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImpor
|
|
|
273
258
|
TabComponent,
|
|
274
259
|
ListComponent,
|
|
275
260
|
EmptyComponent,
|
|
276
|
-
], encapsulation: ViewEncapsulation.None, template: "<rolatech-container>\n <rolatech-toolbar title=\"\
|
|
261
|
+
], encapsulation: ViewEncapsulation.None, template: "<rolatech-container>\n <rolatech-toolbar title=\"Notifications\" large></rolatech-toolbar>\n <rolatech-tabs [select]=\"select\">\n @for (item of links; track item) {\n @if (item.type) {\n <rolatech-tab [label]=\"item.name\" routerLink=\"./\" [queryParams]=\"{ type: item.type }\"></rolatech-tab>\n } @else {\n <rolatech-tab [label]=\"item.name\" routerLink=\"./\"></rolatech-tab>\n }\n }\n </rolatech-tabs>\n <rolatech-list>\n @if (notifications) {\n @for (item of notifications; track $index) {\n <div class=\"p-3\">\n <rolatech-notification-item\n [notification]=\"item\"\n (toggle)=\"read(item)\"\n [expand]=\"item.id === selectedId\"\n ></rolatech-notification-item>\n </div>\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 } @else {\n <rolatech-empty></rolatech-empty>\n }\n </rolatech-list>\n</rolatech-container>\n", styles: [".notification-active{color:#000;border-bottom:4px solid #ff6600}\n"] }]
|
|
277
262
|
}] });
|
|
278
263
|
|
|
279
|
-
|
|
264
|
+
const NOTIFICATIONS_CONFIG = new InjectionToken('NOTIFICATIONS_CONFIG');
|
|
265
|
+
function provideAngularNotification(config) {
|
|
280
266
|
const providers = [
|
|
281
267
|
importProvidersFrom(CommonModule, ReactiveFormsModule, FormsModule, RouterModule),
|
|
268
|
+
{
|
|
269
|
+
provide: NOTIFICATIONS_CONFIG,
|
|
270
|
+
useValue: config,
|
|
271
|
+
},
|
|
282
272
|
];
|
|
283
273
|
return makeEnvironmentProviders(providers);
|
|
284
274
|
}
|
|
@@ -295,5 +285,5 @@ const notificationRoutes = [
|
|
|
295
285
|
* Generated bundle index. Do not edit.
|
|
296
286
|
*/
|
|
297
287
|
|
|
298
|
-
export { NotificationDetailComponent, NotificationIconComponent, NotificationIndexComponent, NotificationItemComponent, notificationRoutes, provideAngularNotification };
|
|
288
|
+
export { NOTIFICATIONS_CONFIG, NotificationDetailComponent, NotificationIconComponent, NotificationIndexComponent, NotificationItemComponent, notificationRoutes, provideAngularNotification };
|
|
299
289
|
//# sourceMappingURL=rolatech-angular-notification.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolatech-angular-notification.mjs","sources":["../../../../packages/angular-notification/src/lib/components/notification-icon/notification-icon.component.ts","../../../../packages/angular-notification/src/lib/components/notification-icon/notification-icon.component.html","../../../../packages/angular-notification/src/lib/components/notification-detail/notification-detail.component.ts","../../../../packages/angular-notification/src/lib/components/notification-detail/notification-detail.component.html","../../../../packages/angular-notification/src/lib/interfaces/notification.ts","../../../../packages/angular-notification/src/lib/components/notification-item/notification-item.component.ts","../../../../packages/angular-notification/src/lib/components/notification-item/notification-item.component.html","../../../../packages/angular-notification/src/lib/components/notification-index/notification-index.component.ts","../../../../packages/angular-notification/src/lib/components/notification-index/notification-index.component.html","../../../../packages/angular-notification/src/provider.ts","../../../../packages/angular-notification/src/lib/notification.routes.ts","../../../../packages/angular-notification/src/rolatech-angular-notification.ts"],"sourcesContent":["import { AfterViewInit, Component, OnDestroy, OnInit, ViewEncapsulation, inject, input } from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { NotificationService, NotificationStore } from '@rolatech/angular-services';\nimport { AngularComponentsModule } from '@rolatech/angular-components';\nimport { OverlayContainer } from '@angular/cdk/overlay';\n\n@Component({\n imports: [AngularCommonModule, AngularComponentsModule],\n selector: 'rolatech-notification-icon',\n templateUrl: './notification-icon.component.html',\n styleUrls: ['./notification-icon.component.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class NotificationIconComponent implements OnInit, AfterViewInit, OnDestroy {\n router = input<string>('/notifications');\n notifications: any = [];\n notificationService = inject(NotificationService);\n storeService = inject(NotificationStore);\n overlayContainer = inject(OverlayContainer);\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 ngAfterViewInit() {\n // const overlayElement = this.overlayContainer.getContainerElement();\n // console.log(overlayElement);\n // overlayElement.style.top = '40px'; // Forces overlay to start from the top\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 sort: 'createdAt desc',\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\" yPosition=\"below\">\n <div class=\"flex flex-col min-w-[256px] divide-y divide-[--rt-10-percent-layer]\">\n <div class=\"h-11 px-3 flex justify-between items-center\">\n <span class=\"text-xl font-bold\">通知消息</span>\n @if (count) {\n <span class=\"text-sm font-medium cursor-pointer hover:underline\" (click)=\"readAll()\" aria-hidden=\"true\">全部已读</span>\n }\n </div>\n <div>\n @if (notifications && notifications.length > 0) {\n <div class=\"divide-y divide-[--rt-10-percent-layer]\">\n @for (item of notifications; track item) {\n <div class=\"p-3 cursor-pointer hover:bg-[--rt-raised-background]\" [routerLink]=\"[router(), item.id]\">\n <div class=\"text-lg mb-1\">\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-[--rt-raised-background]\" [routerLink]=\"router()\">\n <a class=\"flex justify-center items-center\">\n <span class=\"text-sm text-[--rt-brand-color]\"> 通知中心 </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 { BaseComponent } from '@rolatech/angular-components';\nimport { NotificationService } from '@rolatech/angular-services';\n\n@Component({\n selector: 'rolatech-notification-detail',\n templateUrl: './notification-detail.component.html',\n styleUrls: ['./notification-detail.component.scss'],\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, input, output } 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 imports: [NgClass, MatIconModule, DatePipe],\n})\nexport class NotificationItemComponent {\n notification = input.required<INotification>();\n expand = input<boolean>(false);\n toggle = output<INotification>();\n isContentHidden = true;\n\n toggleContent() {\n this.isContentHidden = !this.isContentHidden;\n }\n onToggle(item: INotification) {\n this.toggle.emit(item);\n }\n}\n","<div>\n <div\n class=\"flex justify-between items-center h-16 cursor-pointer px-3\"\n [ngClass]=\"notification().status === 'READ' ? 'text-[--rt-text-secondary]' : ''\"\n (click)=\"onToggle(notification())\"\n aria-hidden=\"true\"\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-[--rt-text-secondary]' : ''\"\n >\n {{ notification().content }}\n </div>\n</div>\n","import { Component, OnInit, ViewEncapsulation, inject, viewChild } from '@angular/core';\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 { NotificationItemComponent } from '../notification-item/notification-item.component';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport {\n AngularComponentsModule,\n ContainerComponent,\n EmptyComponent,\n ListComponent,\n TabComponent,\n TabsComponent,\n ToolbarComponent,\n} from '@rolatech/angular-components';\nimport { ActivatedRoute } from '@angular/router';\nimport { NotificationService } from '@rolatech/angular-services';\n\n@Component({\n selector: 'rolatech-notification-index',\n templateUrl: './notification-index.component.html',\n styleUrls: ['./notification-index.component.scss'],\n imports: [\n NotificationItemComponent,\n AngularCommonModule,\n AngularComponentsModule,\n ContainerComponent,\n ToolbarComponent,\n TabsComponent,\n TabComponent,\n ListComponent,\n EmptyComponent,\n ],\n encapsulation: ViewEncapsulation.None,\n})\nexport class NotificationIndexComponent implements OnInit {\n route = inject(ActivatedRoute);\n notificationService = inject(NotificationService);\n snackBar = inject(MatSnackBar);\n notifications: INotification[] = [];\n filter: string | boolean = false;\n pageEvent!: PageEvent;\n length = 100;\n pageSize = 15;\n pageSizeOptions: number[] = [5, 10, 25, 100];\n isLoading = false;\n isSearch = false;\n selectedId = '';\n select = 0;\n displayedColumns: string[] = ['title', 'status', 'createdAt', 'actions'];\n paginator = viewChild(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 links = [\n {\n name: '全部',\n icon: 'dashboard',\n },\n {\n name: '课程',\n icon: 'category',\n type: 'course',\n },\n {\n name: '订单',\n icon: 'category',\n type: 'order',\n },\n ];\n ngOnInit(): void {\n this.route.queryParams.subscribe(({ type }) => {\n this.select = this.links.findIndex((item) => item.type === type);\n if (type) {\n this.filter = `type:${type}`;\n } else {\n this.filter = false;\n }\n this.find(null);\n });\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 };\n if (this.filter) {\n options['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","<rolatech-container>\n <rolatech-toolbar title=\"通知中心\" large></rolatech-toolbar>\n <rolatech-tabs [select]=\"select\">\n @for (item of links; track item) {\n @if (item.type) {\n <rolatech-tab [label]=\"item.name\" routerLink=\"./\" [queryParams]=\"{ type: item.type }\"></rolatech-tab>\n } @else {\n <rolatech-tab [label]=\"item.name\" routerLink=\"./\"></rolatech-tab>\n }\n }\n </rolatech-tabs>\n <rolatech-list>\n @if (notifications) {\n @for (item of notifications; track $index) {\n <div class=\"p-3\">\n <rolatech-notification-item\n [notification]=\"item\"\n (toggle)=\"read(item)\"\n [expand]=\"item.id === selectedId\"\n ></rolatech-notification-item>\n </div>\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 } @else {\n <rolatech-empty></rolatech-empty>\n }\n </rolatech-list>\n</rolatech-container>\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';\n\nexport function provideAngularNotification(): EnvironmentProviders {\n const providers: (Provider | EnvironmentProviders)[] = [\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';\n\nexport const notificationRoutes: Routes = [\n {\n path: '',\n 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"],"mappings":";;;;;;;;;;;;;;;;;;;;;MAca,yBAAyB,CAAA;AACpC,IAAA,MAAM,GAAG,KAAK,CAAS,gBAAgB,CAAC;IACxC,aAAa,GAAQ,EAAE;AACvB,IAAA,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACjD,IAAA,YAAY,GAAG,MAAM,CAAC,iBAAiB,CAAC;AACxC,IAAA,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,CAAC;IAE3C,KAAK,GAAG,CAAC;AACD,IAAA,iBAAiB;IACzB,QAAQ,GAAA;QACN,IAAI,CAAC,yBAAyB,EAAE;QAChC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,KAAI;AAC1C,YAAA,IAAI,CAAC,KAAK,GAAG,IAAI;AACnB,SAAC,CAAC;;IAEJ,eAAe,GAAA;;;;;IAKf,WAAW,GAAA;QACT,IAAI,IAAI,CAAC,iBAAiB;AAAE,YAAA,IAAI,CAAC,iBAAiB,CAAC,WAAW,EAAE;;IAGlE,yBAAyB,GAAA;QACvB,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC;AACzD,YAAA,IAAI,EAAE,CAAC,GAAG,KAAI;gBACZ,IAAI,CAAC,uBAAuB,EAAE;aAC/B;AACF,SAAA,CAAC;;IAEJ,uBAAuB,GAAA;AACrB,QAAA,MAAM,OAAO,GAAG;AACd,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AAA,EAAA,gBAAA,EAAA,CAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA;;2FAIL,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAjBtC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,6BAA6B,EAG9B,OAAA,EAAA;wBACP,yBAAyB;wBACzB,mBAAmB;wBACnB,uBAAuB;wBACvB,kBAAkB;wBAClB,gBAAgB;wBAChB,aAAa;wBACb,YAAY;wBACZ,aAAa;wBACb,cAAc;qBACf,EACc,aAAA,EAAA,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,krCAAA,EAAA,MAAA,EAAA,CAAA,oEAAA,CAAA,EAAA;;;SE7BvB,0BAA0B,GAAA;AACxC,IAAA,MAAM,SAAS,GAAwC;QACrD,mBAAmB,CAAC,YAAY,EAAE,mBAAmB,EAAE,WAAW,EAAE,YAAY,CAAC;KAClF;AACD,IAAA,OAAO,wBAAwB,CAAC,SAAS,CAAC;AAC5C;;ACNa,MAAA,kBAAkB,GAAW;AACxC,IAAA;AACE,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,SAAS,EAAE,0BAA0B;AACtC,KAAA;AACD,IAAA,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,2BAA2B,EAAE;;;ACTzD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"rolatech-angular-notification.mjs","sources":["../tmp-esm2022/lib/components/notification-icon/notification-icon.component.js","../tmp-esm2022/lib/components/notification-detail/notification-detail.component.js","../tmp-esm2022/lib/interfaces/notification.js","../tmp-esm2022/lib/components/notification-item/notification-item.component.js","../tmp-esm2022/lib/components/notification-index/notification-index.component.js","../tmp-esm2022/provider.js","../tmp-esm2022/lib/notification.routes.js","../tmp-esm2022/rolatech-angular-notification.js"],"sourcesContent":["import { Component, ViewEncapsulation, inject, input } from '@angular/core';\nimport { AngularCommonModule } from '@rolatech/angular-common';\nimport { NotificationService, NotificationStore } from '@rolatech/angular-services';\nimport { AngularComponentsModule } from '@rolatech/angular-components';\nimport { OverlayContainer } from '@angular/cdk/overlay';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/router\";\nimport * as i2 from \"@angular/material/badge\";\nimport * as i3 from \"@angular/material/button\";\nimport * as i4 from \"@angular/material/icon\";\nimport * as i5 from \"@angular/material/menu\";\nexport class NotificationIconComponent {\n router = input('/notifications');\n notifications = [];\n notificationService = inject(NotificationService);\n storeService = inject(NotificationStore);\n overlayContainer = inject(OverlayContainer);\n count = 0;\n countSubscription;\n ngOnInit() {\n this.countNotificationByStatus();\n this.storeService.$count.subscribe((data) => {\n this.count = data;\n });\n }\n ngAfterViewInit() {\n // const overlayElement = this.overlayContainer.getContainerElement();\n // console.log(overlayElement);\n // overlayElement.style.top = '40px'; // Forces overlay to start from the top\n }\n ngOnDestroy() {\n if (this.countSubscription)\n this.countSubscription.unsubscribe();\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 sort: 'createdAt desc',\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 static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.0.3\", ngImport: i0, type: NotificationIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"20.0.3\", type: NotificationIconComponent, isStandalone: true, selector: \"rolatech-notification-icon\", inputs: { router: { classPropertyName: \"router\", publicName: \"router\", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: \"<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\\\" yPosition=\\\"below\\\">\\n <div class=\\\"flex flex-col min-w-[256px] divide-y divide-[--rt-10-percent-layer]\\\">\\n <div class=\\\"h-11 px-3 flex justify-between items-center\\\">\\n <span class=\\\"text-xl font-bold\\\" i18n>Notifications</span>\\n @if (count) {\\n <span class=\\\"text-sm font-medium cursor-pointer hover:underline\\\" (click)=\\\"readAll()\\\" aria-hidden=\\\"true\\\" i18n\\n >Read All</span\\n >\\n }\\n </div>\\n <div>\\n @if (notifications && notifications.length > 0) {\\n <div class=\\\"divide-y divide-[--rt-10-percent-layer]\\\">\\n @for (item of notifications; track item) {\\n <div class=\\\"p-3 cursor-pointer hover:bg-[--rt-raised-background]\\\" [routerLink]=\\\"[router(), item.id]\\\">\\n <div class=\\\"text-lg mb-1\\\">\\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\\\" i18n>There is no notifications</div>\\n }\\n </div>\\n <div class=\\\"h-11 flex justify-center items-center cursor-pointer hover:bg-[--rt-raised-background]\\\" [routerLink]=\\\"router()\\\">\\n <a class=\\\"flex justify-center items-center\\\">\\n <span class=\\\"text-sm text-[--rt-brand-color]\\\" i18n> All notifications </span>\\n </a>\\n </div>\\n </div>\\n</mat-menu>\\n\", styles: [\"rolatech-notification-icon{color:var(--rt-text-primary, #000)}.custom-menu{color:var(--rt-text-primary, #000);max-width:400px}\\n\"], dependencies: [{ kind: \"ngmodule\", type: AngularCommonModule }, { kind: \"directive\", type: i1.RouterLink, selector: \"[routerLink]\", inputs: [\"target\", \"queryParams\", \"fragment\", \"queryParamsHandling\", \"state\", \"info\", \"relativeTo\", \"preserveFragment\", \"skipLocationChange\", \"replaceUrl\", \"routerLink\"] }, { kind: \"ngmodule\", type: AngularComponentsModule }, { kind: \"directive\", type: i2.MatBadge, selector: \"[matBadge]\", inputs: [\"matBadgeColor\", \"matBadgeOverlap\", \"matBadgeDisabled\", \"matBadgePosition\", \"matBadge\", \"matBadgeDescription\", \"matBadgeSize\", \"matBadgeHidden\"] }, { kind: \"component\", type: i3.MatIconButton, selector: \"button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]\", exportAs: [\"matButton\", \"matAnchor\"] }, { kind: \"component\", type: i4.MatIcon, selector: \"mat-icon\", inputs: [\"color\", \"inline\", \"svgIcon\", \"fontSet\", \"fontIcon\"], exportAs: [\"matIcon\"] }, { kind: \"component\", type: i5.MatMenu, selector: \"mat-menu\", inputs: [\"backdropClass\", \"aria-label\", \"aria-labelledby\", \"aria-describedby\", \"xPosition\", \"yPosition\", \"overlapTrigger\", \"hasBackdrop\", \"class\", \"classList\"], outputs: [\"closed\", \"close\"], exportAs: [\"matMenu\"] }, { kind: \"directive\", type: i5.MatMenuTrigger, selector: \"[mat-menu-trigger-for], [matMenuTriggerFor]\", inputs: [\"mat-menu-trigger-for\", \"matMenuTriggerFor\", \"matMenuTriggerData\", \"matMenuTriggerRestoreFocus\"], outputs: [\"menuOpened\", \"onMenuOpen\", \"menuClosed\", \"onMenuClose\"], exportAs: [\"matMenuTrigger\"] }], encapsulation: i0.ViewEncapsulation.None });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.0.3\", ngImport: i0, type: NotificationIconComponent, decorators: [{\n type: Component,\n args: [{ imports: [AngularCommonModule, AngularComponentsModule], selector: 'rolatech-notification-icon', encapsulation: ViewEncapsulation.None, template: \"<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\\\" yPosition=\\\"below\\\">\\n <div class=\\\"flex flex-col min-w-[256px] divide-y divide-[--rt-10-percent-layer]\\\">\\n <div class=\\\"h-11 px-3 flex justify-between items-center\\\">\\n <span class=\\\"text-xl font-bold\\\" i18n>Notifications</span>\\n @if (count) {\\n <span class=\\\"text-sm font-medium cursor-pointer hover:underline\\\" (click)=\\\"readAll()\\\" aria-hidden=\\\"true\\\" i18n\\n >Read All</span\\n >\\n }\\n </div>\\n <div>\\n @if (notifications && notifications.length > 0) {\\n <div class=\\\"divide-y divide-[--rt-10-percent-layer]\\\">\\n @for (item of notifications; track item) {\\n <div class=\\\"p-3 cursor-pointer hover:bg-[--rt-raised-background]\\\" [routerLink]=\\\"[router(), item.id]\\\">\\n <div class=\\\"text-lg mb-1\\\">\\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\\\" i18n>There is no notifications</div>\\n }\\n </div>\\n <div class=\\\"h-11 flex justify-center items-center cursor-pointer hover:bg-[--rt-raised-background]\\\" [routerLink]=\\\"router()\\\">\\n <a class=\\\"flex justify-center items-center\\\">\\n <span class=\\\"text-sm text-[--rt-brand-color]\\\" i18n> All notifications </span>\\n </a>\\n </div>\\n </div>\\n</mat-menu>\\n\", styles: [\"rolatech-notification-icon{color:var(--rt-text-primary, #000)}.custom-menu{color:var(--rt-text-primary, #000);max-width:400px}\\n\"] }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90aWZpY2F0aW9uLWljb24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4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V0ZXIoKVwiPlxuICAgICAgPGEgY2xhc3M9XCJmbGV4IGp1c3RpZnktY2VudGVyIGl0ZW1zLWNlbnRlclwiPlxuICAgICAgICA8c3BhbiBjbGFzcz1cInRleHQtc20gdGV4dC1bLS1ydC1icmFuZC1jb2xvcl1cIiBpMThuPiBBbGwgbm90aWZpY2F0aW9ucyA8L3NwYW4+XG4gICAgICA8L2E+XG4gICAgPC9kaXY+XG4gIDwvZGl2PlxuPC9tYXQtbWVudT5cbiJdfQ==","import { Component, inject } from '@angular/core';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport { BaseComponent } from '@rolatech/angular-components';\nimport { NotificationService } from '@rolatech/angular-services';\nimport * as i0 from \"@angular/core\";\nexport class NotificationDetailComponent extends BaseComponent {\n notificationService = inject(NotificationService);\n snackBar = inject(MatSnackBar);\n notification;\n ngOnInit() {\n this.get();\n }\n get() {\n this.notificationService.get(this.id).subscribe({\n next: (res) => {\n this.notification = res.data;\n this.titleService.setTitle(`通知 | ${this.notification.title}`);\n },\n });\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.0.3\", ngImport: i0, type: NotificationDetailComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"20.0.3\", type: NotificationDetailComponent, isStandalone: true, selector: \"rolatech-notification-detail\", usesInheritance: true, ngImport: i0, template: \"@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\", styles: [\"\"] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.0.3\", ngImport: i0, type: NotificationDetailComponent, decorators: [{\n type: Component,\n args: [{ selector: 'rolatech-notification-detail', imports: [], template: \"@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\" }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90aWZpY2F0aW9uLWRldGFpbC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9hbmd1bGFyLW5vdGlmaWNhdGlvbi9zcmMvbGliL2NvbXBvbmVudHMvbm90aWZpY2F0aW9uLWRldGFpbC9ub3RpZmljYXRpb24tZGV0YWlsLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2FuZ3VsYXItbm90aWZpY2F0aW9uL3NyYy9saWIvY29tcG9uZW50cy9ub3RpZmljYXRpb24tZGV0YWlsL25vdGlmaWNhdGlvbi1kZXRhaWwuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFMUQsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLDZCQUE2QixDQUFDO0FBQzFELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQztBQUM3RCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQzs7QUFRakUsTUFBTSxPQUFPLDJCQUE0QixTQUFRLGFBQWE7SUFDNUQsbUJBQW1CLEdBQUcsTUFBTSxDQUFDLG1CQUFtQixDQUFDLENBQUM7SUFDbEQsUUFBUSxHQUFHLE1BQU0sQ0FBQyxXQUFXLENBQUMsQ0FBQztJQUMvQixZQUFZLENBQWlCO0lBQzdCLFFBQVE7UUFDTixJQUFJLENBQUMsR0FBRyxFQUFFLENBQUM7SUFDYixDQUFDO0lB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vbi1kZXRhaWwuY29tcG9uZW50Lmh0bWwnLFxuICBzdHlsZVVybHM6IFsnLi9ub3RpZmljYXRpb24tZGV0YWlsLmNvbXBvbmVudC5zY3NzJ10sXG4gIGltcG9ydHM6IFtdLFxufSlcbmV4cG9ydCBjbGFzcyBOb3RpZmljYXRpb25EZXRhaWxDb21wb25lbnQgZXh0ZW5kcyBCYXNlQ29tcG9uZW50IGltcGxlbWVudHMgT25Jbml0IHtcbiAgbm90aWZpY2F0aW9uU2VydmljZSA9IGluamVjdChOb3RpZmljYXRpb25TZXJ2aWNlKTtcbiAgc25hY2tCYXIgPSBpbmplY3QoTWF0U25hY2tCYXIpO1xuICBub3RpZmljYXRpb24hOiBJTm90aWZpY2F0aW9uO1xuICBuZ09uSW5pdCgpOiB2b2lkIHtcbiAgICB0aGlzLmdldCgpO1xuICB9XG4gIGdldCgpIHtcbiAgICB0aGlzLm5vdGlmaWNhdGlvblNlcnZpY2UuZ2V0KHRoaXMuaWQpLnN1YnNjcmliZSh7XG4gICAgICBuZXh0OiAocmVzOiBhbnkpID0+IHtcbiAgICAgICAgdGhpcy5ub3RpZmljYXRpb24gPSByZXMuZGF0YTtcbiAgICAgICAgdGhpcy50aXRsZVNlcnZpY2Uuc2V0VGl0bGUoYOmAmuefpSB8ICR7dGhpcy5ub3RpZmljYXRpb24udGl0bGV9YCk7XG4gICAgICB9LFxuICAgIH0pO1xuICB9XG59XG4iLCJAaWYgKG5vdGlmaWNhdGlvbikge1xuICA8ZGl2IGNsYXNzPVwicC0zXCI+XG4gICAgPGRpdiBjbGFzcz1cInRleHQteGxcIj57eyBub3RpZmljYXRpb24udGl0bGUgfX08L2Rpdj5cbiAgICA8ZGl2IGNsYXNzPVwidGV4dC1tZFwiPlxuICAgICAge3sgbm90aWZpY2F0aW9uLmNvbnRlbnQgfX1cbiAgICA8L2Rpdj5cbiAgPC9kaXY+XG59XG4iXX0=","export var NotificationStatus;\n(function (NotificationStatus) {\n NotificationStatus[NotificationStatus[\"UNREAD\"] = '未读'] = \"UNREAD\";\n NotificationStatus[NotificationStatus[\"READ\"] = '已读'] = \"READ\";\n})(NotificationStatus || (NotificationStatus = {}));\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90aWZpY2F0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvYW5ndWxhci1ub3RpZmljYXRpb24vc3JjL2xpYi9pbnRlcmZhY2VzL25vdGlmaWNhdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFTQSxNQUFNLENBQU4sSUFBWSxrQkFHWDtBQUhELFdBQVksa0JBQWtCO0lBQzVCLGtEQUFjLElBQUksWUFBQSxDQUFBO0lBQ2xCLGdEQUFZLElBQUksVUFBQSxDQUFBO0FBQ2xCLENBQUMsRUFIVyxrQkFBa0IsS0FBbEIsa0JBQWtCLFFBRzdCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBJTm90aWZpY2F0aW9uIHtcbiAgaWQ6IHN0cmluZztcbiAgdGl0bGU6IHN0cmluZztcbiAgY29udGVudDogc3RyaW5nO1xuICB1c2VySWQ6IHN0cmluZztcbiAgc3RhdHVzOiBOb3RpZmljYXRpb25TdGF0dXMgfCBzdHJpbmc7XG4gIGNyZWF0ZWRBdDogc3RyaW5nO1xuICB1cGRhdGVkQXQ6IHN0cmluZztcbn1cbmV4cG9ydCBlbnVtIE5vdGlmaWNhdGlvblN0YXR1cyB7XG4gIFVOUkVBRCA9IDxhbnk+J+acquivuycsXG4gIFJFQUQgPSA8YW55Piflt7Lor7snLFxufVxuIl19","import { Component, input, output } from '@angular/core';\nimport { trigger, state, style, transition, animate } from '@angular/animations';\nimport { MatIconModule } from '@angular/material/icon';\nimport { NgClass, DatePipe } from '@angular/common';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/material/icon\";\nexport class NotificationItemComponent {\n notification = input.required();\n expand = input(false);\n toggle = output();\n isContentHidden = true;\n toggleContent() {\n this.isContentHidden = !this.isContentHidden;\n }\n onToggle(item) {\n this.toggle.emit(item);\n }\n static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.0.3\", ngImport: i0, type: NotificationItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.1.0\", version: \"20.0.3\", type: NotificationItemComponent, isStandalone: true, selector: \"rolatech-notification-item\", inputs: { notification: { classPropertyName: \"notification\", publicName: \"notification\", isSignal: true, isRequired: true, transformFunction: null }, expand: { classPropertyName: \"expand\", publicName: \"expand\", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { toggle: \"toggle\" }, ngImport: i0, template: \"<div>\\n <div\\n class=\\\"flex justify-between items-center h-16 cursor-pointer px-3\\\"\\n [ngClass]=\\\"notification().status === 'READ' ? 'text-[--rt-text-secondary]' : ''\\\"\\n (click)=\\\"onToggle(notification())\\\"\\n aria-hidden=\\\"true\\\"\\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-[--rt-text-secondary]' : ''\\\"\\n >\\n {{ notification().content }}\\n </div>\\n</div>\\n\", styles: [\"\"], dependencies: [{ kind: \"directive\", type: NgClass, selector: \"[ngClass]\", inputs: [\"class\", \"ngClass\"] }, { kind: \"ngmodule\", type: MatIconModule }, { kind: \"component\", type: i1.MatIcon, selector: \"mat-icon\", inputs: [\"color\", \"inline\", \"svgIcon\", \"fontSet\", \"fontIcon\"], exportAs: [\"matIcon\"] }, { kind: \"pipe\", type: DatePipe, name: \"date\" }], animations: [\n trigger('contentAnimation', [\n state('hidden', style({\n height: '0',\n opacity: 0,\n })),\n state('visible', style({\n height: '*',\n opacity: 1,\n })),\n transition('hidden <=> visible', animate('300ms ease-in-out')),\n ]),\n ] });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.0.3\", ngImport: i0, type: NotificationItemComponent, decorators: [{\n type: Component,\n args: [{ selector: 'rolatech-notification-item', animations: [\n trigger('contentAnimation', [\n state('hidden', style({\n height: '0',\n opacity: 0,\n })),\n state('visible', style({\n height: '*',\n opacity: 1,\n })),\n transition('hidden <=> visible', animate('300ms ease-in-out')),\n ]),\n ], imports: [NgClass, MatIconModule, DatePipe], template: \"<div>\\n <div\\n class=\\\"flex justify-between items-center h-16 cursor-pointer px-3\\\"\\n [ngClass]=\\\"notification().status === 'READ' ? 'text-[--rt-text-secondary]' : ''\\\"\\n (click)=\\\"onToggle(notification())\\\"\\n aria-hidden=\\\"true\\\"\\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-[--rt-text-secondary]' : ''\\\"\\n >\\n {{ notification().content }}\\n </div>\\n</div>\\n\" }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90aWZpY2F0aW9uLWl0ZW0uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvYW5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VkQXQgfCBkYXRlIH19PC9kaXY+XG4gICAgICA8bWF0LWljb24+e3sgZXhwYW5kKCkgPyAna2V5Ym9hcmRfYXJyb3dfdXAnIDogJ2tleWJvYXJkX2Fycm93X2Rvd24nIH19PC9tYXQtaWNvbj5cbiAgICA8L2Rpdj5cbiAgPC9kaXY+XG4gIDxkaXZcbiAgICBbY2xhc3MuaGlkZGVuXT1cIiFleHBhbmQoKVwiXG4gICAgW0Bjb250ZW50QW5pbWF0aW9uXT1cImV4cGFuZCgpXCJcbiAgICBjbGFzcz1cInAtM1wiXG4gICAgW25nQ2xhc3NdPVwibm90aWZpY2F0aW9uKCkuc3RhdHVzID09PSAnUkVBRCcgPyAndGV4dC1bLS1ydC10ZXh0LXNlY29uZGFyeV0nIDogJydcIlxuICA+XG4gICAge3sgbm90aWZpY2F0aW9uKCkuY29udGVudCB9fVxuICA8L2Rpdj5cbjwvZGl2PlxuIl19","import { Component, ViewEncapsulation, inject, viewChild } from '@angular/core';\nimport { NotificationStatus } from '../../interfaces/notification';\nimport { MatPaginator } from '@angular/material/paginator';\nimport { MatTableDataSource } from '@angular/material/table';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport { NotificationItemComponent } from '../notification-item/notification-item.component';\nimport { AngularCommonModule, NOTIFICATIONS_CONFIG } from '@rolatech/angular-common';\nimport { AngularComponentsModule, ContainerComponent, EmptyComponent, ListComponent, TabComponent, TabsComponent, ToolbarComponent, } from '@rolatech/angular-components';\nimport { ActivatedRoute } from '@angular/router';\nimport { NotificationService } from '@rolatech/angular-services';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/router\";\nimport * as i2 from \"@angular/material/paginator\";\nexport class NotificationIndexComponent {\n route = inject(ActivatedRoute);\n notificationService = inject(NotificationService);\n snackBar = inject(MatSnackBar);\n notifications = [];\n filter = false;\n pageEvent;\n length = 100;\n pageSize = 15;\n pageSizeOptions = [5, 10, 25, 100];\n isLoading = false;\n isSearch = false;\n selectedId = '';\n select = 0;\n displayedColumns = ['title', 'status', 'createdAt', 'actions'];\n paginator = viewChild(MatPaginator);\n orderOptions = [\n {\n key: 'createdAt',\n value: 'Created At',\n icon: 'arrow_upward',\n sort: 'asc',\n },\n {\n key: 'createdAt',\n value: 'Created At',\n icon: 'arrow_downward',\n sort: 'desc',\n },\n {\n key: 'status',\n value: 'Status',\n icon: 'arrow_upward',\n sort: 'asc',\n },\n {\n key: 'status',\n value: 'Status',\n icon: 'arrow_downward',\n sort: 'desc',\n },\n ];\n status = NotificationStatus;\n orderString = 'createdAt desc';\n dataSource = new MatTableDataSource();\n links = inject(NOTIFICATIONS_CONFIG).items;\n ngOnInit() {\n this.route.queryParams.subscribe(({ type }) => {\n this.select = this.links.findIndex((item) => item.type === type);\n if (type) {\n this.filter = `type:${type}`;\n }\n else {\n this.filter = false;\n }\n this.find(null);\n });\n this.find(null);\n }\n find(event) {\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 };\n if (this.filter) {\n options['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) {\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 static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.0.3\", ngImport: i0, type: NotificationIndexComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });\n static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"20.0.3\", type: NotificationIndexComponent, isStandalone: true, selector: \"rolatech-notification-index\", viewQueries: [{ propertyName: \"paginator\", first: true, predicate: MatPaginator, descendants: true, isSignal: true }], ngImport: i0, template: \"<rolatech-container>\\n <rolatech-toolbar title=\\\"Notifications\\\" large></rolatech-toolbar>\\n <rolatech-tabs [select]=\\\"select\\\">\\n @for (item of links; track item) {\\n @if (item.type) {\\n <rolatech-tab [label]=\\\"item.name\\\" routerLink=\\\"./\\\" [queryParams]=\\\"{ type: item.type }\\\"></rolatech-tab>\\n } @else {\\n <rolatech-tab [label]=\\\"item.name\\\" routerLink=\\\"./\\\"></rolatech-tab>\\n }\\n }\\n </rolatech-tabs>\\n <rolatech-list>\\n @if (notifications) {\\n @for (item of notifications; track $index) {\\n <div class=\\\"p-3\\\">\\n <rolatech-notification-item\\n [notification]=\\\"item\\\"\\n (toggle)=\\\"read(item)\\\"\\n [expand]=\\\"item.id === selectedId\\\"\\n ></rolatech-notification-item>\\n </div>\\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 } @else {\\n <rolatech-empty></rolatech-empty>\\n }\\n </rolatech-list>\\n</rolatech-container>\\n\", styles: [\".notification-active{color:#000;border-bottom:4px solid #ff6600}\\n\"], dependencies: [{ kind: \"component\", type: NotificationItemComponent, selector: \"rolatech-notification-item\", inputs: [\"notification\", \"expand\"], outputs: [\"toggle\"] }, { kind: \"ngmodule\", type: AngularCommonModule }, { kind: \"directive\", type: i1.RouterLink, selector: \"[routerLink]\", inputs: [\"target\", \"queryParams\", \"fragment\", \"queryParamsHandling\", \"state\", \"info\", \"relativeTo\", \"preserveFragment\", \"skipLocationChange\", \"replaceUrl\", \"routerLink\"] }, { kind: \"ngmodule\", type: AngularComponentsModule }, { kind: \"component\", type: i2.MatPaginator, selector: \"mat-paginator\", inputs: [\"color\", \"pageIndex\", \"length\", \"pageSize\", \"pageSizeOptions\", \"hidePageSize\", \"showFirstLastButtons\", \"selectConfig\", \"disabled\"], outputs: [\"page\"], exportAs: [\"matPaginator\"] }, { kind: \"component\", type: ContainerComponent, selector: \"rolatech-container\" }, { kind: \"component\", type: ToolbarComponent, selector: \"rolatech-toolbar\", inputs: [\"title\", \"subtitle\", \"back\", \"link\", \"large\", \"divider\"] }, { kind: \"component\", type: TabsComponent, selector: \"rolatech-tabs\", inputs: [\"select\", \"loading\"], outputs: [\"selectChange\"] }, { kind: \"component\", type: TabComponent, selector: \"rolatech-tab\", inputs: [\"label\"] }, { kind: \"component\", type: ListComponent, selector: \"rolatech-list\" }, { kind: \"component\", type: EmptyComponent, selector: \"rolatech-empty\" }], encapsulation: i0.ViewEncapsulation.None });\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.0.3\", ngImport: i0, type: NotificationIndexComponent, decorators: [{\n type: Component,\n args: [{ selector: 'rolatech-notification-index', imports: [\n NotificationItemComponent,\n AngularCommonModule,\n AngularComponentsModule,\n ContainerComponent,\n ToolbarComponent,\n TabsComponent,\n TabComponent,\n ListComponent,\n EmptyComponent,\n ], encapsulation: ViewEncapsulation.None, template: \"<rolatech-container>\\n <rolatech-toolbar title=\\\"Notifications\\\" large></rolatech-toolbar>\\n <rolatech-tabs [select]=\\\"select\\\">\\n @for (item of links; track item) {\\n @if (item.type) {\\n <rolatech-tab [label]=\\\"item.name\\\" routerLink=\\\"./\\\" [queryParams]=\\\"{ type: item.type }\\\"></rolatech-tab>\\n } @else {\\n <rolatech-tab [label]=\\\"item.name\\\" routerLink=\\\"./\\\"></rolatech-tab>\\n }\\n }\\n </rolatech-tabs>\\n <rolatech-list>\\n @if (notifications) {\\n @for (item of notifications; track $index) {\\n <div class=\\\"p-3\\\">\\n <rolatech-notification-item\\n [notification]=\\\"item\\\"\\n (toggle)=\\\"read(item)\\\"\\n [expand]=\\\"item.id === selectedId\\\"\\n ></rolatech-notification-item>\\n </div>\\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 } @else {\\n <rolatech-empty></rolatech-empty>\\n }\\n </rolatech-list>\\n</rolatech-container>\\n\", styles: [\".notification-active{color:#000;border-bottom:4px solid #ff6600}\\n\"] }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90aWZpY2F0aW9uLWluZGV4LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2FuZ3VsYXItbm90aWZpY2F0aW9uL3NyYy9saWIvY29tcG9uZW50cy9ub3RpZmljYXRpb24taW5kZXgvbm90aWZpY2F0aW9uLWluZGV4LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2FuZ3VsYXItbm90aWZpY2F0aW9uL3NyYy9saWIvY29tcG9uZW50cy9ub3RpZmljYXRpb24taW5kZXgvbm90aWZpY2F0aW9uLWluZGV4LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsaUJBQWlCLEVBQUUsTUFBTSxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN4RixPQUFPLEVBQWlCLGtCQUFrQixFQUFFLE1BQU0sK0JBQStCLENBQUM7QUFDbEYsT0FBTyxFQUFFLFlBQVksRUFBYSxNQUFNLDZCQUE2QixDQUFDO0FBQ3RFLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBQzdELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUMxRCxPQUFPLEVBQUUseUJ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pY2F0aW9uLWl0ZW0+XG4gICAgICAgIDwvZGl2PlxuICAgICAgfVxuICAgICAgPG1hdC1wYWdpbmF0b3JcbiAgICAgICAgI3BhZ2luYXRvclxuICAgICAgICBbbGVuZ3RoXT1cImxlbmd0aFwiXG4gICAgICAgIFtwYWdlU2l6ZV09XCJwYWdlU2l6ZVwiXG4gICAgICAgIFtwYWdlU2l6ZU9wdGlvbnNdPVwicGFnZVNpemVPcHRpb25zXCJcbiAgICAgICAgKHBhZ2UpPVwicGFnZUV2ZW50ID0gZmluZCgkZXZlbnQpXCJcbiAgICAgICAgaGlkZVBhZ2VTaXplXG4gICAgICAgIHNob3dGaXJzdExhc3RCdXR0b25zXG4gICAgICA+XG4gICAgICA8L21hdC1wYWdpbmF0b3I+XG4gICAgfSBAZWxzZSB7XG4gICAgICA8cm9sYXRlY2gtZW1wdHk+PC9yb2xhdGVjaC1lbXB0eT5cbiAgICB9XG4gIDwvcm9sYXRlY2gtbGlzdD5cbjwvcm9sYXRlY2gtY29udGFpbmVyPlxuIl19","import { InjectionToken, importProvidersFrom, makeEnvironmentProviders } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { RouterModule } from '@angular/router';\nexport const NOTIFICATIONS_CONFIG = new InjectionToken('NOTIFICATIONS_CONFIG');\nexport function provideAngularNotification(config) {\n const providers = [\n importProvidersFrom(CommonModule, ReactiveFormsModule, FormsModule, RouterModule),\n {\n provide: NOTIFICATIONS_CONFIG,\n useValue: config,\n },\n ];\n return makeEnvironmentProviders(providers);\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdmlkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9hbmd1bGFyLW5vdGlmaWNhdGlvbi9zcmMvcHJvdmlkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFB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SBmcm9tICdAYW5ndWxhci9yb3V0ZXInO1xuXG5leHBvcnQgaW50ZXJmYWNlIE5vdGlmaWNhdGlvbkxpbmsge1xuICBuYW1lOiBzdHJpbmc7XG4gIGljb246IHN0cmluZztcbiAgdHlwZT86IHN0cmluZztcbn1cbmV4cG9ydCBpbnRlcmZhY2UgTm90aWZpY2F0aW9uc0NvbmZpZyB7XG4gIHRpdGxlPzogc3RyaW5nO1xuICBpdGVtczogTm90aWZpY2F0aW9uTGlua1tdO1xufVxuZXhwb3J0IGNvbnN0IE5PVElGSUNBVElPTlNfQ09ORklHID0gbmV3IEluamVjdGlvblRva2VuPE5vdGlmaWNhdGlvbnNDb25maWc+KCdOT1RJRklDQVRJT05TX0NPTkZJRycpO1xuXG5leHBvcnQgZnVuY3Rpb24gcHJvdmlkZUFuZ3VsYXJOb3RpZmljYXRpb24oY29uZmlnPzogTm90aWZpY2F0aW9uc0NvbmZpZyk6IEVudmlyb25tZW50UHJvdmlkZXJzIHtcbiAgY29uc3QgcHJvdmlkZXJzOiAoUHJvdmlkZXIgfCBFbnZpcm9ubWVudFByb3ZpZGVycylbXSA9IFtcbiAgICBpbXBvcnRQcm92aWRlcnNGcm9tKENvbW1vbk1vZHVsZSwgUmVhY3RpdmVGb3Jtc01vZHVsZSwgRm9ybXNNb2R1bGUsIFJvdXRlck1vZHVsZSksXG4gICAge1xuICAgICAgcHJvdmlkZTogTk9USUZJQ0FUSU9OU19DT05GSUcsXG4gICAgICB1c2VWYWx1ZTogY29uZmlnLFxuICAgIH0sXG4gIF07XG4gIHJldHVybiBtYWtlRW52aXJvbm1lbnRQcm92aWRlcnMocHJvdmlkZXJzKTtcbn1cbiJdfQ==","import { NotificationIndexComponent } from './components/notification-index/notification-index.component';\nimport { NotificationDetailComponent } from './components/notification-detail/notification-detail.component';\nexport const notificationRoutes = [\n {\n path: '',\n component: NotificationIndexComponent,\n },\n { path: ':id', component: NotificationDetailComponent },\n];\n//# sourceMappingURL=data:application/json;base64,eyJ2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G4gIHsgcGF0aDogJzppZCcsIGNvbXBvbmVudDogTm90aWZpY2F0aW9uRGV0YWlsQ29tcG9uZW50IH0sXG5dO1xuIl19","/**\n * Generated bundle index. Do not edit.\n */\nexport * from './index';\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm9sYXRlY2gtYW5ndWxhci1ub3RpZmljYXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9hbmd1bGFyLW5vdGlmaWNhdGlvbi9zcmMvcm9sYXRlY2gtYW5ndWxhci1ub3RpZmljYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9pbmRleCc7XG4iXX0="],"names":["i1","NOTIFICATIONS_CONFIG","i2"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAWO,MAAM,yBAAyB,CAAC;AACvC,IAAI,MAAM,GAAG,KAAK,CAAC,gBAAgB,CAAC;AACpC,IAAI,aAAa,GAAG,EAAE;AACtB,IAAI,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACrD,IAAI,YAAY,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC5C,IAAI,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAC/C,IAAI,KAAK,GAAG,CAAC;AACb,IAAI,iBAAiB;AACrB,IAAI,QAAQ,GAAG;AACf,QAAQ,IAAI,CAAC,yBAAyB,EAAE;AACxC,QAAQ,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,KAAK;AACrD,YAAY,IAAI,CAAC,KAAK,GAAG,IAAI;AAC7B,SAAS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E,6BAA6B,EAAE,OAAO,EAAE;AACvE,wBAAwB,yBAAyB;AACjD,wBAAwB,mBAAmB;AAC3C,wBAAwB,uBAAuB;AAC/C,wBAAwB,kBAAkB;AAC1C,wBAAwB,gBAAgB;AACxC,wBAAwB,aAAa;AACrC,wBAAwB,YAAY;AACpC,wBAAwB,aAAa;AACrC,wBAAwB,cAAc;AACtC,qBAAqB,EAAE,aAAa,EAAE,iBAAiB,CAAC,IAAI,EAAE,QAAQ,EAAE,uqCAAuqC,EAAE,MAAM,EAAE,CAAC,oEAAoE,CAAC,EAAE;AACj0C,SAAS,CAAC,EAAE,CAAC;;ACzHD,MAAC,oBAAoB,GAAG,IAAI,cAAc,CAAC,sBAAsB;AACtE,SAAS,0BAA0B,CAAC,MAAM,EAAE;AACnD,IAAI,MAAM,SAAS,GAAG;AACtB,QAAQ,mBAAmB,CAAC,YAAY,EAAE,mBAAmB,EAAE,WAAW,EAAE,YAAY,CAAC;AACzF,QAAQ;AACR,YAAY,OAAO,EAAE,oBAAoB;AACzC,YAAY,QAAQ,EAAE,MAAM;AAC5B,SAAS;AACT,KAAK;AACL,IAAI,OAAO,wBAAwB,CAAC,SAAS,CAAC;AAC9C;;ACZY,MAAC,kBAAkB,GAAG;AAClC,IAAI;AACJ,QAAQ,IAAI,EAAE,EAAE;AAChB,QAAQ,SAAS,EAAE,0BAA0B;AAC7C,KAAK;AACL,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,2BAA2B,EAAE;AAC3D;;ACRA;AACA;AACA;;;;"}
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,113 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, AfterViewInit, OnDestroy, InjectionToken, EnvironmentProviders } from '@angular/core';
|
|
3
|
+
import { NotificationService, NotificationStore } from '@rolatech/angular-services';
|
|
4
|
+
import { OverlayContainer } from '@angular/cdk/overlay';
|
|
5
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
6
|
+
import { BaseComponent } from '@rolatech/angular-components';
|
|
7
|
+
import * as _rolatech_angular_common from '@rolatech/angular-common';
|
|
8
|
+
import { PageEvent, MatPaginator } from '@angular/material/paginator';
|
|
9
|
+
import { MatTableDataSource } from '@angular/material/table';
|
|
10
|
+
import { ActivatedRoute, Routes } from '@angular/router';
|
|
11
|
+
|
|
12
|
+
declare class NotificationIconComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
13
|
+
router: i0.InputSignal<string>;
|
|
14
|
+
notifications: any;
|
|
15
|
+
notificationService: NotificationService;
|
|
16
|
+
storeService: NotificationStore;
|
|
17
|
+
overlayContainer: OverlayContainer;
|
|
18
|
+
count: number;
|
|
19
|
+
private countSubscription;
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
ngAfterViewInit(): void;
|
|
22
|
+
ngOnDestroy(): void;
|
|
23
|
+
countNotificationByStatus(): void;
|
|
24
|
+
loadUnreadNotifications(): void;
|
|
25
|
+
readAll(): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationIconComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationIconComponent, "rolatech-notification-icon", never, { "router": { "alias": "router"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
interface INotification {
|
|
31
|
+
id: string;
|
|
32
|
+
title: string;
|
|
33
|
+
content: string;
|
|
34
|
+
userId: string;
|
|
35
|
+
status: NotificationStatus | string;
|
|
36
|
+
createdAt: string;
|
|
37
|
+
updatedAt: string;
|
|
38
|
+
}
|
|
39
|
+
declare enum NotificationStatus {
|
|
40
|
+
UNREAD,
|
|
41
|
+
READ
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
declare class NotificationDetailComponent extends BaseComponent implements OnInit {
|
|
45
|
+
notificationService: NotificationService;
|
|
46
|
+
snackBar: MatSnackBar;
|
|
47
|
+
notification: INotification;
|
|
48
|
+
ngOnInit(): void;
|
|
49
|
+
get(): void;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationDetailComponent, never>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationDetailComponent, "rolatech-notification-detail", never, {}, {}, never, never, true, never>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare class NotificationIndexComponent implements OnInit {
|
|
55
|
+
route: ActivatedRoute;
|
|
56
|
+
notificationService: NotificationService;
|
|
57
|
+
snackBar: MatSnackBar;
|
|
58
|
+
notifications: INotification[];
|
|
59
|
+
filter: string | boolean;
|
|
60
|
+
pageEvent: PageEvent;
|
|
61
|
+
length: number;
|
|
62
|
+
pageSize: number;
|
|
63
|
+
pageSizeOptions: number[];
|
|
64
|
+
isLoading: boolean;
|
|
65
|
+
isSearch: boolean;
|
|
66
|
+
selectedId: string;
|
|
67
|
+
select: number;
|
|
68
|
+
displayedColumns: string[];
|
|
69
|
+
paginator: i0.Signal<MatPaginator | undefined>;
|
|
70
|
+
orderOptions: {
|
|
71
|
+
key: string;
|
|
72
|
+
value: string;
|
|
73
|
+
icon: string;
|
|
74
|
+
sort: string;
|
|
75
|
+
}[];
|
|
76
|
+
status: any;
|
|
77
|
+
orderString: string;
|
|
78
|
+
dataSource: MatTableDataSource<INotification, MatPaginator>;
|
|
79
|
+
links: _rolatech_angular_common.NotificationLink[];
|
|
80
|
+
ngOnInit(): void;
|
|
81
|
+
find(event?: PageEvent | null): any;
|
|
82
|
+
read(item: any): void;
|
|
83
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationIndexComponent, never>;
|
|
84
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationIndexComponent, "rolatech-notification-index", never, {}, {}, never, never, true, never>;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
declare class NotificationItemComponent {
|
|
88
|
+
notification: i0.InputSignal<INotification>;
|
|
89
|
+
expand: i0.InputSignal<boolean>;
|
|
90
|
+
toggle: i0.OutputEmitterRef<INotification>;
|
|
91
|
+
isContentHidden: boolean;
|
|
92
|
+
toggleContent(): void;
|
|
93
|
+
onToggle(item: INotification): void;
|
|
94
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationItemComponent, never>;
|
|
95
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationItemComponent, "rolatech-notification-item", never, { "notification": { "alias": "notification"; "required": true; "isSignal": true; }; "expand": { "alias": "expand"; "required": false; "isSignal": true; }; }, { "toggle": "toggle"; }, never, never, true, never>;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
interface NotificationLink {
|
|
99
|
+
name: string;
|
|
100
|
+
icon: string;
|
|
101
|
+
type?: string;
|
|
102
|
+
}
|
|
103
|
+
interface NotificationsConfig {
|
|
104
|
+
title?: string;
|
|
105
|
+
items: NotificationLink[];
|
|
106
|
+
}
|
|
107
|
+
declare const NOTIFICATIONS_CONFIG: InjectionToken<NotificationsConfig>;
|
|
108
|
+
declare function provideAngularNotification(config?: NotificationsConfig): EnvironmentProviders;
|
|
109
|
+
|
|
110
|
+
declare const notificationRoutes: Routes;
|
|
111
|
+
|
|
112
|
+
export { NOTIFICATIONS_CONFIG, NotificationDetailComponent, NotificationIconComponent, NotificationIndexComponent, NotificationItemComponent, notificationRoutes, provideAngularNotification };
|
|
113
|
+
export type { NotificationLink, NotificationsConfig };
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolatech/angular-notification",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20.0.0-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@angular/common": "^
|
|
7
|
-
"@angular/core": "^
|
|
6
|
+
"@angular/common": "^20.0.0",
|
|
7
|
+
"@angular/core": "^20.0.0"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"tslib": "^2.3.0"
|
package/themes/_default.scss
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width:600px){.container{max-width:600px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-20{z-index:20}.z-30{z-index:30}.-m-1{margin:-.25rem}.m-3{margin:.75rem}.m-auto{margin:auto}.-mt-4{margin-top:-1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-\[40px\]{margin-left:40px}.ml-auto{margin-left:auto}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-\[6px\]{margin-top:6px}.box-border{box-sizing:border-box}.line-clamp-1{-webkit-line-clamp:1}.line-clamp-1,.line-clamp-4{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical}.line-clamp-4{-webkit-line-clamp:4}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.aspect-video{aspect-ratio:16/9}.h-0{height:0}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-24{height:6rem}.h-32{height:8rem}.h-4{height:1rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[190px\]{height:190px}.h-full{height:100%}.min-h-11{min-height:2.75rem}.min-h-\[320px\]{min-height:320px}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-20{width:5rem}.w-32{width:8rem}.w-4{width:1rem}.w-9{width:2.25rem}.w-\[190px\]{width:190px}.w-full{width:100%}.min-w-\[256px\]{min-width:256px}.min-w-\[320px\]{min-width:320px}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.scale-90{--tw-scale-x:.9;--tw-scale-y:.9}.scale-90,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-\[--rt-10-percent-layer\]>:not([hidden])~:not([hidden]){border-color:var(--rt-10-percent-layer)}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.overflow-y-hidden{overflow-y:hidden}.overflow-x-scroll{overflow-x:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-normal{white-space:normal}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-dashed{border-style:dashed}.border-\[--rt-border-color\]{border-color:var(--rt-border-color)}.bg-\[--rt-10-percent-layer\]{background-color:var(--rt-10-percent-layer)}.bg-\[--rt-base-background\]{background-color:var(--rt-base-background)}.bg-\[--rt-brand-color\]{background-color:var(--rt-brand-color)}.bg-\[--rt-raised-background\]{background-color:var(--rt-raised-background)}.bg-fixed{background-attachment:fixed}.fill-current{fill:currentColor}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-12{padding-bottom:3rem;padding-top:3rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.italic{font-style:italic}.leading-3{line-height:.75rem}.leading-none{line-height:1}.text-\[--rt-brand-color\]{color:var(--rt-brand-color)}.text-\[--rt-text-primary\]{color:var(--rt-text-primary)}.text-\[--rt-text-secondary\]{color:var(--rt-text-secondary)}.text-transparent{color:transparent}.underline{text-decoration-line:underline}.opacity-60{opacity:.6}.opacity-75{opacity:.75}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.outline-4{outline-width:4px}.outline-transparent{outline-color:transparent}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:bg-\[--rt-10-percent-layer\]:hover{background-color:var(--rt-10-percent-layer)}.hover\:bg-\[--rt-base-background\]:hover{background-color:var(--rt-base-background)}.hover\:bg-\[--rt-raised-background\]:hover{background-color:var(--rt-raised-background)}.hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:outline-\[--rt-raised-background\]:hover{outline-color:var(--rt-raised-background)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}@media (min-width:600px){.sm\:w-1\/3{width:33.333333%}}@media (min-width:768px){.md\:visible{visibility:visible}.md\:line-clamp-2{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.md\:h-auto{height:auto}.md\:w-1\/4{width:25%}.md\:flex-row{flex-direction:row}.md\:gap-10{gap:2.5rem}.md\:px-16{padding-left:4rem;padding-right:4rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1024px){.lg\:w-1\/6{width:16.666667%}}@media (min-width:1280px){.xl\:max-w-\[1024px\]{max-width:1024px}}@media (min-width:1536px){.\32xl\:max-w-\[1280px\]{max-width:1280px}}
|
|
1
|
+
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width:600px){.container{max-width:600px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.left-0{left:0}.left-\[30px\]{left:30px}.right-0{right:0}.top-0{top:0}.top-\[30px\]{top:30px}.z-20{z-index:20}.z-30{z-index:30}.z-\[9999\]{z-index:9999}.-m-1{margin:-.25rem}.m-3{margin:.75rem}.m-auto{margin:auto}.-mt-4{margin-top:-1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-\[40px\]{margin-left:40px}.ml-auto{margin-left:auto}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-\[6px\]{margin-top:6px}.box-border{box-sizing:border-box}.line-clamp-1{-webkit-line-clamp:1}.line-clamp-1,.line-clamp-4{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical}.line-clamp-4{-webkit-line-clamp:4}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.aspect-video{aspect-ratio:16/9}.h-0{height:0}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-24{height:6rem}.h-32{height:8rem}.h-4{height:1rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[190px\]{height:190px}.h-full{height:100%}.max-h-\[320px\]{max-height:320px}.min-h-11{min-height:2.75rem}.min-h-\[320px\]{min-height:320px}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2\/6{width:33.333333%}.w-20{width:5rem}.w-32{width:8rem}.w-4{width:1rem}.w-4\/6{width:66.666667%}.w-9{width:2.25rem}.w-\[190px\]{width:190px}.w-full{width:100%}.min-w-\[256px\]{min-width:256px}.min-w-\[320px\]{min-width:320px}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.scale-90{--tw-scale-x:.9;--tw-scale-y:.9}.scale-90,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-\[--rt-10-percent-layer\]>:not([hidden])~:not([hidden]){border-color:var(--rt-10-percent-layer)}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.overflow-y-hidden{overflow-y:hidden}.overflow-x-scroll{overflow-x:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-normal{white-space:normal}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-dashed{border-style:dashed}.border-\[--rt-border-color\]{border-color:var(--rt-border-color)}.bg-\[--rt-10-percent-layer\]{background-color:var(--rt-10-percent-layer)}.bg-\[--rt-base-background\]{background-color:var(--rt-base-background)}.bg-\[--rt-brand-color\]{background-color:var(--rt-brand-color)}.bg-\[--rt-raised-background\]{background-color:var(--rt-raised-background)}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-fixed{background-attachment:fixed}.fill-current{fill:currentColor}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-12{padding-bottom:3rem;padding-top:3rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.pb-3{padding-bottom:.75rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pt-3{padding-top:.75rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-thin{font-weight:100}.italic{font-style:italic}.leading-3{line-height:.75rem}.leading-none{line-height:1}.text-\[--rt-brand-color\]{color:var(--rt-brand-color)}.text-\[--rt-text-primary\]{color:var(--rt-text-primary)}.text-\[--rt-text-secondary\]{color:var(--rt-text-secondary)}.text-transparent{color:transparent}.underline{text-decoration-line:underline}.opacity-60{opacity:.6}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.outline-4{outline-width:4px}.outline-transparent{outline-color:transparent}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:bg-\[--rt-10-percent-layer\]:hover{background-color:var(--rt-10-percent-layer)}.hover\:bg-\[--rt-base-background\]:hover{background-color:var(--rt-base-background)}.hover\:bg-\[--rt-raised-background\]:hover{background-color:var(--rt-raised-background)}.hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:outline-\[--rt-raised-background\]:hover{outline-color:var(--rt-raised-background)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.group:hover .group-hover\:bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}@media (min-width:600px){.sm\:w-1\/3{width:33.333333%}}@media (min-width:768px){.md\:visible{visibility:visible}.md\:line-clamp-2{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.md\:h-auto{height:auto}.md\:w-1\/4{width:25%}.md\:flex-row{flex-direction:row}.md\:gap-10{gap:2.5rem}.md\:px-16{padding-left:4rem;padding-right:4rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1024px){.lg\:w-1\/6{width:16.666667%}}@media (min-width:1280px){.xl\:max-w-\[1024px\]{max-width:1024px}}@media (min-width:1536px){.\32xl\:max-w-\[1280px\]{max-width:1280px}}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { INotification } from '../../interfaces/notification';
|
|
3
|
-
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
4
|
-
import { BaseComponent } from '@rolatech/angular-components';
|
|
5
|
-
import { NotificationService } from '@rolatech/angular-services';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class NotificationDetailComponent extends BaseComponent implements OnInit {
|
|
8
|
-
notificationService: NotificationService;
|
|
9
|
-
snackBar: MatSnackBar;
|
|
10
|
-
notification: INotification;
|
|
11
|
-
ngOnInit(): void;
|
|
12
|
-
get(): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationDetailComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationDetailComponent, "rolatech-notification-detail", never, {}, {}, never, never, true, never>;
|
|
15
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { NotificationService, NotificationStore } from '@rolatech/angular-services';
|
|
3
|
-
import { OverlayContainer } from '@angular/cdk/overlay';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class NotificationIconComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
6
|
-
router: import("@angular/core").InputSignal<string>;
|
|
7
|
-
notifications: any;
|
|
8
|
-
notificationService: NotificationService;
|
|
9
|
-
storeService: NotificationStore;
|
|
10
|
-
overlayContainer: OverlayContainer;
|
|
11
|
-
count: number;
|
|
12
|
-
private countSubscription;
|
|
13
|
-
ngOnInit(): void;
|
|
14
|
-
ngAfterViewInit(): void;
|
|
15
|
-
ngOnDestroy(): void;
|
|
16
|
-
countNotificationByStatus(): void;
|
|
17
|
-
loadUnreadNotifications(): void;
|
|
18
|
-
readAll(): void;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationIconComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationIconComponent, "rolatech-notification-icon", never, { "router": { "alias": "router"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
21
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { INotification } from '../../interfaces/notification';
|
|
3
|
-
import { MatPaginator, PageEvent } from '@angular/material/paginator';
|
|
4
|
-
import { MatTableDataSource } from '@angular/material/table';
|
|
5
|
-
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
6
|
-
import { ActivatedRoute } from '@angular/router';
|
|
7
|
-
import { NotificationService } from '@rolatech/angular-services';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class NotificationIndexComponent implements OnInit {
|
|
10
|
-
route: ActivatedRoute;
|
|
11
|
-
notificationService: NotificationService;
|
|
12
|
-
snackBar: MatSnackBar;
|
|
13
|
-
notifications: INotification[];
|
|
14
|
-
filter: string | boolean;
|
|
15
|
-
pageEvent: PageEvent;
|
|
16
|
-
length: number;
|
|
17
|
-
pageSize: number;
|
|
18
|
-
pageSizeOptions: number[];
|
|
19
|
-
isLoading: boolean;
|
|
20
|
-
isSearch: boolean;
|
|
21
|
-
selectedId: string;
|
|
22
|
-
select: number;
|
|
23
|
-
displayedColumns: string[];
|
|
24
|
-
paginator: import("@angular/core").Signal<MatPaginator | undefined>;
|
|
25
|
-
orderOptions: {
|
|
26
|
-
key: string;
|
|
27
|
-
value: string;
|
|
28
|
-
icon: string;
|
|
29
|
-
sort: string;
|
|
30
|
-
}[];
|
|
31
|
-
status: any;
|
|
32
|
-
orderString: string;
|
|
33
|
-
dataSource: MatTableDataSource<INotification, MatPaginator>;
|
|
34
|
-
links: ({
|
|
35
|
-
name: string;
|
|
36
|
-
icon: string;
|
|
37
|
-
type?: undefined;
|
|
38
|
-
} | {
|
|
39
|
-
name: string;
|
|
40
|
-
icon: string;
|
|
41
|
-
type: string;
|
|
42
|
-
})[];
|
|
43
|
-
ngOnInit(): void;
|
|
44
|
-
find(event?: PageEvent | null): any;
|
|
45
|
-
read(item: any): void;
|
|
46
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationIndexComponent, never>;
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationIndexComponent, "rolatech-notification-index", never, {}, {}, never, never, true, never>;
|
|
48
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { INotification } from '../../interfaces/notification';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class NotificationItemComponent {
|
|
4
|
-
notification: import("@angular/core").InputSignal<INotification>;
|
|
5
|
-
expand: import("@angular/core").InputSignal<boolean>;
|
|
6
|
-
toggle: import("@angular/core").OutputEmitterRef<INotification>;
|
|
7
|
-
isContentHidden: boolean;
|
|
8
|
-
toggleContent(): void;
|
|
9
|
-
onToggle(item: INotification): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationItemComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationItemComponent, "rolatech-notification-item", never, { "notification": { "alias": "notification"; "required": true; "isSignal": true; }; "expand": { "alias": "expand"; "required": false; "isSignal": true; }; }, { "toggle": "toggle"; }, never, never, true, never>;
|
|
12
|
-
}
|
package/provider.d.ts
DELETED