@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,190 @@
|
|
|
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: 'Templates/NotFoundPage/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
|
+
<p>{{ value.info1 }}</p>
|
|
62
|
+
<p>{{ value.info2 }}</p>
|
|
63
|
+
<p>{{ value.info3 }}</p>
|
|
64
|
+
</div>
|
|
65
|
+
<span style="display:flex; justify-content:center; margin-bottom:5px;">______</span>
|
|
66
|
+
</div>
|
|
67
|
+
</v-expansion-panel-text>
|
|
68
|
+
</v-expansion-panel>
|
|
69
|
+
<v-expansion-panel >
|
|
70
|
+
<v-expansion-panel-title
|
|
71
|
+
style="font-weight: bold; font-size: 13px; line-height: 16px;">
|
|
72
|
+
{{ item.subtitle }}
|
|
73
|
+
</v-expansion-panel-title>
|
|
74
|
+
<v-expansion-panel-text>
|
|
75
|
+
<div v-for="(value, i) in item.items" :key="i">
|
|
76
|
+
<p style="font-size: 13px;line-height: 16px;">
|
|
77
|
+
{{ value.precision }}
|
|
78
|
+
</p>
|
|
79
|
+
<div v-for="element in value.solution"
|
|
80
|
+
style="margin-top:15px; font-size: 13px;line-height: 16px;">
|
|
81
|
+
<p style="font-weight: bold;">Méthodologie du test : <a
|
|
82
|
+
href="value.link" target="blank">
|
|
83
|
+
<VIcon :icon="linkICon"/>
|
|
84
|
+
</a></p>
|
|
85
|
+
<p>{{ element.info1 }}</p>
|
|
86
|
+
<p>{{ element.info2 }}</p>
|
|
87
|
+
<p>{{ element.info3 }}</p>
|
|
88
|
+
|
|
89
|
+
</div>
|
|
90
|
+
<span style="display:flex; justify-content:center; margin-bottom:5px;">______</span>
|
|
91
|
+
</div>
|
|
92
|
+
</v-expansion-panel-text>
|
|
93
|
+
</v-expansion-panel>
|
|
94
|
+
</v-expansion-panels>
|
|
95
|
+
</v-expansion-panel-text>
|
|
96
|
+
</v-expansion-panel>
|
|
97
|
+
</v-expansion-panels>
|
|
98
|
+
</v-col>
|
|
99
|
+
<v-col cols="6">
|
|
100
|
+
<div style="display:flex; margin-bottom: 10px; justify-content: space-between; align-items: center;">
|
|
101
|
+
<h5>{{ AccessibiliteItemsValidated.length }} critères pris en charge par l'équipe Design System</h5>
|
|
102
|
+
<div style="display: flex; align-items: center;">
|
|
103
|
+
<v-btn variant="tonal" color="red" size="x-small" style="margin: 4px;font-size: 8px;"
|
|
104
|
+
rounded>Tanaguru
|
|
105
|
+
</v-btn>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
<v-expansion-panels v-if="AccessibiliteItemsValidated.length > 0" value="opened" multiple>
|
|
109
|
+
<v-expansion-panel
|
|
110
|
+
v-for="(item, index) in AccessibiliteItemsValidated"
|
|
111
|
+
:key="index" style="background-color: rgba(53,135,0,0.1); margin-bottom: 10px;">
|
|
112
|
+
<v-expansion-panel-title>
|
|
113
|
+
<VIcon color="green" :icon="icon" style="margin-right: 5px;"/>
|
|
114
|
+
{{ item.title }}
|
|
115
|
+
</v-expansion-panel-title>
|
|
116
|
+
<v-expansion-panel-text>
|
|
117
|
+
<v-expansion-panels>
|
|
118
|
+
<v-expansion-panel>
|
|
119
|
+
<v-expansion-panel-title style="font-weight: bold;font-size: 13px; line-height: 16px;">
|
|
120
|
+
{{ item.subtitle }}
|
|
121
|
+
</v-expansion-panel-title>
|
|
122
|
+
<v-expansion-panel-text>
|
|
123
|
+
<div v-for="(value, i) in item.items" :key="i">
|
|
124
|
+
<p style="font-size: 13px;line-height: 16px;">
|
|
125
|
+
{{ value.precision }}
|
|
126
|
+
</p>
|
|
127
|
+
<div v-for="element in value.solution"
|
|
128
|
+
style="margin-top:15px; font-size: 13px;line-height: 16px;">
|
|
129
|
+
<p style="font-weight: bold;">Méthodologie du test : <a
|
|
130
|
+
href="value.link" target="blank">
|
|
131
|
+
<VIcon :icon="linkICon"/>
|
|
132
|
+
</a></p>
|
|
133
|
+
<p>{{ element.info1 }}</p>
|
|
134
|
+
<p>{{ element.info2 }}</p>
|
|
135
|
+
<p>{{ element.info3 }}</p>
|
|
136
|
+
</div>
|
|
137
|
+
<span style="display:flex; justify-content:center; margin-bottom:5px;">______</span>
|
|
138
|
+
</div>
|
|
139
|
+
</v-expansion-panel-text>
|
|
140
|
+
</v-expansion-panel>
|
|
141
|
+
</v-expansion-panels>
|
|
142
|
+
</v-expansion-panel-text>
|
|
143
|
+
</v-expansion-panel>
|
|
144
|
+
</v-expansion-panels>
|
|
145
|
+
<div v-else style="display: flex;justify-content: center;"><span style="text-align:center;" >Pas de critère d'accessibilité bloquant</span></div>
|
|
146
|
+
</v-col>
|
|
147
|
+
</div>
|
|
148
|
+
`,
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
tags: ['!dev'],
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export const Legende: StoryObj = {
|
|
155
|
+
args: {
|
|
156
|
+
icon: checkIcon,
|
|
157
|
+
},
|
|
158
|
+
render: (args) => {
|
|
159
|
+
return {
|
|
160
|
+
components: { VIcon },
|
|
161
|
+
setup() {
|
|
162
|
+
return { args }
|
|
163
|
+
},
|
|
164
|
+
template: `
|
|
165
|
+
<p style="color: grey;font-size: 11px; margin-bottom: 12px;">Date de conception: 20/11/2024</p>
|
|
166
|
+
<div>
|
|
167
|
+
<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>
|
|
168
|
+
<p style="margin-bottom: 12px;font-weight:bold;">Pour rappel le composant seul ne garantie pas
|
|
169
|
+
l'accessibilité du site.</p>
|
|
170
|
+
<div style="font-size: 14px">
|
|
171
|
+
<p>Nous avons deux façons de relever les problèmes d'accessibilité des composants :</p>
|
|
172
|
+
<div>
|
|
173
|
+
<v-btn variant="tonal" color="grey" size="x-small" style="margin: 2px;font-size: 8px;" rounded>
|
|
174
|
+
Audit
|
|
175
|
+
</v-btn>
|
|
176
|
+
Problèmes relevés par le projet
|
|
177
|
+
</div>
|
|
178
|
+
<div>
|
|
179
|
+
<v-btn variant="tonal" color="red" size="x-small" style="margin: 2px;font-size: 8px;" rounded>
|
|
180
|
+
Tanaguru
|
|
181
|
+
</v-btn>
|
|
182
|
+
Problèmes relevés par Tanaguru
|
|
183
|
+
</div>
|
|
184
|
+
</div>
|
|
185
|
+
</div>
|
|
186
|
+
`,
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
tags: ['!dev'],
|
|
190
|
+
}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { ExpertiseLevelEnum } from './constants/ExpertiseLevelEnum'
|
|
2
|
+
|
|
3
|
+
export const AccessibiliteItemsIndeterminate = [
|
|
4
|
+
|
|
5
|
+
{
|
|
6
|
+
title: 'Catégorie 1 : Images',
|
|
7
|
+
subtitle: '1.3 Pour chaque image porteuse d’information ayant une alternative textuelle, cette alternative est-elle pertinente (hors cas particuliers) ? ',
|
|
8
|
+
|
|
9
|
+
items2: [
|
|
10
|
+
{
|
|
11
|
+
subtitle: '1.1 Chaque image porteuse d’information a-t-elle une alternative textuelle ? ',
|
|
12
|
+
precision: '1.1.5 Chaque image vectorielle (balise <svg>) porteuse d’information, vérifie-t-elle ces conditions ? '
|
|
13
|
+
+ 'La balise <svg> possède un attribut WAI-ARIA role="img" ; '
|
|
14
|
+
+ 'La balise <svg> a une alternative textuelle.',
|
|
15
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#1.1.5',
|
|
16
|
+
solution: [{
|
|
17
|
+
info1: '1. Retrouver dans le document les éléments <svg> ; Pour chaque élément <svg>, déterminer si l’image est porteuse d’information ; ',
|
|
18
|
+
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é.',
|
|
19
|
+
info3: '3. Le cas échéant, vérifier que l’élément <svg> est pourvu au moins d’une alternative textuelle parmi les suivantes : '
|
|
20
|
+
+ 'Contenu de l’élément <title> ; '
|
|
21
|
+
+ 'Passage de texte associé via l’attribut WAI-ARIA aria-labelledby ; '
|
|
22
|
+
+ 'Contenu de l’attribut WAI-ARIA aria-label ;',
|
|
23
|
+
info4: '4. Si au moins une alternative textuelle est trouvée, le test est validé. ',
|
|
24
|
+
}],
|
|
25
|
+
expertise: ExpertiseLevelEnum.DEV,
|
|
26
|
+
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
subtitle: '1.6 Chaque image porteuse d’information a-t-elle, si nécessaire, une description détaillée ?',
|
|
30
|
+
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 ? '
|
|
31
|
+
+ '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 ; '
|
|
32
|
+
+ 'Il existe une alternative textuelle contenant la référence à une description détaillée adjacente à l’image ; '
|
|
33
|
+
+ 'Il existe un lien ou un bouton adjacent permettant d’accéder à la description détaillée.',
|
|
34
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#1.6.1',
|
|
35
|
+
solution: [{
|
|
36
|
+
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 ; ',
|
|
37
|
+
info2: '2. Pour chaque image, vérifier qu’il existe : '
|
|
38
|
+
+ '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 ; '
|
|
39
|
+
+ 'Soit une alternative textuelle contenant la référence à une description détaillée adjacente à l’image ; '
|
|
40
|
+
+ 'Soit un lien ou un bouton adjacent permettant d’accéder à la description détaillée.',
|
|
41
|
+
info3: '3. Si c’est le cas pour chaque image, le test est validé',
|
|
42
|
+
}],
|
|
43
|
+
expertise: ExpertiseLevelEnum.DEV,
|
|
44
|
+
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
],
|
|
48
|
+
items: [
|
|
49
|
+
{
|
|
50
|
+
precision: '1.3.1 Chaque image (balise <img> ou balise possédant l’attribut WAI-ARIA role="img") porteuse d’information, ayant une alternative textuelle, cette alternative est-elle pertinente (hors cas particuliers) ? '
|
|
51
|
+
+ 'S’il est présent, le contenu de l’attribut title est pertinent ; '
|
|
52
|
+
+ 'S’il est présent, le contenu de l’attribut alt est pertinent ; '
|
|
53
|
+
+ 'S’il est présent, le passage de texte associé via l’attribut WAI-ARIA aria-labelledby est pertinent. '
|
|
54
|
+
+ 'S’il est présent, le contenu de l’attribut WAI-ARIA aria-label est pertinent ;',
|
|
55
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#1.3.1',
|
|
56
|
+
solution: [{
|
|
57
|
+
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") pourvues d’une alternative textuelle ; ',
|
|
58
|
+
info2: '2. Pour chaque image, vérifier que l’alternative textuelle est pertinente ;',
|
|
59
|
+
info3: '3. Si c’est le cas pour chaque image, le test est validé',
|
|
60
|
+
}],
|
|
61
|
+
expertise: ExpertiseLevelEnum.DEV,
|
|
62
|
+
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
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) ? ',
|
|
66
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#1.3.9',
|
|
67
|
+
solution: [{
|
|
68
|
+
info1: '1. Retrouver dans le document les images pourvues d’une alternative textuelle ; ',
|
|
69
|
+
info2: '2. Pour chaque image, vérifier l’alternative textuelle est courte et concise ;',
|
|
70
|
+
info3: '3. Si c’est le cas pour chaque image, le test est validé',
|
|
71
|
+
}],
|
|
72
|
+
expertise: ExpertiseLevelEnum.DEV,
|
|
73
|
+
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
title: 'Catégorie 3 : Couleurs',
|
|
80
|
+
subtitle: '3.1 Dans chaque page web, l’information ne doit pas être donnée uniquement par la couleur. Cette règle est-elle respectée ?',
|
|
81
|
+
items: [
|
|
82
|
+
{
|
|
83
|
+
precision: '3.1.2 Pour chaque indication de couleur donnée par un texte, l’information ne doit pas être donnée uniquement par la couleur. Cette règle est-elle respectée ?',
|
|
84
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#3.1.2',
|
|
85
|
+
solution: [{
|
|
86
|
+
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 ;',
|
|
87
|
+
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.',
|
|
88
|
+
info3: '3. Si c’est le cas pour chaque texte, le test est validé',
|
|
89
|
+
}],
|
|
90
|
+
expertise: ExpertiseLevelEnum.DEV,
|
|
91
|
+
|
|
92
|
+
},
|
|
93
|
+
|
|
94
|
+
],
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
title: 'Catégorie 9 : Structuration de l’information',
|
|
98
|
+
subtitle: '9.1 Dans chaque page web, l’information est-elle structurée par l’utilisation appropriée de titres',
|
|
99
|
+
items: [
|
|
100
|
+
{
|
|
101
|
+
|
|
102
|
+
precision: '9.1.1 Dans chaque page web, la hiérarchie entre les titres (balise <hx> ou balise possédant un attribut WAI-ARIA role="heading" associé à un attribut WAI-ARIA aria-level) est-elle pertinente ?',
|
|
103
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#9.1.1',
|
|
104
|
+
solution: [{
|
|
105
|
+
info1: '1. Retrouver dans le document les titres (balise <hx> ou balise possédant un attribut WAI-ARIA role="heading" associé à un attribut WAI-ARIA aria-level) ;',
|
|
106
|
+
info2: '2. Vérifier que la hiérarchie entre les titres est pertinente ;',
|
|
107
|
+
info3: '3. Si c’est le cas, le test est validé',
|
|
108
|
+
}],
|
|
109
|
+
expertise: ExpertiseLevelEnum.DEV,
|
|
110
|
+
|
|
111
|
+
},
|
|
112
|
+
|
|
113
|
+
],
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
title: 'Catégorie 10 : Présentation de l’information',
|
|
117
|
+
subtitle: '10.1 Dans le site web, des feuilles de styles sont-elles utilisées pour contrôler la présentation de l’information ? ?',
|
|
118
|
+
items: [
|
|
119
|
+
|
|
120
|
+
{
|
|
121
|
+
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 ? ',
|
|
122
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#10.1.1',
|
|
123
|
+
solution: [{
|
|
124
|
+
info1: '1. Vérifier l’absence des éléments de présentation <basefont>, <big>, <blink>, <center>, <font>, <marquee>, <s>, <strike>, <tt> ; ',
|
|
125
|
+
info2: '2. Vérifier l’absence de l’élément <u> uniquement si le DOCTYPE du document ne correspond pas à HTML 5 ; ',
|
|
126
|
+
info3: '3. Si c’est le cas, le test est validé',
|
|
127
|
+
}],
|
|
128
|
+
expertise: ExpertiseLevelEnum.DEV,
|
|
129
|
+
|
|
130
|
+
},
|
|
131
|
+
|
|
132
|
+
],
|
|
133
|
+
},
|
|
134
|
+
|
|
135
|
+
]
|
|
136
|
+
|
|
137
|
+
export const AccessibiliteItemsValidated = [
|
|
138
|
+
{
|
|
139
|
+
title: 'Catégorie 1 : Images',
|
|
140
|
+
subtitle: '1.3 Pour chaque image porteuse d’information ayant une alternative textuelle, cette alternative est-elle pertinente (hors cas particuliers) ? ',
|
|
141
|
+
items: [
|
|
142
|
+
{
|
|
143
|
+
precision: '1.3.1 Chaque image (balise <img> ou balise possédant l’attribut WAI-ARIA role="img") porteuse d’information, ayant une alternative textuelle, cette alternative est-elle pertinente (hors cas particuliers) ? '
|
|
144
|
+
+ 'S’il est présent, le contenu de l’attribut title est pertinent ; '
|
|
145
|
+
+ 'S’il est présent, le contenu de l’attribut alt est pertinent ; '
|
|
146
|
+
+ 'S’il est présent, le passage de texte associé via l’attribut WAI-ARIA aria-labelledby est pertinent. '
|
|
147
|
+
+ 'S’il est présent, le contenu de l’attribut WAI-ARIA aria-label est pertinent ;',
|
|
148
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#1.3.1',
|
|
149
|
+
solution: [{
|
|
150
|
+
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") pourvues d’une alternative textuelle ; ',
|
|
151
|
+
info2: '2. Pour chaque image, vérifier que l’alternative textuelle est pertinente ;',
|
|
152
|
+
info3: '3. Si c’est le cas pour chaque image, le test est validé',
|
|
153
|
+
}],
|
|
154
|
+
expertise: ExpertiseLevelEnum.DESIGN,
|
|
155
|
+
|
|
156
|
+
},
|
|
157
|
+
|
|
158
|
+
],
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
title: 'Catégorie 3 : Couleurs',
|
|
162
|
+
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é?',
|
|
163
|
+
items: [
|
|
164
|
+
{
|
|
165
|
+
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.',
|
|
166
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#3.2.1',
|
|
167
|
+
solution: [{
|
|
168
|
+
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 ;',
|
|
169
|
+
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.',
|
|
170
|
+
info3: '3. Si c’est le cas pour chaque texte, le test est validé',
|
|
171
|
+
}],
|
|
172
|
+
expertise: ExpertiseLevelEnum.DESIGN,
|
|
173
|
+
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
precision: ' 3.2.3 Dans chaque page web, le texte et le texte en image sans effet de graisse d’une taille restituée supérieure ou égale à 24px vérifient-ils une de ces conditions (hors cas particuliers) ? '
|
|
177
|
+
+ 'Le rapport de contraste entre le texte et son arrière-plan est de 3:1, au moins ; '
|
|
178
|
+
+ 'Un mécanisme permet à l’utilisateur d’afficher le texte avec un rapport de contraste de 3:1, au moins.',
|
|
179
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#3.2.3',
|
|
180
|
+
solution: [{
|
|
181
|
+
info1: '1. Retrouver dans le document les textes et les textes en image sans effet de graisse d’une taille restituée supérieure ou égale à 24px qui pourraient poser des problèmes de contraste ; ',
|
|
182
|
+
info2: '2. our chacun de ces textes, vérifier que : Soit le rapport de contraste entre le texte et son arrière-plan est de 3:1, au moins ; Soit un mécanisme permet à l’utilisateur d’afficher le texte avec un rapport de contraste de 3:1, au moins. ',
|
|
183
|
+
info3: '3. Si c’est le cas pour chaque texte, le test est validé',
|
|
184
|
+
}],
|
|
185
|
+
expertise: ExpertiseLevelEnum.DESIGN,
|
|
186
|
+
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
precision: ' 3.2.4 Dans chaque page web, le texte et le texte en image en gras d’une taille restituée supérieure ou égale à 18,5px vérifient-ils une de ces conditions (hors cas particuliers) ? '
|
|
190
|
+
+ 'Le rapport de contraste entre le texte et son arrière-plan est de 3:1, au moins ; '
|
|
191
|
+
+ 'Un mécanisme permet à l’utilisateur d’afficher le texte avec un rapport de contraste de 3:1, au moins. ',
|
|
192
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#3.2.4',
|
|
193
|
+
solution: [{
|
|
194
|
+
info1: '1. Retrouver dans le document les textes et les textes en image en gras d’une taille restituée supérieure ou égale à 18,5px qui pourraient poser des problèmes de contraste ; ',
|
|
195
|
+
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 3:1, au moins ; Soit un mécanisme permet à l’utilisateur d’afficher le texte avec un rapport de contraste de 3:1, au moins. ',
|
|
196
|
+
info3: '3. Si c’est le cas pour chaque texte, le test est validé',
|
|
197
|
+
}],
|
|
198
|
+
expertise: ExpertiseLevelEnum.DESIGN,
|
|
199
|
+
|
|
200
|
+
},
|
|
201
|
+
|
|
202
|
+
],
|
|
203
|
+
},
|
|
204
|
+
|
|
205
|
+
]
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
2
|
|
|
3
3
|
exports[`NotFoundPage > display the support ID if provided in the url 1`] = `
|
|
4
|
-
"<div data-v-fb0b02fd="" data-v-8f2b5bad="" data-v-c9c5b952="" class="py-10 px-
|
|
5
|
-
<div data-v-fb0b02fd="" class="v-sheet v-theme--light bg-transparent" style="width:
|
|
4
|
+
"<div data-v-fb0b02fd="" data-v-8f2b5bad="" data-v-c9c5b952="" class="py-10 px-14 vd-page-container d-flex justify-center">
|
|
5
|
+
<div data-v-fb0b02fd="" class="v-sheet v-theme--light bg-transparent" style="width: 800px;">
|
|
6
6
|
<div data-v-8f2b5bad="" class="v-card v-theme--light v-card--density-default elevation-0 v-card--variant-elevated pa-6 pa-sm-16">
|
|
7
7
|
<!---->
|
|
8
8
|
<div class="v-card__loader">
|
|
@@ -39,8 +39,8 @@ exports[`NotFoundPage > display the support ID if provided in the url 1`] = `
|
|
|
39
39
|
`;
|
|
40
40
|
|
|
41
41
|
exports[`NotFoundPage > renders correctly 1`] = `
|
|
42
|
-
"<div data-v-fb0b02fd="" data-v-8f2b5bad="" data-v-c9c5b952="" class="py-10 px-
|
|
43
|
-
<div data-v-fb0b02fd="" class="v-sheet v-theme--light bg-transparent" style="width:
|
|
42
|
+
"<div data-v-fb0b02fd="" data-v-8f2b5bad="" data-v-c9c5b952="" class="py-10 px-14 vd-page-container d-flex justify-center">
|
|
43
|
+
<div data-v-fb0b02fd="" class="v-sheet v-theme--light bg-transparent" style="width: 800px;">
|
|
44
44
|
<div data-v-8f2b5bad="" class="v-card v-theme--light v-card--density-default elevation-0 v-card--variant-elevated pa-6 pa-sm-16">
|
|
45
45
|
<!---->
|
|
46
46
|
<div class="v-card__loader">
|
|
@@ -1,37 +1,7 @@
|
|
|
1
1
|
import { ExpertiseLevelEnum } from './constants/ExpertiseLevelEnum'
|
|
2
2
|
|
|
3
3
|
export const AccessibiliteItemsIndeterminate = [
|
|
4
|
-
{
|
|
5
|
-
title: 'Catégorie 1 : Images',
|
|
6
|
-
subtitle: '1.4 Pour chaque image utilisée comme CAPTCHA ou comme image-test, ayant une alternative textuelle, cette alternative permet-elle d’identifier la nature et la fonction de l’image ?',
|
|
7
|
-
items: [
|
|
8
|
-
{
|
|
9
|
-
|
|
10
|
-
precision: '1.4.1 Pour chaque image (balise <img>) utilisée comme CAPTCHA ou comme image-test, ayant une alternative textuelle, cette alternative est-elle pertinente ?',
|
|
11
|
-
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#1.4.1',
|
|
12
|
-
solution: [{
|
|
13
|
-
info1: '1. Retrouver dans le document les images structurées au moyen d’un élément <img> pourvues d’une alternative textuelle et utilisées comme CAPTCHA ou comme image-test',
|
|
14
|
-
info2: '2. Pour chaque image, vérifier que l’alternative textuelle est pertinente',
|
|
15
|
-
info3: '3. Si c’est le cas pour chaque image, le test est validé',
|
|
16
|
-
}],
|
|
17
|
-
expertise: ExpertiseLevelEnum.DEV,
|
|
18
4
|
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
|
|
22
|
-
precision: ' 1.4.6 Pour chaque image vectorielle (balise <svg>) utilisée comme CAPTCHA ou comme image-test, ayant une alternative textuelle, cette alternative est-elle pertinente ?',
|
|
23
|
-
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#1.4.6',
|
|
24
|
-
solution: [{
|
|
25
|
-
info1: '1. Retrouver dans le document les éléments <svg> pourvus d’une alternative textuelle et utilisés comme CAPTCHA ou comme image-test;',
|
|
26
|
-
info2: '2. Pour chaque élément <svg>, vérifier que l’alternative textuelle est pertinente',
|
|
27
|
-
info3: '3. Si c’est le cas pour chaque image, le test est validé',
|
|
28
|
-
}],
|
|
29
|
-
expertise: ExpertiseLevelEnum.DEV,
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
],
|
|
34
|
-
},
|
|
35
5
|
{
|
|
36
6
|
title: 'Catégorie 3 : Couleurs',
|
|
37
7
|
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é?',
|
|
@@ -30,7 +30,7 @@ import * as NotificationBarStories from './NotificationBar.stories';
|
|
|
30
30
|
<Source dark code={`
|
|
31
31
|
<script setup lang="ts">
|
|
32
32
|
import { VBtn } from 'vuetify/components'
|
|
33
|
-
import NotificationBar from '@cnamts/synapse'
|
|
33
|
+
import { NotificationBar } from '@cnamts/synapse'
|
|
34
34
|
import { useNotificationService } from '@cnamts/synapse/src/services/NotificationService'
|
|
35
35
|
import type { Notification } from '@cnamts/synapse/src/components/NotificationBar/types'
|
|
36
36
|
|
|
@@ -18,7 +18,7 @@ Le composant `PageContainer` est un conteneur transparent utilisé pour afficher
|
|
|
18
18
|
|
|
19
19
|
<Source dark code={`
|
|
20
20
|
<script setup lang="ts">
|
|
21
|
-
import PageContainer from '@cnamts/synapse'
|
|
21
|
+
import { PageContainer } from '@cnamts/synapse'
|
|
22
22
|
</script>
|
|
23
23
|
|
|
24
24
|
<template>
|
|
@@ -11,12 +11,12 @@ const meta = {
|
|
|
11
11
|
},
|
|
12
12
|
argTypes: {
|
|
13
13
|
size: {
|
|
14
|
-
options: ['xl', '
|
|
14
|
+
options: ['xl', 'lg', 'md', 'sm', 'xs'],
|
|
15
15
|
control: { type: 'select' },
|
|
16
|
-
default:
|
|
16
|
+
default: undefined,
|
|
17
17
|
},
|
|
18
18
|
spacing: {
|
|
19
|
-
options: ['
|
|
19
|
+
options: ['xl', 'lg', 'md', 'sm', 'xs'],
|
|
20
20
|
control: { type: 'select' },
|
|
21
21
|
default: undefined,
|
|
22
22
|
},
|
|
@@ -47,7 +47,7 @@ export const Default: Story = {
|
|
|
47
47
|
{
|
|
48
48
|
name: 'Script',
|
|
49
49
|
code: `<script setup lang="ts">
|
|
50
|
-
import PageContainer from '@cnamts/synapse'
|
|
50
|
+
import { PageContainer } from '@cnamts/synapse'
|
|
51
51
|
</script>
|
|
52
52
|
`,
|
|
53
53
|
},
|
|
@@ -77,7 +77,7 @@ export const Size: Story = {
|
|
|
77
77
|
{
|
|
78
78
|
name: 'Template',
|
|
79
79
|
code: `<template>
|
|
80
|
-
<PageContainer size="
|
|
80
|
+
<PageContainer size="sm">
|
|
81
81
|
Contenu de la page
|
|
82
82
|
</PageContainer>
|
|
83
83
|
</template>
|
|
@@ -86,7 +86,7 @@ export const Size: Story = {
|
|
|
86
86
|
{
|
|
87
87
|
name: 'Script',
|
|
88
88
|
code: `<script setup lang="ts">
|
|
89
|
-
import PageContainer from '@cnamts/synapse'
|
|
89
|
+
import { PageContainer } from '@cnamts/synapse'
|
|
90
90
|
</script>
|
|
91
91
|
`,
|
|
92
92
|
},
|
|
@@ -94,7 +94,7 @@ export const Size: Story = {
|
|
|
94
94
|
},
|
|
95
95
|
args: {
|
|
96
96
|
default: 'Contenu de la page',
|
|
97
|
-
size: '
|
|
97
|
+
size: 'sm',
|
|
98
98
|
},
|
|
99
99
|
render: (args) => {
|
|
100
100
|
return {
|
|
@@ -128,7 +128,7 @@ export const Color: Story = {
|
|
|
128
128
|
{
|
|
129
129
|
name: 'Script',
|
|
130
130
|
code: `<script setup lang="ts">
|
|
131
|
-
import PageContainer from '@cnamts/synapse'
|
|
131
|
+
import { PageContainer } from '@cnamts/synapse'
|
|
132
132
|
</script>
|
|
133
133
|
`,
|
|
134
134
|
},
|
|
@@ -172,7 +172,7 @@ export const Card: Story = {
|
|
|
172
172
|
{
|
|
173
173
|
name: 'Script',
|
|
174
174
|
code: `<script setup lang="ts">
|
|
175
|
-
import PageContainer from '@cnamts/synapse'
|
|
175
|
+
import { PageContainer } from '@cnamts/synapse'
|
|
176
176
|
import { VCard } from 'vuetify/components'
|
|
177
177
|
</script>
|
|
178
178
|
`,
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { useDisplay } from 'vuetify'
|
|
4
4
|
|
|
5
5
|
const props = withDefaults(defineProps<{
|
|
6
|
-
size?: 'xl' | '
|
|
7
|
-
spacing?: '
|
|
6
|
+
size?: 'xl' | 'lg' | 'md' | 'sm' | 'xs'
|
|
7
|
+
spacing?: 'xl' | 'lg' | 'md' | 'sm' | 'xs'
|
|
8
8
|
color?: string
|
|
9
9
|
}>(), {
|
|
10
|
-
size:
|
|
10
|
+
size: undefined,
|
|
11
11
|
spacing: undefined,
|
|
12
12
|
color: 'transparent',
|
|
13
13
|
})
|
|
@@ -15,32 +15,35 @@
|
|
|
15
15
|
const display = useDisplay()
|
|
16
16
|
|
|
17
17
|
const spacingMapping: Record<string, string> = {
|
|
18
|
-
xs: 'px-
|
|
18
|
+
xs: 'px-4',
|
|
19
19
|
sm: 'px-4',
|
|
20
|
-
md: 'px-
|
|
21
|
-
lg: 'px-
|
|
22
|
-
xl: 'px-
|
|
20
|
+
md: 'px-14',
|
|
21
|
+
lg: 'px-14',
|
|
22
|
+
xl: 'px-0',
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
const
|
|
25
|
+
const sizeMapping: Record<string, number> = {
|
|
26
|
+
xs: 340,
|
|
27
|
+
sm: 540,
|
|
28
|
+
md: 800,
|
|
29
|
+
lg: 1280,
|
|
30
|
+
xl: 1712,
|
|
31
|
+
}
|
|
26
32
|
|
|
27
33
|
const spacingClass = computed(() => {
|
|
28
34
|
if (props.spacing) {
|
|
29
35
|
return `py-10 ${spacingMapping[props.spacing]}`
|
|
30
36
|
}
|
|
31
|
-
|
|
32
|
-
return `py-10 ${spacingX}`
|
|
37
|
+
return `py-10 ${spacingMapping[display.name.value]}`
|
|
33
38
|
})
|
|
34
39
|
|
|
35
|
-
const sizeMapping: Record<string, number> = {
|
|
36
|
-
xl: 1440,
|
|
37
|
-
l: 960,
|
|
38
|
-
m: 800,
|
|
39
|
-
s: 600,
|
|
40
|
-
}
|
|
41
|
-
|
|
42
40
|
const containerSize = computed(() => {
|
|
43
|
-
|
|
41
|
+
if (props.size) {
|
|
42
|
+
return sizeMapping[props.size]
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
return sizeMapping[display.name.value] ?? sizeMapping['xl']
|
|
46
|
+
}
|
|
44
47
|
})
|
|
45
48
|
|
|
46
49
|
defineExpose({
|
|
@@ -63,5 +66,8 @@
|
|
|
63
66
|
<style lang="scss" scoped>
|
|
64
67
|
.vd-page-container {
|
|
65
68
|
flex: 1;
|
|
69
|
+
width: 100%;
|
|
70
|
+
max-width: 1712px;
|
|
71
|
+
margin: 0 auto;
|
|
66
72
|
}
|
|
67
73
|
</style>
|
|
@@ -44,13 +44,13 @@ describe('PageContainer', () => {
|
|
|
44
44
|
it('containerSize computed property', async () => {
|
|
45
45
|
const wrapper = mount(PageContainer, {
|
|
46
46
|
props: {
|
|
47
|
-
size: '
|
|
47
|
+
size: 'md',
|
|
48
48
|
},
|
|
49
49
|
global: {
|
|
50
50
|
plugins: [vuetify],
|
|
51
51
|
},
|
|
52
52
|
})
|
|
53
53
|
|
|
54
|
-
expect(wrapper.vm.containerSize).toBe(
|
|
54
|
+
expect(wrapper.vm.containerSize).toBe(800)
|
|
55
55
|
})
|
|
56
56
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
2
|
|
|
3
3
|
exports[`PageContainer > render correctly 1`] = `
|
|
4
|
-
"<div data-v-fb0b02fd="" class="py-10 px-
|
|
5
|
-
<div data-v-fb0b02fd="" class="v-sheet v-theme--light bg-transparent" style="width:
|
|
4
|
+
"<div data-v-fb0b02fd="" class="py-10 px-14 vd-page-container d-flex justify-center">
|
|
5
|
+
<div data-v-fb0b02fd="" class="v-sheet v-theme--light bg-transparent" style="width: 800px;"></div>
|
|
6
6
|
</div>"
|
|
7
7
|
`;
|