mesauth-angular 0.2.15 → 0.2.20
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/README.md +139 -61
- package/dist/README.md +139 -61
- package/dist/{fesm2020 → fesm2022}/mesauth-angular.mjs +702 -691
- package/dist/fesm2022/mesauth-angular.mjs.map +1 -0
- package/dist/index.d.ts +269 -9
- package/package.json +12 -12
- package/dist/esm2020/index.mjs +0 -10
- package/dist/esm2020/ma-user.component.mjs +0 -32
- package/dist/esm2020/mes-auth.interceptor.mjs +0 -29
- package/dist/esm2020/mes-auth.module.mjs +0 -23
- package/dist/esm2020/mes-auth.service.mjs +0 -175
- package/dist/esm2020/mesauth-angular.mjs +0 -5
- package/dist/esm2020/notification-badge.component.mjs +0 -71
- package/dist/esm2020/notification-panel.component.mjs +0 -333
- package/dist/esm2020/theme.service.mjs +0 -63
- package/dist/esm2020/toast-container.component.mjs +0 -83
- package/dist/esm2020/toast.service.mjs +0 -41
- package/dist/esm2020/user-profile.component.mjs +0 -223
- package/dist/fesm2015/mesauth-angular.mjs +0 -1042
- package/dist/fesm2015/mesauth-angular.mjs.map +0 -1
- package/dist/fesm2020/mesauth-angular.mjs.map +0 -1
- package/dist/ma-user.component.d.ts +0 -8
- package/dist/mes-auth.interceptor.d.ts +0 -13
- package/dist/mes-auth.module.d.ts +0 -6
- package/dist/mes-auth.service.d.ts +0 -121
- package/dist/notification-badge.component.d.ts +0 -20
- package/dist/notification-panel.component.d.ts +0 -36
- package/dist/package.json +0 -52
- package/dist/theme.service.d.ts +0 -19
- package/dist/toast-container.component.d.ts +0 -18
- package/dist/toast.service.d.ts +0 -18
- package/dist/user-profile.component.d.ts +0 -31
package/dist/package.json
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "mesauth-angular",
|
|
3
|
-
"version": "0.2.15",
|
|
4
|
-
"description": "Angular helper library to connect to a backend API and SignalR hub to surface the current logged-in user and incoming notifications with dark/light theme support",
|
|
5
|
-
"main": "dist/fesm2015/mesauth-angular.mjs",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist"
|
|
9
|
-
],
|
|
10
|
-
"keywords": [
|
|
11
|
-
"angular",
|
|
12
|
-
"signalr",
|
|
13
|
-
"notifications",
|
|
14
|
-
"auth",
|
|
15
|
-
"mes"
|
|
16
|
-
],
|
|
17
|
-
"license": "MIT",
|
|
18
|
-
"peerDependencies": {
|
|
19
|
-
"@angular/core": "^14.0.0",
|
|
20
|
-
"@angular/common": "^14.0.0",
|
|
21
|
-
"@angular/router": "^14.0.0",
|
|
22
|
-
"rxjs": "^7"
|
|
23
|
-
},
|
|
24
|
-
"dependencies": {
|
|
25
|
-
"@microsoft/signalr": "^7.0.0",
|
|
26
|
-
"rxjs": "^7.5.0",
|
|
27
|
-
"tslib": "^2.3.0"
|
|
28
|
-
},
|
|
29
|
-
"angularCompilerOptions": {
|
|
30
|
-
"enableIvy": true
|
|
31
|
-
},
|
|
32
|
-
"module": "fesm2015/mesauth-angular.mjs",
|
|
33
|
-
"es2020": "fesm2020/mesauth-angular.mjs",
|
|
34
|
-
"esm2020": "esm2020/mesauth-angular.mjs",
|
|
35
|
-
"fesm2020": "fesm2020/mesauth-angular.mjs",
|
|
36
|
-
"fesm2015": "fesm2015/mesauth-angular.mjs",
|
|
37
|
-
"typings": "index.d.ts",
|
|
38
|
-
"exports": {
|
|
39
|
-
"./package.json": {
|
|
40
|
-
"default": "./package.json"
|
|
41
|
-
},
|
|
42
|
-
".": {
|
|
43
|
-
"types": "./index.d.ts",
|
|
44
|
-
"esm2020": "./esm2020/mesauth-angular.mjs",
|
|
45
|
-
"es2020": "./fesm2020/mesauth-angular.mjs",
|
|
46
|
-
"es2015": "./fesm2015/mesauth-angular.mjs",
|
|
47
|
-
"node": "./fesm2015/mesauth-angular.mjs",
|
|
48
|
-
"default": "./fesm2020/mesauth-angular.mjs"
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"sideEffects": false
|
|
52
|
-
}
|
package/dist/theme.service.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare type Theme = 'light' | 'dark';
|
|
5
|
-
export declare class ThemeService implements OnDestroy {
|
|
6
|
-
private _currentTheme;
|
|
7
|
-
currentTheme$: Observable<Theme>;
|
|
8
|
-
private observer;
|
|
9
|
-
constructor();
|
|
10
|
-
ngOnDestroy(): void;
|
|
11
|
-
private detectTheme;
|
|
12
|
-
private startWatching;
|
|
13
|
-
private stopWatching;
|
|
14
|
-
get currentTheme(): Theme;
|
|
15
|
-
setTheme(theme: Theme): void;
|
|
16
|
-
refreshTheme(): void;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
|
|
18
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
|
|
19
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { ToastService, Toast } from './toast.service';
|
|
3
|
-
import { ThemeService, Theme } from './theme.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ToastContainerComponent implements OnInit, OnDestroy {
|
|
6
|
-
private toastService;
|
|
7
|
-
private themeService;
|
|
8
|
-
get themeClass(): string;
|
|
9
|
-
toasts: Toast[];
|
|
10
|
-
currentTheme: Theme;
|
|
11
|
-
private destroy$;
|
|
12
|
-
constructor(toastService: ToastService, themeService: ThemeService);
|
|
13
|
-
ngOnInit(): void;
|
|
14
|
-
ngOnDestroy(): void;
|
|
15
|
-
close(id: string): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ToastContainerComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ToastContainerComponent, "ma-toast-container", never, {}, {}, never, never, true>;
|
|
18
|
-
}
|
package/dist/toast.service.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export interface Toast {
|
|
4
|
-
id: string;
|
|
5
|
-
message: string;
|
|
6
|
-
title?: string;
|
|
7
|
-
type: 'info' | 'success' | 'warning' | 'error';
|
|
8
|
-
duration?: number;
|
|
9
|
-
}
|
|
10
|
-
export declare class ToastService {
|
|
11
|
-
private toasts$;
|
|
12
|
-
toasts: Observable<Toast[]>;
|
|
13
|
-
show(message: string, title?: string, type?: 'info' | 'success' | 'warning' | 'error', duration?: number): string;
|
|
14
|
-
remove(id: string): void;
|
|
15
|
-
clear(): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
|
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
|
|
18
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { OnInit, OnDestroy, EventEmitter } from '@angular/core';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
import { MesAuthService, IUser } from './mes-auth.service';
|
|
4
|
-
import { ThemeService, Theme } from './theme.service';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class UserProfileComponent implements OnInit, OnDestroy {
|
|
7
|
-
private authService;
|
|
8
|
-
private router;
|
|
9
|
-
private themeService;
|
|
10
|
-
notificationClick: EventEmitter<void>;
|
|
11
|
-
get themeClass(): string;
|
|
12
|
-
currentUser: IUser | null;
|
|
13
|
-
currentTheme: Theme;
|
|
14
|
-
unreadCount: number;
|
|
15
|
-
dropdownOpen: boolean;
|
|
16
|
-
private destroy$;
|
|
17
|
-
constructor(authService: MesAuthService, router: Router, themeService: ThemeService);
|
|
18
|
-
ngOnInit(): void;
|
|
19
|
-
ngOnDestroy(): void;
|
|
20
|
-
loadUnreadCount(): void;
|
|
21
|
-
getAvatarUrl(user: IUser): string;
|
|
22
|
-
getLastNameInitial(user: IUser): string;
|
|
23
|
-
toggleDropdown(): void;
|
|
24
|
-
onDocumentClick(event: Event): void;
|
|
25
|
-
onLogin(): void;
|
|
26
|
-
onViewProfile(): void;
|
|
27
|
-
onLogout(): void;
|
|
28
|
-
onNotificationClick(): void;
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UserProfileComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UserProfileComponent, "ma-user-profile", never, {}, { "notificationClick": "notificationClick"; }, never, never, true>;
|
|
31
|
-
}
|