fas-admin 0.0.75 → 0.0.77
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/esm2022/lib/components/views/notifications/api/notification-to-all-active-users-im.model.mjs +2 -0
- package/esm2022/lib/components/views/notifications/api/notifications-to-all-active-users.service.mjs +34 -0
- package/esm2022/lib/components/views/notifications/components/user-notifications/user-notifications.component.mjs +3 -3
- package/esm2022/lib/components/views/notifications/components/users-notifications/users-notifications.component.mjs +62 -4
- package/esm2022/lib/fas-admin.component.mjs +17 -1
- package/esm2022/lib/shared/models/fas-admin-models.mjs +1 -1
- package/fesm2022/fas-admin.mjs +96 -4
- package/fesm2022/fas-admin.mjs.map +1 -1
- package/lib/components/views/notifications/api/notification-to-all-active-users-im.model.d.ts +8 -0
- package/lib/components/views/notifications/api/notifications-to-all-active-users.service.d.ts +15 -0
- package/lib/components/views/notifications/components/users-notifications/users-notifications.component.d.ts +10 -0
- package/lib/fas-admin.component.d.ts +2 -0
- package/lib/shared/models/fas-admin-models.d.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { INotificationToAllActiveUsersIm } from './notification-to-all-active-users-im.model';
|
|
4
|
+
import { INotificationToAllActiveUsersResultVm } from './notification-to-all-active-users-result-vm.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class NotificationsToAllActiveUsersService {
|
|
7
|
+
private http;
|
|
8
|
+
private apiUrl;
|
|
9
|
+
private readonly baseUrl;
|
|
10
|
+
constructor(http: HttpClient, apiUrl: string);
|
|
11
|
+
post(notification: INotificationToAllActiveUsersIm): Observable<INotificationToAllActiveUsersResultVm>;
|
|
12
|
+
private createHeaders;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsToAllActiveUsersService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationsToAllActiveUsersService>;
|
|
15
|
+
}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
+
import { FormGroup } from '@angular/forms';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class UsersNotificationsComponent {
|
|
4
|
+
private _notificationsToAllActiveUsersService;
|
|
5
|
+
private _dialogRef;
|
|
6
|
+
private _fb;
|
|
7
|
+
addNewNotificationForm: FormGroup;
|
|
8
|
+
submitLoading: boolean;
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
setFormStructure(): void;
|
|
11
|
+
submit(): void;
|
|
12
|
+
closeDialog(): void;
|
|
3
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<UsersNotificationsComponent, never>;
|
|
4
14
|
static ɵcmp: i0.ɵɵComponentDeclaration<UsersNotificationsComponent, "lib-users-notifications", never, {}, {}, never, never, true, never>;
|
|
5
15
|
}
|
|
@@ -3,10 +3,12 @@ import { IFASAdminConfigInitializer, IFASButtonList } from './shared/models/fas-
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FASAdminComponent implements OnInit {
|
|
5
5
|
private fasAdminService;
|
|
6
|
+
private router;
|
|
6
7
|
inputData?: IFASAdminConfigInitializer;
|
|
7
8
|
visableDefaultButtonList: IFASButtonList[];
|
|
8
9
|
specButtonList: IFASButtonList[];
|
|
9
10
|
ngOnInit(): void;
|
|
11
|
+
private redirectUserBasedOnRole;
|
|
10
12
|
setSidebarButtons(configData: IFASAdminConfigInitializer, buttonList: IFASButtonList[], isDefaultList: boolean): IFASButtonList[];
|
|
11
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<FASAdminComponent, never>;
|
|
12
14
|
static ɵcmp: i0.ɵɵComponentDeclaration<FASAdminComponent, "lib-fas-admin", never, {}, {}, never, never, false, never>;
|
|
@@ -22,8 +22,13 @@ export interface IFASAdminConfigInitializer {
|
|
|
22
22
|
specButtonList?: IFASButtonList[];
|
|
23
23
|
customRoutes?: Route[];
|
|
24
24
|
defaultButtonSettings?: IFASDefaultButtonsSettings[];
|
|
25
|
+
redirectConfig?: IFASRedirectConfig[];
|
|
25
26
|
}
|
|
26
27
|
export interface IFASAccessRules {
|
|
27
28
|
role: IFASUserRole;
|
|
28
29
|
access: Array<IFASDefaultRoutePath | string>;
|
|
29
30
|
}
|
|
31
|
+
export interface IFASRedirectConfig {
|
|
32
|
+
role: IFASUserRole;
|
|
33
|
+
redirectPath: IFASDefaultRoutePath | string;
|
|
34
|
+
}
|