@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.
Files changed (229) hide show
  1. package/dist/design-system-v3.d.ts +487 -415
  2. package/dist/design-system-v3.js +2954 -2203
  3. package/dist/design-system-v3.umd.cjs +6 -6
  4. package/dist/style.css +1 -1
  5. package/package.json +17 -17
  6. package/src/assets/settings.scss +3 -0
  7. package/src/assets/tokens.scss +16 -16
  8. package/src/components/BackBtn/AccessibiliteItems.ts +0 -30
  9. package/src/components/BackBtn/BackBtn.mdx +1 -1
  10. package/src/components/BackBtn/BackBtn.stories.ts +12 -9
  11. package/src/components/BackBtn/BackBtn.vue +0 -1
  12. package/src/components/BackToTopBtn/AccessibiliteItems.ts +0 -30
  13. package/src/components/BackToTopBtn/BackToTopBtn.mdx +1 -1
  14. package/src/components/BackToTopBtn/BackToTopBtn.stories.ts +3 -3
  15. package/src/components/CollapsibleList/Accessibilite.stories.ts +4 -0
  16. package/src/components/CollapsibleList/AccessibiliteItems.ts +55 -62
  17. package/src/components/CollapsibleList/CollapsibleList.stories.ts +1 -1
  18. package/src/components/CookieBanner/Accessibilite.stories.ts +219 -0
  19. package/src/components/CookieBanner/AccessibiliteItems.ts +356 -0
  20. package/src/components/CookieBanner/CookieBanner.mdx +219 -0
  21. package/src/components/CookieBanner/CookieBanner.stories.ts +680 -0
  22. package/src/components/CookieBanner/CookieBanner.vue +225 -0
  23. package/src/components/CookieBanner/config.ts +38 -0
  24. package/src/components/CookieBanner/locales.ts +12 -0
  25. package/src/components/CookieBanner/tests/CookieBanner.spec.ts +129 -0
  26. package/src/components/CookieBanner/tests/__snapshots__/CookieBanner.spec.ts.snap +197 -0
  27. package/src/components/CookiesSelection/CookiesInformation/CookiesInformation.vue +123 -0
  28. package/src/components/CookiesSelection/CookiesInformation/locales.ts +21 -0
  29. package/src/components/CookiesSelection/CookiesInformation/tests/CookiesInformation.spec.ts +121 -0
  30. package/src/components/CookiesSelection/CookiesSelection.vue +127 -0
  31. package/src/components/CookiesSelection/CookiesTable/CookiesTable.vue +47 -0
  32. package/src/components/CookiesSelection/CookiesTable/headers.ts +14 -0
  33. package/src/components/CookiesSelection/CookiesTable/tests/CookiesTable.spec.ts +30 -0
  34. package/src/components/CookiesSelection/CookiesTable/tests/__snapshots__/CookiesTable.spec.ts.snap +3 -0
  35. package/src/components/CookiesSelection/locales.ts +10 -0
  36. package/src/components/CookiesSelection/tests/CookiesSelection.spec.ts +184 -0
  37. package/src/components/CookiesSelection/tests/__snapshots__/CookiesSelection.spec.ts.snap +192 -0
  38. package/src/components/CookiesSelection/types.ts +15 -0
  39. package/src/components/CopyBtn/AccessibiliteItems.ts +0 -30
  40. package/src/components/CopyBtn/CopyBtn.mdx +1 -1
  41. package/src/components/CopyBtn/CopyBtn.stories.ts +9 -6
  42. package/src/components/CopyBtn/CopyBtn.vue +0 -1
  43. package/src/components/Customs/SyBtnSelect/Accessibilite.mdx +14 -0
  44. package/src/components/Customs/SyBtnSelect/Accessibilite.stories.ts +193 -0
  45. package/src/components/Customs/SyBtnSelect/AccessibiliteItems.ts +139 -0
  46. package/src/components/Customs/SyBtnSelect/SyBtnSelect.mdx +3 -2
  47. package/src/components/Customs/SyBtnSelect/SyBtnSelect.stories.ts +30 -14
  48. package/src/components/Customs/SyBtnSelect/SyBtnSelect.vue +21 -13
  49. package/src/components/Customs/SyBtnSelect/constants/ExpertiseLevelEnum.ts +4 -0
  50. package/src/components/Customs/SyInputSelect/Accessibilite.mdx +14 -0
  51. package/src/components/Customs/SyInputSelect/Accessibilite.stories.ts +166 -0
  52. package/src/components/Customs/SyInputSelect/AccessibiliteItems.ts +96 -0
  53. package/src/components/Customs/SyInputSelect/SyInputSelect.mdx +7 -3
  54. package/src/components/Customs/SyInputSelect/SyInputSelect.stories.ts +24 -65
  55. package/src/components/Customs/SyInputSelect/SyInputSelect.vue +36 -4
  56. package/src/components/Customs/SyInputSelect/constants/ExpertiseLevelEnum.ts +4 -0
  57. package/src/components/Customs/SySelect/Accessibilite.mdx +14 -0
  58. package/src/components/Customs/SySelect/Accessibilite.stories.ts +217 -0
  59. package/src/components/Customs/SySelect/AccessibiliteItems.ts +173 -0
  60. package/src/components/Customs/SySelect/SySelect.mdx +4 -4
  61. package/src/components/Customs/SySelect/SySelect.stories.ts +4 -60
  62. package/src/components/Customs/SySelect/SySelect.vue +35 -8
  63. package/src/components/Customs/SySelect/constants/ExpertiseLevelEnum.ts +4 -0
  64. package/src/components/Customs/SyTextField/Accessibilite.mdx +14 -0
  65. package/src/components/Customs/SyTextField/Accessibilite.stories.ts +224 -0
  66. package/src/components/Customs/SyTextField/AccessibiliteItems.ts +198 -0
  67. package/src/components/Customs/SyTextField/SyTextField.mdx +1 -1
  68. package/src/components/Customs/SyTextField/SyTextField.stories.ts +118 -7
  69. package/src/components/Customs/SyTextField/SyTextField.vue +27 -7
  70. package/src/components/Customs/SyTextField/constants/ExpertiseLevelEnum.ts +4 -0
  71. package/src/components/Customs/SyTextField/tests/__snapshots__/SyTextField.spec.ts.snap +2 -1
  72. package/src/components/DataList/Accessibilite.mdx +14 -0
  73. package/src/components/DataList/Accessibilite.stories.ts +166 -0
  74. package/src/components/DataList/AccessibiliteItems.ts +47 -0
  75. package/src/components/DataList/DataList.mdx +1 -1
  76. package/src/components/DataList/DataList.stories.ts +10 -10
  77. package/src/components/DataList/constants/ExpertiseLevelEnum.ts +4 -0
  78. package/src/components/DataListGroup/Accessibilite.mdx +14 -0
  79. package/src/components/DataListGroup/Accessibilite.stories.ts +225 -0
  80. package/src/components/DataListGroup/AccessibiliteItems.ts +79 -0
  81. package/src/components/DataListGroup/DataListGroup.mdx +1 -1
  82. package/src/components/DataListGroup/DataListGroup.stories.ts +7 -7
  83. package/src/components/DataListGroup/constants/ExpertiseLevelEnum.ts +4 -0
  84. package/src/components/DialogBox/Accessibilite.mdx +14 -0
  85. package/src/components/DialogBox/Accessibilite.stories.ts +189 -0
  86. package/src/components/DialogBox/AccessibiliteItems.ts +167 -0
  87. package/src/components/DialogBox/constants/ExpertiseLevelEnum.ts +4 -0
  88. package/src/components/DownloadBtn/AccessibiliteItems.ts +1 -31
  89. package/src/components/DownloadBtn/DownloadBtn.mdx +5 -6
  90. package/src/components/DownloadBtn/DownloadBtn.stories.ts +25 -26
  91. package/src/components/ErrorPage/Accessibilite.mdx +14 -0
  92. package/src/components/ErrorPage/Accessibilite.stories.ts +189 -0
  93. package/src/components/ErrorPage/AccessibiliteItems.ts +205 -0
  94. package/src/components/ErrorPage/ErrorPage.vue +1 -1
  95. package/src/components/ErrorPage/constants/ExpertiseLevelEnum.ts +4 -0
  96. package/src/components/ErrorPage/tests/__snapshots__/ErrorPage.spec.ts.snap +4 -4
  97. package/src/components/FooterBar/Accessibilite.mdx +14 -0
  98. package/src/components/FooterBar/Accessibilite.stories.ts +223 -0
  99. package/src/components/FooterBar/AccessibiliteItems.ts +257 -0
  100. package/src/components/FooterBar/FooterBar.mdx +2 -2
  101. package/src/components/FooterBar/FooterBar.stories.ts +14 -14
  102. package/src/components/FooterBar/FooterBar.vue +86 -75
  103. package/src/components/FooterBar/constants/ExpertiseLevelEnum.ts +4 -0
  104. package/src/components/FooterBar/tests/__snapshots__/FooterBar.spec.ts.snap +22 -20
  105. package/src/components/FranceConnectBtn/AccessibiliteItems.ts +0 -30
  106. package/src/components/FranceConnectBtn/FranceConnectBtn.mdx +1 -1
  107. package/src/components/FranceConnectBtn/FranceConnectBtn.stories.ts +5 -4
  108. package/src/components/HeaderBar/Accessibilite.mdx +14 -0
  109. package/src/components/HeaderBar/Accessibilite.stories.ts +223 -0
  110. package/src/components/HeaderBar/AccessibiliteItems.ts +194 -0
  111. package/src/components/HeaderBar/HeaderBar.stories.ts +19 -12
  112. package/src/components/HeaderBar/HeaderBar.vue +9 -12
  113. package/src/components/HeaderBar/HeaderBurgerMenu/Accessibilite.mdx +14 -0
  114. package/src/components/HeaderBar/HeaderBurgerMenu/Accessibilite.stories.ts +223 -0
  115. package/src/components/HeaderBar/HeaderBurgerMenu/AccessibiliteItems.ts +174 -0
  116. package/src/components/HeaderBar/HeaderBurgerMenu/HeaderBurgerMenu.vue +1 -0
  117. package/src/components/HeaderBar/HeaderBurgerMenu/constants/ExpertiseLevelEnum.ts +4 -0
  118. package/src/components/HeaderBar/constants/ExpertiseLevelEnum.ts +4 -0
  119. package/src/components/HeaderBar/tests/__snapshots__/HeaderBar.spec.ts.snap +1 -1
  120. package/src/components/HeaderLoading/Accessibilite.mdx +14 -0
  121. package/src/components/HeaderLoading/Accessibilite.stories.ts +167 -0
  122. package/src/components/HeaderLoading/AccessibiliteItems.ts +29 -0
  123. package/src/components/HeaderLoading/HeaderLoading.mdx +1 -1
  124. package/src/components/HeaderLoading/HeaderLoading.stories.ts +1 -1
  125. package/src/components/HeaderLoading/constants/ExpertiseLevelEnum.ts +4 -0
  126. package/src/components/HeaderNavigationBar/HeaderNavigationBar.stories.ts +104 -32
  127. package/src/components/HeaderNavigationBar/HorizontalNavbar/HorizontalNavbar.vue +35 -33
  128. package/src/components/HeaderToolbar/Accessibilite.mdx +14 -0
  129. package/src/components/HeaderToolbar/Accessibilite.stories.ts +203 -0
  130. package/src/components/HeaderToolbar/AccessibiliteItems.ts +200 -0
  131. package/src/components/HeaderToolbar/HeaderToolbar.mdx +1 -1
  132. package/src/components/HeaderToolbar/HeaderToolbar.stories.ts +2 -2
  133. package/src/components/HeaderToolbar/HeaderToolbar.vue +24 -1
  134. package/src/components/HeaderToolbar/constants/ExpertiseLevelEnum.ts +4 -0
  135. package/src/components/LangBtn/Accessibilite.stories.ts +3 -1
  136. package/src/components/LangBtn/AccessibiliteItems.ts +0 -31
  137. package/src/components/LangBtn/LangBtn.mdx +1 -1
  138. package/src/components/LangBtn/LangBtn.stories.ts +4 -4
  139. package/src/components/LangBtn/LangBtn.vue +3 -2
  140. package/src/components/Logo/Accessibilite.mdx +14 -0
  141. package/src/components/Logo/Accessibilite.stories.ts +223 -0
  142. package/src/components/Logo/AccessibiliteItems.ts +155 -0
  143. package/src/components/Logo/Logo.mdx +1 -1
  144. package/src/components/Logo/Logo.stories.ts +8 -8
  145. package/src/components/Logo/constants/ExpertiseLevelEnum.ts +4 -0
  146. package/src/components/LogoBrandSection/Accessibilite.mdx +14 -0
  147. package/src/components/LogoBrandSection/Accessibilite.stories.ts +223 -0
  148. package/src/components/LogoBrandSection/AccessibiliteItems.ts +194 -0
  149. package/src/components/LogoBrandSection/constants/ExpertiseLevelEnum.ts +4 -0
  150. package/src/components/MaintenancePage/Accessibilite.mdx +14 -0
  151. package/src/components/MaintenancePage/Accessibilite.stories.ts +189 -0
  152. package/src/components/MaintenancePage/AccessibiliteItems.ts +173 -0
  153. package/src/components/MaintenancePage/constants/ExpertiseLevelEnum.ts +4 -0
  154. package/src/components/NirField/Accessibilite.mdx +14 -0
  155. package/src/components/NirField/Accessibilite.stories.ts +214 -0
  156. package/src/components/NirField/AccessibiliteItems.ts +243 -0
  157. package/src/components/NirField/NirField.mdx +213 -0
  158. package/src/components/NirField/NirField.stories.ts +412 -0
  159. package/src/components/NirField/NirField.vue +453 -0
  160. package/src/components/NirField/config.ts +16 -0
  161. package/src/components/NirField/constants/ExpertiseLevelEnum.ts +4 -0
  162. package/src/components/NirField/locales.ts +12 -0
  163. package/src/components/NirField/nirValidation.ts +42 -0
  164. package/src/components/NirField/tests/NirField.spec.ts +120 -0
  165. package/src/components/NotFoundPage/Accessibilite.mdx +14 -0
  166. package/src/components/NotFoundPage/Accessibilite.stories.ts +190 -0
  167. package/src/components/NotFoundPage/AccessibiliteItems.ts +205 -0
  168. package/src/components/NotFoundPage/constants/ExpertiseLevelEnum.ts +4 -0
  169. package/src/components/NotFoundPage/tests/__snapshots__/NotFoundPage.spec.ts.snap +4 -4
  170. package/src/components/NotificationBar/AccessibiliteItems.ts +0 -30
  171. package/src/components/NotificationBar/NotificationBar.mdx +1 -1
  172. package/src/components/PageContainer/PageContainer.mdx +1 -1
  173. package/src/components/PageContainer/PageContainer.stories.ts +9 -9
  174. package/src/components/PageContainer/PageContainer.vue +24 -18
  175. package/src/components/PageContainer/tests/PageContainer.spec.ts +2 -2
  176. package/src/components/PageContainer/tests/__snapshots__/PageContainer.spec.ts.snap +2 -2
  177. package/src/components/PhoneField/Accessibilite.mdx +14 -0
  178. package/src/components/PhoneField/Accessibilite.stories.ts +216 -0
  179. package/src/components/PhoneField/AccessibiliteItems.ts +238 -0
  180. package/src/components/PhoneField/PhoneField.mdx +1 -1
  181. package/src/components/PhoneField/PhoneField.stories.ts +2 -2
  182. package/src/components/PhoneField/PhoneField.vue +0 -1
  183. package/src/components/PhoneField/constants/ExpertiseLevelEnum.ts +4 -0
  184. package/src/components/SkipLink/Accessibilite.stories.ts +1 -1
  185. package/src/components/SkipLink/SkipLink.stories.ts +2 -2
  186. package/src/components/SocialMediaLinks/Accessibilite.mdx +14 -0
  187. package/src/components/SocialMediaLinks/Accessibilite.stories.ts +170 -0
  188. package/src/components/SocialMediaLinks/AccessibiliteItems.ts +160 -0
  189. package/src/components/SocialMediaLinks/SocialMediaLinks.mdx +1 -1
  190. package/src/components/SocialMediaLinks/SocialMediaLinks.stories.ts +1 -1
  191. package/src/components/SocialMediaLinks/SocialMediaLinks.vue +7 -1
  192. package/src/components/SocialMediaLinks/constants/ExpertiseLevelEnum.ts +4 -0
  193. package/src/components/SocialMediaLinks/tests/__snapshots__/SocialMediaLinks.spec.ts.snap +2 -2
  194. package/src/components/SubHeader/Accessibilite.mdx +14 -0
  195. package/src/components/SubHeader/Accessibilite.stories.ts +166 -0
  196. package/src/components/SubHeader/AccessibiliteItems.ts +146 -0
  197. package/src/components/SubHeader/SubHeader.mdx +1 -1
  198. package/src/components/SubHeader/SubHeader.stories.ts +17 -14
  199. package/src/components/SubHeader/constants/ExpertiseLevelEnum.ts +4 -0
  200. package/src/components/SyAlert/Accessibilite.mdx +14 -0
  201. package/src/components/{Alert → SyAlert}/Accessibilite.stories.ts +1 -1
  202. package/src/components/{Alert → SyAlert}/AccessibiliteItems.ts +2 -32
  203. package/src/components/{Alert/Alert.mdx → SyAlert/SyAlert.mdx} +9 -9
  204. package/src/components/{Alert/Alert.stories.ts → SyAlert/SyAlert.stories.ts} +22 -22
  205. package/src/components/{Alert/Alert.vue → SyAlert/SyAlert.vue} +7 -0
  206. package/src/components/SyAlert/constants/ExpertiseLevelEnum.ts +4 -0
  207. package/src/components/{Alert/tests/Alert.spec.ts → SyAlert/tests/SyAlert.spec.ts} +5 -5
  208. package/src/components/{Alert/tests/__snapshots__/Alert.spec.ts.snap → SyAlert/tests/__snapshots__/SyAlert.spec.ts.snap} +2 -2
  209. package/src/components/UserMenuBtn/Accessibilite.mdx +14 -0
  210. package/src/components/UserMenuBtn/Accessibilite.stories.ts +189 -0
  211. package/src/components/UserMenuBtn/AccessibiliteItems.ts +155 -0
  212. package/src/components/UserMenuBtn/UserMenuBtn.mdx +17 -17
  213. package/src/components/UserMenuBtn/UserMenuBtn.stories.ts +121 -19
  214. package/src/components/UserMenuBtn/UserMenuBtn.vue +25 -29
  215. package/src/components/UserMenuBtn/config.ts +1 -1
  216. package/src/components/UserMenuBtn/constants/ExpertiseLevelEnum.ts +4 -0
  217. package/src/components/index.ts +11 -4
  218. package/src/composables/rules/tests/useFieldValidation.spec.ts +60 -58
  219. package/src/composables/rules/useFieldValidation.ts +65 -28
  220. package/src/main.ts +1 -0
  221. package/src/stories/GuideDuDev/CommentUtiliserLesRules.mdx +67 -79
  222. package/src/stories/GuideDuDev/components.stories.ts +5 -5
  223. package/src/stories/GuideDuDev/moduleDeNotification.mdx +1 -1
  224. package/src/stories/Guidelines/Vuetify/Vuetify.mdx +11 -0
  225. package/src/stories/Guidelines/Vuetify/Vuetify.stories.ts +138 -0
  226. package/src/stories/Guidelines/Vuetify/VuetifyItems.ts +350 -0
  227. /package/src/components/{Alert → CookieBanner}/Accessibilite.mdx +0 -0
  228. /package/src/components/{Alert → CookieBanner}/constants/ExpertiseLevelEnum.ts +0 -0
  229. /package/src/components/{Alert → SyAlert}/locales.ts +0 -0
