-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* v4 datamodel enum implementation * identification component, tabs navigation contactAttempt medium * identification component contactOutcomeConfiguration handling contactAttemptConfiguration handling navigation refactor * prevent full package import with destructuration * remove dead code * ES2020 syntax * syntax update * transmission controls handle identification * extends data managed by identification hook minor graphical/typo fixes * identification questionnaire internal state OK * missing answer * selected tab text color * fix identification component when no data * IASCO transmission control implementation log removal * fix undefined identification evaluation * fix enum entry for API compliance * identification generate valid starting state * typo * label changes * prevent tab switching when saving * fix transmission control * fix panel navigation * save each identification * filter contactOutcome by COconfiguration * UI refactor * fix contact outcome enums by medium * fix enum typo for API compliance * fix selected question highlight prevent valid answers erasure * update identification tab label * sticky tabs bar & prevent overlap on scrolls * extend comment length * new GUI components * fix background color in UE page * GUI improvements : nex compos & CSS * remove previous component * remove unused dictionnary entries * split info in column * update contact data display * update contact component display * fuse individual, phone, mail forms * new components graphical enhancement * GUI AppBar update * contact[attempt/ouctome] GUI update * minor code fix * remove unused imports * update infoTile test : minr GUI change * GUI forms refactor - WIP * user form birthdate change fix * fixes * working phoneNumber * prevent updating fiscal/directory phone numbers * fix missing phone number crash * theme integration for buttons * delete phoneNumbers lateral menu css fix email edition fix birthdate display fix * remove unused import * itw phone number duplicate removal * fix transmission control * GUI fixes * CSS clean-up, dead code removal * rename folder * CSS, fix default contactoutcome * remove unused components * address form refactor * CSS i18n new address data function * infoTile text overflow * fix minor bug * fix tests Co-authored-by: Nicolas Turban <[email protected]>
- Loading branch information
1 parent
fced37d
commit 8ef6f31
Showing
93 changed files
with
2,744 additions
and
1,812 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
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 was deleted.
Oops, something went wrong.
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
32 changes: 32 additions & 0 deletions
32
src/components/common/sharedComponents/EditableBooleanField.js
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import React from 'react'; | ||
import TextField from '@material-ui/core/TextField'; | ||
import Typography from '@material-ui/core/Typography'; | ||
import { makeStyles } from '@material-ui/core'; | ||
|
||
const useStyles = makeStyles(() => ({ | ||
row: { | ||
display: 'flex', | ||
flexDirection: 'row', | ||
alignItems: 'center', | ||
gap: '1em', | ||
}, | ||
})); | ||
|
||
export const EditableBooleanField = ({ id, label, defaultValue = undefined, onChangeFunction }) => { | ||
const classes = useStyles(); | ||
return ( | ||
<div className={classes.row}> | ||
<Typography color="textSecondary">{label}</Typography> | ||
<TextField | ||
margin="dense" | ||
id={id} | ||
name={id} | ||
InputLabelProps={{ color: 'secondary' }} | ||
type="checkbox" | ||
fullWidth | ||
inputProps={{ checked: defaultValue }} | ||
onChange={event => onChangeFunction(event)} | ||
/> | ||
</div> | ||
); | ||
}; |
32 changes: 32 additions & 0 deletions
32
src/components/common/sharedComponents/EditableTextField.js
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import React from 'react'; | ||
import TextField from '@material-ui/core/TextField'; | ||
import Typography from '@material-ui/core/Typography'; | ||
import { makeStyles } from '@material-ui/core'; | ||
|
||
const useStyles = makeStyles(() => ({ | ||
row: { | ||
display: 'flex', | ||
flexDirection: 'row', | ||
alignItems: 'center', | ||
gap: '1em', | ||
}, | ||
})); | ||
|
||
export const EditableTextField = ({ id, label, defaultValue = '', onChangeFunction }) => { | ||
const classes = useStyles(); | ||
return ( | ||
<div className={classes.row}> | ||
<Typography color="textSecondary">{label}</Typography> | ||
<TextField | ||
margin="dense" | ||
id={id} | ||
name={id} | ||
InputLabelProps={{ color: 'secondary' }} | ||
type="text" | ||
fullWidth | ||
defaultValue={defaultValue} | ||
onChange={event => onChangeFunction(event)} | ||
/> | ||
</div> | ||
); | ||
}; |
35 changes: 35 additions & 0 deletions
35
src/components/common/sharedComponents/EditableTextFieldWithClickableIcon.js
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { EditableTextField } from './EditableTextField'; | ||
import React from 'react'; | ||
import { makeStyles } from '@material-ui/core'; | ||
|
||
const useStyles = makeStyles(theme => ({ | ||
row: { | ||
display: 'flex', | ||
flexDirection: 'row', | ||
alignItems: 'center', | ||
gap: '1em', | ||
}, | ||
})); | ||
|
||
export const EditableTextFieldWithClickableIcon = ({ | ||
id, | ||
label, | ||
defaultValue = '', | ||
icons = [], | ||
onChangeFunction, | ||
}) => { | ||
const classes = useStyles(); | ||
return ( | ||
<div className={classes.row}> | ||
<EditableTextField | ||
id={id} | ||
label={label} | ||
defaultValue={defaultValue} | ||
onChangeFunction={onChangeFunction} | ||
/> | ||
{icons.map(Icon => ( | ||
<Icon /> | ||
))} | ||
</div> | ||
); | ||
}; |
Oops, something went wrong.