-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tech: ajout transcription graphique linky (#319)
- Loading branch information
Showing
17 changed files
with
341 additions
and
84 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,73 @@ | ||
<template> | ||
<div class="fr-transcription background--white"> | ||
<button class="fr-transcription__btn" aria-expanded="false" :aria-controls="id">{{ titre }}</button> | ||
<div class="fr-collapse" :id="id"> | ||
<Modale | ||
:label="`${id}-transcription-title`" | ||
:id="`${id}-modal`" | ||
size="m" | ||
:radius="false" | ||
:is-footer-actions="false" | ||
> | ||
<h1 :id="id" class="fr-modal__title text--center text--uppercase fr-text--sm text--normal text--gris"> | ||
{{ titre }} | ||
</h1> | ||
<slot /> | ||
</Modale> | ||
<div class="fr-transcription" :id="id"> | ||
<button | ||
class="fr-transcription__btn" | ||
:aria-expanded="estOuvert" | ||
:aria-controls="`fr-transcription-collapse-${id}`" | ||
data-fr-js-collapse-button="true" | ||
> | ||
Transcription | ||
</button> | ||
<div | ||
:class="`fr-collapse ${estOuvert && 'fr-collapse--expanded'}`" | ||
:id="`fr-transcription-collapse-${id}`" | ||
data-fr-js-collapse="true" | ||
style="--collapse-max-height: none; --collapse: -210px" | ||
> | ||
<div class="fr-transcription__footer"> | ||
<div class="fr-transcription__actions-group"> | ||
<button | ||
class="fr-btn fr-btn--fullscreen" | ||
:aria-controls="`${id}-modal`" | ||
class="fr-btn--fullscreen fr-btn" | ||
:aria-controls="`fr-transcription-modal-${id}`" | ||
aria-label="Agrandir la transcription" | ||
data-fr-opened="false" | ||
:title="titre" | ||
id="button-2150" | ||
data-fr-js-modal-button="true" | ||
> | ||
Agrandir | ||
</button> | ||
</div> | ||
</div> | ||
<div | ||
:id="`fr-transcription-modal-${id}`" | ||
class="fr-modal" | ||
:aria-labelledby="`fr-transcription-modal-${id}-title`" | ||
data-fr-js-modal="true" | ||
> | ||
<div class="fr-container fr-container--fluid fr-container-md"> | ||
<div class="fr-grid-row fr-grid-row--center"> | ||
<div class="fr-col-12 fr-col-md-10 fr-col-lg-8"> | ||
<div class="fr-modal__body" data-fr-js-modal-body="true" style="--modal-max-height: 719px"> | ||
<div class="fr-modal__header"> | ||
<button | ||
class="fr-btn--close fr-btn" | ||
:aria-controls="`fr-transcription-modal-${id}`" | ||
id="button-2151" | ||
title="Fermer" | ||
data-fr-js-modal-button="true" | ||
> | ||
Fermer | ||
</button> | ||
</div> | ||
<div class="fr-modal__content"> | ||
<h1 :id="`fr-transcription-modal-${id}-title`" class="fr-modal__title">{{ titre }}</h1> | ||
<slot /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import Modale from '@/components/custom/Modale/Modale.vue'; | ||
import '@gouvfr/dsfr/dist/component/transcription/transcription.min.css'; | ||
defineProps<{ | ||
id: string; | ||
titre: string; | ||
estOuvert: boolean; | ||
}>(); | ||
</script> |
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
Oops, something went wrong.