@@ -0,0 +1,173 @@
1
+ import { ExpertiseLevelEnum } from './constants/ExpertiseLevelEnum'
2
+
3
+ export const AccessibiliteItemsIndeterminate = [
4
+
5
+ {
6
+ title: 'Catégorie 10 : Présentation de l’information',
7
+ subtitle: '10.1 Dans le site web, des feuilles de styles sont-elles utilisées pour contrôler la présentation de l’information ?',
8
+ items: [
9
+
10
+ {
11
+ 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 ? ',
12
+ link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#10.1.1',
13
+ solution: [{
14
+ info1: '1. Vérifier l’absence des éléments de présentation <basefont>, <big>, <blink>, <center>, <font>, <marquee>, <s>, <strike>, <tt> ; ',
15
+ info2: '2. Vérifier l’absence de l’élément <u> uniquement si le DOCTYPE du document ne correspond pas à HTML 5 ; ',
16
+ info3: '3. Si c’est le cas, le test est validé',
17
+ }],
18
+ expertise: ExpertiseLevelEnum.DEV,
19
+
20
+ },
21
+
22
+ ],
23
+ },
24
+
25
+ {
26
+ title: 'Catégorie 11 : Formulaires',
27
+ subtitle: '11.2 Chaque étiquette associée à un champ de formulaire est-elle pertinente (hors cas particuliers) ? ',
28
+
29
+ items2: [
30
+
31
+ {
32
+
33
+ subtitle: '11.13 La finalité d’un champ de saisie peut-elle être déduite pour faciliter le remplissage automatique des champs avec les données de l’utilisateur ? ',
34
+ precision: '11.13.1 Chaque champ de formulaire dont l’objet se rapporte à une information concernant l’utilisateur vérifie-t-il ces conditions ? '
35
+ + 'Le champ de formulaire possède un attribut autocomplete ; '
36
+ + 'L’attribut autocomplete est pourvu d’une valeur présente dans la liste des valeurs possibles pour l’attribut autocomplete associés à un champ de formulaire ; '
37
+ + 'La valeur indiquée pour l’attribut autocomplete est pertinente au regard du type d’information attendu. ',
38
+ link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#11.13.1',
39
+ solution: [{
40
+ info1: '1. Retrouver dans le document les champs de formulaire qui se rapportent à une information concernant l’utilisateur (nom, prénom, numéro de téléphone, etc.) ; ',
41
+ info2: '2. Pour chaque champ de formulaire, vérifier que : Le champ de formulaire possède un attribut autocomplete ; L’attribut autocomplete est pourvu d’une valeur présente dans la liste des valeurs possibles; La valeur indiquée pour l’attribut autocomplete est pertinente au regard du type d’information attendu.',
42
+ info3: '3. Si c’est le cas pour chaque champ de formulaire retrouvé, le test est validé.',
43
+ }],
44
+ expertise: ExpertiseLevelEnum.DEV,
45
+
46
+ },
47
+
48
+ ],
49
+ items: [
50
+ {
51
+ precision: '11.2.2 Chaque attribut title permet-il de connaître la fonction exacte du champ de formulaire auquel il est associé',
52
+ link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#11.2.2',
53
+ solution: [{
54
+ info1: '1. Retrouver dans le document les champs de formulaire dont l’étiquette est fournie par un attribut title ; ',
55
+ info2: '2. Pour chaque champ de formulaire, vérifier que le contenu de l’attribut est pertinent ; ',
56
+ info3: '3. Si c’est le cas pour chaque champ de formulaire, le test est validé.',
57
+ }],
58
+ expertise: ExpertiseLevelEnum.DEV,
59
+
60
+ },
61
+ {
62
+ precision: '11.2.3 Chaque étiquette implémentée via l’attribut WAI-ARIA aria-label permet-elle de connaître la fonction exacte du champ de formulaire auquel elle est associée ? ',
63
+ link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#11.2.3',
64
+ solution: [{
65
+ info1: '1. Retrouver dans le document les champs de formulaire dont l’étiquette est fournie par un attribut WAI-ARIA aria-label ; ',
66
+ info2: '2. Pour chaque champ de formulaire, vérifier que le contenu de l’attribut est pertinent ; ',
67
+ info3: '3. Si c’est le cas pour chaque champ de formulaire, le test est validé.',
68
+ }],
69
+ expertise: ExpertiseLevelEnum.DEV,
70
+
71
+ },
72
+ {
73
+ precision: '11.2.5 Chaque champ de formulaire ayant un intitulé visible vérifie-t-il ces conditions (hors cas particuliers) ? '
74
+ + 'S’il est présent, le contenu de l’attribut WAI-ARIA aria-label du champ de formulaire contient au moins l’intitulé visible ; '
75
+ + 'S’il est présent, le passage de texte lié au champ de formulaire via un attribut WAI-ARIA aria-labelledby contient au moins l’intitulé visible ; '
76
+ + 'S’il est présent, le contenu de l’attribut title du champ de formulaire contient au moins l’intitulé visible ; '
77
+ + 'S’il est présent le contenu de la balise <label> associé au champ de formulaire contient au moins l’intitulé visible.',
78
+ link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#11.2.5',
79
+ solution: [{
80
+ info1: '1. Retrouver dans le document les champs de formulaire dont l’étiquette est fournie à la fois par un intitulé visible et par le contenu soit d’un élément <label>, soit d’un attribut title ou d’un attribut aria-label ou d’un attribut aria-labelledby ; ',
81
+ info2: '2. Pour chaque champ de formulaire, vérifier que le contenu de l’élément <label> ou de l’attribut title ou de l’attribut aria-label ou de l’attribut aria-labelledby contient l’intitulé visible ; ',
82
+ info3: '3. Si c’est le cas pour chaque champ de formulaire, le test est validé. ',
83
+ }],
84
+ expertise: ExpertiseLevelEnum.DEV,
85
+
86
+ },
87
+ ],
88
+
89
+ },
90
+
91
+ ]
92
+
93
+ export const AccessibiliteItemsValidated = [
94
+ {
95
+ title: 'Catégorie 1 : Images',
96
+ subtitle: '1.2 Chaque image de décoration est-elle correctement ignorée par les technologies d’assistance ?',
97
+ items: [
98
+
99
+ {
100
+ precision: '1.2.4 Chaque image vectorielle (balise <svg>) de décoration, sans légende, vérifie-t-elle ces conditions ?'
101
+ + ' La balise <svg> possède un attribut WAI-ARIA aria-hidden="true" ;'
102
+ + ' La balise <svg> et ses enfants sont dépourvus d’alternative textuelle ;'
103
+ + ' Les balises <title> et <desc> sont absentes ou vides ;'
104
+ + ' La balise <svg> et ses enfants sont dépourvus d’attribut title.',
105
+ link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#1.2.4',
106
+ solution: [{
107
+ info1: '1. Retrouver dans le document les images décoratives dépourvues de légende structurées au moyen d’un élément <svg> ;',
108
+ 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 :'
109
+ + ' Possède un attribut WAI-ARIA aria-hidden="true" ;'
110
+ + ' Et est dépourvu d’alternative textuelle (ainsi que ses éléments enfants) ;'
111
+ + ' Et ne contient pas d’éléments <title> et <desc> à moins que vides de contenu ;'
112
+ + ' Et est dépourvu d’attribut title (ainsi que ses éléments enfants).',
113
+ info3: '3. Si c’est le cas pour chaque image, le test est validé',
114
+ }],
115
+ expertise: ExpertiseLevelEnum.DESIGN,
116
+
117
+ },
118
+
119
+ ],
120
+ },
121
+ {
122
+ title: 'Catégorie 8 : Eléments Obligatoires',
123
+ subtitle: '8.9 Dans chaque page web, les balises ne doivent pas être utilisées uniquement à des fins de présentation',
124
+ items: [
125
+
126
+ {
127
+ 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',
128
+ link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#8.9.1',
129
+ solution: [{
130
+ info1: '1. Retrouver dans le document l’ensemble des éléments sémantiques utilisés à des fins de présentation ;',
131
+ info2: '2. Pour chacun de ces éléments, vérifier que :'
132
+ + 'L’élément est pourvu d’un attribut role=“presentation” ;'
133
+ + 'L’utilisation de cet élément à des fins de présentation reste justifée',
134
+ info3: '3. Si c’est le cas, le test est validé',
135
+ }],
136
+ expertise: ExpertiseLevelEnum.DESIGN,
137
+
138
+ },
139
+
140
+ ],
141
+ },
142
+
143
+ {
144
+ title: 'Catégorie 11 : Formulaires',
145
+ subtitle: '11.1 Chaque champ de formulaire a-t-il une étiquette ',
146
+ items: [
147
+ {
148
+ precision: '11.1.1 Chaque champ de formulaire vérifie-t-il une de ces conditions ? '
149
+ + 'Le champ de formulaire possède un attribut WAI-ARIA aria-labelledby référençant un passage de texte identifié ; '
150
+ + 'Le champ de formulaire possède un attribut WAI-ARIA aria-label ; '
151
+ + 'Une balise <label> ayant un attribut for est associée au champ de formulaire ; '
152
+ + 'Le champ de formulaire possède un attribut title ; '
153
+ + 'Un bouton adjacent au champ de formulaire lui fournit une étiquette visible et un élément <label> visuellement caché ou un attribut WAI-ARIA aria-label, aria-labelledby ou title lui fournit un nom accessible.',
154
+ link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#11.1.1',
155
+ solution: [{
156
+ info1: '1. Retrouver dans le document les champs de formulaire ; ',
157
+ info2: '2. Pour chaque champ de formulaire, vérifier que le champ de formulaire : '
158
+ + 'Possède un attribut WAI-ARIA aria-labelledby référençant un passage de texte identifié ; '
159
+ + 'Possède un attribut WAI-ARIA aria-label ; '
160
+ + 'Est associé à un élément <label> ayant un attribut for ; '
161
+ + 'Possède un attribut title ; '
162
+ + 'Un bouton adjacent au champ de formulaire lui fournit une étiquette visible et un élément <label> visuellement caché ou un attribut WAI-ARIA aria-label, aria-labelledby ou title lui fournit un nom accessible. ',
163
+ info3: '3. Si c’est le cas pour champ de formulaire, le test est validé. ',
164
+ }],
165
+ expertise: ExpertiseLevelEnum.DESIGN,
166
+
167
+ },
168
+
169
+ ],
170
+
171
+ },
172
+
173
+ ]
@@ -5,7 +5,8 @@ import * as SySelectStories from "./SySelect.stories";
5
5
 
