fas-admin 0.0.73 → 0.0.74

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.
Files changed (26) hide show
  1. package/esm2022/lib/components/views/notifications/api/notification-to-all-active-users-result-vm.model.mjs +2 -0
  2. package/esm2022/lib/components/views/notifications/api/notification-to-selected-users-im.model.mjs +2 -0
  3. package/esm2022/lib/components/views/notifications/api/notifications-to-selected-users.service.mjs +34 -0
  4. package/esm2022/lib/components/views/notifications/api/recipient-user-account-im.model.mjs +2 -0
  5. package/esm2022/lib/components/views/notifications/components/user-notifications/user-notifications.component.mjs +74 -0
  6. package/esm2022/lib/components/views/notifications/components/users-notifications/users-notifications.component.mjs +11 -0
  7. package/esm2022/lib/components/views/notifications/notifications.component.mjs +31 -0
  8. package/esm2022/lib/components/views/notifications/notifications.module.mjs +27 -0
  9. package/esm2022/lib/fas-admin.module.mjs +5 -1
  10. package/esm2022/lib/shared/const/fas-default-settings.const.mjs +7 -1
  11. package/esm2022/lib/shared/helpers/modal.config.mjs +27 -0
  12. package/esm2022/lib/shared/models/fas-admin-models.mjs +1 -1
  13. package/fesm2022/fas-admin.mjs +180 -0
  14. package/fesm2022/fas-admin.mjs.map +1 -1
  15. package/lib/components/views/notifications/api/notification-to-all-active-users-result-vm.model.d.ts +4 -0
  16. package/lib/components/views/notifications/api/notification-to-selected-users-im.model.d.ts +10 -0
  17. package/lib/components/views/notifications/api/notifications-to-selected-users.service.d.ts +15 -0
  18. package/lib/components/views/notifications/api/recipient-user-account-im.model.d.ts +4 -0
  19. package/lib/components/views/notifications/components/user-notifications/user-notifications.component.d.ts +15 -0
  20. package/lib/components/views/notifications/components/users-notifications/users-notifications.component.d.ts +5 -0
  21. package/lib/components/views/notifications/notifications.component.d.ts +10 -0
  22. package/lib/components/views/notifications/notifications.module.d.ts +10 -0
  23. package/lib/fas-admin.module.d.ts +7 -6
  24. package/lib/shared/helpers/modal.config.d.ts +3 -0
  25. package/lib/shared/models/fas-admin-models.d.ts +1 -1
  26. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ export interface INotificationToAllActiveUsersResultVm {
2
+ success: boolean;
3
+ messaage: string;
4
+ }
@@ -0,0 +1,10 @@
1
+ import { IRecipientUserAccountIm } from "./recipient-user-account-im.model";
2
+ export interface INotificationToSelectedUsersIm {
3
+ recipientUserAccounts?: IRecipientUserAccountIm[];
4
+ link: string;
5
+ message: string;
6
+ title: string;
7
+ emailBody: string;
8
+ sendAlsoEmail: boolean;
9
+ linkOpenInNewWindow: boolean;
10
+ }
@@ -0,0 +1,15 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { INotificationToAllActiveUsersResultVm } from './notification-to-all-active-users-result-vm.model';
4
+ import { INotificationToSelectedUsersIm } from './notification-to-selected-users-im.model';
5
+ import * as i0 from "@angular/core";
6
+ export declare class NotificationsToSelectedUsersService {
7
+ private http;
8
+ private apiUrl;
9
+ private readonly baseUrl;
10
+ constructor(http: HttpClient, apiUrl: string);
11
+ post(notification: INotificationToSelectedUsersIm): Observable<INotificationToAllActiveUsersResultVm>;
12
+ private createHeaders;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsToSelectedUsersService, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<NotificationsToSelectedUsersService>;
15
+ }
@@ -0,0 +1,4 @@
1
+ export interface IRecipientUserAccountIm {
2
+ email: string;
3
+ userAccountGuid: string;
4
+ }
@@ -0,0 +1,15 @@
1
+ import { FormGroup } from '@angular/forms';
2
+ import * as i0 from "@angular/core";
3
+ export declare class UserNotificationsComponent {
4
+ private _notificationsToSelectedUsersService;
5
+ private _dialogRef;
6
+ private _fb;
7
+ addNewNotificationForm: FormGroup;
8
+ submitLoading: boolean;
9
+ ngOnInit(): void;
10
+ setFormStructure(): void;
11
+ submit(): void;
12
+ closeDialog(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserNotificationsComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserNotificationsComponent, "lib-user-notifications", never, {}, {}, never, never, true, never>;
15
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class UsersNotificationsComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<UsersNotificationsComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<UsersNotificationsComponent, "lib-users-notifications", never, {}, {}, never, never, true, never>;
5
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class NotificationsComponent {
3
+ private _primengDialogService;
4
+ private dynamicDialogRef;
5
+ ngOnDestroy(): void;
6
+ showAddUserNotification(): void;
7
+ showAddUsersNotification(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsComponent, "lib-notifications", never, {}, {}, never, never, false, never>;
10
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./notifications.component";
3
+ import * as i2 from "primeng/dynamicdialog";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "primeng/button";
6
+ export declare class NotificationsModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NotificationsModule, [typeof i1.NotificationsComponent], [typeof i2.DynamicDialogModule, typeof i3.CommonModule, typeof i4.ButtonModule], never>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<NotificationsModule>;
10
+ }
@@ -7,17 +7,18 @@ import * as i3 from "./components/layout/side-bar/side-bar.component";
7
7
  import * as i4 from "@angular/common";
8
8
  import * as i5 from "@angular/router";
9
9
  import * as i6 from "./components/views/subscriptions/subscriptions.module";
10
- import * as i7 from "./components/views/operators/operators.module";
11
- import * as i8 from "./components/views/statistics/statistic.module";
12
- import * as i9 from "./components/views/messages/messages.module";
13
- import * as i10 from "./components/views/users/users.module";
14
- import * as i11 from "primeng/toast";
10
+ import * as i7 from "./components/views/notifications/notifications.module";
11
+ import * as i8 from "./components/views/operators/operators.module";
12
+ import * as i9 from "./components/views/statistics/statistic.module";
13
+ import * as i10 from "./components/views/messages/messages.module";
14
+ import * as i11 from "./components/views/users/users.module";
15
+ import * as i12 from "primeng/toast";
15
16
  export declare class FASAdminModule {
16
17
  private configData;
17
18
  private fasAdminService;
18
19
  constructor(configData: IFASAdminConfigInitializer, fasAdminService: FASAdminService);
19
20
  private generateRoutes;
20
21
  static ɵfac: i0.ɵɵFactoryDeclaration<FASAdminModule, never>;
21
- static ɵmod: i0.ɵɵNgModuleDeclaration<FASAdminModule, [typeof i1.FASAdminComponent, typeof i2.TopBarComponent, typeof i3.SideBarComponent], [typeof i4.CommonModule, typeof i5.RouterModule, typeof i6.SubscriptionsModule, typeof i7.OperatorsModule, typeof i8.StatisticModule, typeof i9.MessagesModule, typeof i10.UsersModule, typeof i11.ToastModule], never>;
22
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FASAdminModule, [typeof i1.FASAdminComponent, typeof i2.TopBarComponent, typeof i3.SideBarComponent], [typeof i4.CommonModule, typeof i5.RouterModule, typeof i6.SubscriptionsModule, typeof i7.NotificationsModule, typeof i8.OperatorsModule, typeof i9.StatisticModule, typeof i10.MessagesModule, typeof i11.UsersModule, typeof i12.ToastModule], never>;
22
23
  static ɵinj: i0.ɵɵInjectorDeclaration<FASAdminModule>;
23
24
  }
@@ -0,0 +1,3 @@
1
+ import { DynamicDialogConfig } from 'primeng/dynamicdialog';
2
+ export declare const centerDynamicModalConfig: DynamicDialogConfig;
3
+ export declare const rightDynamicModalConfig: DynamicDialogConfig;
@@ -5,7 +5,7 @@ export interface IFASButtonList {
5
5
  label: string;
6
6
  icon: string;
7
7
  }
8
- export type IFASDefaultRoutePath = 'dashboard' | 'statistic' | 'subscriptions' | 'messages' | 'operators' | 'users';
8
+ export type IFASDefaultRoutePath = 'dashboard' | 'statistic' | 'subscriptions' | 'messages' | 'operators' | 'users' | 'notifications';
9
9
  export type IFASUserRole = 'PlatformOperator' | 'Osk';
10
10
  export interface IFASDefaultPath {
11
11
  path: IFASDefaultRoutePath;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fas-admin",
3
- "version": "0.0.73",
3
+ "version": "0.0.74",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",