mirror of https://github.com/abpframework/abp.git
2 changed files with 44 additions and 0 deletions
@ -0,0 +1,42 @@ |
|||||
|
import { |
||||
|
CreateFormPropContributorCallback, |
||||
|
EditFormPropContributorCallback, |
||||
|
EntityActionContributorCallback, |
||||
|
EntityPropContributorCallback, |
||||
|
ToolbarActionContributorCallback, |
||||
|
} from '@abp/ng.theme.shared/extensions'; |
||||
|
import { eIdentityComponents } from '../enums/components'; |
||||
|
import { IdentityRoleDto, IdentityUserDto } from '../proxy/identity/models'; |
||||
|
|
||||
|
export type IdentityEntityActionContributors = Partial<{ |
||||
|
[eIdentityComponents.Roles]: EntityActionContributorCallback<IdentityRoleDto>[]; |
||||
|
[eIdentityComponents.Users]: EntityActionContributorCallback<IdentityUserDto>[]; |
||||
|
}>; |
||||
|
|
||||
|
export type IdentityToolbarActionContributors = Partial<{ |
||||
|
[eIdentityComponents.Roles]: ToolbarActionContributorCallback<IdentityRoleDto[]>[]; |
||||
|
[eIdentityComponents.Users]: ToolbarActionContributorCallback<IdentityUserDto[]>[]; |
||||
|
}>; |
||||
|
|
||||
|
export type IdentityEntityPropContributors = Partial<{ |
||||
|
[eIdentityComponents.Roles]: EntityPropContributorCallback<IdentityRoleDto>[]; |
||||
|
[eIdentityComponents.Users]: EntityPropContributorCallback<IdentityUserDto>[]; |
||||
|
}>; |
||||
|
|
||||
|
export type IdentityCreateFormPropContributors = Partial<{ |
||||
|
[eIdentityComponents.Roles]: CreateFormPropContributorCallback<IdentityRoleDto>[]; |
||||
|
[eIdentityComponents.Users]: CreateFormPropContributorCallback<IdentityUserDto>[]; |
||||
|
}>; |
||||
|
|
||||
|
export type IdentityEditFormPropContributors = Partial<{ |
||||
|
[eIdentityComponents.Roles]: EditFormPropContributorCallback<IdentityRoleDto>[]; |
||||
|
[eIdentityComponents.Users]: EditFormPropContributorCallback<IdentityUserDto>[]; |
||||
|
}>; |
||||
|
|
||||
|
export interface IdentityConfigOptions { |
||||
|
entityActionContributors?: IdentityEntityActionContributors; |
||||
|
toolbarActionContributors?: IdentityToolbarActionContributors; |
||||
|
entityPropContributors?: IdentityEntityPropContributors; |
||||
|
createFormPropContributors?: IdentityCreateFormPropContributors; |
||||
|
editFormPropContributors?: IdentityEditFormPropContributors; |
||||
|
} |
||||
@ -0,0 +1,2 @@ |
|||||
|
export * from './config-options'; |
||||
|
export * from './identity'; |
||||
Loading…
Reference in new issue