@cnamts/synapse 0.0.5-alpha → 0.0.6-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 +481 -411
- package/dist/design-system-v3.js +2950 -2202
- 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 +8 -8
- 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/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 +678 -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 +4 -4
- 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 +63 -7
- 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 +3 -2
- package/src/components/Customs/SyInputSelect/SyInputSelect.stories.ts +5 -58
- 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 +3 -2
- package/src/components/Customs/SySelect/SySelect.stories.ts +4 -58
- 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 +3 -3
- package/src/components/DownloadBtn/DownloadBtn.stories.ts +6 -6
- 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/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 +80 -73
- 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 +3 -3
- 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.vue +1 -9
- 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/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/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 +1 -0
- 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 +216 -0
- package/src/components/NirField/NirField.stories.ts +359 -0
- package/src/components/NirField/NirField.vue +450 -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 +119 -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 +4 -4
- package/src/components/PageContainer/PageContainer.vue +16 -15
- package/src/components/PageContainer/tests/PageContainer.spec.ts +1 -1
- 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/constants/ExpertiseLevelEnum.ts +4 -0
- 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 +11 -11
- 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/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 +10 -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/Alert.vue → SyAlert/SyAlert.vue} +0 -0
- /package/src/components/{Alert → SyAlert}/locales.ts +0 -0
|
@@ -0,0 +1,225 @@
|
|
|
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/Données/DataListGroup/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
|
+
<div v-if="item.items2 && item.items2.length > 0 ">
|
|
46
|
+
<v-expansion-panel v-for="(i, index) in item.items2" :key="i" style="margin-bottom: 10px;">
|
|
47
|
+
<v-expansion-panel-title
|
|
48
|
+
style="font-weight: bold; font-size: 13px; line-height: 16px;">
|
|
49
|
+
{{ i.subtitle}}
|
|
50
|
+
</v-expansion-panel-title>
|
|
51
|
+
<v-expansion-panel-text>
|
|
52
|
+
<div>
|
|
53
|
+
<p style="font-size: 13px;line-height: 16px;">
|
|
54
|
+
{{ i.precision }}
|
|
55
|
+
</p>
|
|
56
|
+
<div v-for="(value, index) in i.solution"
|
|
57
|
+
style="margin-top:15px; font-size: 13px;line-height: 16px;">
|
|
58
|
+
<p style="font-weight: bold;">Méthodologie du test : <a
|
|
59
|
+
href="{{i.link}}" target="blank">
|
|
60
|
+
<VIcon :icon="linkICon"/>
|
|
61
|
+
</a></p>
|
|
62
|
+
|
|
63
|
+
<p>{{ value.info1 }}</p>
|
|
64
|
+
<p>{{ value.info2 }}</p>
|
|
65
|
+
<p>{{ value.info3 }}</p>
|
|
66
|
+
|
|
67
|
+
</div>
|
|
68
|
+
<span style="display:flex; justify-content:center; margin-bottom:5px;">______</span>
|
|
69
|
+
</div>
|
|
70
|
+
</v-expansion-panel-text>
|
|
71
|
+
</v-expansion-panel>
|
|
72
|
+
</div>
|
|
73
|
+
<v-expansion-panel v-else>
|
|
74
|
+
<v-expansion-panel-title
|
|
75
|
+
style="font-weight: bold; font-size: 13px; line-height: 16px;">
|
|
76
|
+
{{ item.subtitle }}
|
|
77
|
+
</v-expansion-panel-title>
|
|
78
|
+
<v-expansion-panel-text>
|
|
79
|
+
<div v-for="(value, i) in item.items" :key="i">
|
|
80
|
+
<p style="font-size: 13px;line-height: 16px;">
|
|
81
|
+
{{ value.precision }}
|
|
82
|
+
</p>
|
|
83
|
+
<div v-for="element in value.solution"
|
|
84
|
+
style="margin-top:15px; font-size: 13px;line-height: 16px;">
|
|
85
|
+
<p style="font-weight: bold;">Méthodologie du test : <a
|
|
86
|
+
href="value.link" target="blank">
|
|
87
|
+
<VIcon :icon="linkICon"/>
|
|
88
|
+
</a></p>
|
|
89
|
+
|
|
90
|
+
<p>{{ element.info1 }}</p>
|
|
91
|
+
<p>{{ element.info2 }}</p>
|
|
92
|
+
<p>{{ element.info3 }}</p>
|
|
93
|
+
|
|
94
|
+
</div>
|
|
95
|
+
<span style="display:flex; justify-content:center; margin-bottom:5px;">______</span>
|
|
96
|
+
</div>
|
|
97
|
+
</v-expansion-panel-text>
|
|
98
|
+
</v-expansion-panel>
|
|
99
|
+
</v-expansion-panels>
|
|
100
|
+
</v-expansion-panel-text>
|
|
101
|
+
</v-expansion-panel>
|
|
102
|
+
</v-expansion-panels>
|
|
103
|
+
</v-col>
|
|
104
|
+
<v-col cols="6">
|
|
105
|
+
<div style="display:flex; margin-bottom: 10px; justify-content: space-between; align-items: center;">
|
|
106
|
+
<h5>{{ AccessibiliteItemsValidated.length }} critères pris en charge par l'équipe Design System</h5>
|
|
107
|
+
<div style="display: flex; align-items: center;">
|
|
108
|
+
<v-btn variant="tonal" color="red" size="x-small" style="margin: 4px;font-size: 8px;"
|
|
109
|
+
rounded>Tanaguru
|
|
110
|
+
</v-btn>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
<v-expansion-panels value="opened" multiple>
|
|
114
|
+
<v-expansion-panel
|
|
115
|
+
v-for="(item, index) in AccessibiliteItemsValidated"
|
|
116
|
+
:key="index" style="background-color: rgba(53,135,0,0.1); margin-bottom: 10px;">
|
|
117
|
+
<v-expansion-panel-title>
|
|
118
|
+
<VIcon color="green" :icon="icon" style="margin-right: 5px;"/>
|
|
119
|
+
{{ item.title }}
|
|
120
|
+
</v-expansion-panel-title>
|
|
121
|
+
<v-expansion-panel-text>
|
|
122
|
+
<v-expansion-panels>
|
|
123
|
+
|
|
124
|
+
<v-expansion-panel v-for="(i, index) in item.items2" :key="i" style="margin-bottom: 10px;">
|
|
125
|
+
<v-expansion-panel-title
|
|
126
|
+
style="font-weight: bold; font-size: 13px; line-height: 16px;">
|
|
127
|
+
{{ i.subtitle}}
|
|
128
|
+
</v-expansion-panel-title>
|
|
129
|
+
<v-expansion-panel-text>
|
|
130
|
+
<div>
|
|
131
|
+
<p style="font-size: 13px;line-height: 16px;">
|
|
132
|
+
{{ i.precision }}
|
|
133
|
+
</p>
|
|
134
|
+
<div v-for="(value, index) in i.solution"
|
|
135
|
+
style="margin-top:15px; font-size: 13px;line-height: 16px;">
|
|
136
|
+
<p style="font-weight: bold;">Méthodologie du test : <a
|
|
137
|
+
href="{{i.link}}" target="blank">
|
|
138
|
+
<VIcon :icon="linkICon"/>
|
|
139
|
+
</a></p>
|
|
140
|
+
|
|
141
|
+
<p>{{ value.info1 }}</p>
|
|
142
|
+
<p>{{ value.info2 }}</p>
|
|
143
|
+
<p>{{ value.info3 }}</p>
|
|
144
|
+
|
|
145
|
+
</div>
|
|
146
|
+
<span style="display:flex; justify-content:center; margin-bottom:5px;">______</span>
|
|
147
|
+
</div>
|
|
148
|
+
</v-expansion-panel-text>
|
|
149
|
+
</v-expansion-panel>
|
|
150
|
+
|
|
151
|
+
<v-expansion-panel >
|
|
152
|
+
<v-expansion-panel-title
|
|
153
|
+
style="font-weight: bold; font-size: 13px; line-height: 16px;">
|
|
154
|
+
{{ item.subtitle }}
|
|
155
|
+
</v-expansion-panel-title>
|
|
156
|
+
<v-expansion-panel-text>
|
|
157
|
+
<div v-for="(value, i) in item.items" :key="i">
|
|
158
|
+
<p style="font-size: 13px;line-height: 16px;">
|
|
159
|
+
{{ value.precision }}
|
|
160
|
+
</p>
|
|
161
|
+
<div v-for="element in value.solution"
|
|
162
|
+
style="margin-top:15px; font-size: 13px;line-height: 16px;">
|
|
163
|
+
<p style="font-weight: bold;">Méthodologie du test : <a
|
|
164
|
+
href="value.link" target="blank">
|
|
165
|
+
<VIcon :icon="linkICon"/>
|
|
166
|
+
</a></p>
|
|
167
|
+
|
|
168
|
+
<p>{{ element.info1 }}</p>
|
|
169
|
+
<p>{{ element.info2 }}</p>
|
|
170
|
+
<p>{{ element.info3 }}</p>
|
|
171
|
+
|
|
172
|
+
</div>
|
|
173
|
+
<span style="display:flex; justify-content:center; margin-bottom:5px;">______</span>
|
|
174
|
+
</div>
|
|
175
|
+
</v-expansion-panel-text>
|
|
176
|
+
</v-expansion-panel>
|
|
177
|
+
</v-expansion-panels>
|
|
178
|
+
</v-expansion-panel-text>
|
|
179
|
+
</v-expansion-panel>
|
|
180
|
+
</v-expansion-panels>
|
|
181
|
+
</v-col>
|
|
182
|
+
</div>
|
|
183
|
+
`,
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
tags: ['!dev'],
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export const Legende: StoryObj = {
|
|
190
|
+
args: {
|
|
191
|
+
icon: checkIcon,
|
|
192
|
+
},
|
|
193
|
+
render: (args) => {
|
|
194
|
+
return {
|
|
195
|
+
components: { VIcon },
|
|
196
|
+
setup() {
|
|
197
|
+
return { args }
|
|
198
|
+
},
|
|
199
|
+
template: `
|
|
200
|
+
<p style="color: grey;font-size: 11px; margin-bottom: 12px;">Date de conception: 20/11/2024</p>
|
|
201
|
+
<div>
|
|
202
|
+
<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>
|
|
203
|
+
<p style="margin-bottom: 12px;font-weight:bold;">Pour rappel le composant seul ne garantie pas
|
|
204
|
+
l'accessibilité du site.</p>
|
|
205
|
+
<div style="font-size: 14px">
|
|
206
|
+
<p>Nous avons deux façons de relever les problèmes d'accessibilité des composants :</p>
|
|
207
|
+
<div>
|
|
208
|
+
<v-btn variant="tonal" color="grey" size="x-small" style="margin: 2px;font-size: 8px;" rounded>
|
|
209
|
+
Audit
|
|
210
|
+
</v-btn>
|
|
211
|
+
Problèmes relevés par le projet
|
|
212
|
+
</div>
|
|
213
|
+
<div>
|
|
214
|
+
<v-btn variant="tonal" color="red" size="x-small" style="margin: 2px;font-size: 8px;" rounded>
|
|
215
|
+
Tanaguru
|
|
216
|
+
</v-btn>
|
|
217
|
+
Problèmes relevés par Tanaguru
|
|
218
|
+
</div>
|
|
219
|
+
</div>
|
|
220
|
+
</div>
|
|
221
|
+
`,
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
tags: ['!dev'],
|
|
225
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { ExpertiseLevelEnum } from './constants/ExpertiseLevelEnum'
|
|
2
|
+
|
|
3
|
+
export const AccessibiliteItemsIndeterminate = [
|
|
4
|
+
{
|
|
5
|
+
title: 'Catégorie 3 : Couleurs',
|
|
6
|
+
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 ?',
|
|
7
|
+
items: [
|
|
8
|
+
{
|
|
9
|
+
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 ?',
|
|
10
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#3.1.2',
|
|
11
|
+
solution: [{
|
|
12
|
+
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 ;',
|
|
13
|
+
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.',
|
|
14
|
+
info3: '3. Si c’est le cas pour chaque texte, le test est validé',
|
|
15
|
+
}],
|
|
16
|
+
expertise: ExpertiseLevelEnum.DEV,
|
|
17
|
+
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
title: 'Catégorie 9 : Structuration de l’information',
|
|
24
|
+
subtitle: '9.1 Dans chaque page web, l’information est-elle structurée par l’utilisation appropriée de titres',
|
|
25
|
+
items: [
|
|
26
|
+
{
|
|
27
|
+
|
|
28
|
+
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 ?',
|
|
29
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#9.1.1',
|
|
30
|
+
solution: [{
|
|
31
|
+
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) ;',
|
|
32
|
+
info2: '2. Vérifier que la hiérarchie entre les titres est pertinente ;',
|
|
33
|
+
info3: '3. Si c’est le cas, le test est validé',
|
|
34
|
+
}],
|
|
35
|
+
expertise: ExpertiseLevelEnum.DEV,
|
|
36
|
+
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
export const AccessibiliteItemsValidated = [
|
|
45
|
+
|
|
46
|
+
{
|
|
47
|
+
title: 'Catégorie 3 : Couleurs',
|
|
48
|
+
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é?',
|
|
49
|
+
items: [
|
|
50
|
+
{
|
|
51
|
+
|
|
52
|
+
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.',
|
|
53
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#3.2.1',
|
|
54
|
+
solution: [{
|
|
55
|
+
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 ;',
|
|
56
|
+
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.',
|
|
57
|
+
info3: '3. Si c’est le cas pour chaque texte, le test est validé',
|
|
58
|
+
}],
|
|
59
|
+
expertise: ExpertiseLevelEnum.DESIGN,
|
|
60
|
+
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
|
|
64
|
+
precision: '3.2.4 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.',
|
|
65
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#3.2.1',
|
|
66
|
+
solution: [{
|
|
67
|
+
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 ;',
|
|
68
|
+
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.',
|
|
69
|
+
info3: '3. Si c’est le cas pour chaque texte, le test est validé',
|
|
70
|
+
}],
|
|
71
|
+
expertise: ExpertiseLevelEnum.DESIGN,
|
|
72
|
+
|
|
73
|
+
},
|
|
74
|
+
|
|
75
|
+
],
|
|
76
|
+
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
]
|
|
@@ -37,7 +37,7 @@ export const Default: Story = {
|
|
|
37
37
|
name: 'Script',
|
|
38
38
|
code: `
|
|
39
39
|
<script setup lang="ts">
|
|
40
|
-
import DataListGroup from '@cnamts/synapse'
|
|
40
|
+
import { DataListGroup } from '@cnamts/synapse'
|
|
41
41
|
|
|
42
42
|
const items = [
|
|
43
43
|
{
|
|
@@ -174,7 +174,7 @@ export const Icons: Story = {
|
|
|
174
174
|
name: 'Script',
|
|
175
175
|
code: `
|
|
176
176
|
<script setup lang="ts">
|
|
177
|
-
import DataListGroup from '@cnamts/synapse'
|
|
177
|
+
import { DataListGroup } from '@cnamts/synapse'
|
|
178
178
|
import { mdiCalendar, mdiAccount, mdiDoctor, mdiCardAccountDetails, mdiPencil } from '@mdi/js'
|
|
179
179
|
|
|
180
180
|
const icons = {
|
|
@@ -331,7 +331,7 @@ export const ActionBtn: Story = {
|
|
|
331
331
|
name: 'Script',
|
|
332
332
|
code: `
|
|
333
333
|
<script setup lang="ts">
|
|
334
|
-
import DataListGroup from '@cnamts/synapse'
|
|
334
|
+
import { DataListGroup } from '@cnamts/synapse'
|
|
335
335
|
|
|
336
336
|
const items = [
|
|
337
337
|
{
|
|
@@ -474,7 +474,7 @@ export const ItemWidth: Story = {
|
|
|
474
474
|
name: 'Script',
|
|
475
475
|
code: `
|
|
476
476
|
<script setup lang="ts">
|
|
477
|
-
import DataListGroup from '@cnamts/synapse'
|
|
477
|
+
import { DataListGroup } from '@cnamts/synapse'
|
|
478
478
|
|
|
479
479
|
const items = [
|
|
480
480
|
{
|
|
@@ -602,7 +602,7 @@ export const Chips: Story = {
|
|
|
602
602
|
name: 'Script',
|
|
603
603
|
code: `
|
|
604
604
|
<script setup lang="ts">
|
|
605
|
-
import DataListGroup from '@cnamts/synapse'
|
|
605
|
+
import { DataListGroup } from '@cnamts/synapse'
|
|
606
606
|
|
|
607
607
|
const items = [
|
|
608
608
|
{
|
|
@@ -743,7 +743,7 @@ export const HtmlValue: Story = {
|
|
|
743
743
|
name: 'Script',
|
|
744
744
|
code: `
|
|
745
745
|
<script setup lang="ts">
|
|
746
|
-
import DataListGroup from '@cnamts/synapse'
|
|
746
|
+
import { DataListGroup } from '@cnamts/synapse'
|
|
747
747
|
|
|
748
748
|
const items = [
|
|
749
749
|
{
|
|
@@ -874,7 +874,7 @@ export const Loading: Story = {
|
|
|
874
874
|
name: 'Script',
|
|
875
875
|
code: `
|
|
876
876
|
<script setup lang="ts">
|
|
877
|
-
import DataListGroup from '@cnamts/synapse'
|
|
877
|
+
import { DataListGroup } from '@cnamts/synapse'
|
|
878
878
|
|
|
879
879
|
const items = [
|
|
880
880
|
{
|
|
@@ -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,189 @@
|
|
|
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/Feedback/DialogBox/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
|
+
</div>
|
|
89
|
+
<span style="display:flex; justify-content:center; margin-bottom:5px;">______</span>
|
|
90
|
+
</div>
|
|
91
|
+
</v-expansion-panel-text>
|
|
92
|
+
</v-expansion-panel>
|
|
93
|
+
</v-expansion-panels>
|
|
94
|
+
</v-expansion-panel-text>
|
|
95
|
+
</v-expansion-panel>
|
|
96
|
+
</v-expansion-panels>
|
|
97
|
+
</v-col>
|
|
98
|
+
<v-col cols="6">
|
|
99
|
+
<div style="display:flex; margin-bottom: 10px; justify-content: space-between; align-items: center;">
|
|
100
|
+
<h5>{{ AccessibiliteItemsValidated.length }} critères pris en charge par l'équipe Design System</h5>
|
|
101
|
+
<div style="display: flex; align-items: center;">
|
|
102
|
+
<v-btn variant="tonal" color="red" size="x-small" style="margin: 4px;font-size: 8px;"
|
|
103
|
+
rounded>Tanaguru
|
|
104
|
+
</v-btn>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
<v-expansion-panels v-if="AccessibiliteItemsValidated.length > 0" value="opened" multiple>
|
|
108
|
+
<v-expansion-panel
|
|
109
|
+
v-for="(item, index) in AccessibiliteItemsValidated"
|
|
110
|
+
:key="index" style="background-color: rgba(53,135,0,0.1); margin-bottom: 10px;">
|
|
111
|
+
<v-expansion-panel-title>
|
|
112
|
+
<VIcon color="green" :icon="icon" style="margin-right: 5px;"/>
|
|
113
|
+
{{ item.title }}
|
|
114
|
+
</v-expansion-panel-title>
|
|
115
|
+
<v-expansion-panel-text>
|
|
116
|
+
<v-expansion-panels>
|
|
117
|
+
<v-expansion-panel>
|
|
118
|
+
<v-expansion-panel-title style="font-weight: bold;font-size: 13px; line-height: 16px;">
|
|
119
|
+
{{ item.subtitle }}
|
|
120
|
+
</v-expansion-panel-title>
|
|
121
|
+
<v-expansion-panel-text>
|
|
122
|
+
<div v-for="(value, i) in item.items" :key="i">
|
|
123
|
+
<p style="font-size: 13px;line-height: 16px;">
|
|
124
|
+
{{ value.precision }}
|
|
125
|
+
</p>
|
|
126
|
+
<div v-for="element in value.solution"
|
|
127
|
+
style="margin-top:15px; font-size: 13px;line-height: 16px;">
|
|
128
|
+
<p style="font-weight: bold;">Méthodologie du test : <a
|
|
129
|
+
href="value.link" target="blank">
|
|
130
|
+
<VIcon :icon="linkICon"/>
|
|
131
|
+
</a></p>
|
|
132
|
+
<p>{{ element.info1 }}</p>
|
|
133
|
+
<p>{{ element.info2 }}</p>
|
|
134
|
+
<p>{{ element.info3 }}</p>
|
|
135
|
+
</div>
|
|
136
|
+
<span style="display:flex; justify-content:center; margin-bottom:5px;">______</span>
|
|
137
|
+
</div>
|
|
138
|
+
</v-expansion-panel-text>
|
|
139
|
+
</v-expansion-panel>
|
|
140
|
+
</v-expansion-panels>
|
|
141
|
+
</v-expansion-panel-text>
|
|
142
|
+
</v-expansion-panel>
|
|
143
|
+
</v-expansion-panels>
|
|
144
|
+
<div v-else style="display: flex;justify-content: center;"><span style="text-align:center;" >Pas de critère d'accessibilité bloquant</span></div>
|
|
145
|
+
</v-col>
|
|
146
|
+
</div>
|
|
147
|
+
`,
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
tags: ['!dev'],
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export const Legende: StoryObj = {
|
|
154
|
+
args: {
|
|
155
|
+
icon: checkIcon,
|
|
156
|
+
},
|
|
157
|
+
render: (args) => {
|
|
158
|
+
return {
|
|
159
|
+
components: { VIcon },
|
|
160
|
+
setup() {
|
|
161
|
+
return { args }
|
|
162
|
+
},
|
|
163
|
+
template: `
|
|
164
|
+
<p style="color: grey;font-size: 11px; margin-bottom: 12px;">Date de conception: 20/11/2024</p>
|
|
165
|
+
<div>
|
|
166
|
+
<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>
|
|
167
|
+
<p style="margin-bottom: 12px;font-weight:bold;">Pour rappel le composant seul ne garantie pas
|
|
168
|
+
l'accessibilité du site.</p>
|
|
169
|
+
<div style="font-size: 14px">
|
|
170
|
+
<p>Nous avons deux façons de relever les problèmes d'accessibilité des composants :</p>
|
|
171
|
+
<div>
|
|
172
|
+
<v-btn variant="tonal" color="grey" size="x-small" style="margin: 2px;font-size: 8px;" rounded>
|
|
173
|
+
Audit
|
|
174
|
+
</v-btn>
|
|
175
|
+
Problèmes relevés par le projet
|
|
176
|
+
</div>
|
|
177
|
+
<div>
|
|
178
|
+
<v-btn variant="tonal" color="red" size="x-small" style="margin: 2px;font-size: 8px;" rounded>
|
|
179
|
+
Tanaguru
|
|
180
|
+
</v-btn>
|
|
181
|
+
Problèmes relevés par Tanaguru
|
|
182
|
+
</div>
|
|
183
|
+
</div>
|
|
184
|
+
</div>
|
|
185
|
+
`,
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
tags: ['!dev'],
|
|
189
|
+
}
|