@myrmidon/auth-jwt-admin 6.0.0 → 7.0.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/myrmidon-auth-jwt-admin.mjs +249 -269
- package/fesm2022/myrmidon-auth-jwt-admin.mjs.map +1 -1
- package/lib/components/auth-jwt-registration/auth-jwt-registration.component.d.ts +8 -9
- package/lib/components/password-strength-bar/password-strength-bar.component.d.ts +4 -5
- package/lib/components/state/user-list.repository.d.ts +3 -3
- package/lib/components/user-editor/user-editor.component.d.ts +28 -20
- package/lib/components/user-filter/user-filter.component.d.ts +15 -8
- package/lib/components/user-list/user-list.component.d.ts +8 -7
- package/lib/services/auth-jwt-account.service.d.ts +4 -3
- package/lib/validators/password.validators.d.ts +3 -0
- package/package.json +4 -3
- package/public-api.d.ts +0 -1
- package/lib/auth-jwt-admin.module.d.ts +0 -28
|
@@ -1,23 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
1
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
2
|
import { UserFilter } from '../../services/auth-jwt-account.service';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Users filter.
|
|
6
|
+
*/
|
|
5
7
|
export declare class UserFilterComponent {
|
|
6
8
|
private _filter?;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* The filter.
|
|
11
|
+
*/
|
|
12
|
+
readonly filter: import("@angular/core").InputSignal<UserFilter | null | undefined>;
|
|
13
|
+
/**
|
|
14
|
+
* Whether the filter is disabled.
|
|
15
|
+
*/
|
|
16
|
+
readonly disabled: import("@angular/core").InputSignal<boolean | undefined>;
|
|
10
17
|
/**
|
|
11
18
|
* Event emitted when the filter changes.
|
|
12
19
|
*/
|
|
13
|
-
filterChange:
|
|
20
|
+
filterChange: import("@angular/core").OutputEmitterRef<UserFilter>;
|
|
14
21
|
name: FormControl<string | null>;
|
|
15
22
|
form: FormGroup;
|
|
16
|
-
constructor(
|
|
23
|
+
constructor();
|
|
17
24
|
private updateForm;
|
|
18
25
|
private getFilter;
|
|
19
26
|
reset(): void;
|
|
20
27
|
apply(): void;
|
|
21
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserFilterComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UserFilterComponent, "auth-jwt-user-filter", never, { "filter": { "alias": "filter"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "filterChange": "filterChange"; }, never, never,
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserFilterComponent, "auth-jwt-user-filter", never, { "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "filterChange": "filterChange"; }, never, never, true, never>;
|
|
23
30
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { PageEvent } from '@angular/material/paginator';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import '@angular/localize/init';
|
|
4
|
-
import { GravatarOptions,
|
|
5
|
-
import { DataPage } from '@myrmidon/
|
|
6
|
-
import { DialogService } from '@myrmidon/ng-mat-tools';
|
|
7
|
-
import { UserListRepository } from '../state/user-list.repository';
|
|
4
|
+
import { GravatarOptions, User } from '@myrmidon/auth-jwt-login';
|
|
5
|
+
import { DataPage } from '@myrmidon/ngx-tools';
|
|
8
6
|
import { UserFilter } from '../../services/auth-jwt-account.service';
|
|
9
7
|
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* List of users.
|
|
10
|
+
*/
|
|
10
11
|
export declare class UserListComponent {
|
|
11
12
|
private _repository;
|
|
12
13
|
private _dialogService;
|
|
@@ -15,16 +16,16 @@ export declare class UserListComponent {
|
|
|
15
16
|
loading$: Observable<boolean>;
|
|
16
17
|
filter$: Observable<UserFilter>;
|
|
17
18
|
page$: Observable<DataPage<User>>;
|
|
18
|
-
constructor(
|
|
19
|
+
constructor();
|
|
19
20
|
reset(): void;
|
|
20
21
|
onFilterChange(filter: UserFilter): void;
|
|
21
22
|
onPageChange(event: PageEvent): void;
|
|
22
23
|
deleteUser(user: User): void;
|
|
23
24
|
setActiveUser(user: User | null): void;
|
|
24
25
|
resetActiveUser(): void;
|
|
25
|
-
saveActiveUser(user: User): void;
|
|
26
|
+
saveActiveUser(user: User | undefined): void;
|
|
26
27
|
onUserEditorClose(): void;
|
|
27
28
|
getGravatarUrl(email: string, options?: GravatarOptions): string | null;
|
|
28
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserListComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UserListComponent, "auth-jwt-user-list", never, {}, {}, never, never,
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserListComponent, "auth-jwt-user-list", never, {}, {}, never, never, true, never>;
|
|
30
31
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { DataPage
|
|
2
|
+
import { DataPage } from '@myrmidon/ngx-tools';
|
|
4
3
|
import { User } from '@myrmidon/auth-jwt-login';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
/**
|
|
@@ -35,11 +34,13 @@ export interface PasswordChange {
|
|
|
35
34
|
export interface UserFilter {
|
|
36
35
|
name?: string;
|
|
37
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* Service for managing user accounts with JWT authentication.
|
|
39
|
+
*/
|
|
38
40
|
export declare class AuthJwtAccountService {
|
|
39
41
|
private _http;
|
|
40
42
|
private _error;
|
|
41
43
|
private _env;
|
|
42
|
-
constructor(_http: HttpClient, _error: ErrorService, _env: EnvService);
|
|
43
44
|
/**
|
|
44
45
|
* Checks if the specified email address is registered on the server.
|
|
45
46
|
* @param email email address to test.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myrmidon/auth-jwt-admin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.1",
|
|
4
4
|
"description": "JWT-based auth services accounts admin component.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"JWT",
|
|
@@ -19,8 +19,9 @@
|
|
|
19
19
|
"@angular/core": "^19.0.0",
|
|
20
20
|
"@angular/material": "^19.0.0",
|
|
21
21
|
"@myrmidon/auth-jwt-login": "^6.0.0",
|
|
22
|
-
"@myrmidon/
|
|
23
|
-
"@myrmidon/
|
|
22
|
+
"@myrmidon/ngx-tools": "^0.0.1",
|
|
23
|
+
"@myrmidon/ngx-mat-tools": "^0.0.1",
|
|
24
|
+
"@myrmidon/paged-data-browsers": "^4.0.0"
|
|
24
25
|
},
|
|
25
26
|
"dependencies": {
|
|
26
27
|
"tslib": "^2.3.0"
|
package/public-api.d.ts
CHANGED
|
@@ -5,4 +5,3 @@ export * from './lib/components/user-list/user-list.component';
|
|
|
5
5
|
export * from './lib/components/state/user-list.repository';
|
|
6
6
|
export * from './lib/services/auth-jwt-account.service';
|
|
7
7
|
export * from './lib/validators/password.validators';
|
|
8
|
-
export * from './lib/auth-jwt-admin.module';
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./components/auth-jwt-registration/auth-jwt-registration.component";
|
|
3
|
-
import * as i2 from "./components/password-strength-bar/password-strength-bar.component";
|
|
4
|
-
import * as i3 from "./components/user-filter/user-filter.component";
|
|
5
|
-
import * as i4 from "./components/user-list/user-list.component";
|
|
6
|
-
import * as i5 from "./components/user-editor/user-editor.component";
|
|
7
|
-
import * as i6 from "@angular/common";
|
|
8
|
-
import * as i7 from "@angular/forms";
|
|
9
|
-
import * as i8 from "@angular/router";
|
|
10
|
-
import * as i9 from "@angular/material/button";
|
|
11
|
-
import * as i10 from "@angular/material/card";
|
|
12
|
-
import * as i11 from "@angular/material/checkbox";
|
|
13
|
-
import * as i12 from "@angular/material/dialog";
|
|
14
|
-
import * as i13 from "@angular/material/expansion";
|
|
15
|
-
import * as i14 from "@angular/material/icon";
|
|
16
|
-
import * as i15 from "@angular/material/input";
|
|
17
|
-
import * as i16 from "@angular/material/paginator";
|
|
18
|
-
import * as i17 from "@angular/material/progress-bar";
|
|
19
|
-
import * as i18 from "@angular/material/progress-spinner";
|
|
20
|
-
import * as i19 from "@angular/material/snack-bar";
|
|
21
|
-
import * as i20 from "@angular/material/tooltip";
|
|
22
|
-
import * as i21 from "@myrmidon/auth-jwt-login";
|
|
23
|
-
import * as i22 from "@myrmidon/ng-tools";
|
|
24
|
-
export declare class AuthJwtAdminModule {
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AuthJwtAdminModule, never>;
|
|
26
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AuthJwtAdminModule, [typeof i1.AuthJwtRegistrationComponent, typeof i2.PasswordStrengthBarComponent, typeof i3.UserFilterComponent, typeof i4.UserListComponent, typeof i5.UserEditorComponent], [typeof i6.CommonModule, typeof i7.FormsModule, typeof i8.RouterModule, typeof i7.ReactiveFormsModule, typeof i9.MatButtonModule, typeof i10.MatCardModule, typeof i11.MatCheckboxModule, typeof i12.MatDialogModule, typeof i13.MatExpansionModule, typeof i14.MatIconModule, typeof i15.MatInputModule, typeof i16.MatPaginatorModule, typeof i17.MatProgressBarModule, typeof i18.MatProgressSpinnerModule, typeof i19.MatSnackBarModule, typeof i20.MatTooltipModule, typeof i21.AuthJwtLoginModule, typeof i22.NgToolsModule], [typeof i1.AuthJwtRegistrationComponent, typeof i2.PasswordStrengthBarComponent, typeof i3.UserFilterComponent, typeof i4.UserListComponent]>;
|
|
27
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AuthJwtAdminModule>;
|
|
28
|
-
}
|