6
6
  # SySelect
7
7
 
8
- Le composant `SySelect` est utilisé pour proposer une alternative au `v-select` de Vuetify qui ne respecte pas les règles d'accessibilité RGAA.
8
+ Le composant `SySelect` est utilisé pour proposer une alternative au `v-select` de Vuetify qui ne respecte pas les règles d'accessibilité RGAA.<br/>
9
+ Il est basé sur un `v-textfield`.
9
10
 
10
11
  <Canvas of={SySelectStories.Default} />
11
12
 
@@ -20,7 +21,7 @@ Le composant `SySelect` est utilisé pour proposer une alternative au `v-select`
20
21
  <Source dark code={`
21
22
  <script setup lang="ts">
22
23
  import { ref } from 'vue'
23
- import SySelect from '@cnamts/synapse'
24
+ import { SySelect } from '@cnamts/synapse'
24
25
 
25
26
  const selectedValue = ref(undefined)
26
27
 
@@ -34,11 +35,10 @@ Le composant `SySelect` est utilisé pour proposer une alternative au `v-select`
34
35
  <main class="ma-12">
35
36
  SelectedValue: {{ selectedValue }}
36
37
  <div class="d-flex flex-wrap align-center">
37
- <custom-select
38
+ <SySelect
38
39
  v-model="selectedValue"
39
40
  :items="items"
40
41
  text-key="text"
41
- outlined
42
42
  required
43
43
  />
44
44
  </div>
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/vue3'
2
2
  import SySelect from '@/components/Customs/SySelect/SySelect.vue'
3
3
  import { VBtn, VMenu, VList, VListItem, VListItemTitle } from 'vuetify/components'
4
4
  import { ref } from 'vue'
5
- import Alert from '../../Alert/Alert.vue'
5
+ import SyAlert from '@/components/SyAlert/SyAlert.vue'
6
6
 
7
7
  const meta = {
8
8
  title: 'Composants/Formulaires/SySelect',
@@ -75,60 +75,6 @@ export const Default: Story = {
75
75
  },
76
76
  }
77
77
 
78
- export const Outlined: Story = {
79
- parameters: {
80
- sourceCode: [
81
- {
82
- name: 'Template',
83
- code: `
84
- <template>
85
- <SySelect
86
- v-model="value"
87
- :items="items"
88
- outlined
89
- />
90
- </template>
91
- `,
92
- },
93
- {
94
- name: 'Script',
95
- code: `
96
- <script setup lang="ts">
97
- import SySelect from '@cnamts/SySelect'
98
-
99
- const items = [
100
- { text: 'Option 1', value: '1' },
101
- { text: 'Option 2', value: '2' },
102
- ],
103
- </script>
104
- `,
105
- },
106
- ],
107
- },
108
- args: {
109
- items: [
110
- { text: 'Option 1', value: '1' },
111
- { text: 'Option 2', value: '2' },
112
- ],
113
- },
114
- render: (args) => {
115
- return {
116
- components: { SySelect, VBtn, VMenu, VList, VListItem, VListItemTitle },
117
- setup() {
118
- return { args }
119
- },
120
- template: `
121
- <div class="d-flex flex-wrap align-center pa-4" style="z-index: 99999">
122
- <SySelect
123
- v-bind="args"
124
- outlined
125
- />
126
- </div>
127
- `,
128
- }
129
- },
130
- }
131
-
132
78
  export const Required: Story = {
133
79
  parameters: {
134
80
  sourceCode: [
@@ -269,7 +215,6 @@ export const withCustomKey: Story = {
269
215
  v-model="value"
270
216
  :items="items"
271
217
  text-key="customKey"
272
- outlined
273
218
  />
274
219
  </template>
275
220
  `,
@@ -305,7 +250,6 @@ export const withCustomKey: Story = {
305
250
  <div class="d-flex flex-wrap align-center pa-4">
306
251
  <SySelect
307
252
  v-bind="args"
308
- outlined
309
253
  text-key="customKey"
310
254
  />
311
255
  </div>
@@ -317,12 +261,12 @@ export const withCustomKey: Story = {
317
261
  export const Info: Story = {
318
262
  render: (args) => {
319
263
  return {
320
- components: { Alert },
264
+ components: { SyAlert },
321
265
  setup() {
322
266
  return { args }
323
267
  },
324
268
  template: `
325
- <Alert v-model="args.modelValue" :type="args.type" :variant="tonal" :closable="false">
269
+ <SyAlert v-model="args.modelValue" :type="args.type" :variant="tonal" :closable="false">
326
270
  <template #default>
327
271
  <b>Format des items :</b>
328
272
  <ul>
@@ -330,7 +274,7 @@ export const Info: Story = {
330
274
  <li>- Si les items sont un tableau de string, le composant les utilisera directement.</li>
331
275
  </ul>
332
276
  </template>
333
- </Alert>
277
+ </SyAlert>
334
278
  `,
335
279
  }
336
280
  },
@@ -1,7 +1,6 @@
1
1
  <script setup lang="ts">
2
2
  import { mdiInformation, mdiMenuDown } from '@mdi/js'
3
- import { ref, watch, computed, type PropType } from 'vue'
4
- import { VIcon, VTextField, VList, VListItem, VListItemTitle } from 'vuetify/components'
3
+ import { ref, watch, onMounted, computed, type PropType } from 'vue'
5
4
 
6
5
  const props = defineProps({
7
6
  modelValue: {
@@ -30,7 +29,7 @@
30
29
  },
31
30
  outlined: {
32
31
  type: Boolean,
33
- default: false,
32
+ default: true,
34
33
  },
35
34
  textKey: {
36
35
  type: String,
@@ -48,6 +47,9 @@
48
47
  const selectedItem = ref<Record<string, unknown > | string | null | undefined>(props.modelValue)
49
48
  const hasError = ref(false)
50
49
 
50
+ const labelWidth = ref(0)
51
+ const labelRef = ref<HTMLElement | null>(null)
52
+
51
53
  const toggleMenu = () => {
52
54
  isOpen.value = !isOpen.value
53
55
  }
@@ -93,8 +95,23 @@
93
95
  selectedItem.value = newValue
94
96
  })
95
97
 
96
- watch(isOpen, (newValue) => {
97
- hasError.value = !newValue && !selectedItem.value && isRequired.value
98
+ watch([isOpen, hasError], ([newIsOpen, newHasError]) => {
99
+ if (!newIsOpen) {
100
+ hasError.value = (!selectedItem.value && isRequired.value) || props.errorMessages.length > 0
101
+ }
102
+ else {
103
+ hasError.value = newHasError
104
+ }
105
+ })
106
+
107
+ watch(() => props.errorMessages, (newValue) => {
108
+ hasError.value = newValue.length > 0
109
+ })
110
+
111
+ onMounted(() => {
112
+ if (labelRef.value) {
113
+ labelWidth.value = labelRef.value.offsetWidth + 64
114
+ }
98
115
  })
99
116
 
100
117
  defineExpose({
@@ -120,6 +137,7 @@
120
137
  :variant="outlined ? 'outlined' : 'underlined'"
121
138
  :rules="isRequired ? ['Le champ est requis.'] : []"
122
139
  class="sy-select"
140
+ :style="hasError ? { minWidth: `${labelWidth + 18}px`} : {minWidth: `${labelWidth}px`}"
123
141
  @click="toggleMenu"
124
142
  @keydown.enter.prevent="toggleMenu"
125
143
  @keydown.space.prevent="toggleMenu"
@@ -131,11 +149,15 @@
131
149
  >
132
150
  {{ mdiInformation }}
133
151
  </VIcon>
134
- <VIcon>
152
+ <VIcon class="arrow">
135
153
  {{ mdiMenuDown }}
136
154
  </VIcon>
137
155
  </template>
138
156
  </VTextField>
157
+ <span
158
+ ref="labelRef"
159
+ class="hidden-label"
160
+ >{{ label }}</span>
139
161
  <VList
140
162
  v-if="isOpen"
141
163
  class="v-list"
@@ -166,14 +188,13 @@
166
188
  .sy-select {
167
189
  display: flex;
168
190
  flex-direction: column;
169
- min-width: 225px;
170
191
  }
171
192
 
172
193
  .v-field {
173
194
  position: relative;
174
195
  }
175
196
  .v-field--focused {
176
- .v-icon {
197
+ .v-icon.arrow {
177
198
  transform: rotateX(180deg);
178
199
  }
179
200
  }
@@ -208,4 +229,10 @@
208
229
  :deep(.v-field__input) {
209
230
  color: tokens.$grey-darken-20
210
231
  }
232
+
233
+ .hidden-label {
234
+ visibility: hidden;
235
+ position: absolute;
236
+ white-space: nowrap;
237
+ }
211
238
  </style>
@@ -0,0 +1,4 @@
1
+ export enum ExpertiseLevelEnum {
2
+ DEV = 'dev',
3
+ DESIGN = 'design',
4
+ }
@@ -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,224 @@
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/Formulaires/SyTextField/Accessibilité',
12
+ }
13
+ export const AccessibilitePanel: StoryObj = {
14
+
15
+ render: () => {
16
+ return {
17
+ components: { VExpansionPanels, VExpansionPanel, VExpansionPanelTitle, VExpansionPanelText, VDataTable, VIcon },
18
+
19
+ setup() {
20
+ const icon = checkIcon
21
+
22
+ return { AccessibiliteItemsIndeterminate, AccessibiliteItemsValidated, icon, linkICon, iconEye }
23
+ },
24
+ template: `
25
+ <div class="accessibiliteItems" style="display:flex; max-width: none !important;">
26
+ <v-col cols="6">
27
+ <div style="display:flex; margin-bottom: 10px; justify-content: space-between; align-items: center;">
28
+ <h5>{{ AccessibiliteItemsIndeterminate.length }} critères à prendre en charge par le projet</h5>
29
+ <div style="display: flex; align-items: center;">
30
+ <v-btn variant="tonal" color="red" size="x-small" style="margin: 4px;font-size: 8px;"
31
+ rounded>Tanaguru
32
+ </v-btn>
33
+ </div>
34
+ </div>
35
+
36
+ <v-expansion-panels value="opened" multiple>
37
+ <v-expansion-panel v-for="(item, index) in AccessibiliteItemsIndeterminate" :key="index" style="background-color: rgba(42, 96, 158, 0.1); margin-bottom: 10px;">
38
+ <v-expansion-panel-title>
39
+ <VIcon :icon="iconEye" style="margin-right: 5px; color:#5778b7;"/>
40
+ {{ item.title }}
41
+ </v-expansion-panel-title>
42
+ <v-expansion-panel-text>
43
+ <v-expansion-panels>
44
+ <div v-if="item.items2 && item.items2.length > 0 ">
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
+ </div>
72
+ <v-expansion-panel v-else>
73
+ <v-expansion-panel-title
74
+ style="font-weight: bold; font-size: 13px; line-height: 16px;">
75
+ {{ item.subtitle }}
76
+ </v-expansion-panel-title>
77
+ <v-expansion-panel-text>
78
+ <div v-for="(value, i) in item.items" :key="i">
79
+ <p style="font-size: 13px;line-height: 16px;">
80
+ {{ value.precision }}
81
+ </p>
82
+ <div v-for="element in value.solution"
83
+ style="margin-top:15px; font-size: 13px;line-height: 16px;">
84
+ <p style="font-weight: bold;">Méthodologie du test : <a
85
+ href="value.link" target="blank">
86
+ <VIcon :icon="linkICon"/>
87
+ </a></p>
88
+
89
+ <p>{{ element.info1 }}</p>
90
+ <p>{{ element.info2 }}</p>
91
+ <p>{{ element.info3 }}</p>
92
+
93
+ </div>
94
+ <span style="display:flex; justify-content:center; margin-bottom:5px;">______</span>
95
+ </div>
96
+ </v-expansion-panel-text>
97
+ </v-expansion-panel>
98
+ </v-expansion-panels>
99
+ </v-expansion-panel-text>
100
+ </v-expansion-panel>
101
+ </v-expansion-panels>
102
+ </v-col>
103
+ <v-col cols="6">
104
+ <div style="display:flex; margin-bottom: 10px; justify-content: space-between; align-items: center;">
105
+ <h5>{{ AccessibiliteItemsValidated.length }} critères pris en charge par l'équipe Design System</h5>
106
+ <div style="display: flex; align-items: center;">
107
+ <v-btn variant="tonal" color="red" size="x-small" style="margin: 4px;font-size: 8px;"
108
+ rounded>Tanaguru
109
+ </v-btn>
110
+ </div>
111
+ </div>
112
+ <v-expansion-panels value="opened" multiple>
113
+ <v-expansion-panel
114
+ v-for="(item, index) in AccessibiliteItemsValidated"
115
+ :key="index" style="background-color: rgba(53,135,0,0.1); margin-bottom: 10px;">
116
+ <v-expansion-panel-title>
117
+ <VIcon color="green" :icon="icon" style="margin-right: 5px;"/>
118
+ {{ item.title }}
119
+ </v-expansion-panel-title>
120
+ <v-expansion-panel-text>
121
+ <v-expansion-panels>
122
+
123
+ <v-expansion-panel v-for="(i, index) in item.items2" :key="i" style="margin-bottom: 10px;">
124
+ <v-expansion-panel-title
125
+ style="font-weight: bold; font-size: 13px; line-height: 16px;">
126
+ {{ i.subtitle}}
127
+ </v-expansion-panel-title>
128
+ <v-expansion-panel-text>
129
+ <div>
130
+ <p style="font-size: 13px;line-height: 16px;">
131
+ {{ i.precision }}
132
+ </p>
133
+ <div v-for="(value, index) in i.solution"
134
+ style="margin-top:15px; font-size: 13px;line-height: 16px;">
135
+ <p style="font-weight: bold;">Méthodologie du test : <a
136
+ href="{{i.link}}" target="blank">
137
+ <VIcon :icon="linkICon"/>
138
+ </a></p>
139
+
140
+ <p>{{ value.info1 }}</p>
141
+ <p>{{ value.info2 }}</p>
142
+ <p>{{ value.info3 }}</p>
143
+
144
+ </div>
145
+ <span style="display:flex; justify-content:center; margin-bottom:5px;">______</span>
146
+ </div>
147
+ </v-expansion-panel-text>
148
+ </v-expansion-panel>
149
+
150
+ <v-expansion-panel >
151
+ <v-expansion-panel-title
152
+ style="font-weight: bold; font-size: 13px; line-height: 16px;">
153
+ {{ item.subtitle }}
154
+ </v-expansion-panel-title>
155
+ <v-expansion-panel-text>
156
+ <div v-for="(value, i) in item.items" :key="i">
157
+ <p style="font-size: 13px;line-height: 16px;">
158
+ {{ value.precision }}
159
+ </p>
160
+ <div v-for="element in value.solution"
161
+ style="margin-top:15px; font-size: 13px;line-height: 16px;">
162
+ <p style="font-weight: bold;">Méthodologie du test : <a
163
+ href="value.link" target="blank">
164
+ <VIcon :icon="linkICon"/>
165
+ </a></p>
166
+
167
+ <p>{{ element.info1 }}</p>
168
+ <p>{{ element.info2 }}</p>
169
+ <p>{{ element.info3 }}</p>
170
+
171
+ </div>
172
+ <span style="display:flex; justify-content:center; margin-bottom:5px;">______</span>
173
+ </div>
174
+ </v-expansion-panel-text>
175
+ </v-expansion-panel>
176
+ </v-expansion-panels>
177
+ </v-expansion-panel-text>
178
+ </v-expansion-panel>
179
+ </v-expansion-panels>
180
+ </v-col>
181
+ </div>
182
+ `,
183
+ }
184
+ },
185
+ tags: ['!dev'],
186
+ }
187
+
188
+ export const Legende: StoryObj = {
189
+ args: {
190
+ icon: checkIcon,
191
+ },
192
+ render: (args) => {
193
+ return {
194
+ components: { VIcon },
195
+ setup() {
196
+ return { args }
197
+ },
198
+ template: `
199
+ <p style="color: grey;font-size: 11px; margin-bottom: 12px;">Date de conception: 20/11/2024</p>
200
+ <div>
201
+ <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>
202
+ <p style="margin-bottom: 12px;font-weight:bold;">Pour rappel le composant seul ne garantie pas
203
+ l'accessibilité du site.</p>
204
+ <div style="font-size: 14px">
205
+ <p>Nous avons deux façons de relever les problèmes d'accessibilité des composants :</p>
206
+ <div>
207
+ <v-btn variant="tonal" color="grey" size="x-small" style="margin: 2px;font-size: 8px;" rounded>
208
+ Audit
209
+ </v-btn>
210
+ Problèmes relevés par le projet
211
+ </div>
212
+ <div>
213
+ <v-btn variant="tonal" color="red" size="x-small" style="margin: 2px;font-size: 8px;" rounded>
214
+ Tanaguru
215
+ </v-btn>
216
+ Problèmes relevés par Tanaguru
217
+ </div>
218
+ </div>
219
+ </div>
220
+ `,
221
+ }
222
+ },
223
+ tags: ['!dev'],
224
+ }