Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(settings): Have a better email input in membersettings (#2684)
- Loading branch information
1 parent
cfc0687
commit cd5f317
Showing
6 changed files
with
83 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -192,6 +192,7 @@ export { | |
InputDate, | ||
InputDateTime, | ||
InputDecimal, | ||
InputEmail, | ||
InputFile, | ||
InputGroup, | ||
InputInt, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 35 additions & 10 deletions
45
apps/molgenis-components/src/components/forms/baseInputs/BaseInputProps.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,39 @@ | ||
export default interface BaseInputProps { | ||
export default { | ||
/** | ||
* Unique identifier https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id | ||
* Has no direct EMX2 implementation but can be constructed by concatenating the table name with the field name | ||
*/ | ||
id: string; | ||
name?: string; | ||
label?: string; | ||
placeholder?: string; | ||
description?: string; | ||
required?: boolean; | ||
readonly?: boolean; | ||
errorMessage?: string; | ||
} | ||
id: { | ||
type: String, | ||
required: true, | ||
}, | ||
name: { | ||
type: String, | ||
required: false, | ||
}, | ||
label: { | ||
type: String, | ||
required: false, | ||
}, | ||
placeholder: { | ||
type: String, | ||
required: false, | ||
}, | ||
description: { | ||
type: String, | ||
required: false, | ||
}, | ||
required: { | ||
type: Boolean, | ||
default: false, | ||
}, | ||
readonly: { | ||
type: Boolean, | ||
default: false, | ||
}, | ||
errorMessage: { | ||
type: String, | ||
required: false, | ||
default: () => null, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters