@cnamts/synapse 1.0.20 → 1.0.21

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 (135) hide show
  1. package/dist/{DateFilter-XURUmpMl.js → DateFilter-uN8OURoP.js} +1 -1
  2. package/dist/{NumberFilter-BZc0O8wV.js → NumberFilter-sm1dQNQi.js} +1 -1
  3. package/dist/{PeriodFilter-ZNdXcl3p.js → PeriodFilter-Cklsxnh9.js} +1 -1
  4. package/dist/{SelectFilter-DshYU5OK.js → SelectFilter-CWefj27Z.js} +1 -1
  5. package/dist/{TextFilter-D_c5dRPl.js → TextFilter-Ddyj885L.js} +1 -1
  6. package/dist/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.d.ts +160 -0
  7. package/dist/components/Customs/SyCheckBoxGroup/locales.d.ts +3 -0
  8. package/dist/components/Customs/SyCheckBoxGroup/types.d.ts +10 -0
  9. package/dist/components/Customs/SyCheckbox/SyCheckbox.d.ts +1545 -2
  10. package/dist/components/Customs/SyRadioGroup/SyRadioGroup.d.ts +1495 -2
  11. package/dist/components/DeclarationAccessibilityPage/DeclarationAccessibilityPage.d.ts +60 -0
  12. package/dist/components/ErrorPage/ErrorPage.d.ts +1 -12
  13. package/dist/components/ErrorPage/locales.d.ts +18 -3
  14. package/dist/components/FileUpload/FileUpload.d.ts +2 -0
  15. package/dist/components/MaintenancePage/locales.d.ts +18 -2
  16. package/dist/components/NotFoundPage/locales.d.ts +20 -4
  17. package/dist/components/StatusPage/StatusPage.d.ts +39 -0
  18. package/dist/components/UploadWorkflow/UploadWorkflow.d.ts +13 -3
  19. package/dist/components/index.d.ts +3 -0
  20. package/dist/design-system-v3.js +126 -123
  21. package/dist/design-system-v3.umd.cjs +163 -163
  22. package/dist/{main-CuI6xaPq.js → main-CWniLr0s.js} +15191 -14668
  23. package/dist/style.css +1 -1
  24. package/dist/utils/theme/index.d.ts +6 -0
  25. package/package.json +7 -4
  26. package/src/components/ContextualMenu/ContextualMenu.stories.ts +0 -3
  27. package/src/components/ContextualMenu/accessibilite/Accessibility.mdx +67 -11
  28. package/src/components/CookieBanner/CookieBanner.stories.ts +11 -20
  29. package/src/components/CookieBanner/CookieBanner.vue +20 -5
  30. package/src/components/CookieBanner/accessibilite/Accessibility.mdx +67 -11
  31. package/src/components/CookieBanner/tests/CookieBanner.spec.ts +48 -4
  32. package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.mdx +32 -0
  33. package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.stories.ts +856 -0
  34. package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.vue +334 -0
  35. package/src/components/Customs/SyCheckBoxGroup/accessibilite/Accessibility.mdx +243 -0
  36. package/src/components/Customs/SyCheckBoxGroup/locales.ts +3 -0
  37. package/src/components/Customs/SyCheckBoxGroup/tests/SyCheckBoxGroup.a11y.spec.ts +30 -0
  38. package/src/components/Customs/SyCheckBoxGroup/tests/SyCheckBoxGroup.spec.ts +152 -0
  39. package/src/components/Customs/SyCheckBoxGroup/types.ts +10 -0
  40. package/src/components/Customs/SyCheckbox/SyCheckbox.vue +16 -27
  41. package/src/components/Customs/SyCheckbox/accessibilite/Accessibility.mdx +1 -1
  42. package/src/components/Customs/SyForm/SyForm.a11y.spec.ts +1 -1
  43. package/src/components/Customs/SyRadioGroup/SyRadioGroup.vue +16 -43
  44. package/src/components/DatePicker/CalendarMode/DatePicker.vue +35 -11
  45. package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.stories.ts +43 -2
  46. package/src/components/DatePicker/DateTextInput/DateTextInput.vue +48 -21
  47. package/src/components/DatePicker/DateTextInput/NoCalendar.stories.ts +98 -0
  48. package/src/components/DeclarationAccessibilityPage/DeclarationAccessibilityPage.mdx +83 -0
  49. package/src/components/DeclarationAccessibilityPage/DeclarationAccessibilityPage.stories.ts +502 -0
  50. package/src/components/DeclarationAccessibilityPage/DeclarationAccessibilityPage.vue +428 -0
  51. package/src/components/DeclarationAccessibilityPage/accessibilite/Accessibility.mdx +75 -0
  52. package/src/components/DeclarationAccessibilityPage/tests/DeclarationAccessibilityPage.a11y.spec.ts +53 -0
  53. package/src/components/DeclarationAccessibilityPage/tests/DeclarationAccessibilityPage.spec.ts +59 -0
  54. package/src/components/DiacriticPicker/DiacriticPicker.vue +20 -1
  55. package/src/components/ErrorPage/ErrorPage.mdx +6 -16
  56. package/src/components/ErrorPage/ErrorPage.stories.ts +16 -87
  57. package/src/components/ErrorPage/ErrorPage.vue +38 -125
  58. package/src/components/ErrorPage/accessibilite/Accessibility.mdx +68 -6
  59. package/src/components/ErrorPage/assets/error-ap.svg +1774 -0
  60. package/src/components/ErrorPage/locales.ts +21 -3
  61. package/src/components/ErrorPage/tests/ErrorPage.a11y.spec.ts +5 -13
  62. package/src/components/ErrorPage/tests/ErrorPage.spec.ts +2 -41
  63. package/src/components/ErrorPage/tests/__snapshots__/ErrorPage.spec.ts.snap +8 -266
  64. package/src/components/FileUpload/FileUpload.vue +5 -0
  65. package/src/components/FooterBar/FooterBar.stories.ts +18 -14
  66. package/src/components/FooterBar/defaultSocialMediaLinks.ts +6 -4
  67. package/src/components/MaintenancePage/MaintenancePage.mdx +1 -1
  68. package/src/components/MaintenancePage/MaintenancePage.vue +15 -7
  69. package/src/components/MaintenancePage/accessibilite/Accessibility.mdx +61 -6
  70. package/src/components/MaintenancePage/assets/maintenance-ap.svg +1718 -0
  71. package/src/components/MaintenancePage/locales.ts +24 -3
  72. package/src/components/MaintenancePage/tests/MaintenancePage.a11y.spec.ts +75 -3
  73. package/src/components/MaintenancePage/tests/MaintenancePage.spec.ts +42 -2
  74. package/src/components/MaintenancePage/tests/__snapshots__/MaintenancePage.spec.ts.snap +3 -2
  75. package/src/components/NotFoundPage/NotFoundPage.mdx +1 -1
  76. package/src/components/NotFoundPage/NotFoundPage.stories.ts +3 -3
  77. package/src/components/NotFoundPage/NotFoundPage.vue +16 -11
  78. package/src/components/NotFoundPage/accessibilite/Accessibility.mdx +78 -6
  79. package/src/components/NotFoundPage/assets/not-found-ap.svg +2061 -0
  80. package/src/components/NotFoundPage/locales.ts +24 -4
  81. package/src/components/NotFoundPage/tests/NotFoundPage.a11y.spec.ts +168 -4
  82. package/src/components/NotFoundPage/tests/NotFoundPage.spec.ts +100 -12
  83. package/src/components/NotFoundPage/tests/__snapshots__/NotFoundPage.spec.ts.snap +2 -2
  84. package/src/components/NotificationBar/NotificationBar.mdx +2 -2
  85. package/src/components/NotificationBar/accessibilite/Accessibility.mdx +68 -8
  86. package/src/components/PageContainer/tests/PageContainer.a11y.spec.ts +14 -7
  87. package/src/components/PhoneField/PhoneField.stories.ts +46 -38
  88. package/src/components/SocialMediaLinks/DefaultSocialMediaLinks.ts +6 -4
  89. package/src/components/SocialMediaLinks/SocialMediaLinks.mdx +7 -5
  90. package/src/components/SocialMediaLinks/SocialMediaLinks.stories.ts +17 -13
  91. package/src/components/SocialMediaLinks/SocialMediaLinks.vue +9 -1
  92. package/src/components/SocialMediaLinks/accessibilite/Accessibility.mdx +63 -11
  93. package/src/components/SocialMediaLinks/tests/DefaultSocialMediaLinks.spec.ts +5 -5
  94. package/src/components/SocialMediaLinks/tests/SocialMediaLinks.a11y.spec.ts +59 -0
  95. package/src/components/SocialMediaLinks/tests/SocialMediaLinks.spec.ts +9 -7
  96. package/src/components/StatusPage/StatusPage.mdx +22 -0
  97. package/src/components/StatusPage/StatusPage.stories.ts +193 -0
  98. package/src/components/StatusPage/StatusPage.vue +145 -0
  99. package/src/components/StatusPage/accessibilite/Accessibility.mdx +81 -0
  100. package/src/components/StatusPage/tests/StatusPage.a11y.spec.ts +29 -0
  101. package/src/components/StatusPage/tests/StatusPage.spec.ts +50 -0
  102. package/src/components/StatusPage/tests/__snapshots__/StatusPage.spec.ts.snap +270 -0
  103. package/src/components/TableToolbar/TableToolbar.stories.ts +6 -6
  104. package/src/components/TableToolbar/TableToolbar.vue +1 -1
  105. package/src/components/TableToolbar/tests/__snapshots__/TableToolbar.spec.ts.snap +0 -5
  106. package/src/components/UploadWorkflow/UploadWorkflow.mdx +11 -1
  107. package/src/components/UploadWorkflow/UploadWorkflow.stories.ts +107 -3
  108. package/src/components/UploadWorkflow/UploadWorkflow.vue +35 -24
  109. package/src/components/UploadWorkflow/tests/UploadWorkflow.spec.ts +48 -0
  110. package/src/components/UploadWorkflow/tests/__snapshots__/UploadWorkflow.spec.ts.snap +9 -5
  111. package/src/components/UploadWorkflow/useFileList.ts +7 -0
  112. package/src/components/index.ts +3 -0
  113. package/src/composables/rules/tests/useFieldValidation.spec.ts +39 -3
  114. package/src/composables/rules/useFieldValidation.ts +24 -9
  115. package/src/stories/Accessibilite/KitDePreAudit/Preaudit.mdx +7 -0
  116. package/src/utils/theme/index.ts +19 -0
  117. package/src/utils/theme/tests/useThemeLocales.spec.ts +245 -0
  118. package/dist/components/MaintenancePage/index.d.ts +0 -2
  119. package/src/components/Customs/SyPagination/tests/SyPagination.a11y.spec.ts +0 -27
  120. package/src/components/Customs/SyTabs/tests/SyTabs.a11y.spec.ts +0 -51
  121. package/src/components/DataListItem/tests/DataListItem.a11y.spec.ts +0 -31
  122. package/src/components/DatePicker/CalendarMode/tests/DatePicker.a11y.spec.ts +0 -27
  123. package/src/components/DatePicker/ComplexDatePicker/tests/ComplexDatePicker.a11y.spec.ts +0 -26
  124. package/src/components/DatePicker/DateTextInput/tests/DateTextInput.a11y.spec.ts +0 -27
  125. package/src/components/DownloadBtn/tests/DownloadBtn.a11y.spec.ts +0 -26
  126. package/src/components/ExternalLinks/tests/ExternalLinks.a11y.spec.ts +0 -39
  127. package/src/components/HeaderNavigationBar/tests/HeaderNavigationBar.a11y.spec.ts +0 -45
  128. package/src/components/HeaderToolbar/tests/HeaderToolbar.a11y.spec.ts +0 -25
  129. package/src/components/LunarCalendar/tests/LunarCalendar.a11y.spec.ts +0 -31
  130. package/src/components/MaintenancePage/index.ts +0 -3
  131. package/src/components/PageContainer/Accessibilite/AccessibilityGuide.mdx +0 -0
  132. package/src/components/PaginatedTable/tests/PaginatedTable.a11y.spec.ts +0 -43
  133. package/src/components/PhoneField/tests/PhoneField.a11y.spec.ts +0 -34
  134. /package/src/components/NotFoundPage/assets/{not-found.svg → not-found-cnam.svg} +0 -0
  135. /package/src/components/PageContainer/{Accessibilite → accessibilite}/Accessibility.mdx +0 -0
