|
|
|
@ -65,4 +65,62 @@ export const DEFAULT_USERS_CREATE_FORM_PROPS = FormProp.createMany<IdentityUserD |
|
|
|
}, |
|
|
|
]); |
|
|
|
|
|
|
|
export const DEFAULT_USERS_EDIT_FORM_PROPS = DEFAULT_USERS_CREATE_FORM_PROPS |
|
|
|
export const DEFAULT_USERS_EDIT_FORM_PROPS= FormProp.createMany<IdentityUserDto>([ |
|
|
|
{ |
|
|
|
type: ePropType.String, |
|
|
|
name: 'userName', |
|
|
|
displayName: 'AbpIdentity::UserName', |
|
|
|
id: 'user-name', |
|
|
|
validators: () => [Validators.required, Validators.maxLength(256)], |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: ePropType.Password, |
|
|
|
name: 'edit-password', |
|
|
|
displayName: 'AbpIdentity::Password', |
|
|
|
id: 'edit-password', |
|
|
|
autocomplete: 'new-password', |
|
|
|
validators: data => [...getPasswordValidators({ get: data.getInjected })], |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: ePropType.String, |
|
|
|
name: 'name', |
|
|
|
displayName: 'AbpIdentity::DisplayName:Name', |
|
|
|
id: 'name', |
|
|
|
validators: () => [Validators.maxLength(64)], |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: ePropType.String, |
|
|
|
name: 'surname', |
|
|
|
displayName: 'AbpIdentity::DisplayName:Surname', |
|
|
|
id: 'surname', |
|
|
|
validators: () => [Validators.maxLength(64)], |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: ePropType.Email, |
|
|
|
name: 'email', |
|
|
|
displayName: 'AbpIdentity::EmailAddress', |
|
|
|
id: 'email', |
|
|
|
validators: () => [Validators.required, Validators.maxLength(256), Validators.email], |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: ePropType.String, |
|
|
|
name: 'phoneNumber', |
|
|
|
displayName: 'AbpIdentity::PhoneNumber', |
|
|
|
id: 'phone-number', |
|
|
|
validators: () => [Validators.maxLength(16)], |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: ePropType.Boolean, |
|
|
|
name: 'isActive', |
|
|
|
displayName: 'AbpIdentity::DisplayName:IsActive', |
|
|
|
id: 'active-checkbox', |
|
|
|
defaultValue: true, |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: ePropType.Boolean, |
|
|
|
name: 'lockoutEnabled', |
|
|
|
displayName: 'AbpIdentity::DisplayName:LockoutEnabled', |
|
|
|
id: 'lockout-checkbox', |
|
|
|
defaultValue: true, |
|
|
|
}, |
|
|
|
]); |
|
|
|
|