@volo/abp.ng.identity 8.3.1 → 9.0.0-rc.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/esm2022/config/providers/route.provider.mjs +2 -2
- package/esm2022/lib/components/claim-modal/claim-modal.component.mjs +17 -16
- package/esm2022/lib/components/claims/claims.component.mjs +4 -4
- package/esm2022/lib/components/organization-units/organization-members/organization-members.component.mjs +4 -4
- package/esm2022/lib/components/organization-units/organization-roles/organization-roles.component.mjs +4 -4
- package/esm2022/lib/components/organization-units/organization-units.component.mjs +3 -3
- package/esm2022/lib/components/roles/edit-new-modal/roles-modal.component.mjs +41 -44
- package/esm2022/lib/components/roles/roles.component.mjs +14 -34
- package/esm2022/lib/components/users/set-password-modal/set-password-modal.component.mjs +3 -3
- package/esm2022/lib/components/users/user-sessions-modal/user-sessions.component.mjs +3 -3
- package/esm2022/lib/components/users/users.component.mjs +7 -5
- package/esm2022/lib/defaults/roles/default-roles-entity-actions.mjs +2 -2
- package/esm2022/lib/defaults/users/default-users-entity-actions.mjs +2 -2
- package/esm2022/lib/defaults/users/default-users-form-props.mjs +1 -1
- package/esm2022/lib/guards/extensions.guard.mjs +9 -8
- package/esm2022/lib/resolvers/extensions.resolver.mjs +4 -3
- package/fesm2022/volo-abp.ng.identity-config.mjs +1 -1
- package/fesm2022/volo-abp.ng.identity-config.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.identity.mjs +89 -108
- package/fesm2022/volo-abp.ng.identity.mjs.map +1 -1
- package/lib/components/claim-modal/claim-modal.component.d.ts +8 -7
- package/lib/components/roles/edit-new-modal/roles-modal.component.d.ts +11 -17
- package/lib/components/roles/roles.component.d.ts +5 -6
- package/lib/components/users/users.component.d.ts +2 -1
- package/lib/guards/extensions.guard.d.ts +1 -3
- package/package.json +7 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnChanges, SimpleChanges, Injector, EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormGroup, FormGroupDirective } from '@angular/forms';
|
|
2
3
|
import { ClaimTypeDto, IdentityRoleClaimDto, IdentityRoleService, IdentityUserClaimDto, IdentityUserService } from '@volo/abp.ng.identity/proxy';
|
|
3
4
|
import { SubscriptionService } from '@abp/ng.core';
|
|
4
|
-
import { FormBuilder, FormGroup, FormGroupDirective } from '@angular/forms';
|
|
5
5
|
import { ConfirmationService, ToasterService } from '@abp/ng.theme.shared';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
type Claim = IdentityUserClaimDto | IdentityRoleClaimDto;
|
|
@@ -18,12 +18,13 @@ export declare class ClaimModalComponent implements OnChanges {
|
|
|
18
18
|
protected readonly confirmationService: ConfirmationService;
|
|
19
19
|
protected readonly toasterService: ToasterService;
|
|
20
20
|
protected _visible: any;
|
|
21
|
-
subject: {
|
|
22
|
-
id: string;
|
|
23
|
-
type: 'roles' | 'users';
|
|
24
|
-
};
|
|
25
21
|
get visible(): boolean;
|
|
26
22
|
set visible(value: boolean);
|
|
23
|
+
subject: import("@angular/core").InputSignal<{
|
|
24
|
+
id: string;
|
|
25
|
+
title: string;
|
|
26
|
+
type: "roles" | "users";
|
|
27
|
+
}>;
|
|
27
28
|
visibleChange: EventEmitter<boolean>;
|
|
28
29
|
modalBusy: boolean;
|
|
29
30
|
claimTypes: ClaimTypeDto[];
|
|
@@ -48,6 +49,6 @@ export declare class ClaimModalComponent implements OnChanges {
|
|
|
48
49
|
save(): void;
|
|
49
50
|
private buildForm;
|
|
50
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClaimModalComponent, never>;
|
|
51
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ClaimModalComponent, "abp-claim-modal", never, { "
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ClaimModalComponent, "abp-claim-modal", never, { "visible": { "alias": "visible"; "required": false; }; "subject": { "alias": "subject"; "required": false; "isSignal": true; }; }, { "visibleChange": "visibleChange"; }, never, never, false, never>;
|
|
52
53
|
}
|
|
53
54
|
export {};
|
|
@@ -1,26 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { RoleVisibleChange } from '../role-edit.modal';
|
|
4
|
-
import { IdentityRoleDto, IdentityRoleService } from '@volo/abp.ng.identity/proxy';
|
|
1
|
+
import { Injector, OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
5
3
|
import { ToasterService } from '@abp/ng.theme.shared';
|
|
4
|
+
import { IdentityRoleDto, IdentityRoleService } from '@volo/abp.ng.identity/proxy';
|
|
5
|
+
import { RoleVisibleChange } from '../role-edit.modal';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class RolesModalComponent implements OnInit {
|
|
8
|
-
visible: boolean;
|
|
9
|
-
selected: IdentityRoleDto;
|
|
10
|
-
visibleChange: EventEmitter<RoleVisibleChange>;
|
|
11
8
|
protected readonly service: IdentityRoleService;
|
|
12
|
-
protected readonly fb: FormBuilder;
|
|
13
9
|
protected readonly toasterService: ToasterService;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
id: string;
|
|
20
|
-
isStatic: boolean;
|
|
21
|
-
onVisibleChange(visible: boolean): void;
|
|
10
|
+
protected readonly injector: Injector;
|
|
11
|
+
form: FormGroup;
|
|
12
|
+
selected: import("@angular/core").InputSignal<IdentityRoleDto>;
|
|
13
|
+
visibleChange: import("@angular/core").OutputEmitterRef<RoleVisibleChange>;
|
|
14
|
+
protected buildForm(): void;
|
|
22
15
|
ngOnInit(): void;
|
|
16
|
+
onVisibleChange(visible: boolean, refresh?: boolean): void;
|
|
23
17
|
save(): void;
|
|
24
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<RolesModalComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RolesModalComponent, "abp-roles-modal", never, { "
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RolesModalComponent, "abp-roles-modal", never, { "selected": { "alias": "selected"; "required": false; "isSignal": true; }; }, { "visibleChange": "visibleChange"; }, never, never, true, never>;
|
|
26
20
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DestroyRef, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
-
import { UntypedFormGroup } from '@angular/forms';
|
|
1
|
+
import { DestroyRef, Injector, OnInit, TemplateRef } from '@angular/core';
|
|
3
2
|
import { ListService, PagedResultDto } from '@abp/ng.core';
|
|
4
3
|
import { ConfirmationService, ToasterService } from '@abp/ng.theme.shared';
|
|
5
4
|
import { IdentityRoleDto, IdentityRoleService } from '@volo/abp.ng.identity/proxy';
|
|
@@ -10,9 +9,9 @@ export declare class RolesComponent implements OnInit {
|
|
|
10
9
|
protected readonly service: IdentityRoleService;
|
|
11
10
|
protected readonly confirmationService: ConfirmationService;
|
|
12
11
|
protected readonly destroyRef: DestroyRef;
|
|
12
|
+
protected readonly injector: Injector;
|
|
13
13
|
protected readonly toasterService: ToasterService;
|
|
14
14
|
data: PagedResultDto<IdentityRoleDto>;
|
|
15
|
-
form: UntypedFormGroup;
|
|
16
15
|
selected: IdentityRoleDto;
|
|
17
16
|
isModalVisible: boolean;
|
|
18
17
|
visibleRoleDelete: boolean;
|
|
@@ -23,6 +22,7 @@ export declare class RolesComponent implements OnInit {
|
|
|
23
22
|
visibleClaims: boolean;
|
|
24
23
|
claimSubject: {
|
|
25
24
|
id: string;
|
|
25
|
+
title: string;
|
|
26
26
|
type: "roles" | "users";
|
|
27
27
|
};
|
|
28
28
|
modalContent: TemplateRef<any>;
|
|
@@ -31,13 +31,12 @@ export declare class RolesComponent implements OnInit {
|
|
|
31
31
|
ngOnInit(): void;
|
|
32
32
|
onAdd(): void;
|
|
33
33
|
onEdit(id: string): void;
|
|
34
|
-
save(): void;
|
|
35
34
|
delete(role: IdentityRoleDto): void;
|
|
36
35
|
onVisibleDeleteChange(v: RoleVisibleChange): void;
|
|
37
36
|
moveAllUsers(role: IdentityRoleDto): Promise<void>;
|
|
38
37
|
onVisibleMoveChange(v: RoleVisibleChange): void;
|
|
39
|
-
onVisibleModalChange(
|
|
40
|
-
onManageClaims(
|
|
38
|
+
onVisibleModalChange(visibilityChange: RoleVisibleChange): void;
|
|
39
|
+
onManageClaims(role: IdentityRoleDto): void;
|
|
41
40
|
openPermissionsModal(providerKey: string): void;
|
|
42
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<RolesComponent, never>;
|
|
43
42
|
static ɵcmp: i0.ɵɵComponentDeclaration<RolesComponent, "abp-roles", never, {}, {}, never, never, false, never>;
|
|
@@ -39,6 +39,7 @@ export declare class UsersComponent implements OnInit {
|
|
|
39
39
|
fieldTextType: boolean;
|
|
40
40
|
claimSubject: {
|
|
41
41
|
id: string;
|
|
42
|
+
title: string;
|
|
42
43
|
type: "roles" | "users";
|
|
43
44
|
};
|
|
44
45
|
filters: GetIdentityUsersInput;
|
|
@@ -72,7 +73,7 @@ export declare class UsersComponent implements OnInit {
|
|
|
72
73
|
onEdit(id: string): void;
|
|
73
74
|
save(): void;
|
|
74
75
|
delete(id: string, userName: string): void;
|
|
75
|
-
onManageClaims(
|
|
76
|
+
onManageClaims(user: IdentityUserDto): void;
|
|
76
77
|
unlock(id: string): void;
|
|
77
78
|
openPermissionsModal(providerKey: string, userName?: string): void;
|
|
78
79
|
setTwoFactor(): void;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { Injector } from '@angular/core';
|
|
2
1
|
import { Observable } from 'rxjs';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
/**
|
|
5
4
|
* @deprecated Use `identityExtensionsResolver` *function* instead.
|
|
6
5
|
*/
|
|
7
6
|
export declare class IdentityExtensionsGuard {
|
|
8
|
-
private injector;
|
|
9
|
-
constructor(injector: Injector);
|
|
7
|
+
private readonly injector;
|
|
10
8
|
canActivate(): Observable<boolean>;
|
|
11
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<IdentityExtensionsGuard, never>;
|
|
12
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<IdentityExtensionsGuard>;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volo/abp.ng.identity",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0-rc.1",
|
|
4
4
|
"homepage": "https://abp.io",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@abp/ng.components": "~
|
|
7
|
-
"@abp/ng.permission-management": "~
|
|
8
|
-
"@abp/ng.setting-management": "~
|
|
9
|
-
"@abp/ng.theme.shared": "~
|
|
10
|
-
"@volo/abp.commercial.ng.ui": "^
|
|
11
|
-
"@volo/abp.ng.account": "^
|
|
6
|
+
"@abp/ng.components": "~9.0.0-rc.1",
|
|
7
|
+
"@abp/ng.permission-management": "~9.0.0-rc.1",
|
|
8
|
+
"@abp/ng.setting-management": "~9.0.0-rc.1",
|
|
9
|
+
"@abp/ng.theme.shared": "~9.0.0-rc.1",
|
|
10
|
+
"@volo/abp.commercial.ng.ui": "^9.0.0-rc.1",
|
|
11
|
+
"@volo/abp.ng.account": "^9.0.0-rc.1",
|
|
12
12
|
"tslib": "^2.0.0"
|
|
13
13
|
},
|
|
14
14
|
"publishConfig": {
|