@@ -0,0 +1,502 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3'
2
+
3
+ import DeclarationAccessibilityPage from './DeclarationAccessibilityPage.vue'
4
+
5
+ const meta = {
6
+ title: 'Templates/DeclarationAccessibilityPage',
7
+ component: DeclarationAccessibilityPage,
8
+ parameters: {
9
+ layout: 'fullscreen',
10
+ docsOnly: true,
11
+ },
12
+ argTypes: {
13
+ entityName: {
14
+ control: 'text',
15
+ description: 'Nom de l\'entité responsable',
16
+ table: {
17
+ type: {
18
+ summary: 'string',
19
+ },
20
+ defaultValue: {
21
+ summary: '',
22
+ },
23
+ },
24
+ },
25
+ schemaUrl: {
26
+ control: 'text',
27
+ description: 'URL du schéma pluriannuel d\'accessibilité',
28
+ table: {
29
+ type: {
30
+ summary: 'string',
31
+ },
32
+ defaultValue: {
33
+ summary: '',
34
+ },
35
+ },
36
+ },
37
+ actionsRealisedUrl: {
38
+ control: 'text',
39
+ description: 'URL des actions réalisées',
40
+ table: {
41
+ type: {
42
+ summary: 'string',
43
+ },
44
+ defaultValue: {
45
+ summary: '',
46
+ },
47
+ },
48
+ },
49
+ schemaUrlLabel: {
50
+ control: 'text',
51
+ description: 'Label pour le lien du schéma pluriannuel',
52
+ table: {
53
+ type: {
54
+ summary: 'string',
55
+ },
56
+ defaultValue: {
57
+ summary: 'Schéma pluriannuel de mise en accessibilité',
58
+ },
59
+ },
60
+ },
61
+ actionsRealisedUrlLabel: {
62
+ control: 'text',
63
+ description: 'Label pour le lien des actions réalisées',
64
+ table: {
65
+ type: {
66
+ summary: 'string',
67
+ },
68
+ defaultValue: {
69
+ summary: 'Actions réalisées',
70
+ },
71
+ },
72
+ },
73
+ planActionsUrl: {
74
+ control: 'text',
75
+ description: 'URL du plan d\'actions',
76
+ table: {
77
+ type: {
78
+ summary: 'string',
79
+ },
80
+ defaultValue: {
81
+ summary: '',
82
+ },
83
+ },
84
+ },
85
+ planActionsUrlLabel: {
86
+ control: 'text',
87
+ description: 'Label pour le lien du plan d\'actions',
88
+ table: {
89
+ type: {
90
+ summary: 'string',
91
+ },
92
+ defaultValue: {
93
+ summary: 'Plan d\'actions',
94
+ },
95
+ },
96
+ },
97
+ siteName: {
98
+ control: 'text',
99
+ description: 'Nom du site',
100
+ table: {
101
+ type: {
102
+ summary: 'string',
103
+ },
104
+ },
105
+ },
106
+ siteUrl: {
107
+ control: 'text',
108
+ description: 'URL du site',
109
+ table: {
110
+ type: {
111
+ summary: 'string',
112
+ },
113
+ },
114
+ },
115
+ contactEmail: {
116
+ control: 'text',
117
+ description: 'Email de contact',
118
+ table: {
119
+ type: {
120
+ summary: 'string',
121
+ },
122
+ },
123
+ },
124
+ contactPhone: {
125
+ control: 'text',
126
+ description: 'Téléphone de contact',
127
+ table: {
128
+ type: {
129
+ summary: 'string',
130
+ },
131
+ defaultValue: {
132
+ summary: '',
133
+ },
134
+ },
135
+ },
136
+ auditEntity: {
137
+ control: 'text',
138
+ description: 'Entité qui a réalisé l\'audit',
139
+ table: {
140
+ type: {
141
+ summary: 'string',
142
+ },
143
+ defaultValue: {
144
+ summary: '',
145
+ },
146
+ },
147
+ },
148
+ overallComplianceRate: {
149
+ control: { type: 'number', min: 0, max: 100 },
150
+ description: 'Pourcentage des critères RGAA respectés',
151
+ table: {
152
+ type: {
153
+ summary: 'number',
154
+ },
155
+ defaultValue: {
156
+ summary: 'null',
157
+ },
158
+ },
159
+ },
160
+ auditGridUrl: {
161
+ control: 'text',
162
+ description: 'URL de la grille d\'audit RGAA',
163
+ table: {
164
+ type: {
165
+ summary: 'string',
166
+ },
167
+ defaultValue: {
168
+ summary: '',
169
+ },
170
+ },
171
+ },
172
+ nonConformities: {
173
+ control: 'object',
174
+ description: 'Liste des non-conformités',
175
+ table: {
176
+ type: {
177
+ summary: 'array',
178
+ },
179
+ defaultValue: {
180
+ summary: '[]',
181
+ },
182
+ },
183
+ },
184
+ exemptions: {
185
+ control: 'object',
186
+ description: 'Liste des dérogations pour charge disproportionnée',
187
+ table: {
188
+ type: {
189
+ summary: 'array',
190
+ },
191
+ defaultValue: {
192
+ summary: '[]',
193
+ },
194
+ },
195
+ },
196
+ nonObligatoryContents: {
197
+ control: 'object',
198
+ description: 'Liste des contenus non soumis à l\'obligation d\'accessibilité',
199
+ table: {
200
+ type: {
201
+ summary: 'array',
202
+ },
203
+ defaultValue: {
204
+ summary: '[]',
205
+ },
206
+ },
207
+ },
208
+ // Établissement de la déclaration
209
+ declarationDate: {
210
+ control: 'text',
211
+ description: 'Date d\'établissement de la déclaration',
212
+ table: {
213
+ type: {
214
+ summary: 'string',
215
+ },
216
+ defaultValue: {
217
+ summary: '',
218
+ },
219
+ },
220
+ },
221
+ updateDate: {
222
+ control: 'text',
223
+ description: 'Date de mise à jour de la déclaration',
224
+ table: {
225
+ type: {
226
+ summary: 'string',
227
+ },
228
+ defaultValue: {
229
+ summary: '',
230
+ },
231
+ },
232
+ },
233
+ technologies: {
234
+ control: 'object',
235
+ description: 'Technologies utilisées pour la réalisation du site',
236
+ table: {
237
+ type: {
238
+ summary: 'array',
239
+ },
240
+ defaultValue: {
241
+ summary: '[]',
242
+ },
243
+ },
244
+ },
245
+ testEnvironments: {
246
+ control: 'object',
247
+ description: 'Environnements de test utilisés',
248
+ table: {
249
+ type: {
250
+ summary: 'array',
251
+ },
252
+ defaultValue: {
253
+ summary: '[]',
254
+ },
255
+ },
256
+ },
257
+ accessibilityTools: {
258
+ control: 'object',
259
+ description: 'Outils utilisés pour évaluer l\'accessibilité',
260
+ table: {
261
+ type: {
262
+ summary: 'array',
263
+ },
264
+ defaultValue: {
265
+ summary: '[]',
266
+ },
267
+ },
268
+ },
269
+ verifiedPages: {
270
+ control: 'object',
271
+ description: 'Pages du site ayant fait l\'objet de la vérification',
272
+ table: {
273
+ type: {
274
+ summary: 'array',
275
+ },
276
+ defaultValue: {
277
+ summary: '[]',
278
+ },
279
+ },
280
+ },
281
+ },
282
+ } as Meta<typeof DeclarationAccessibilityPage>
283
+
284
+ export default meta
285
+
286
+ type Story = StoryObj<typeof DeclarationAccessibilityPage>
287
+
288
+ export const Default: Story = {
289
+ parameters: {
290
+ sourceCode: [
291
+ {
292
+ language: 'vue',
293
+ code: `<DeclarationAccessibilityPage
294
+ entityName="Assurance Maladie"
295
+ siteName="ameli.fr"
296
+ siteUrl="https://www.ameli.fr"
297
+ contactEmail="accessibilite@ameli.fr"
298
+ contactPhone="01 23 45 67 89"
299
+ schemaUrl="#"
300
+ actionsRealisedUrl="#"
301
+ planActionsUrl="#"
302
+ />`,
303
+ },
304
+ ],
305
+ },
306
+ args: {
307
+ entityName: 'Assurance Maladie',
308
+ siteName: 'ameli.fr',
309
+ siteUrl: 'https://www.ameli.fr',
310
+ contactEmail: 'accessibilite@ameli.fr',
311
+ contactPhone: '01 23 45 67 89',
312
+ schemaUrl: '#',
313
+ actionsRealisedUrl: '#',
314
+ planActionsUrl: '#',
315
+ },
316
+ }
317
+
318
+ export const SimpleCase: Story = {
319
+ parameters: {
320
+ sourceCode: [
321
+ {
322
+ language: 'vue',
323
+ code: `<DeclarationAccessibilityPage
324
+ entityName="CPAM de Paris"
325
+ siteName="Mon Espace Santé"
326
+ siteUrl="https://www.mon-espace-sante.fr"
327
+ contactEmail="accessibilite@mon-espace-sante.fr"
328
+ contactPhone="01 23 45 67 89"
329
+ />`,
330
+ },
331
+ ],
332
+ },
333
+ args: {
334
+ entityName: 'CPAM de Paris',
335
+ siteName: 'Mon Espace Santé',
336
+ siteUrl: 'https://www.mon-espace-sante.fr',
337
+ contactEmail: 'accessibilite@mon-espace-sante.fr',
338
+ contactPhone: '01 23 45 67 89',
339
+ },
340
+ }
341
+
342
+ export const WithAccessibilityPlan: Story = {
343
+ parameters: {
344
+ sourceCode: [
345
+ {
346
+ language: 'vue',
347
+ code: `<DeclarationAccessibilityPage
348
+ entityName="CPAM de Paris"
349
+ siteName="Mon Espace Santé"
350
+ siteUrl="https://www.mon-espace-sante.fr"
351
+ contactEmail="accessibilite@mon-espace-sante.fr"
352
+ contactPhone="01 23 45 67 89"
353
+ schemaUrl="#"
354
+ schemaUrlLabel="Schéma pluriannuel 2022-2024"
355
+ actionsRealisedUrl="#"
356
+ actionsRealisedUrlLabel="Actions réalisées en 2022"
357
+ planActionsUrl="#"
358
+ planActionsUrlLabel="Plan d'actions 2023"
359
+ />`,
360
+ },
361
+ ],
362
+ },
363
+ args: {
364
+ entityName: 'CPAM de Paris',
365
+ siteName: 'Mon Espace Santé',
366
+ siteUrl: 'https://www.mon-espace-sante.fr',
367
+ contactEmail: 'accessibilite@mon-espace-sante.fr',
368
+ contactPhone: '01 23 45 67 89',
369
+ schemaUrl: '#',
370
+ schemaUrlLabel: 'Schéma pluriannuel 2022-2024',
371
+ actionsRealisedUrl: '#',
372
+ actionsRealisedUrlLabel: 'Actions réalisées en 2022',
373
+ planActionsUrl: '#',
374
+ planActionsUrlLabel: 'Plan d\'actions 2023',
375
+ },
376
+ }
377
+
378
+ export const WithNonConformities: Story = {
379
+ parameters: {
380
+ sourceCode: [
381
+ {
382
+ language: 'vue',
383
+ code: `<DeclarationAccessibilityPage
384
+ entityName="CPAM de Paris"
385
+ siteName="Mon Espace Santé"
386
+ siteUrl="https://www.mon-espace-sante.fr"
387
+ contactEmail="accessibilite@mon-espace-sante.fr"
388
+ contactPhone="01 23 45 67 89"
389
+ :nonConformities="[
390
+ 'Les formulaires de contact ne possèdent pas d\\'étiquettes correctement associées aux champs. Cette erreur sera corrigée avant le 30 septembre 2023.',
391
+ 'Certaines images informatives n\\'ont pas d\\'alternative textuelle. Cette erreur sera corrigée avant le 31 décembre 2023.'
392
+ ]"
393
+ />`,
394
+ },
395
+ ],
396
+ },
397
+ args: {
398
+ entityName: 'CPAM de Paris',
399
+ siteName: 'Mon Espace Santé',
400
+ siteUrl: 'https://www.mon-espace-sante.fr',
401
+ contactEmail: 'accessibilite@mon-espace-sante.fr',
402
+ contactPhone: '01 23 45 67 89',
403
+ nonConformities: [
404
+ 'Les formulaires de contact ne possèdent pas d\'étiquettes correctement associées aux champs. Cette erreur sera corrigée avant le 30 septembre 2023.',
405
+ 'Certaines images informatives n\'ont pas d\'alternative textuelle. Cette erreur sera corrigée avant le 31 décembre 2023.',
406
+ ],
407
+ },
408
+ }
409
+
410
+ export const WithExemptions: Story = {
411
+ parameters: {
412
+ sourceCode: [
413
+ {
414
+ language: 'vue',
415
+ code: `<DeclarationAccessibilityPage
416
+ entityName="CPAM de Paris"
417
+ siteName="Mon Espace Santé"
418
+ siteUrl="https://www.mon-espace-sante.fr"
419
+ :averageComplianceRate="75"
420
+ contactEmail="accessibilite@mon-espace-sante.fr"
421
+ contactPhone="01 23 45 67 89"
422
+ :exemptions="[
423
+ 'Les documents PDF archivés antérieurs à 2020 ne sont pas accessibles. Il est possible d\\'en demander une version accessible par email.',
424
+ 'Les cartes interactives de localisation des agences ne sont pas totalement accessibles, mais les informations sont disponibles sous forme de liste textuelle.'
425
+ ]"
426
+ />`,
427
+ },
428
+ ],
429
+ },
430
+ args: {
431
+ entityName: 'CPAM de Paris',
432
+ siteName: 'Mon Espace Santé',
433
+ siteUrl: 'https://www.mon-espace-sante.fr',
434
+ averageComplianceRate: 75,
435
+ contactEmail: 'accessibilite@mon-espace-sante.fr',
436
+ contactPhone: '01 23 45 67 89',
437
+ exemptions: [
438
+ 'Les documents PDF archivés antérieurs à 2020 ne sont pas accessibles. Il est possible d\'en demander une version accessible par email.',
439
+ 'Les cartes interactives de localisation des agences ne sont pas totalement accessibles, mais les informations sont disponibles sous forme de liste textuelle.',
440
+ ],
441
+ },
442
+ }
443
+
444
+ export const WithTestsEnvironement: Story = {
445
+ parameters: {
446
+ sourceCode: [
447
+ {
448
+ language: 'vue',
449
+ code: `<DeclarationAccessibilityPage
450
+ entityName="CPAM de Paris"
451
+ siteName="Mon Espace Santé"
452
+ siteUrl="https://www.mon-espace-sante.fr"
453
+ :averageComplianceRate="75"
454
+ contactEmail="accessibilite@mon-espace-sante.fr"
455
+ contactPhone="01 23 45 67 89"
456
+ :technologies="[
457
+ 'HTML5',
458
+ 'CSS3',
459
+ 'JavaScript',
460
+ 'Vue.js'
461
+ ]"
462
+ :testEnvironments="[
463
+ 'Firefox 115 avec NVDA 2023.1',
464
+ 'Chrome 114 avec JAWS 2023',
465
+ 'Safari 16 avec VoiceOver'
466
+ ]"
467
+ :accessibilityTools="[
468
+ 'Axe DevTools',
469
+ 'Wave',
470
+ 'Contrast Checker',
471
+ 'Keyboard Navigation Test'
472
+ ]"
473
+ />`,
474
+ },
475
+ ],
476
+ },
477
+ args: {
478
+ entityName: 'CPAM de Paris',
479
+ siteName: 'Mon Espace Santé',
480
+ siteUrl: 'https://www.mon-espace-sante.fr',
481
+ averageComplianceRate: 75,
482
+ contactEmail: 'accessibilite@mon-espace-sante.fr',
483
+ contactPhone: '01 23 45 67 89',
484
+ technologies: [
485
+ 'HTML5',
486
+ 'CSS3',
487
+ 'JavaScript',
488
+ 'Vue.js',
489
+ ],
490
+ testEnvironments: [
491
+ 'Firefox 115 avec NVDA 2023.1',
492
+ 'Chrome 114 avec JAWS 2023',
493
+ 'Safari 16 avec VoiceOver',
494
+ ],
495
+ accessibilityTools: [
496
+ 'Axe DevTools',
497
+ 'Wave',
498
+ 'Contrast Checker',
499
+ 'Keyboard Navigation Test',
500
+ ],
501
+ },
502
+ }