Skip to content

Commit

Permalink
lint: run linter with prettier 3.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
edelclaux committed Dec 16, 2024
1 parent 68f045e commit 5609ce7
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ <h5 class="card-header bg-primary text-white">
queryParamSearch="search_name"
[othersGetParams]="{
cd_type: occHabForm.typoHabControl.value,
id_list: config.OCCHAB.ID_LIST_HABITAT
id_list: config.OCCHAB.ID_LIST_HABITAT,
}"
[formatter]="formatter"
keyValue="search_name"
Expand Down Expand Up @@ -476,9 +476,9 @@ <h5 class="card-header bg-primary text-white">
[parentFormControl]="
occHabForm.stationForm
.get('habitats')
.controls[occHabForm.currentEditingHabForm].get(
'id_nomenclature_community_interest'
)
.controls[
occHabForm.currentEditingHabForm
].get('id_nomenclature_community_interest')
"
[items]="storeService.nomenclatureItems.HAB_INTERET_COM"
comparedKey="id_nomenclature"
Expand Down Expand Up @@ -515,9 +515,9 @@ <h5 class="card-header bg-primary text-white">
[parentFormControl]="
occHabForm.stationForm
.get('habitats')
.controls[occHabForm.currentEditingHabForm].get(
'id_nomenclature_determination_type'
)
.controls[
occHabForm.currentEditingHabForm
].get('id_nomenclature_determination_type')
"
[items]="storeService.nomenclatureItems.DETERMINATION_TYP_HAB"
comparedKey="id_nomenclature"
Expand All @@ -533,9 +533,9 @@ <h5 class="card-header bg-primary text-white">
[parentFormControl]="
occHabForm.stationForm
.get('habitats')
.controls[occHabForm.currentEditingHabForm].get(
'id_nomenclature_collection_technique'
)
.controls[
occHabForm.currentEditingHabForm
].get('id_nomenclature_collection_technique')
"
[items]="storeService.nomenclatureItems.TECHNIQUE_COLLECT_HAB"
comparedKey="id_nomenclature"
Expand All @@ -554,7 +554,7 @@ <h5 class="card-header bg-primary text-white">
'ng-invalid':
occHabForm.stationForm.get('habitats').controls[
occHabForm.currentEditingHabForm
].errors?.invalidTechnicalValues
].errors?.invalidTechnicalValues,
}"
[formControl]="
occHabForm.stationForm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<tr *ngFor="let def of definitions">
<td
[ngStyle]="{
background: config.VALIDATION.STATUS_INFO[def.cd_nomenclature]?.color
background: config.VALIDATION.STATUS_INFO[def.cd_nomenclature]?.color,
}"
>
{{ def.mnemonique }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h5 class="my-3 ml-3">
aria-label="Close"
(click)="closeModal()"
[ngStyle]="{
outlineWidth: '0px'
outlineWidth: '0px',
}"
>
<span aria-hidden="true">&times;</span>
Expand All @@ -35,7 +35,7 @@ <h5 class="my-3 ml-3">
color: ['0', '6'].includes(item.cd_nomenclature) ? 'darkslategray' : 'white',
'border-color': ['0', '6'].includes(item.cd_nomenclature)
? 'rgba(0,0,0,0.2)'
: 'transparent'
: 'transparent',
}"
role="button"
class="btn btn-success box-shadow status-badge"
Expand Down Expand Up @@ -111,7 +111,7 @@ <h5 class="my-3 ml-3">
: 'white',
border: ['0', '6'].includes(currentValidationStatus.cd_nomenclature)
? '1px solid rgba(0,0,0,0.2)'
: 'transparent'
: 'transparent',
}"
>
{{ currentValidationStatus.mnemonique }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ <h4 class="modal-title">Modification du statut de validation</h4>
>
<label
[ngStyle]="{
'background-color': config.VALIDATION.STATUS_INFO[item.cd_nomenclature]?.color
'background-color': config.VALIDATION.STATUS_INFO[item.cd_nomenclature]?.color,
}"
role="button"
class="btn btn-success box-shadow"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
class="validationCircle"
[ngStyle]="{
background:
config.VALIDATION.STATUS_INFO[row.nomenclature_valid_status?.cd_nomenclature]?.color
config.VALIDATION.STATUS_INFO[row.nomenclature_valid_status?.cd_nomenclature]?.color,
}"
>
<i
Expand All @@ -123,7 +123,7 @@
<div
[ngStyle]="{
background:
config.VALIDATION.STATUS_INFO[row.nomenclature_valid_status?.cd_nomenclature]?.color
config.VALIDATION.STATUS_INFO[row.nomenclature_valid_status?.cd_nomenclature]?.color,
}"
class="statusName"
>
Expand All @@ -149,7 +149,7 @@
'meta_validation_date',
'meta_create_date',
'meta_update_date',
'last_validation.validation_date'
'last_validation.validation_date',
].includes(col.column_name)
"
let-row="row"
Expand All @@ -167,7 +167,7 @@
class="validationCircle"
[ngStyle]="{
background:
config.VALIDATION.STATUS_INFO[row.nomenclature_valid_status?.cd_nomenclature]?.color
config.VALIDATION.STATUS_INFO[row.nomenclature_valid_status?.cd_nomenclature]?.color,
}"
>
<i
Expand All @@ -180,7 +180,7 @@
<div
[ngStyle]="{
background:
config.VALIDATION.STATUS_INFO[row.nomenclature_valid_status?.cd_nomenclature]?.color
config.VALIDATION.STATUS_INFO[row.nomenclature_valid_status?.cd_nomenclature]?.color,
}"
class="statusName"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,8 @@ <h5>Ajout d'un taxon</h5>
class="col-lg-4 col-sm-6"
[ngClass]="{
'd-none':
!displayProofFromElements && !occurrenceForm.get('digital_proof').hasError('proofNotNull')
!displayProofFromElements &&
!occurrenceForm.get('digital_proof').hasError('proofNotNull'),
}"
>
<div class="form-group">
Expand All @@ -289,7 +290,7 @@ <h5>Ajout d'un taxon</h5>
[ngClass]="{
'is-invalid':
occurrenceForm.get('digital_proof').invalid ||
occurrenceForm.hasError('proofRequired')
occurrenceForm.hasError('proofRequired'),
}"
class="form-control form-control-sm"
[formControl]="occurrenceForm.get('digital_proof')"
Expand All @@ -310,7 +311,7 @@ <h5>Ajout d'un taxon</h5>
[ngClass]="{
'd-none':
!displayProofFromElements &&
!occurrenceForm.get('non_digital_proof').hasError('proofNotNull')
!occurrenceForm.get('non_digital_proof').hasError('proofNotNull'),
}"
>
<div class="form-group">
Expand All @@ -319,7 +320,7 @@ <h5>Ajout d'un taxon</h5>
[ngClass]="{
'is-invalid':
occurrenceForm.get('non_digital_proof').invalid ||
occurrenceForm.hasError('proofRequired')
occurrenceForm.hasError('proofRequired'),
}"
class="form-control form-control-sm"
[formControl]="occurrenceForm.get('non_digital_proof')"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
<input
[ngClass]="{
'is-invalid':
propertiesForm.get('hour_min').invalid || propertiesForm.hasError('invalidHour')
propertiesForm.get('hour_min').invalid || propertiesForm.hasError('invalidHour'),
}"
[formControl]="propertiesForm.get('hour_min')"
class="form-control form-control-sm"
Expand All @@ -174,7 +174,7 @@
<input
[ngClass]="{
'is-invalid':
propertiesForm.get('hour_max').invalid || propertiesForm.hasError('invalidHour')
propertiesForm.get('hour_max').invalid || propertiesForm.hasError('invalidHour'),
}"
[formControl]="propertiesForm.get('hour_max')"
class="form-control form-control-sm"
Expand Down Expand Up @@ -325,7 +325,7 @@
queryParamSearch="search_name"
[othersGetParams]="{
cd_typo: this.config.OCCTAX?.CD_TYPO_HABITAT,
id_list: this.config.OCCTAX?.ID_LIST_HABITAT
id_list: this.config.OCCTAX?.ID_LIST_HABITAT,
}"
keyValue="search_name"
[formatter]="formatter"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
'number',
'file',
'medias',
'bool_radio'
'bool_radio',
].includes(formDefComp['type_widget'])
"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
color: ['0', '6'].includes(comment.cd_nomenclature) ? 'darkslategray' : 'white',
border: ['0', '6'].includes(comment.cd_nomenclature)
? '1px solid rgba(0,0,0,0.2)'
: 'none'
: 'none',
}"
>
{{ comment.label_default }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
aria-label="Close"
(click)="activeModal.dismiss('Cross click')"
[ngStyle]="{
outlineWidth: '0px'
outlineWidth: '0px',
}"
data-qa="synthese-info-obs-close-btn"
>
Expand Down

0 comments on commit 5609ce7

Please sign in to comment.