@abp/ng.identity 9.3.0-rc.2 → 9.3.0-rc.3
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/config/index.d.ts +29 -3
- package/fesm2022/abp-ng.identity-config.mjs +4 -4
- package/fesm2022/abp-ng.identity-config.mjs.map +1 -1
- package/fesm2022/abp-ng.identity-proxy.mjs +9 -9
- package/fesm2022/abp-ng.identity-proxy.mjs.map +1 -1
- package/fesm2022/abp-ng.identity.mjs +17 -17
- package/fesm2022/abp-ng.identity.mjs.map +1 -1
- package/index.d.ts +186 -3
- package/package.json +4 -4
- package/proxy/index.d.ts +126 -5
- package/config/enums/index.d.ts +0 -2
- package/config/enums/policy-names.d.ts +0 -5
- package/config/enums/route-names.d.ts +0 -5
- package/config/identity-config.module.d.ts +0 -11
- package/config/providers/identity-config.provider.d.ts +0 -1
- package/config/providers/index.d.ts +0 -2
- package/config/providers/route.provider.d.ts +0 -2
- package/config/public-api.d.ts +0 -3
- package/lib/components/index.d.ts +0 -2
- package/lib/components/roles/roles.component.d.ts +0 -35
- package/lib/components/users/users.component.d.ts +0 -43
- package/lib/defaults/default-roles-entity-actions.d.ts +0 -3
- package/lib/defaults/default-roles-entity-props.d.ts +0 -3
- package/lib/defaults/default-roles-form-props.d.ts +0 -4
- package/lib/defaults/default-roles-toolbar-actions.d.ts +0 -3
- package/lib/defaults/default-users-entity-actions.d.ts +0 -3
- package/lib/defaults/default-users-entity-props.d.ts +0 -3
- package/lib/defaults/default-users-form-props.d.ts +0 -4
- package/lib/defaults/default-users-toolbar-actions.d.ts +0 -3
- package/lib/enums/components.d.ts +0 -4
- package/lib/enums/index.d.ts +0 -1
- package/lib/guards/extensions.guard.d.ts +0 -15
- package/lib/guards/index.d.ts +0 -1
- package/lib/identity-routing.module.d.ts +0 -7
- package/lib/identity.module.d.ts +0 -16
- package/lib/identity.routes.d.ts +0 -5
- package/lib/models/config-options.d.ts +0 -30
- package/lib/models/index.d.ts +0 -1
- package/lib/resolvers/extensions.resolver.d.ts +0 -2
- package/lib/resolvers/index.d.ts +0 -1
- package/lib/tokens/extensions.token.d.ts +0 -43
- package/lib/tokens/index.d.ts +0 -1
- package/proxy/lib/index.d.ts +0 -2
- package/proxy/lib/proxy/identity/identity-role.service.d.ts +0 -17
- package/proxy/lib/proxy/identity/identity-user-lookup.service.d.ts +0 -16
- package/proxy/lib/proxy/identity/identity-user.service.d.ts +0 -21
- package/proxy/lib/proxy/identity/index.d.ts +0 -4
- package/proxy/lib/proxy/identity/models.d.ts +0 -64
- package/proxy/lib/proxy/users/index.d.ts +0 -1
- package/proxy/lib/proxy/users/models.d.ts +0 -11
- package/proxy/public-api.d.ts +0 -1
- package/public-api.d.ts +0 -8
package/index.d.ts
CHANGED
|
@@ -1,5 +1,188 @@
|
|
|
1
|
+
import { ListService, PagedResultDto, IAbpGuard } from '@abp/ng.core';
|
|
2
|
+
import { IdentityRoleService, IdentityRoleDto, IdentityUserService, IdentityUserDto } from '@abp/ng.identity/proxy';
|
|
3
|
+
import { ePermissionManagementComponents } from '@abp/ng.permission-management';
|
|
4
|
+
import { ConfirmationService, ToasterService, eFormComponets } from '@abp/ng.theme.shared';
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
import { OnInit, TemplateRef, TrackByFunction, Injector, ModuleWithProviders, NgModuleFactory, InjectionToken, Provider } from '@angular/core';
|
|
7
|
+
import { UntypedFormGroup, AbstractControl } from '@angular/forms';
|
|
8
|
+
import * as _abp_ng_components_extensible from '@abp/ng.components/extensible';
|
|
9
|
+
import { ExtensionsService, EntityActionContributorCallback, ToolbarActionContributorCallback, EntityPropContributorCallback, CreateFormPropContributorCallback, EditFormPropContributorCallback } from '@abp/ng.components/extensible';
|
|
10
|
+
import { Observable } from 'rxjs';
|
|
11
|
+
import * as i1 from '@angular/router';
|
|
12
|
+
import { ResolveFn, Routes } from '@angular/router';
|
|
13
|
+
|
|
14
|
+
declare class RolesComponent implements OnInit {
|
|
15
|
+
protected readonly list: ListService<any>;
|
|
16
|
+
protected readonly confirmationService: ConfirmationService;
|
|
17
|
+
protected readonly toasterService: ToasterService;
|
|
18
|
+
private readonly injector;
|
|
19
|
+
protected readonly service: IdentityRoleService;
|
|
20
|
+
data: PagedResultDto<IdentityRoleDto>;
|
|
21
|
+
form: UntypedFormGroup;
|
|
22
|
+
selected?: IdentityRoleDto;
|
|
23
|
+
isModalVisible: boolean;
|
|
24
|
+
visiblePermissions: boolean;
|
|
25
|
+
providerKey?: string;
|
|
26
|
+
modalBusy: boolean;
|
|
27
|
+
permissionManagementKey: ePermissionManagementComponents;
|
|
28
|
+
onVisiblePermissionChange: (event: boolean) => void;
|
|
29
|
+
ngOnInit(): void;
|
|
30
|
+
buildForm(): void;
|
|
31
|
+
openModal(): void;
|
|
32
|
+
add(): void;
|
|
33
|
+
edit(id: string): void;
|
|
34
|
+
save(): void;
|
|
35
|
+
delete(id: string, name: string): void;
|
|
36
|
+
private hookToQuery;
|
|
37
|
+
openPermissionsModal(providerKey: string): void;
|
|
38
|
+
sort(data: any): void;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RolesComponent, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RolesComponent, "abp-roles", never, {}, {}, never, never, true, never>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare class UsersComponent implements OnInit {
|
|
44
|
+
protected readonly list: ListService<any>;
|
|
45
|
+
protected readonly confirmationService: ConfirmationService;
|
|
46
|
+
protected readonly service: IdentityUserService;
|
|
47
|
+
protected readonly toasterService: ToasterService;
|
|
48
|
+
private readonly fb;
|
|
49
|
+
private readonly injector;
|
|
50
|
+
data: PagedResultDto<IdentityUserDto>;
|
|
51
|
+
modalContent: TemplateRef<any>;
|
|
52
|
+
form: UntypedFormGroup;
|
|
53
|
+
selected?: IdentityUserDto;
|
|
54
|
+
selectedUserRoles?: IdentityRoleDto[];
|
|
55
|
+
roles?: IdentityRoleDto[];
|
|
56
|
+
visiblePermissions: boolean;
|
|
57
|
+
providerKey?: string;
|
|
58
|
+
isModalVisible?: boolean;
|
|
59
|
+
modalBusy: boolean;
|
|
60
|
+
permissionManagementKey: ePermissionManagementComponents;
|
|
61
|
+
entityDisplayName: string;
|
|
62
|
+
inputKey: eFormComponets;
|
|
63
|
+
trackByFn: TrackByFunction<AbstractControl>;
|
|
64
|
+
onVisiblePermissionChange: (event: boolean) => void;
|
|
65
|
+
get roleGroups(): UntypedFormGroup[];
|
|
66
|
+
ngOnInit(): void;
|
|
67
|
+
buildForm(): void;
|
|
68
|
+
openModal(): void;
|
|
69
|
+
add(): void;
|
|
70
|
+
edit(id: string): void;
|
|
71
|
+
save(): void;
|
|
72
|
+
delete(id: string, userName: string): void;
|
|
73
|
+
sort(data: any): void;
|
|
74
|
+
private hookToQuery;
|
|
75
|
+
openPermissionsModal(providerKey: string, entityDisplayName?: string): void;
|
|
76
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UsersComponent, never>;
|
|
77
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UsersComponent, "abp-users", never, {}, {}, never, never, true, never>;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
declare const enum eIdentityComponents {
|
|
81
|
+
Roles = "Identity.RolesComponent",
|
|
82
|
+
Users = "Identity.UsersComponent"
|
|
83
|
+
}
|
|
84
|
+
|
|
1
85
|
/**
|
|
2
|
-
*
|
|
86
|
+
* @deprecated Use `identityExtensionsResolver` *function* instead.
|
|
3
87
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
88
|
+
declare class IdentityExtensionsGuard implements IAbpGuard {
|
|
89
|
+
protected readonly injector: Injector;
|
|
90
|
+
protected readonly extensions: ExtensionsService<any>;
|
|
91
|
+
canActivate(): Observable<boolean>;
|
|
92
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IdentityExtensionsGuard, never>;
|
|
93
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IdentityExtensionsGuard>;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
type IdentityEntityActionContributors = Partial<{
|
|
97
|
+
[eIdentityComponents.Roles]: EntityActionContributorCallback<IdentityRoleDto>[];
|
|
98
|
+
[eIdentityComponents.Users]: EntityActionContributorCallback<IdentityUserDto>[];
|
|
99
|
+
}>;
|
|
100
|
+
type IdentityToolbarActionContributors = Partial<{
|
|
101
|
+
[eIdentityComponents.Roles]: ToolbarActionContributorCallback<IdentityRoleDto[]>[];
|
|
102
|
+
[eIdentityComponents.Users]: ToolbarActionContributorCallback<IdentityUserDto[]>[];
|
|
103
|
+
}>;
|
|
104
|
+
type IdentityEntityPropContributors = Partial<{
|
|
105
|
+
[eIdentityComponents.Roles]: EntityPropContributorCallback<IdentityRoleDto>[];
|
|
106
|
+
[eIdentityComponents.Users]: EntityPropContributorCallback<IdentityUserDto>[];
|
|
107
|
+
}>;
|
|
108
|
+
type IdentityCreateFormPropContributors = Partial<{
|
|
109
|
+
[eIdentityComponents.Roles]: CreateFormPropContributorCallback<IdentityRoleDto>[];
|
|
110
|
+
[eIdentityComponents.Users]: CreateFormPropContributorCallback<IdentityUserDto>[];
|
|
111
|
+
}>;
|
|
112
|
+
type IdentityEditFormPropContributors = Partial<{
|
|
113
|
+
[eIdentityComponents.Roles]: EditFormPropContributorCallback<IdentityRoleDto>[];
|
|
114
|
+
[eIdentityComponents.Users]: EditFormPropContributorCallback<IdentityUserDto>[];
|
|
115
|
+
}>;
|
|
116
|
+
interface IdentityConfigOptions {
|
|
117
|
+
entityActionContributors?: IdentityEntityActionContributors;
|
|
118
|
+
toolbarActionContributors?: IdentityToolbarActionContributors;
|
|
119
|
+
entityPropContributors?: IdentityEntityPropContributors;
|
|
120
|
+
createFormPropContributors?: IdentityCreateFormPropContributors;
|
|
121
|
+
editFormPropContributors?: IdentityEditFormPropContributors;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
declare class IdentityRoutingModule {
|
|
125
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IdentityRoutingModule, never>;
|
|
126
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IdentityRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
|
|
127
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IdentityRoutingModule>;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
declare class IdentityModule {
|
|
131
|
+
static forChild(options?: IdentityConfigOptions): ModuleWithProviders<IdentityModule>;
|
|
132
|
+
/**
|
|
133
|
+
* @deprecated `IdentityModule.forLazy()` is deprecated. You can use `createRoutes` **function** instead.
|
|
134
|
+
*/
|
|
135
|
+
static forLazy(options?: IdentityConfigOptions): NgModuleFactory<IdentityModule>;
|
|
136
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IdentityModule, never>;
|
|
137
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IdentityModule, never, [typeof IdentityRoutingModule, typeof RolesComponent, typeof UsersComponent], never>;
|
|
138
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IdentityModule>;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
declare const DEFAULT_IDENTITY_ENTITY_ACTIONS: {
|
|
142
|
+
"Identity.RolesComponent": _abp_ng_components_extensible.EntityAction<IdentityRoleDto>[];
|
|
143
|
+
"Identity.UsersComponent": _abp_ng_components_extensible.EntityAction<IdentityUserDto>[];
|
|
144
|
+
};
|
|
145
|
+
declare const DEFAULT_IDENTITY_TOOLBAR_ACTIONS: {
|
|
146
|
+
"Identity.RolesComponent": _abp_ng_components_extensible.ToolbarAction<IdentityRoleDto[]>[];
|
|
147
|
+
"Identity.UsersComponent": _abp_ng_components_extensible.ToolbarAction<IdentityUserDto[]>[];
|
|
148
|
+
};
|
|
149
|
+
declare const DEFAULT_IDENTITY_ENTITY_PROPS: {
|
|
150
|
+
"Identity.RolesComponent": _abp_ng_components_extensible.EntityProp<IdentityRoleDto>[];
|
|
151
|
+
"Identity.UsersComponent": _abp_ng_components_extensible.EntityProp<IdentityUserDto>[];
|
|
152
|
+
};
|
|
153
|
+
declare const DEFAULT_IDENTITY_CREATE_FORM_PROPS: {
|
|
154
|
+
"Identity.RolesComponent": _abp_ng_components_extensible.FormProp<IdentityRoleDto>[];
|
|
155
|
+
"Identity.UsersComponent": _abp_ng_components_extensible.FormProp<IdentityUserDto>[];
|
|
156
|
+
};
|
|
157
|
+
declare const DEFAULT_IDENTITY_EDIT_FORM_PROPS: {
|
|
158
|
+
"Identity.RolesComponent": _abp_ng_components_extensible.FormProp<IdentityRoleDto>[];
|
|
159
|
+
"Identity.UsersComponent": _abp_ng_components_extensible.FormProp<IdentityUserDto>[];
|
|
160
|
+
};
|
|
161
|
+
declare const IDENTITY_ENTITY_ACTION_CONTRIBUTORS: InjectionToken<Partial<{
|
|
162
|
+
"Identity.RolesComponent": EntityActionContributorCallback<IdentityRoleDto>[];
|
|
163
|
+
"Identity.UsersComponent": EntityActionContributorCallback<IdentityUserDto>[];
|
|
164
|
+
}>>;
|
|
165
|
+
declare const IDENTITY_TOOLBAR_ACTION_CONTRIBUTORS: InjectionToken<Partial<{
|
|
166
|
+
"Identity.RolesComponent": ToolbarActionContributorCallback<IdentityRoleDto[]>[];
|
|
167
|
+
"Identity.UsersComponent": ToolbarActionContributorCallback<IdentityUserDto[]>[];
|
|
168
|
+
}>>;
|
|
169
|
+
declare const IDENTITY_ENTITY_PROP_CONTRIBUTORS: InjectionToken<Partial<{
|
|
170
|
+
"Identity.RolesComponent": EntityPropContributorCallback<IdentityRoleDto>[];
|
|
171
|
+
"Identity.UsersComponent": EntityPropContributorCallback<IdentityUserDto>[];
|
|
172
|
+
}>>;
|
|
173
|
+
declare const IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS: InjectionToken<Partial<{
|
|
174
|
+
"Identity.RolesComponent": CreateFormPropContributorCallback<IdentityRoleDto>[];
|
|
175
|
+
"Identity.UsersComponent": CreateFormPropContributorCallback<IdentityUserDto>[];
|
|
176
|
+
}>>;
|
|
177
|
+
declare const IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS: InjectionToken<Partial<{
|
|
178
|
+
"Identity.RolesComponent": EditFormPropContributorCallback<IdentityRoleDto>[];
|
|
179
|
+
"Identity.UsersComponent": EditFormPropContributorCallback<IdentityUserDto>[];
|
|
180
|
+
}>>;
|
|
181
|
+
|
|
182
|
+
declare const identityExtensionsResolver: ResolveFn<any>;
|
|
183
|
+
|
|
184
|
+
declare function provideIdentity(options?: IdentityConfigOptions): Provider[];
|
|
185
|
+
declare const createRoutes: (options?: IdentityConfigOptions) => Routes;
|
|
186
|
+
|
|
187
|
+
export { DEFAULT_IDENTITY_CREATE_FORM_PROPS, DEFAULT_IDENTITY_EDIT_FORM_PROPS, DEFAULT_IDENTITY_ENTITY_ACTIONS, DEFAULT_IDENTITY_ENTITY_PROPS, DEFAULT_IDENTITY_TOOLBAR_ACTIONS, IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS, IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS, IDENTITY_ENTITY_ACTION_CONTRIBUTORS, IDENTITY_ENTITY_PROP_CONTRIBUTORS, IDENTITY_TOOLBAR_ACTION_CONTRIBUTORS, IdentityExtensionsGuard, IdentityModule, RolesComponent, UsersComponent, createRoutes, eIdentityComponents, identityExtensionsResolver, provideIdentity };
|
|
188
|
+
export type { IdentityConfigOptions, IdentityCreateFormPropContributors, IdentityEditFormPropContributors, IdentityEntityActionContributors, IdentityEntityPropContributors, IdentityToolbarActionContributors };
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abp/ng.identity",
|
|
3
|
-
"version": "9.3.0-rc.
|
|
3
|
+
"version": "9.3.0-rc.3",
|
|
4
4
|
"homepage": "https://abp.io",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/abpframework/abp.git"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@abp/ng.components": "~9.3.0-rc.
|
|
11
|
-
"@abp/ng.permission-management": "~9.3.0-rc.
|
|
12
|
-
"@abp/ng.theme.shared": "~9.3.0-rc.
|
|
10
|
+
"@abp/ng.components": "~9.3.0-rc.3",
|
|
11
|
+
"@abp/ng.permission-management": "~9.3.0-rc.3",
|
|
12
|
+
"@abp/ng.theme.shared": "~9.3.0-rc.3",
|
|
13
13
|
"tslib": "^2.0.0"
|
|
14
14
|
},
|
|
15
15
|
"publishConfig": {
|
package/proxy/index.d.ts
CHANGED
|
@@ -1,5 +1,126 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as rxjs from 'rxjs';
|
|
2
|
+
import { ExtensibleObject, ExtensibleEntityDto, PagedAndSortedResultRequestDto, ExtensibleFullAuditedEntityDto, ListResultDto, PagedResultDto, RestService } from '@abp/ng.core';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
|
|
5
|
+
interface GetIdentityRolesInput extends PagedAndSortedResultRequestDto {
|
|
6
|
+
filter?: string;
|
|
7
|
+
}
|
|
8
|
+
interface GetIdentityUsersInput extends PagedAndSortedResultRequestDto {
|
|
9
|
+
filter?: string;
|
|
10
|
+
}
|
|
11
|
+
interface IdentityRoleCreateDto extends IdentityRoleCreateOrUpdateDtoBase {
|
|
12
|
+
}
|
|
13
|
+
interface IdentityRoleCreateOrUpdateDtoBase extends ExtensibleObject {
|
|
14
|
+
name: string;
|
|
15
|
+
isDefault: boolean;
|
|
16
|
+
isPublic: boolean;
|
|
17
|
+
}
|
|
18
|
+
interface IdentityRoleDto extends ExtensibleEntityDto<string> {
|
|
19
|
+
name?: string;
|
|
20
|
+
isDefault: boolean;
|
|
21
|
+
isStatic: boolean;
|
|
22
|
+
isPublic: boolean;
|
|
23
|
+
concurrencyStamp?: string;
|
|
24
|
+
}
|
|
25
|
+
interface IdentityRoleUpdateDto extends IdentityRoleCreateOrUpdateDtoBase {
|
|
26
|
+
concurrencyStamp?: string;
|
|
27
|
+
}
|
|
28
|
+
interface IdentityUserCreateDto extends IdentityUserCreateOrUpdateDtoBase {
|
|
29
|
+
password: string;
|
|
30
|
+
}
|
|
31
|
+
interface IdentityUserCreateOrUpdateDtoBase extends ExtensibleObject {
|
|
32
|
+
userName: string;
|
|
33
|
+
name?: string;
|
|
34
|
+
surname?: string;
|
|
35
|
+
email: string;
|
|
36
|
+
phoneNumber?: string;
|
|
37
|
+
isActive: boolean;
|
|
38
|
+
lockoutEnabled: boolean;
|
|
39
|
+
roleNames: string[];
|
|
40
|
+
}
|
|
41
|
+
interface IdentityUserDto extends ExtensibleFullAuditedEntityDto<string> {
|
|
42
|
+
tenantId?: string;
|
|
43
|
+
userName?: string;
|
|
44
|
+
name?: string;
|
|
45
|
+
surname?: string;
|
|
46
|
+
email?: string;
|
|
47
|
+
emailConfirmed: boolean;
|
|
48
|
+
phoneNumber?: string;
|
|
49
|
+
phoneNumberConfirmed: boolean;
|
|
50
|
+
isActive: boolean;
|
|
51
|
+
lockoutEnabled: boolean;
|
|
52
|
+
lockoutEnd?: string;
|
|
53
|
+
concurrencyStamp?: string;
|
|
54
|
+
}
|
|
55
|
+
interface IdentityUserUpdateDto extends IdentityUserCreateOrUpdateDtoBase {
|
|
56
|
+
password?: string;
|
|
57
|
+
concurrencyStamp?: string;
|
|
58
|
+
}
|
|
59
|
+
interface IdentityUserUpdateRolesDto {
|
|
60
|
+
roleNames: string[];
|
|
61
|
+
}
|
|
62
|
+
interface UserLookupCountInputDto {
|
|
63
|
+
filter?: string;
|
|
64
|
+
}
|
|
65
|
+
interface UserLookupSearchInputDto extends PagedAndSortedResultRequestDto {
|
|
66
|
+
filter?: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
declare class IdentityRoleService {
|
|
70
|
+
private restService;
|
|
71
|
+
apiName: string;
|
|
72
|
+
create: (input: IdentityRoleCreateDto) => rxjs.Observable<IdentityRoleDto>;
|
|
73
|
+
delete: (id: string) => rxjs.Observable<void>;
|
|
74
|
+
get: (id: string) => rxjs.Observable<IdentityRoleDto>;
|
|
75
|
+
getAllList: () => rxjs.Observable<ListResultDto<IdentityRoleDto>>;
|
|
76
|
+
getList: (input: GetIdentityRolesInput) => rxjs.Observable<PagedResultDto<IdentityRoleDto>>;
|
|
77
|
+
update: (id: string, input: IdentityRoleUpdateDto) => rxjs.Observable<IdentityRoleDto>;
|
|
78
|
+
constructor(restService: RestService);
|
|
79
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IdentityRoleService, never>;
|
|
80
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IdentityRoleService>;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
interface UserData {
|
|
84
|
+
id?: string;
|
|
85
|
+
tenantId?: string;
|
|
86
|
+
userName?: string;
|
|
87
|
+
name?: string;
|
|
88
|
+
surname?: string;
|
|
89
|
+
email?: string;
|
|
90
|
+
emailConfirmed: boolean;
|
|
91
|
+
phoneNumber?: string;
|
|
92
|
+
phoneNumberConfirmed: boolean;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
declare class IdentityUserLookupService {
|
|
96
|
+
private restService;
|
|
97
|
+
apiName: string;
|
|
98
|
+
findById: (id: string) => rxjs.Observable<UserData>;
|
|
99
|
+
findByUserName: (userName: string) => rxjs.Observable<UserData>;
|
|
100
|
+
getCount: (input: UserLookupCountInputDto) => rxjs.Observable<number>;
|
|
101
|
+
search: (input: UserLookupSearchInputDto) => rxjs.Observable<ListResultDto<UserData>>;
|
|
102
|
+
constructor(restService: RestService);
|
|
103
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IdentityUserLookupService, never>;
|
|
104
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IdentityUserLookupService>;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
declare class IdentityUserService {
|
|
108
|
+
private restService;
|
|
109
|
+
apiName: string;
|
|
110
|
+
create: (input: IdentityUserCreateDto) => rxjs.Observable<IdentityUserDto>;
|
|
111
|
+
delete: (id: string) => rxjs.Observable<void>;
|
|
112
|
+
findByEmail: (email: string) => rxjs.Observable<IdentityUserDto>;
|
|
113
|
+
findByUsername: (userName: string) => rxjs.Observable<IdentityUserDto>;
|
|
114
|
+
get: (id: string) => rxjs.Observable<IdentityUserDto>;
|
|
115
|
+
getAssignableRoles: () => rxjs.Observable<ListResultDto<IdentityRoleDto>>;
|
|
116
|
+
getList: (input: GetIdentityUsersInput) => rxjs.Observable<PagedResultDto<IdentityUserDto>>;
|
|
117
|
+
getRoles: (id: string) => rxjs.Observable<ListResultDto<IdentityRoleDto>>;
|
|
118
|
+
update: (id: string, input: IdentityUserUpdateDto) => rxjs.Observable<IdentityUserDto>;
|
|
119
|
+
updateRoles: (id: string, input: IdentityUserUpdateRolesDto) => rxjs.Observable<void>;
|
|
120
|
+
constructor(restService: RestService);
|
|
121
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IdentityUserService, never>;
|
|
122
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IdentityUserService>;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export { IdentityRoleService, IdentityUserLookupService, IdentityUserService };
|
|
126
|
+
export type { GetIdentityRolesInput, GetIdentityUsersInput, IdentityRoleCreateDto, IdentityRoleCreateOrUpdateDtoBase, IdentityRoleDto, IdentityRoleUpdateDto, IdentityUserCreateDto, IdentityUserCreateOrUpdateDtoBase, IdentityUserDto, IdentityUserUpdateDto, IdentityUserUpdateRolesDto, UserData, UserLookupCountInputDto, UserLookupSearchInputDto };
|
package/config/enums/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated IdentityConfigModule is deprecated use `provideIdentityConfig` *function* instead.
|
|
5
|
-
*/
|
|
6
|
-
export declare class IdentityConfigModule {
|
|
7
|
-
static forRoot(): ModuleWithProviders<IdentityConfigModule>;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IdentityConfigModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IdentityConfigModule, never, never, never>;
|
|
10
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<IdentityConfigModule>;
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function provideIdentityConfig(): import("@angular/core").EnvironmentProviders;
|
package/config/public-api.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ListService, PagedResultDto } from '@abp/ng.core';
|
|
2
|
-
import { IdentityRoleDto, IdentityRoleService } from '@abp/ng.identity/proxy';
|
|
3
|
-
import { ePermissionManagementComponents } from '@abp/ng.permission-management';
|
|
4
|
-
import { ConfirmationService, ToasterService } from '@abp/ng.theme.shared';
|
|
5
|
-
import { OnInit } from '@angular/core';
|
|
6
|
-
import { UntypedFormGroup } from '@angular/forms';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class RolesComponent implements OnInit {
|
|
9
|
-
protected readonly list: ListService<any>;
|
|
10
|
-
protected readonly confirmationService: ConfirmationService;
|
|
11
|
-
protected readonly toasterService: ToasterService;
|
|
12
|
-
private readonly injector;
|
|
13
|
-
protected readonly service: IdentityRoleService;
|
|
14
|
-
data: PagedResultDto<IdentityRoleDto>;
|
|
15
|
-
form: UntypedFormGroup;
|
|
16
|
-
selected?: IdentityRoleDto;
|
|
17
|
-
isModalVisible: boolean;
|
|
18
|
-
visiblePermissions: boolean;
|
|
19
|
-
providerKey?: string;
|
|
20
|
-
modalBusy: boolean;
|
|
21
|
-
permissionManagementKey: ePermissionManagementComponents;
|
|
22
|
-
onVisiblePermissionChange: (event: boolean) => void;
|
|
23
|
-
ngOnInit(): void;
|
|
24
|
-
buildForm(): void;
|
|
25
|
-
openModal(): void;
|
|
26
|
-
add(): void;
|
|
27
|
-
edit(id: string): void;
|
|
28
|
-
save(): void;
|
|
29
|
-
delete(id: string, name: string): void;
|
|
30
|
-
private hookToQuery;
|
|
31
|
-
openPermissionsModal(providerKey: string): void;
|
|
32
|
-
sort(data: any): void;
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RolesComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RolesComponent, "abp-roles", never, {}, {}, never, never, true, never>;
|
|
35
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { ListService, PagedResultDto } from '@abp/ng.core';
|
|
2
|
-
import { IdentityRoleDto, IdentityUserDto, IdentityUserService } from '@abp/ng.identity/proxy';
|
|
3
|
-
import { ePermissionManagementComponents } from '@abp/ng.permission-management';
|
|
4
|
-
import { ConfirmationService, eFormComponets, ToasterService } from '@abp/ng.theme.shared';
|
|
5
|
-
import { OnInit, TemplateRef, TrackByFunction } from '@angular/core';
|
|
6
|
-
import { AbstractControl, UntypedFormGroup } from '@angular/forms';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class UsersComponent implements OnInit {
|
|
9
|
-
protected readonly list: ListService<any>;
|
|
10
|
-
protected readonly confirmationService: ConfirmationService;
|
|
11
|
-
protected readonly service: IdentityUserService;
|
|
12
|
-
protected readonly toasterService: ToasterService;
|
|
13
|
-
private readonly fb;
|
|
14
|
-
private readonly injector;
|
|
15
|
-
data: PagedResultDto<IdentityUserDto>;
|
|
16
|
-
modalContent: TemplateRef<any>;
|
|
17
|
-
form: UntypedFormGroup;
|
|
18
|
-
selected?: IdentityUserDto;
|
|
19
|
-
selectedUserRoles?: IdentityRoleDto[];
|
|
20
|
-
roles?: IdentityRoleDto[];
|
|
21
|
-
visiblePermissions: boolean;
|
|
22
|
-
providerKey?: string;
|
|
23
|
-
isModalVisible?: boolean;
|
|
24
|
-
modalBusy: boolean;
|
|
25
|
-
permissionManagementKey: ePermissionManagementComponents;
|
|
26
|
-
entityDisplayName: string;
|
|
27
|
-
inputKey: eFormComponets;
|
|
28
|
-
trackByFn: TrackByFunction<AbstractControl>;
|
|
29
|
-
onVisiblePermissionChange: (event: boolean) => void;
|
|
30
|
-
get roleGroups(): UntypedFormGroup[];
|
|
31
|
-
ngOnInit(): void;
|
|
32
|
-
buildForm(): void;
|
|
33
|
-
openModal(): void;
|
|
34
|
-
add(): void;
|
|
35
|
-
edit(id: string): void;
|
|
36
|
-
save(): void;
|
|
37
|
-
delete(id: string, userName: string): void;
|
|
38
|
-
sort(data: any): void;
|
|
39
|
-
private hookToQuery;
|
|
40
|
-
openPermissionsModal(providerKey: string, entityDisplayName?: string): void;
|
|
41
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UsersComponent, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UsersComponent, "abp-users", never, {}, {}, never, never, true, never>;
|
|
43
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { IdentityRoleDto } from '@abp/ng.identity/proxy';
|
|
2
|
-
import { FormProp } from "@abp/ng.components/extensible";
|
|
3
|
-
export declare const DEFAULT_ROLES_CREATE_FORM_PROPS: FormProp<IdentityRoleDto>[];
|
|
4
|
-
export declare const DEFAULT_ROLES_EDIT_FORM_PROPS: FormProp<IdentityRoleDto>[];
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { FormProp } from '@abp/ng.components/extensible';
|
|
2
|
-
import { IdentityUserDto } from '@abp/ng.identity/proxy';
|
|
3
|
-
export declare const DEFAULT_USERS_CREATE_FORM_PROPS: FormProp<IdentityUserDto>[];
|
|
4
|
-
export declare const DEFAULT_USERS_EDIT_FORM_PROPS: FormProp<IdentityUserDto>[];
|
package/lib/enums/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './components';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ExtensionsService } from '@abp/ng.components/extensible';
|
|
2
|
-
import { IAbpGuard } from '@abp/ng.core';
|
|
3
|
-
import { Injector } from '@angular/core';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated Use `identityExtensionsResolver` *function* instead.
|
|
8
|
-
*/
|
|
9
|
-
export declare class IdentityExtensionsGuard implements IAbpGuard {
|
|
10
|
-
protected readonly injector: Injector;
|
|
11
|
-
protected readonly extensions: ExtensionsService<any>;
|
|
12
|
-
canActivate(): Observable<boolean>;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IdentityExtensionsGuard, never>;
|
|
14
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<IdentityExtensionsGuard>;
|
|
15
|
-
}
|
package/lib/guards/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './extensions.guard';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@angular/router";
|
|
3
|
-
export declare class IdentityRoutingModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IdentityRoutingModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IdentityRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<IdentityRoutingModule>;
|
|
7
|
-
}
|
package/lib/identity.module.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders, NgModuleFactory } from '@angular/core';
|
|
2
|
-
import { IdentityConfigOptions } from './models/config-options';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "./identity-routing.module";
|
|
5
|
-
import * as i2 from "./components/roles/roles.component";
|
|
6
|
-
import * as i3 from "./components/users/users.component";
|
|
7
|
-
export declare class IdentityModule {
|
|
8
|
-
static forChild(options?: IdentityConfigOptions): ModuleWithProviders<IdentityModule>;
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated `IdentityModule.forLazy()` is deprecated. You can use `createRoutes` **function** instead.
|
|
11
|
-
*/
|
|
12
|
-
static forLazy(options?: IdentityConfigOptions): NgModuleFactory<IdentityModule>;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IdentityModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IdentityModule, never, [typeof i1.IdentityRoutingModule, typeof i2.RolesComponent, typeof i3.UsersComponent], never>;
|
|
15
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<IdentityModule>;
|
|
16
|
-
}
|
package/lib/identity.routes.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Provider } from '@angular/core';
|
|
2
|
-
import { Routes } from '@angular/router';
|
|
3
|
-
import { IdentityConfigOptions } from './models';
|
|
4
|
-
export declare function provideIdentity(options?: IdentityConfigOptions): Provider[];
|
|
5
|
-
export declare const createRoutes: (options?: IdentityConfigOptions) => Routes;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { IdentityRoleDto, IdentityUserDto } from '@abp/ng.identity/proxy';
|
|
2
|
-
import { CreateFormPropContributorCallback, EditFormPropContributorCallback, EntityActionContributorCallback, EntityPropContributorCallback, ToolbarActionContributorCallback } from '@abp/ng.components/extensible';
|
|
3
|
-
import { eIdentityComponents } from '../enums/components';
|
|
4
|
-
export type IdentityEntityActionContributors = Partial<{
|
|
5
|
-
[eIdentityComponents.Roles]: EntityActionContributorCallback<IdentityRoleDto>[];
|
|
6
|
-
[eIdentityComponents.Users]: EntityActionContributorCallback<IdentityUserDto>[];
|
|
7
|
-
}>;
|
|
8
|
-
export type IdentityToolbarActionContributors = Partial<{
|
|
9
|
-
[eIdentityComponents.Roles]: ToolbarActionContributorCallback<IdentityRoleDto[]>[];
|
|
10
|
-
[eIdentityComponents.Users]: ToolbarActionContributorCallback<IdentityUserDto[]>[];
|
|
11
|
-
}>;
|
|
12
|
-
export type IdentityEntityPropContributors = Partial<{
|
|
13
|
-
[eIdentityComponents.Roles]: EntityPropContributorCallback<IdentityRoleDto>[];
|
|
14
|
-
[eIdentityComponents.Users]: EntityPropContributorCallback<IdentityUserDto>[];
|
|
15
|
-
}>;
|
|
16
|
-
export type IdentityCreateFormPropContributors = Partial<{
|
|
17
|
-
[eIdentityComponents.Roles]: CreateFormPropContributorCallback<IdentityRoleDto>[];
|
|
18
|
-
[eIdentityComponents.Users]: CreateFormPropContributorCallback<IdentityUserDto>[];
|
|
19
|
-
}>;
|
|
20
|
-
export type IdentityEditFormPropContributors = Partial<{
|
|
21
|
-
[eIdentityComponents.Roles]: EditFormPropContributorCallback<IdentityRoleDto>[];
|
|
22
|
-
[eIdentityComponents.Users]: EditFormPropContributorCallback<IdentityUserDto>[];
|
|
23
|
-
}>;
|
|
24
|
-
export interface IdentityConfigOptions {
|
|
25
|
-
entityActionContributors?: IdentityEntityActionContributors;
|
|
26
|
-
toolbarActionContributors?: IdentityToolbarActionContributors;
|
|
27
|
-
entityPropContributors?: IdentityEntityPropContributors;
|
|
28
|
-
createFormPropContributors?: IdentityCreateFormPropContributors;
|
|
29
|
-
editFormPropContributors?: IdentityEditFormPropContributors;
|
|
30
|
-
}
|
package/lib/models/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './config-options';
|
package/lib/resolvers/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './extensions.resolver';
|