@cnamts/synapse 0.0.5-alpha → 0.0.7-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/design-system-v3.d.ts +487 -415
- package/dist/design-system-v3.js +2954 -2203
- package/dist/design-system-v3.umd.cjs +6 -6
- package/dist/style.css +1 -1
- package/package.json +17 -17
- package/src/assets/settings.scss +3 -0
- package/src/assets/tokens.scss +16 -16
- package/src/components/BackBtn/AccessibiliteItems.ts +0 -30
- package/src/components/BackBtn/BackBtn.mdx +1 -1
- package/src/components/BackBtn/BackBtn.stories.ts +12 -9
- package/src/components/BackBtn/BackBtn.vue +0 -1
- package/src/components/BackToTopBtn/AccessibiliteItems.ts +0 -30
- package/src/components/BackToTopBtn/BackToTopBtn.mdx +1 -1
- package/src/components/BackToTopBtn/BackToTopBtn.stories.ts +3 -3
- package/src/components/CollapsibleList/Accessibilite.stories.ts +4 -0
- package/src/components/CollapsibleList/AccessibiliteItems.ts +55 -62
- package/src/components/CollapsibleList/CollapsibleList.stories.ts +1 -1
- package/src/components/CookieBanner/Accessibilite.stories.ts +219 -0
- package/src/components/CookieBanner/AccessibiliteItems.ts +356 -0
- package/src/components/CookieBanner/CookieBanner.mdx +219 -0
- package/src/components/CookieBanner/CookieBanner.stories.ts +680 -0
- package/src/components/CookieBanner/CookieBanner.vue +225 -0
- package/src/components/CookieBanner/config.ts +38 -0
- package/src/components/CookieBanner/locales.ts +12 -0
- package/src/components/CookieBanner/tests/CookieBanner.spec.ts +129 -0
- package/src/components/CookieBanner/tests/__snapshots__/CookieBanner.spec.ts.snap +197 -0
- package/src/components/CookiesSelection/CookiesInformation/CookiesInformation.vue +123 -0
- package/src/components/CookiesSelection/CookiesInformation/locales.ts +21 -0
- package/src/components/CookiesSelection/CookiesInformation/tests/CookiesInformation.spec.ts +121 -0
- package/src/components/CookiesSelection/CookiesSelection.vue +127 -0
- package/src/components/CookiesSelection/CookiesTable/CookiesTable.vue +47 -0
- package/src/components/CookiesSelection/CookiesTable/headers.ts +14 -0
- package/src/components/CookiesSelection/CookiesTable/tests/CookiesTable.spec.ts +30 -0
- package/src/components/CookiesSelection/CookiesTable/tests/__snapshots__/CookiesTable.spec.ts.snap +3 -0
- package/src/components/CookiesSelection/locales.ts +10 -0
- package/src/components/CookiesSelection/tests/CookiesSelection.spec.ts +184 -0
- package/src/components/CookiesSelection/tests/__snapshots__/CookiesSelection.spec.ts.snap +192 -0
- package/src/components/CookiesSelection/types.ts +15 -0
- package/src/components/CopyBtn/AccessibiliteItems.ts +0 -30
- package/src/components/CopyBtn/CopyBtn.mdx +1 -1
- package/src/components/CopyBtn/CopyBtn.stories.ts +9 -6
- package/src/components/CopyBtn/CopyBtn.vue +0 -1
- package/src/components/Customs/SyBtnSelect/Accessibilite.mdx +14 -0
- package/src/components/Customs/SyBtnSelect/Accessibilite.stories.ts +193 -0
- package/src/components/Customs/SyBtnSelect/AccessibiliteItems.ts +139 -0
- package/src/components/Customs/SyBtnSelect/SyBtnSelect.mdx +3 -2
- package/src/components/Customs/SyBtnSelect/SyBtnSelect.stories.ts +30 -14
- package/src/components/Customs/SyBtnSelect/SyBtnSelect.vue +21 -13
- package/src/components/Customs/SyBtnSelect/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/Customs/SyInputSelect/Accessibilite.mdx +14 -0
- package/src/components/Customs/SyInputSelect/Accessibilite.stories.ts +166 -0
- package/src/components/Customs/SyInputSelect/AccessibiliteItems.ts +96 -0
- package/src/components/Customs/SyInputSelect/SyInputSelect.mdx +7 -3
- package/src/components/Customs/SyInputSelect/SyInputSelect.stories.ts +24 -65
- package/src/components/Customs/SyInputSelect/SyInputSelect.vue +36 -4
- package/src/components/Customs/SyInputSelect/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/Customs/SySelect/Accessibilite.mdx +14 -0
- package/src/components/Customs/SySelect/Accessibilite.stories.ts +217 -0
- package/src/components/Customs/SySelect/AccessibiliteItems.ts +173 -0
- package/src/components/Customs/SySelect/SySelect.mdx +4 -4
- package/src/components/Customs/SySelect/SySelect.stories.ts +4 -60
- package/src/components/Customs/SySelect/SySelect.vue +35 -8
- package/src/components/Customs/SySelect/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/Customs/SyTextField/Accessibilite.mdx +14 -0
- package/src/components/Customs/SyTextField/Accessibilite.stories.ts +224 -0
- package/src/components/Customs/SyTextField/AccessibiliteItems.ts +198 -0
- package/src/components/Customs/SyTextField/SyTextField.mdx +1 -1
- package/src/components/Customs/SyTextField/SyTextField.stories.ts +118 -7
- package/src/components/Customs/SyTextField/SyTextField.vue +27 -7
- package/src/components/Customs/SyTextField/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/Customs/SyTextField/tests/__snapshots__/SyTextField.spec.ts.snap +2 -1
- package/src/components/DataList/Accessibilite.mdx +14 -0
- package/src/components/DataList/Accessibilite.stories.ts +166 -0
- package/src/components/DataList/AccessibiliteItems.ts +47 -0
- package/src/components/DataList/DataList.mdx +1 -1
- package/src/components/DataList/DataList.stories.ts +10 -10
- package/src/components/DataList/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/DataListGroup/Accessibilite.mdx +14 -0
- package/src/components/DataListGroup/Accessibilite.stories.ts +225 -0
- package/src/components/DataListGroup/AccessibiliteItems.ts +79 -0
- package/src/components/DataListGroup/DataListGroup.mdx +1 -1
- package/src/components/DataListGroup/DataListGroup.stories.ts +7 -7
- package/src/components/DataListGroup/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/DialogBox/Accessibilite.mdx +14 -0
- package/src/components/DialogBox/Accessibilite.stories.ts +189 -0
- package/src/components/DialogBox/AccessibiliteItems.ts +167 -0
- package/src/components/DialogBox/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/DownloadBtn/AccessibiliteItems.ts +1 -31
- package/src/components/DownloadBtn/DownloadBtn.mdx +5 -6
- package/src/components/DownloadBtn/DownloadBtn.stories.ts +25 -26
- package/src/components/ErrorPage/Accessibilite.mdx +14 -0
- package/src/components/ErrorPage/Accessibilite.stories.ts +189 -0
- package/src/components/ErrorPage/AccessibiliteItems.ts +205 -0
- package/src/components/ErrorPage/ErrorPage.vue +1 -1
- package/src/components/ErrorPage/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/ErrorPage/tests/__snapshots__/ErrorPage.spec.ts.snap +4 -4
- package/src/components/FooterBar/Accessibilite.mdx +14 -0
- package/src/components/FooterBar/Accessibilite.stories.ts +223 -0
- package/src/components/FooterBar/AccessibiliteItems.ts +257 -0
- package/src/components/FooterBar/FooterBar.mdx +2 -2
- package/src/components/FooterBar/FooterBar.stories.ts +14 -14
- package/src/components/FooterBar/FooterBar.vue +86 -75
- package/src/components/FooterBar/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/FooterBar/tests/__snapshots__/FooterBar.spec.ts.snap +22 -20
- package/src/components/FranceConnectBtn/AccessibiliteItems.ts +0 -30
- package/src/components/FranceConnectBtn/FranceConnectBtn.mdx +1 -1
- package/src/components/FranceConnectBtn/FranceConnectBtn.stories.ts +5 -4
- package/src/components/HeaderBar/Accessibilite.mdx +14 -0
- package/src/components/HeaderBar/Accessibilite.stories.ts +223 -0
- package/src/components/HeaderBar/AccessibiliteItems.ts +194 -0
- package/src/components/HeaderBar/HeaderBar.stories.ts +19 -12
- package/src/components/HeaderBar/HeaderBar.vue +9 -12
- package/src/components/HeaderBar/HeaderBurgerMenu/Accessibilite.mdx +14 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/Accessibilite.stories.ts +223 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/AccessibiliteItems.ts +174 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderBurgerMenu.vue +1 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/HeaderBar/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/HeaderBar/tests/__snapshots__/HeaderBar.spec.ts.snap +1 -1
- package/src/components/HeaderLoading/Accessibilite.mdx +14 -0
- package/src/components/HeaderLoading/Accessibilite.stories.ts +167 -0
- package/src/components/HeaderLoading/AccessibiliteItems.ts +29 -0
- package/src/components/HeaderLoading/HeaderLoading.mdx +1 -1
- package/src/components/HeaderLoading/HeaderLoading.stories.ts +1 -1
- package/src/components/HeaderLoading/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/HeaderNavigationBar/HeaderNavigationBar.stories.ts +104 -32
- package/src/components/HeaderNavigationBar/HorizontalNavbar/HorizontalNavbar.vue +35 -33
- package/src/components/HeaderToolbar/Accessibilite.mdx +14 -0
- package/src/components/HeaderToolbar/Accessibilite.stories.ts +203 -0
- package/src/components/HeaderToolbar/AccessibiliteItems.ts +200 -0
- package/src/components/HeaderToolbar/HeaderToolbar.mdx +1 -1
- package/src/components/HeaderToolbar/HeaderToolbar.stories.ts +2 -2
- package/src/components/HeaderToolbar/HeaderToolbar.vue +24 -1
- package/src/components/HeaderToolbar/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/LangBtn/Accessibilite.stories.ts +3 -1
- package/src/components/LangBtn/AccessibiliteItems.ts +0 -31
- package/src/components/LangBtn/LangBtn.mdx +1 -1
- package/src/components/LangBtn/LangBtn.stories.ts +4 -4
- package/src/components/LangBtn/LangBtn.vue +3 -2
- package/src/components/Logo/Accessibilite.mdx +14 -0
- package/src/components/Logo/Accessibilite.stories.ts +223 -0
- package/src/components/Logo/AccessibiliteItems.ts +155 -0
- package/src/components/Logo/Logo.mdx +1 -1
- package/src/components/Logo/Logo.stories.ts +8 -8
- package/src/components/Logo/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/LogoBrandSection/Accessibilite.mdx +14 -0
- package/src/components/LogoBrandSection/Accessibilite.stories.ts +223 -0
- package/src/components/LogoBrandSection/AccessibiliteItems.ts +194 -0
- package/src/components/LogoBrandSection/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/MaintenancePage/Accessibilite.mdx +14 -0
- package/src/components/MaintenancePage/Accessibilite.stories.ts +189 -0
- package/src/components/MaintenancePage/AccessibiliteItems.ts +173 -0
- package/src/components/MaintenancePage/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/NirField/Accessibilite.mdx +14 -0
- package/src/components/NirField/Accessibilite.stories.ts +214 -0
- package/src/components/NirField/AccessibiliteItems.ts +243 -0
- package/src/components/NirField/NirField.mdx +213 -0
- package/src/components/NirField/NirField.stories.ts +412 -0
- package/src/components/NirField/NirField.vue +453 -0
- package/src/components/NirField/config.ts +16 -0
- package/src/components/NirField/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/NirField/locales.ts +12 -0
- package/src/components/NirField/nirValidation.ts +42 -0
- package/src/components/NirField/tests/NirField.spec.ts +120 -0
- package/src/components/NotFoundPage/Accessibilite.mdx +14 -0
- package/src/components/NotFoundPage/Accessibilite.stories.ts +190 -0
- package/src/components/NotFoundPage/AccessibiliteItems.ts +205 -0
- package/src/components/NotFoundPage/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/NotFoundPage/tests/__snapshots__/NotFoundPage.spec.ts.snap +4 -4
- package/src/components/NotificationBar/AccessibiliteItems.ts +0 -30
- package/src/components/NotificationBar/NotificationBar.mdx +1 -1
- package/src/components/PageContainer/PageContainer.mdx +1 -1
- package/src/components/PageContainer/PageContainer.stories.ts +9 -9
- package/src/components/PageContainer/PageContainer.vue +24 -18
- package/src/components/PageContainer/tests/PageContainer.spec.ts +2 -2
- package/src/components/PageContainer/tests/__snapshots__/PageContainer.spec.ts.snap +2 -2
- package/src/components/PhoneField/Accessibilite.mdx +14 -0
- package/src/components/PhoneField/Accessibilite.stories.ts +216 -0
- package/src/components/PhoneField/AccessibiliteItems.ts +238 -0
- package/src/components/PhoneField/PhoneField.mdx +1 -1
- package/src/components/PhoneField/PhoneField.stories.ts +2 -2
- package/src/components/PhoneField/PhoneField.vue +0 -1
- package/src/components/PhoneField/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/SkipLink/Accessibilite.stories.ts +1 -1
- package/src/components/SkipLink/SkipLink.stories.ts +2 -2
- package/src/components/SocialMediaLinks/Accessibilite.mdx +14 -0
- package/src/components/SocialMediaLinks/Accessibilite.stories.ts +170 -0
- package/src/components/SocialMediaLinks/AccessibiliteItems.ts +160 -0
- package/src/components/SocialMediaLinks/SocialMediaLinks.mdx +1 -1
- package/src/components/SocialMediaLinks/SocialMediaLinks.stories.ts +1 -1
- package/src/components/SocialMediaLinks/SocialMediaLinks.vue +7 -1
- package/src/components/SocialMediaLinks/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/SocialMediaLinks/tests/__snapshots__/SocialMediaLinks.spec.ts.snap +2 -2
- package/src/components/SubHeader/Accessibilite.mdx +14 -0
- package/src/components/SubHeader/Accessibilite.stories.ts +166 -0
- package/src/components/SubHeader/AccessibiliteItems.ts +146 -0
- package/src/components/SubHeader/SubHeader.mdx +1 -1
- package/src/components/SubHeader/SubHeader.stories.ts +17 -14
- package/src/components/SubHeader/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/SyAlert/Accessibilite.mdx +14 -0
- package/src/components/{Alert → SyAlert}/Accessibilite.stories.ts +1 -1
- package/src/components/{Alert → SyAlert}/AccessibiliteItems.ts +2 -32
- package/src/components/{Alert/Alert.mdx → SyAlert/SyAlert.mdx} +9 -9
- package/src/components/{Alert/Alert.stories.ts → SyAlert/SyAlert.stories.ts} +22 -22
- package/src/components/{Alert/Alert.vue → SyAlert/SyAlert.vue} +7 -0
- package/src/components/SyAlert/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/{Alert/tests/Alert.spec.ts → SyAlert/tests/SyAlert.spec.ts} +5 -5
- package/src/components/{Alert/tests/__snapshots__/Alert.spec.ts.snap → SyAlert/tests/__snapshots__/SyAlert.spec.ts.snap} +2 -2
- package/src/components/UserMenuBtn/Accessibilite.mdx +14 -0
- package/src/components/UserMenuBtn/Accessibilite.stories.ts +189 -0
- package/src/components/UserMenuBtn/AccessibiliteItems.ts +155 -0
- package/src/components/UserMenuBtn/UserMenuBtn.mdx +17 -17
- package/src/components/UserMenuBtn/UserMenuBtn.stories.ts +121 -19
- package/src/components/UserMenuBtn/UserMenuBtn.vue +25 -29
- package/src/components/UserMenuBtn/config.ts +1 -1
- package/src/components/UserMenuBtn/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/index.ts +11 -4
- package/src/composables/rules/tests/useFieldValidation.spec.ts +60 -58
- package/src/composables/rules/useFieldValidation.ts +65 -28
- package/src/main.ts +1 -0
- package/src/stories/GuideDuDev/CommentUtiliserLesRules.mdx +67 -79
- package/src/stories/GuideDuDev/components.stories.ts +5 -5
- package/src/stories/GuideDuDev/moduleDeNotification.mdx +1 -1
- package/src/stories/Guidelines/Vuetify/Vuetify.mdx +11 -0
- package/src/stories/Guidelines/Vuetify/Vuetify.stories.ts +138 -0
- package/src/stories/Guidelines/Vuetify/VuetifyItems.ts +350 -0
- /package/src/components/{Alert → CookieBanner}/Accessibilite.mdx +0 -0
- /package/src/components/{Alert → CookieBanner}/constants/ExpertiseLevelEnum.ts +0 -0
- /package/src/components/{Alert → SyAlert}/locales.ts +0 -0
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { ExpertiseLevelEnum } from './constants/ExpertiseLevelEnum'
|
|
2
|
+
|
|
3
|
+
export const AccessibiliteItemsIndeterminate = [
|
|
4
|
+
{
|
|
5
|
+
title: 'Catégorie 1 : Images',
|
|
6
|
+
subtitle: '1.6 Chaque image porteuse d’information a-t-elle, si nécessaire, une description détaillée ?',
|
|
7
|
+
|
|
8
|
+
items2: [
|
|
9
|
+
{
|
|
10
|
+
subtitle: '1.1 Chaque image porteuse d’information a-t-elle une alternative textuelle ? ',
|
|
11
|
+
precision: '1.1.5 Chaque image vectorielle (balise <svg>) porteuse d’information, vérifie-t-elle ces conditions ? '
|
|
12
|
+
+ 'La balise <svg> possède un attribut WAI-ARIA role="img" ; '
|
|
13
|
+
+ 'La balise <svg> a une alternative textuelle.',
|
|
14
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#1.1.5',
|
|
15
|
+
solution: [{
|
|
16
|
+
info1: '1. Retrouver dans le document les éléments <svg> ; Pour chaque élément <svg>, déterminer si l’image est porteuse d’information ; ',
|
|
17
|
+
info2: '2. S’assurer que l’élément <svg> est pourvu d’un attribut WAI-ARIA role="img" ; Si ce n’est pas le cas, le test est invalidé.',
|
|
18
|
+
info3: '3. Le cas échéant, vérifier que l’élément <svg> est pourvu au moins d’une alternative textuelle parmi les suivantes : '
|
|
19
|
+
+ 'Contenu de l’élément <title> ; '
|
|
20
|
+
+ 'Passage de texte associé via l’attribut WAI-ARIA aria-labelledby ; '
|
|
21
|
+
+ 'Contenu de l’attribut WAI-ARIA aria-label ;',
|
|
22
|
+
info4: '4. Si au moins une alternative textuelle est trouvée, le test est validé. ',
|
|
23
|
+
}],
|
|
24
|
+
expertise: ExpertiseLevelEnum.DEV,
|
|
25
|
+
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
subtitle: '1.3 Pour chaque image porteuse d’information ayant une alternative textuelle, cette alternative est-elle pertinente (hors cas particuliers) ? ',
|
|
29
|
+
precision: '1.3.9 Pour chaque image porteuse d’information et ayant une alternative textuelle, l’alternative textuelle est-elle courte et concise (hors cas particuliers) ? ',
|
|
30
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#1.3.9',
|
|
31
|
+
solution: [{
|
|
32
|
+
info1: '1. Retrouver dans le document les images pourvues d’une alternative textuelle ; ',
|
|
33
|
+
info2: '2. Pour chaque image, vérifier l’alternative textuelle est courte et concise ;',
|
|
34
|
+
info3: '3. Si c’est le cas pour chaque image, le test est validé',
|
|
35
|
+
}],
|
|
36
|
+
expertise: ExpertiseLevelEnum.DEV,
|
|
37
|
+
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
items: [
|
|
41
|
+
{
|
|
42
|
+
precision: '1.6.1 Chaque image (balise <img>) porteuse d’information, qui nécessite une description détaillée, vérifie-t-elle une de ces conditions ? '
|
|
43
|
+
+ 'Il existe un attribut longdesc qui donne l’adresse (URL) d’une page ou d’un emplacement dans la page contenant la description détaillée ; '
|
|
44
|
+
+ 'Il existe une alternative textuelle contenant la référence à une description détaillée adjacente à l’image ; '
|
|
45
|
+
+ 'Il existe un lien ou un bouton adjacent permettant d’accéder à la description détaillée.',
|
|
46
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#1.6.1',
|
|
47
|
+
solution: [{
|
|
48
|
+
info1: '1. Retrouver dans le document les images structurées au moyen d’un élément <img> (ou d’un élément possédant l’attribut WAI-ARIA role="img") porteuses d’information qui nécessitent une description détaillée ; ',
|
|
49
|
+
info2: '2. Pour chaque image, vérifier qu’il existe : '
|
|
50
|
+
+ 'Soit un attribut longdesc qui donne l’adresse (url) d’une page ou d’un emplacement dans la page contenant la description détaillée ; '
|
|
51
|
+
+ 'Soit une alternative textuelle contenant la référence à une description détaillée adjacente à l’image ; '
|
|
52
|
+
+ 'Soit un lien ou un bouton adjacent permettant d’accéder à la description détaillée.',
|
|
53
|
+
info3: '3. Si c’est le cas pour chaque image, le test est validé',
|
|
54
|
+
}],
|
|
55
|
+
expertise: ExpertiseLevelEnum.DEV,
|
|
56
|
+
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
precision: '1.6.5 Chaque image vectorielle (balise <svg>) porteuse d’information, qui nécessite une description détaillée, vérifie-t-elle une de ces conditions ? '
|
|
60
|
+
+ 'Il existe un attribut WAI-ARIA aria-label contenant l’alternative textuelle et une référence à une description détaillée adjacente ; '
|
|
61
|
+
+ 'Il existe un attribut WAI-ARIA aria-labelledby associant un passage de texte faisant office d’alternative textuelle et un autre faisant office de description détaillée ; '
|
|
62
|
+
+ 'Il existe un attribut WAI-ARIA aria-describedby associant un passage de texte faisant office de description détaillée ; '
|
|
63
|
+
+ 'Il existe un lien ou un bouton adjacent permettant d’accéder à la description détaillée.',
|
|
64
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#1.6.5',
|
|
65
|
+
solution: [{
|
|
66
|
+
info1: '1. Retrouver dans le document les éléments <svg> porteurs d’information qui nécessitent une description détaillée ; ',
|
|
67
|
+
info2: '2. Pour chaque élément <svg>, vérifier qu’il existe : '
|
|
68
|
+
+ 'Soit un attribut WAI-ARIA aria-label contenant l’alternative textuelle et une référence à une description détaillée adjacente ; '
|
|
69
|
+
+ 'Soit un attribut WAI-ARIA aria-labelledby associant un passage de texte faisant office d’alternative textuelle et un autre faisant office de description détaillée ; '
|
|
70
|
+
+ 'Soit un attribut WAI-ARIA aria-describedby associant un passage de texte faisant office de description détaillée ; '
|
|
71
|
+
+ 'Soit un lien ou un bouton adjacent permettant d’accéder à la description détaillée.',
|
|
72
|
+
info3: '3. Si c’est le cas pour chaque élément <svg>, le test est validé.',
|
|
73
|
+
}],
|
|
74
|
+
expertise: ExpertiseLevelEnum.DEV,
|
|
75
|
+
|
|
76
|
+
},
|
|
77
|
+
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
|
|
81
|
+
{
|
|
82
|
+
title: 'Catégorie 10 : Présentation de l’information',
|
|
83
|
+
subtitle: '10.1 Dans le site web, des feuilles de styles sont-elles utilisées pour contrôler la présentation de l’information ? ?',
|
|
84
|
+
items: [
|
|
85
|
+
|
|
86
|
+
{
|
|
87
|
+
precision: '10.1.1 Dans chaque page web, les balises servant à la présentation de l’information ne doivent pas être présentes dans le code source généré des pages. Cette règle est-elle respectée ? ',
|
|
88
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#10.1.1',
|
|
89
|
+
solution: [{
|
|
90
|
+
info1: '1. Vérifier l’absence des éléments de présentation <basefont>, <big>, <blink>, <center>, <font>, <marquee>, <s>, <strike>, <tt> ; ',
|
|
91
|
+
info2: '2. Vérifier l’absence de l’élément <u> uniquement si le DOCTYPE du document ne correspond pas à HTML 5 ; ',
|
|
92
|
+
info3: '3. Si c’est le cas, le test est validé',
|
|
93
|
+
}],
|
|
94
|
+
expertise: ExpertiseLevelEnum.DEV,
|
|
95
|
+
|
|
96
|
+
},
|
|
97
|
+
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
|
|
101
|
+
]
|
|
102
|
+
|
|
103
|
+
export const AccessibiliteItemsValidated = [
|
|
104
|
+
|
|
105
|
+
{
|
|
106
|
+
title: 'Catégorie 1 : Images',
|
|
107
|
+
subtitle: '1.2 Chaque image de décoration est-elle correctement ignorée par les technologies d’assistance ?',
|
|
108
|
+
items: [
|
|
109
|
+
|
|
110
|
+
{
|
|
111
|
+
precision: '1.2.4 Chaque image vectorielle (balise <svg>) de décoration, sans légende, vérifie-t-elle ces conditions ?'
|
|
112
|
+
+ ' La balise <svg> possède un attribut WAI-ARIA aria-hidden="true" ;'
|
|
113
|
+
+ ' La balise <svg> et ses enfants sont dépourvus d’alternative textuelle ;'
|
|
114
|
+
+ ' Les balises <title> et <desc> sont absentes ou vides ;'
|
|
115
|
+
+ ' La balise <svg> et ses enfants sont dépourvus d’attribut title.',
|
|
116
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#1.2.4',
|
|
117
|
+
solution: [{
|
|
118
|
+
info1: '1. Retrouver dans le document les images décoratives dépourvues de légende structurées au moyen d’un élément <svg> ;',
|
|
119
|
+
info2: '2. Pour chaque image, vérifier que l’élément <svg> ne possède pas d’attributs aria-labelledby ou aria-label et qu’il :'
|
|
120
|
+
+ ' Possède un attribut WAI-ARIA aria-hidden="true" ;'
|
|
121
|
+
+ ' Et est dépourvu d’alternative textuelle (ainsi que ses éléments enfants) ;'
|
|
122
|
+
+ ' Et ne contient pas d’éléments <title> et <desc> à moins que vides de contenu ;'
|
|
123
|
+
+ ' Et est dépourvu d’attribut title (ainsi que ses éléments enfants).',
|
|
124
|
+
info3: '3. Si c’est le cas pour chaque image, le test est validé',
|
|
125
|
+
}],
|
|
126
|
+
expertise: ExpertiseLevelEnum.DESIGN,
|
|
127
|
+
|
|
128
|
+
},
|
|
129
|
+
|
|
130
|
+
],
|
|
131
|
+
items2: [
|
|
132
|
+
{
|
|
133
|
+
subtitle: '1.1 Chaque image porteuse d’information a-t-elle une alternative textuelle ? ',
|
|
134
|
+
precision: '1.1.5 Chaque image vectorielle (balise <svg>) porteuse d’information, vérifie-t-elle ces conditions ? '
|
|
135
|
+
+ 'La balise <svg> possède un attribut WAI-ARIA role="img" ; '
|
|
136
|
+
+ 'La balise <svg> a une alternative textuelle.',
|
|
137
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#1.1.5',
|
|
138
|
+
solution: [{
|
|
139
|
+
info1: '1. Retrouver dans le document les éléments <svg> ; Pour chaque élément <svg>, déterminer si l’image est porteuse d’information ; ',
|
|
140
|
+
info2: '2. S’assurer que l’élément <svg> est pourvu d’un attribut WAI-ARIA role="img" ; Si ce n’est pas le cas, le test est invalidé.',
|
|
141
|
+
info3: '3. Le cas échéant, vérifier que l’élément <svg> est pourvu au moins d’une alternative textuelle parmi les suivantes : '
|
|
142
|
+
+ 'Contenu de l’élément <title> ; '
|
|
143
|
+
+ 'Passage de texte associé via l’attribut WAI-ARIA aria-labelledby ; '
|
|
144
|
+
+ 'Contenu de l’attribut WAI-ARIA aria-label ;',
|
|
145
|
+
info4: '4. Si au moins une alternative textuelle est trouvée, le test est validé. ',
|
|
146
|
+
}],
|
|
147
|
+
expertise: ExpertiseLevelEnum.DESIGN,
|
|
148
|
+
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
title: 'Catégorie 3 : Couleurs',
|
|
154
|
+
subtitle: '3.2 Dans chaque page web, le contraste entre la couleur du texte et la couleur de son arrière-plan est-il suffisamment élevé?',
|
|
155
|
+
items: [
|
|
156
|
+
{
|
|
157
|
+
|
|
158
|
+
precision: '3.2.1 Dans chaque page web, le texte et le texte en image sans effet de graisse d’une taille restituée inférieure à 24px vérifient-ils une de ces conditions? Le rapport de contraste entre le texte et son arrière-plan est de 4.5:1, au moins; Un mécanisme permet à l’utilisateur d’afficher le texte avec un rapport de contraste de 4.5:1, au moins.',
|
|
159
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#3.2.1',
|
|
160
|
+
solution: [{
|
|
161
|
+
info1: '1. Retrouver dans le document les textes et les textes en image sans effet de graisse d’une taille restituée inférieure à 24px qui pourraient poser des problèmes de contraste ;',
|
|
162
|
+
info2: '2. Pour chacun de ces textes, vérifier que : Soit le rapport de contraste entre le texte et son arrière-plan est de 4.5:1, au moins; Soit un mécanisme permet à l’utilisateur d’afficher le texte avec un rapport de contraste de 4.5:1, au moins.',
|
|
163
|
+
info3: '3. Si c’est le cas pour chaque texte, le test est validé',
|
|
164
|
+
}],
|
|
165
|
+
expertise: ExpertiseLevelEnum.DESIGN,
|
|
166
|
+
|
|
167
|
+
},
|
|
168
|
+
|
|
169
|
+
],
|
|
170
|
+
},
|
|
171
|
+
|
|
172
|
+
{
|
|
173
|
+
title: 'Catégorie 8 : Eléments Obligatoires',
|
|
174
|
+
subtitle: '8.9 Dans chaque page web, les balises ne doivent pas être utilisées uniquement à des fins de présentation',
|
|
175
|
+
items: [
|
|
176
|
+
|
|
177
|
+
{
|
|
178
|
+
precision: ' 8.9.1 Dans chaque page web les balises (à l’exception de <div>, <span> et <table>) ne doivent pas être utilisées uniquement à des fins de présentation. Cette règle est-elle respectée',
|
|
179
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#8.9.1',
|
|
180
|
+
solution: [{
|
|
181
|
+
info1: '1. Retrouver dans le document l’ensemble des éléments sémantiques utilisés à des fins de présentation ;',
|
|
182
|
+
info2: '2. Pour chacun de ces éléments, vérifier que :'
|
|
183
|
+
+ 'L’élément est pourvu d’un attribut role=“presentation” ;'
|
|
184
|
+
+ 'L’utilisation de cet élément à des fins de présentation reste justifée',
|
|
185
|
+
info3: '3. Si c’est le cas, le test est validé',
|
|
186
|
+
}],
|
|
187
|
+
expertise: ExpertiseLevelEnum.DESIGN,
|
|
188
|
+
|
|
189
|
+
},
|
|
190
|
+
|
|
191
|
+
],
|
|
192
|
+
},
|
|
193
|
+
|
|
194
|
+
]
|
|
@@ -237,7 +237,7 @@ export const WithRightMenu: Story = {
|
|
|
237
237
|
<div class="d-flex justify-center h-100 ga-4 pr-4">
|
|
238
238
|
<VBtn
|
|
239
239
|
variant="text"
|
|
240
|
-
:prepend-icon="
|
|
240
|
+
:prepend-icon="mdiMagnify"
|
|
241
241
|
color="primary"
|
|
242
242
|
>
|
|
243
243
|
Rechercher
|
|
@@ -344,7 +344,7 @@ export const CustomLogo: Story = {
|
|
|
344
344
|
code: `
|
|
345
345
|
<template>
|
|
346
346
|
<HeaderBar>
|
|
347
|
-
<template #logo-brand-content
|
|
347
|
+
<template #logo-brand-content>
|
|
348
348
|
<svg data-v-7f5c1754="" width="22" height="64" fill="#0c419a" role="img" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 64" class="vd-divider"><path data-v-7f5c1754="" d="M14.3 49.3c-.2 0-.4-.2-.4-.4V14.2c0-.2.2-.4.4-.4.3 0 .5.2.5.4v34.7c0 .2-.2.4-.5.4Z"></path></svg>
|
|
349
349
|
<img
|
|
350
350
|
src="/ameli.svg"
|
|
@@ -354,7 +354,7 @@ export const CustomLogo: Story = {
|
|
|
354
354
|
</HeaderBar>
|
|
355
355
|
<br>
|
|
356
356
|
<HeaderBar>
|
|
357
|
-
<template #logo-brand-content
|
|
357
|
+
<template #logo-brand-content>
|
|
358
358
|
<svg data-v-7f5c1754="" width="22" height="64" fill="#0c419a" role="img" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 64" class="vd-divider"><path data-v-7f5c1754="" d="M14.3 49.3c-.2 0-.4-.2-.4-.4V14.2c0-.2.2-.4.4-.4.3 0 .5.2.5.4v34.7c0 .2-.2.4-.5.4Z"></path></svg>
|
|
359
359
|
<img
|
|
360
360
|
src="/ameli-pro.svg"
|
|
@@ -364,7 +364,7 @@ export const CustomLogo: Story = {
|
|
|
364
364
|
</HeaderBar>
|
|
365
365
|
<br>
|
|
366
366
|
<HeaderBar>
|
|
367
|
-
<template #logo-brand-content
|
|
367
|
+
<template #logo-brand-content>
|
|
368
368
|
<svg data-v-7f5c1754="" width="22" height="64" fill="#0c419a" role="img" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 64" class="vd-divider"><path data-v-7f5c1754="" d="M14.3 49.3c-.2 0-.4-.2-.4-.4V14.2c0-.2.2-.4.4-.4.3 0 .5.2.5.4v34.7c0 .2-.2.4-.5.4Z"></path></svg>
|
|
369
369
|
<img
|
|
370
370
|
src="/cnam.svg"
|
|
@@ -374,7 +374,7 @@ export const CustomLogo: Story = {
|
|
|
374
374
|
</HeaderBar>
|
|
375
375
|
<br>
|
|
376
376
|
<HeaderBar>
|
|
377
|
-
<template #logo-brand-content
|
|
377
|
+
<template #logo-brand-content">
|
|
378
378
|
<svg data-v-7f5c1754="" width="22" height="64" fill="#006386" role="img" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 64" class="vd-divider"><path data-v-7f5c1754="" d="M14.3 49.3c-.2 0-.4-.2-.4-.4V14.2c0-.2.2-.4.4-.4.3 0 .5.2.5.4v34.7c0 .2-.2.4-.5.4Z"></path></svg>
|
|
379
379
|
<img
|
|
380
380
|
src="/compte-ameli.svg"
|
|
@@ -384,7 +384,7 @@ export const CustomLogo: Story = {
|
|
|
384
384
|
</HeaderBar>
|
|
385
385
|
<br>
|
|
386
386
|
<HeaderBar>
|
|
387
|
-
<template #logo
|
|
387
|
+
<template #logo>
|
|
388
388
|
<svg data-v-7f5c1754="" fill="#0c419a" aria-label="l’Assurance Maladie: Risques Professionnels" width="211" height="64" viewBox="0 0 211 64" role="img" focusable="false" xmlns="http://www.w3.org/2000/svg" aria-hidden="false" class=""><path fill="#cd545b" d="M68 55.8h2.8a3 3 0 0 1 2 .6c.5.4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5 6.8c-.5-.8-.4-1.6.3-2 .7-.5 1.5-.2 2 .6s.3 1.6-.4 2c-.6.5-1.4.2-2-.6Zm1.7-1c-.3-.6-.7-.7-1-.5-.4.2-.5.6-.1 1.1.3.6.7.8 1 .6.4-.3.4-.7.1-1.2Z"></path><path d="M18.7 5c-.5-1 0-1.8.6-2.1.4-.2.7-.1 1 0l-.2.5h-.6c-.3.2-.5.7-.2 1.2.2.6.7.8 1 .6.3-.1.4-.3.5-.5l.5.2c-.1.4-.3.7-.7.8-.7.3-1.5.1-2-.8Z"></path><path d="m21.4 2.1.6-.2 1 2.8-.6.2-1-2.8Z"></path><path d="M24 1.2 25 1l1.7 2.7-.7.1-.8-1.3-.4-1v2.7l-.7.2V1.2Zm.2 1.8 1.4-.4.2.5-1.4.4-.2-.5Z"></path><path d="m26.9.5.7-.1.3 2.4 1.2-.2v.6l-1.8.3-.4-3Z"></path><path d="m29.8.1 2-.1v.6h-1.2v.7l1-.1v.6h-1v.7H32V3l-1.9.1-.2-3Z"></path></g><g><path d="M100.1 45V30.6h3.8v14.6c0 .8.4 1 .7 1h.5l.5 2.9a5 5 0 0 1-2 .3c-2.6 0-3.5-1.7-3.5-4.4Z"></path><path d="m75.7 40.4 3.8-8.5h4V49h-3.6V38.4l-3 7.8h-2.4l-3-7.8v10.7H68V32h4l3.8 8.5Z"></path><path d="M107.1 45.5c0-2.8 2.3-4.3 7.4-4.9 0-1.1-.8-1.8-2.2-1.8-1 0-2.1.4-3.4 1.2l-1.3-2.6c1.6-1 3.5-1.7 5.5-1.7 3.3 0 5 1.9 5 5.9V49h-3.5v-1.3s-1.5 1.6-3.6 1.6c-2.4 0-3.9-1.7-3.9-4Zm7.4-.3V43c-2.7.3-3.7 1.2-3.7 2.2 0 .8.5 1.2 1.5 1.2.8 0 1.5-.5 2.2-1.2Z"></path><path d="M86.1 45.5c0-2.8 2.3-4.3 7.4-4.9 0-1.1-.8-1.8-2.2-1.8-1 0-2.1.4-3.4 1.2l-1.3-2.6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2 2.4 0 0 0 .5 0 .2.4-.1.2-1.6.9-2 1-1 .4-3.6 4.6-4.3 5-.7.3-1 .6-1.3.8-1 .6-2.1 1.4-2.7 1.4-.7 0-1.4.3-1.9 1.5-.1.3 0 .5.3.5 0 .1.2.3.4.3.2.2.5 0 .7 0l1-.7c.5-.2 4-1.5 4.7-2.1 1.2-.6 3.5-3 4-3s1.6 1 1.2 3c0 .7-1 2-1.4 2.6-1 1.5-.2 2.7-.4 3-1 1.6-2.2 3.7-4.2 5.5-.8.6-2.4.7-3.3 1-2 .5-4.2 2-5.7 2.8-.5.3-1-.3-1.6-.4-.7 0-.7 1-1 1.8l-.7 1.5c-.1.4-.7 1.7-.1 2.2.4.7 1.5-1.4 2.4-2.3.4-.5.7-.7 1.7-1 .6 0 5.6-1.4 8.8-2.2h.3c4.2-1.1 8.6-6.6 8.7-6.6l7.2 3.5c.7.4.7 1.8 1.5 3.4a22 22 0 0 0 4.4 4.9c.4.4 0 1 .2 1.6.2.6.6.6 1.1.6l1.6-.2c.7 0 .5 0 1.3.2.4 0 1.3.1 2-.5 1-1.2-1.2-.6-2.3-1.1Z"></path><path d="M44 51.7a.4.4 0 0 0-.6-.2 22.2 22.2 0 0 1-21-.6.5.5 0 0 0-.6.2c-.1.2 0 .4.1.6a23 23 0 0 0 21.9.5c.2 0 .3-.3.2-.5Z"></path><path d="M12.9 22.9h-.2c-.2-.2-.3-.4-.2-.6 2-4.4 5.2-8 9.3-10.4.2-.1.5 0 .6.2.2.2 0 .4-.1.6-4 2.3-7.1 5.7-9 10l-.4.2Z"></path><path d="M50.3 17.3c-.1 0-.3 0-.3-.2A22 22 0 0 0 36.5 10c-.2 0-.4-.3-.3-.5 0-.3.2-.4.5-.4a23 23 0 0 1 14 7.5v.7h-.4Z"></path></svg>
|
|
389
389
|
</template>
|
|
390
390
|
</HeaderBar>
|
|
@@ -396,7 +396,6 @@ export const CustomLogo: Story = {
|
|
|
396
396
|
code: `
|
|
397
397
|
<script setup lang="ts">
|
|
398
398
|
import { HeaderBar } from '@cnamts/synapse'
|
|
399
|
-
|
|
400
399
|
</script>
|
|
401
400
|
`,
|
|
402
401
|
},
|
|
@@ -566,7 +565,7 @@ export const WithSubHeader: Story = {
|
|
|
566
565
|
},
|
|
567
566
|
template: `
|
|
568
567
|
<HeaderBar v-bind="args">
|
|
569
|
-
<template #append
|
|
568
|
+
<template #append>
|
|
570
569
|
<SubHeader
|
|
571
570
|
title-text="Paul Dupont"
|
|
572
571
|
sub-title-text="1 69 08 75 125 456 75"
|
|
@@ -585,8 +584,8 @@ export const WithSubHeader: Story = {
|
|
|
585
584
|
name: 'Template',
|
|
586
585
|
code: `
|
|
587
586
|
<template>
|
|
588
|
-
<HeaderBar
|
|
589
|
-
<template #append
|
|
587
|
+
<HeaderBar>
|
|
588
|
+
<template #append>
|
|
590
589
|
<SubHeader
|
|
591
590
|
title-text="Paul Dupont"
|
|
592
591
|
sub-title-text="1 69 08 75 125 456 75"
|
|
@@ -620,7 +619,11 @@ export const DefaultSlot: Story = {
|
|
|
620
619
|
return {
|
|
621
620
|
components: { HeaderBar, UserMenuBtn, VListItem, VListItemTitle },
|
|
622
621
|
setup() {
|
|
623
|
-
const listItems = [
|
|
622
|
+
const listItems = [
|
|
623
|
+
{ text: 'Item 1', value: 'item1' },
|
|
624
|
+
{ text: 'Item 2', value: 'item2' },
|
|
625
|
+
{ text: 'Item 3', value: 'item3' },
|
|
626
|
+
]
|
|
624
627
|
return { args, listItems }
|
|
625
628
|
},
|
|
626
629
|
template: `
|
|
@@ -660,7 +663,11 @@ export const DefaultSlot: Story = {
|
|
|
660
663
|
<script setup lang="ts">
|
|
661
664
|
import { HeaderBar, UserMenuBtn } from '@cnamts/synapse'
|
|
662
665
|
|
|
663
|
-
const listItems = [
|
|
666
|
+
const listItems = [
|
|
667
|
+
{ text: 'Item 1', value: 'item1' },
|
|
668
|
+
{ text: 'Item 2', value: 'item2' },
|
|
669
|
+
{ text: 'Item 3', value: 'item3' },
|
|
670
|
+
]
|
|
664
671
|
</script>
|
|
665
672
|
`,
|
|
666
673
|
},
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
:style="headerStickyStyle"
|
|
165
165
|
>
|
|
166
166
|
<div
|
|
167
|
-
v-if="$slots
|
|
167
|
+
v-if="$slots['prepend']"
|
|
168
168
|
class="header-prepend"
|
|
169
169
|
>
|
|
170
170
|
<slot
|
|
@@ -177,8 +177,7 @@
|
|
|
177
177
|
name="menu"
|
|
178
178
|
:menu-open
|
|
179
179
|
/>
|
|
180
|
-
|
|
181
|
-
<div class="header-logo">
|
|
180
|
+
<div class="header-logo pl-xl-0 pl-md-14 pl-4">
|
|
182
181
|
<slot
|
|
183
182
|
name="logo"
|
|
184
183
|
:menu-open
|
|
@@ -218,7 +217,7 @@
|
|
|
218
217
|
</div>
|
|
219
218
|
</div>
|
|
220
219
|
<div
|
|
221
|
-
v-if="$slots
|
|
220
|
+
v-if="$slots['append']"
|
|
222
221
|
class="header-append"
|
|
223
222
|
>
|
|
224
223
|
<slot
|
|
@@ -254,21 +253,19 @@
|
|
|
254
253
|
border-bottom: solid 1px $blue-lighten-80;
|
|
255
254
|
}
|
|
256
255
|
|
|
257
|
-
.header-logo {
|
|
258
|
-
margin-left: 1rem;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
256
|
.header-side {
|
|
262
257
|
display: flex;
|
|
263
258
|
align-items: center;
|
|
264
259
|
margin-left: auto;
|
|
265
260
|
}
|
|
266
261
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
262
|
+
.menu + .header-logo {
|
|
263
|
+
@media screen and (min-width: 340px) {
|
|
264
|
+
padding-left: 16px !important;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
271
267
|
|
|
268
|
+
@media screen and (min-width: $header-breakpoint) {
|
|
272
269
|
.inner-header {
|
|
273
270
|
height: $header-height-desktop;
|
|
274
271
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
+
import * as AccessStories from './Accessibilite.stories.ts';
|
|
3
|
+
|
|
4
|
+
<Meta of={AccessStories} />
|
|
5
|
+
|
|
6
|
+
Accessibilité
|
|
7
|
+
=============
|
|
8
|
+
<Story of={AccessStories.Legende} />
|
|
9
|
+
<br />
|
|
10
|
+
|
|
11
|
+
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
<Story of={AccessStories.AccessibilitePanel} />
|
|
14
|
+
<br />
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { VExpansionPanels, VExpansionPanel, VExpansionPanelTitle, VExpansionPanelText, VDataTable, VIcon } from 'vuetify/components'
|
|
2
|
+
import type { StoryObj } from '@storybook/vue3'
|
|
3
|
+
import { AccessibiliteItemsIndeterminate, AccessibiliteItemsValidated } from './AccessibiliteItems'
|
|
4
|
+
import { mdiCheckboxMarkedCircle, mdiLink, mdiEye } from '@mdi/js'
|
|
5
|
+
|
|
6
|
+
const checkIcon = mdiCheckboxMarkedCircle
|
|
7
|
+
const iconEye = mdiEye
|
|
8
|
+
const linkICon = mdiLink
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
title: 'Composants/Structure/HeaderBar/HeaderBurgerMenu/Accessibilité',
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const AccessibilitePanel: StoryObj = {
|
|
15
|
+
|
|
16
|
+
render: () => {
|
|
17
|
+
return {
|
|
18
|
+
components: { VExpansionPanels, VExpansionPanel, VExpansionPanelTitle, VExpansionPanelText, VDataTable, VIcon },
|
|
19
|
+
|
|
20
|
+
setup() {
|
|
21
|
+
const icon = checkIcon
|
|
22
|
+
|
|
23
|
+
return { AccessibiliteItemsIndeterminate, AccessibiliteItemsValidated, icon, linkICon, iconEye }
|
|
24
|
+
},
|
|
25
|
+
template: `
|
|
26
|
+
<div class="accessibiliteItems" style="display:flex; max-width: none !important;">
|
|
27
|
+
<v-col cols="6">
|
|
28
|
+
<div style="display:flex; margin-bottom: 10px; justify-content: space-between; align-items: center;">
|
|
29
|
+
<h5>{{ AccessibiliteItemsIndeterminate.length }} critères à prendre en charge par le projet</h5>
|
|
30
|
+
<div style="display: flex; align-items: center;">
|
|
31
|
+
<v-btn variant="tonal" color="red" size="x-small" style="margin: 4px;font-size: 8px;"
|
|
32
|
+
rounded>Tanaguru
|
|
33
|
+
</v-btn>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
<v-expansion-panels value="opened" multiple>
|
|
38
|
+
<v-expansion-panel v-for="(item, index) in AccessibiliteItemsIndeterminate" :key="index" style="background-color: rgba(42, 96, 158, 0.1); margin-bottom: 10px;">
|
|
39
|
+
<v-expansion-panel-title>
|
|
40
|
+
<VIcon :icon="iconEye" style="margin-right: 5px; color:#5778b7;"/>
|
|
41
|
+
{{ item.title }}
|
|
42
|
+
</v-expansion-panel-title>
|
|
43
|
+
<v-expansion-panel-text>
|
|
44
|
+
<v-expansion-panels>
|
|
45
|
+
<v-expansion-panel v-for="(i, index) in item.items2" :key="i" style="margin-bottom: 10px;">
|
|
46
|
+
<v-expansion-panel-title
|
|
47
|
+
style="font-weight: bold; font-size: 13px; line-height: 16px;">
|
|
48
|
+
{{ i.subtitle}}
|
|
49
|
+
</v-expansion-panel-title>
|
|
50
|
+
<v-expansion-panel-text>
|
|
51
|
+
<div>
|
|
52
|
+
<p style="font-size: 13px;line-height: 16px;">
|
|
53
|
+
{{ i.precision }}
|
|
54
|
+
</p>
|
|
55
|
+
<div v-for="(value, index) in i.solution"
|
|
56
|
+
style="margin-top:15px; font-size: 13px;line-height: 16px;">
|
|
57
|
+
<p style="font-weight: bold;">Méthodologie du test : <a
|
|
58
|
+
href="{{i.link}}" target="blank">
|
|
59
|
+
<VIcon :icon="linkICon"/>
|
|
60
|
+
</a></p>
|
|
61
|
+
|
|
62
|
+
<p>{{ value.info1 }}</p>
|
|
63
|
+
<p>{{ value.info2 }}</p>
|
|
64
|
+
<p>{{ value.info3 }}</p>
|
|
65
|
+
|
|
66
|
+
</div>
|
|
67
|
+
<span style="display:flex; justify-content:center; margin-bottom:5px;">______</span>
|
|
68
|
+
</div>
|
|
69
|
+
</v-expansion-panel-text>
|
|
70
|
+
</v-expansion-panel>
|
|
71
|
+
<v-expansion-panel >
|
|
72
|
+
<v-expansion-panel-title
|
|
73
|
+
style="font-weight: bold; font-size: 13px; line-height: 16px;">
|
|
74
|
+
{{ item.subtitle }}
|
|
75
|
+
</v-expansion-panel-title>
|
|
76
|
+
<v-expansion-panel-text>
|
|
77
|
+
<div v-for="(value, i) in item.items" :key="i">
|
|
78
|
+
<p style="font-size: 13px;line-height: 16px;">
|
|
79
|
+
{{ value.precision }}
|
|
80
|
+
</p>
|
|
81
|
+
<div v-for="element in value.solution"
|
|
82
|
+
style="margin-top:15px; font-size: 13px;line-height: 16px;">
|
|
83
|
+
<p style="font-weight: bold;">Méthodologie du test : <a
|
|
84
|
+
href="value.link" target="blank">
|
|
85
|
+
<VIcon :icon="linkICon"/>
|
|
86
|
+
</a></p>
|
|
87
|
+
|
|
88
|
+
<p>{{ element.info1 }}</p>
|
|
89
|
+
<p>{{ element.info2 }}</p>
|
|
90
|
+
<p>{{ element.info3 }}</p>
|
|
91
|
+
|
|
92
|
+
</div>
|
|
93
|
+
<span style="display:flex; justify-content:center; margin-bottom:5px;">______</span>
|
|
94
|
+
</div>
|
|
95
|
+
</v-expansion-panel-text>
|
|
96
|
+
</v-expansion-panel>
|
|
97
|
+
</v-expansion-panels>
|
|
98
|
+
</v-expansion-panel-text>
|
|
99
|
+
</v-expansion-panel>
|
|
100
|
+
</v-expansion-panels>
|
|
101
|
+
</v-col>
|
|
102
|
+
<v-col cols="6">
|
|
103
|
+
<div style="display:flex; margin-bottom: 10px; justify-content: space-between; align-items: center;">
|
|
104
|
+
<h5>{{ AccessibiliteItemsValidated.length }} critères pris en charge par l'équipe Design System</h5>
|
|
105
|
+
<div style="display: flex; align-items: center;">
|
|
106
|
+
<v-btn variant="tonal" color="red" size="x-small" style="margin: 4px;font-size: 8px;"
|
|
107
|
+
rounded>Tanaguru
|
|
108
|
+
</v-btn>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
<v-expansion-panels value="opened" multiple>
|
|
112
|
+
<v-expansion-panel
|
|
113
|
+
v-for="(item, index) in AccessibiliteItemsValidated"
|
|
114
|
+
:key="index" style="background-color: rgba(53,135,0,0.1); margin-bottom: 10px;">
|
|
115
|
+
<v-expansion-panel-title>
|
|
116
|
+
<VIcon color="green" :icon="icon" style="margin-right: 5px;"/>
|
|
117
|
+
{{ item.title }}
|
|
118
|
+
</v-expansion-panel-title>
|
|
119
|
+
<v-expansion-panel-text>
|
|
120
|
+
<v-expansion-panels>
|
|
121
|
+
|
|
122
|
+
<v-expansion-panel v-for="(i, index) in item.items2" :key="i" style="margin-bottom: 10px;">
|
|
123
|
+
<v-expansion-panel-title
|
|
124
|
+
style="font-weight: bold; font-size: 13px; line-height: 16px;">
|
|
125
|
+
{{ i.subtitle}}
|
|
126
|
+
</v-expansion-panel-title>
|
|
127
|
+
<v-expansion-panel-text>
|
|
128
|
+
<div>
|
|
129
|
+
<p style="font-size: 13px;line-height: 16px;">
|
|
130
|
+
{{ i.precision }}
|
|
131
|
+
</p>
|
|
132
|
+
<div v-for="(value, index) in i.solution"
|
|
133
|
+
style="margin-top:15px; font-size: 13px;line-height: 16px;">
|
|
134
|
+
<p style="font-weight: bold;">Méthodologie du test : <a
|
|
135
|
+
href="{{i.link}}" target="blank">
|
|
136
|
+
<VIcon :icon="linkICon"/>
|
|
137
|
+
</a></p>
|
|
138
|
+
|
|
139
|
+
<p>{{ value.info1 }}</p>
|
|
140
|
+
<p>{{ value.info2 }}</p>
|
|
141
|
+
<p>{{ value.info3 }}</p>
|
|
142
|
+
|
|
143
|
+
</div>
|
|
144
|
+
<span style="display:flex; justify-content:center; margin-bottom:5px;">______</span>
|
|
145
|
+
</div>
|
|
146
|
+
</v-expansion-panel-text>
|
|
147
|
+
</v-expansion-panel>
|
|
148
|
+
|
|
149
|
+
<v-expansion-panel >
|
|
150
|
+
<v-expansion-panel-title
|
|
151
|
+
style="font-weight: bold; font-size: 13px; line-height: 16px;">
|
|
152
|
+
{{ item.subtitle }}
|
|
153
|
+
</v-expansion-panel-title>
|
|
154
|
+
<v-expansion-panel-text>
|
|
155
|
+
<div v-for="(value, i) in item.items" :key="i">
|
|
156
|
+
<p style="font-size: 13px;line-height: 16px;">
|
|
157
|
+
{{ value.precision }}
|
|
158
|
+
</p>
|
|
159
|
+
<div v-for="element in value.solution"
|
|
160
|
+
style="margin-top:15px; font-size: 13px;line-height: 16px;">
|
|
161
|
+
<p style="font-weight: bold;">Méthodologie du test : <a
|
|
162
|
+
href="value.link" target="blank">
|
|
163
|
+
<VIcon :icon="linkICon"/>
|
|
164
|
+
</a></p>
|
|
165
|
+
|
|
166
|
+
<p>{{ element.info1 }}</p>
|
|
167
|
+
<p>{{ element.info2 }}</p>
|
|
168
|
+
<p>{{ element.info3 }}</p>
|
|
169
|
+
|
|
170
|
+
</div>
|
|
171
|
+
<span style="display:flex; justify-content:center; margin-bottom:5px;">______</span>
|
|
172
|
+
</div>
|
|
173
|
+
</v-expansion-panel-text>
|
|
174
|
+
</v-expansion-panel>
|
|
175
|
+
</v-expansion-panels>
|
|
176
|
+
</v-expansion-panel-text>
|
|
177
|
+
</v-expansion-panel>
|
|
178
|
+
</v-expansion-panels>
|
|
179
|
+
</v-col>
|
|
180
|
+
</div>
|
|
181
|
+
`,
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
tags: ['!dev'],
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export const Legende: StoryObj = {
|
|
188
|
+
args: {
|
|
189
|
+
icon: checkIcon,
|
|
190
|
+
},
|
|
191
|
+
render: (args) => {
|
|
192
|
+
return {
|
|
193
|
+
components: { VIcon },
|
|
194
|
+
setup() {
|
|
195
|
+
return { args }
|
|
196
|
+
},
|
|
197
|
+
template: `
|
|
198
|
+
<p style="color: grey;font-size: 11px; margin-bottom: 12px;">Date de conception: 20/11/2024</p>
|
|
199
|
+
<div>
|
|
200
|
+
<p>Le tableau ci-dessous liste nos recommandations suivant les <a target="blank" style="color:#0C41BD;" href="https://www.numerique.gouv.fr/publications/rgaa-accessibilite/#contenu">catégories du RGAA</a>.</p>
|
|
201
|
+
<p style="margin-bottom: 12px;font-weight:bold;">Pour rappel le composant seul ne garantie pas
|
|
202
|
+
l'accessibilité du site.</p>
|
|
203
|
+
<div style="font-size: 14px">
|
|
204
|
+
<p>Nous avons deux façons de relever les problèmes d'accessibilité des composants :</p>
|
|
205
|
+
<div>
|
|
206
|
+
<v-btn variant="tonal" color="grey" size="x-small" style="margin: 2px;font-size: 8px;" rounded>
|
|
207
|
+
Audit
|
|
208
|
+
</v-btn>
|
|
209
|
+
Problèmes relevés par le projet
|
|
210
|
+
</div>
|
|
211
|
+
<div>
|
|
212
|
+
<v-btn variant="tonal" color="red" size="x-small" style="margin: 2px;font-size: 8px;" rounded>
|
|
213
|
+
Tanaguru
|
|
214
|
+
</v-btn>
|
|
215
|
+
Problèmes relevés par Tanaguru
|
|
216
|
+
</div>
|
|
217
|
+
</div>
|
|
218
|
+
</div>
|
|
219
|
+
`,
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
tags: ['!dev'],
|
|
223
|
+
}
|