@cnamts/synapse 0.0.4-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 +1277 -499
- package/dist/design-system-v3.js +4193 -1573
- package/dist/design-system-v3.umd.cjs +8 -8
- package/dist/style.css +1 -1
- package/package.json +18 -17
- package/src/assets/settings.scss +3 -0
- package/src/assets/tokens.scss +16 -17
- package/src/components/BackBtn/Accessibilite.mdx +14 -0
- package/src/components/BackBtn/Accessibilite.stories.ts +166 -0
- package/src/components/BackBtn/AccessibiliteItems.ts +102 -0
- 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/BackBtn/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/BackToTopBtn/Accessibilite.mdx +14 -0
- package/src/components/BackToTopBtn/Accessibilite.stories.ts +166 -0
- package/src/components/BackToTopBtn/AccessibiliteItems.ts +52 -0
- package/src/components/BackToTopBtn/BackToTopBtn.mdx +1 -1
- package/src/components/BackToTopBtn/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/CollapsibleList/Accessibilite.mdx +14 -0
- package/src/components/CollapsibleList/Accessibilite.stories.ts +170 -0
- package/src/components/CollapsibleList/AccessibiliteItems.ts +122 -0
- package/src/components/CollapsibleList/CollapsibleList.stories.ts +1 -1
- package/src/components/CollapsibleList/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/CookieBanner/Accessibilite.mdx +14 -0
- 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/constants/ExpertiseLevelEnum.ts +4 -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/Accessibilite.mdx +14 -0
- package/src/components/CopyBtn/Accessibilite.stories.ts +166 -0
- package/src/components/CopyBtn/AccessibiliteItems.ts +105 -0
- 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/CopyBtn/config.ts +2 -0
- package/src/components/CopyBtn/constants/ExpertiseLevelEnum.ts +4 -0
- 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 +45 -0
- package/src/components/Customs/SyBtnSelect/SyBtnSelect.stories.ts +662 -0
- package/src/components/Customs/SyBtnSelect/SyBtnSelect.vue +254 -0
- package/src/components/Customs/SyBtnSelect/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/Customs/SyBtnSelect/tests/SyBtnSelect.spec.ts +168 -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 +41 -0
- package/src/components/Customs/{CustomInputSelect/CustomInputSelect.stories.ts → SyInputSelect/SyInputSelect.stories.ts} +30 -83
- package/src/components/Customs/{CustomInputSelect/CustomInputSelect.vue → SyInputSelect/SyInputSelect.vue} +46 -6
- package/src/components/Customs/SyInputSelect/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/Customs/SyInputSelect/tests/SyInputSelect.spec.ts +140 -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/{CustomSelect/CustomSelect.mdx → SySelect/SySelect.mdx} +9 -8
- package/src/components/Customs/{CustomSelect/CustomSelect.stories.ts → SySelect/SySelect.stories.ts} +25 -79
- package/src/components/Customs/{CustomSelect/CustomSelect.vue → SySelect/SySelect.vue} +44 -13
- package/src/components/Customs/SySelect/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/Customs/{CustomInputSelect/tests/CustomInputSelect.spec.ts → SySelect/tests/SySelect.spec.ts} +48 -71
- 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 +44 -0
- package/src/components/Customs/{CustomTextField/CustomTextField.stories.ts → SyTextField/SyTextField.stories.ts} +145 -34
- package/src/components/Customs/{CustomTextField/CustomTextField.vue → SyTextField/SyTextField.vue} +27 -7
- package/src/components/Customs/SyTextField/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/Customs/{CustomTextField/tests/CustomTextField.spec.ts → SyTextField/tests/SyTextField.spec.ts} +3 -3
- package/src/components/Customs/{CustomTextField/tests/__snapshots__/CustomTextField.spec.ts.snap → SyTextField/tests/__snapshots__/SyTextField.spec.ts.snap} +5 -6
- 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/DialogBox.mdx +14 -0
- package/src/components/DialogBox/DialogBox.stories.ts +798 -0
- package/src/components/DialogBox/DialogBox.vue +181 -0
- package/src/components/DialogBox/config.ts +25 -0
- package/src/components/DialogBox/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/DialogBox/locales.ts +5 -0
- package/src/components/DialogBox/tests/DialogBox.spec.ts +329 -0
- package/src/components/DialogBox/tests/__snapshots__/DialogBox.spec.ts.snap +46 -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/ErrorPage.mdx +21 -0
- package/src/components/ErrorPage/ErrorPage.stories.ts +133 -0
- package/src/components/ErrorPage/ErrorPage.vue +93 -0
- package/src/components/ErrorPage/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/ErrorPage/locales.ts +5 -0
- package/src/components/ErrorPage/tests/ErrorPage.spec.ts +40 -0
- package/src/components/ErrorPage/tests/__snapshots__/ErrorPage.spec.ts.snap +78 -0
- 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 +556 -8
- package/src/components/FooterBar/FooterBar.vue +80 -73
- package/src/components/FooterBar/config.ts +2 -3
- package/src/components/FooterBar/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/FooterBar/tests/FooterBar.spec.ts +1 -1
- package/src/components/FooterBar/tests/FooterBarConfig.spec.ts +1 -1
- package/src/components/FooterBar/tests/__snapshots__/FooterBar.spec.ts.snap +24 -22
- package/src/components/FranceConnectBtn/Accessibilite.mdx +14 -0
- package/src/components/FranceConnectBtn/Accessibilite.stories.ts +194 -0
- package/src/components/FranceConnectBtn/AccessibiliteItems.ts +169 -0
- package/src/components/FranceConnectBtn/FranceConnectBtn.mdx +1 -1
- package/src/components/FranceConnectBtn/FranceConnectBtn.stories.ts +3 -3
- package/src/components/FranceConnectBtn/constants/ExpertiseLevelEnum.ts +4 -0
- 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 +60 -2
- 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/HeaderNavigationBar.mdx +6 -6
- package/src/components/HeaderNavigationBar/HorizontalNavbar/HorizontalNavbar.vue +35 -33
- package/src/components/HeaderNavigationBar/tests/HeaderNavigationBar.spec.ts +1 -1
- 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 +3 -2
- package/src/components/HeaderToolbar/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/HeaderToolbar/tests/HeaderToolbar.spec.ts +36 -2
- package/src/components/LangBtn/Accessibilite.mdx +14 -0
- package/src/components/LangBtn/Accessibilite.stories.ts +168 -0
- package/src/components/LangBtn/AccessibiliteItems.ts +101 -0
- 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/LangBtn/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/LangBtn/tests/LangBtn.spec.ts +1 -1
- package/src/components/LangBtn/tests/__snapshots__/LangBtn.spec.ts.snap +1 -1
- 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/MaintenancePage.mdx +11 -0
- package/src/components/MaintenancePage/MaintenancePage.stories.ts +41 -0
- package/src/components/MaintenancePage/MaintenancePage.vue +25 -0
- package/src/components/MaintenancePage/assets/maintenance.svg +1 -0
- package/src/components/MaintenancePage/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/MaintenancePage/index.ts +3 -0
- package/src/components/MaintenancePage/locales.ts +5 -0
- package/src/components/MaintenancePage/tests/MaintenancePage.spec.ts +12 -0
- package/src/components/MaintenancePage/tests/__snapshots__/MaintenancePage.spec.ts.snap +3 -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/NotFoundPage.mdx +19 -0
- package/src/components/NotFoundPage/NotFoundPage.stories.ts +76 -0
- package/src/components/NotFoundPage/NotFoundPage.vue +52 -0
- package/src/components/NotFoundPage/assets/not-found.svg +1 -0
- package/src/components/NotFoundPage/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/NotFoundPage/locales.ts +6 -0
- package/src/components/NotFoundPage/tests/NotFoundPage.spec.ts +38 -0
- package/src/components/NotFoundPage/tests/__snapshots__/NotFoundPage.spec.ts.snap +76 -0
- package/src/components/NotificationBar/Accessibilite.mdx +14 -0
- package/src/components/NotificationBar/Accessibilite.stories.ts +166 -0
- package/src/components/NotificationBar/AccessibiliteItems.ts +144 -0
- package/src/components/NotificationBar/NotificationBar.mdx +1 -1
- package/src/components/NotificationBar/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/NotificationBar/options.ts +1 -0
- package/src/components/PageContainer/Accessibilite.mdx +14 -0
- package/src/components/PageContainer/Accessibilite.stories.ts +166 -0
- package/src/components/PageContainer/AccessibiliteItems.ts +52 -0
- 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/constants/ExpertiseLevelEnum.ts +4 -0
- 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 +5 -6
- package/src/components/PhoneField/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/PhoneField/tests/PhoneField.spec.ts +3 -3
- package/src/components/SkipLink/Accessibilite.mdx +14 -0
- package/src/components/SkipLink/Accessibilite.stories.ts +167 -0
- package/src/components/SkipLink/AccessibiliteItems.ts +77 -0
- package/src/components/SkipLink/SkipLink.stories.ts +2 -2
- package/src/components/SkipLink/constants/ExpertiseLevelEnum.ts +4 -0
- 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 +18 -14
- package/src/components/SocialMediaLinks/SocialMediaLinks.stories.ts +3 -2
- package/src/components/SocialMediaLinks/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/SocialMediaLinks/tests/SocialMediaLinks.spec.ts +1 -1
- 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 +11 -11
- package/src/components/SubHeader/SubHeader.vue +1 -1
- package/src/components/SubHeader/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/SyAlert/Accessibilite.mdx +14 -0
- package/src/components/SyAlert/Accessibilite.stories.ts +166 -0
- package/src/components/SyAlert/AccessibiliteItems.ts +122 -0
- 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 +35 -0
- package/src/components/UserMenuBtn/UserMenuBtn.stories.ts +540 -0
- package/src/components/UserMenuBtn/UserMenuBtn.vue +101 -0
- package/src/components/UserMenuBtn/config.ts +24 -0
- package/src/components/UserMenuBtn/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/UserMenuBtn/tests/UserMenuBtn.spec.ts +125 -0
- package/src/components/index.ts +19 -4
- package/src/composables/index.ts +8 -0
- package/src/composables/rules/tests/useFieldValidation.spec.ts +84 -0
- package/src/composables/rules/useFieldValidation.ts +90 -0
- package/src/designTokens/index.ts +2 -0
- package/src/designTokens/tokens/cnam/cnamDarkTheme.ts +5 -0
- package/src/designTokens/tokens/cnam/cnamLightTheme.ts +1 -0
- package/src/main.ts +3 -0
- package/src/stories/Fondamentaux/Arrondis.mdx +24 -0
- package/src/stories/{Guidelines → Fondamentaux}/Colors.mdx +1 -1
- package/src/stories/Fondamentaux/Conteneurs.mdx +7 -0
- package/src/stories/Fondamentaux/CustomisationEtThemes.mdx +7 -0
- package/src/stories/Fondamentaux/Elevations.mdx +14 -0
- package/src/stories/Fondamentaux/Espacements.mdx +29 -0
- package/src/stories/{Guidelines → Fondamentaux}/Introduction.mdx +1 -1
- package/src/stories/Fondamentaux/StylesTypographiques.mdx +33 -0
- package/src/stories/Fondamentaux/Typographie.mdx +58 -0
- package/src/stories/GuideDuDev/CommentUtiliserLesRules.mdx +120 -0
- package/src/stories/GuideDuDev/components.stories.ts +5 -5
- package/src/stories/GuideDuDev/moduleDeNotification.mdx +1 -1
- package/src/stories/{Fondamentaux → Guidelines}/Accessibilite/Accessibilite.stories.ts +1 -1
- package/src/stories/{Fondamentaux → Guidelines}/EcoConception/Econception.stories.ts +2 -2
- 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/Customs/CustomInputSelect/CustomInputSelect.mdx +0 -40
- package/src/components/Customs/CustomSelect/tests/CustomSelect.spec.ts +0 -236
- package/src/components/Customs/CustomTextField/CustomTextField.mdx +0 -44
- package/src/stories/Guidelines/CustomisationEtThemes.mdx +0 -3
- package/src/stories/Guidelines/Typo.mdx +0 -53
- /package/src/components/Customs/{CustomInputSelect → SyInputSelect}/config.ts +0 -0
- /package/src/components/Customs/{CustomTextField → SyTextField}/types.d.ts +0 -0
- /package/src/components/{Alert/Alert.vue → SyAlert/SyAlert.vue} +0 -0
- /package/src/components/{Alert → SyAlert}/locales.ts +0 -0
- /package/src/stories/{Fondamentaux → Guidelines}/Accessibilite/Accessibilite.mdx +0 -0
- /package/src/stories/{Fondamentaux → Guidelines}/Accessibilite/AccessibiliteItems.ts +0 -0
- /package/src/stories/{Fondamentaux → Guidelines}/Accessibilite/constants/ExpertiseLevelEnum.ts +0 -0
- /package/src/stories/{Fondamentaux → Guidelines}/Accessibilite/constants/RGAALevelEnum.ts +0 -0
- /package/src/stories/{Fondamentaux → Guidelines}/EcoConception/EcoConception.mdx +0 -0
- /package/src/stories/{Fondamentaux → Guidelines}/EcoConception/ecoDesignItems.ts +0 -0
|
@@ -145,91 +145,93 @@
|
|
|
145
145
|
}"
|
|
146
146
|
role="contentinfo"
|
|
147
147
|
>
|
|
148
|
-
<div
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
<
|
|
154
|
-
<
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
148
|
+
<div class="container">
|
|
149
|
+
<div
|
|
150
|
+
v-if="extendedMode"
|
|
151
|
+
class="d-flex align-start align-sm-center mb-6"
|
|
152
|
+
>
|
|
153
|
+
<div class="d-flex flex-grow-1 flex-column flex-sm-row">
|
|
154
|
+
<slot name="logo">
|
|
155
|
+
<Logo
|
|
156
|
+
v-if="!props.hideLogo"
|
|
157
|
+
:size="logoSize"
|
|
158
|
+
:class="{ 'mb-2 mb-sm-0': !props.hideSocialMediaLinks }"
|
|
159
|
+
class="logo"
|
|
160
|
+
/>
|
|
161
|
+
</slot>
|
|
161
162
|
|
|
162
|
-
|
|
163
|
+
<VSpacer v-bind="options.spacer" />
|
|
163
164
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
165
|
+
<SocialMediaLinks
|
|
166
|
+
v-if="!props.hideSocialMediaLinks"
|
|
167
|
+
:links="props.socialMediaLinks"
|
|
168
|
+
class="mr-8 social"
|
|
169
|
+
/>
|
|
170
|
+
</div>
|
|
170
171
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
>
|
|
177
|
-
<VIcon
|
|
178
|
-
v-bind="options.goTopBtnIcon"
|
|
179
|
-
class="scroll"
|
|
172
|
+
<VBtn
|
|
173
|
+
id="scroll-btn"
|
|
174
|
+
v-bind="options.goTopBtn"
|
|
175
|
+
:aria-label="locales.goTopBtnLabel"
|
|
176
|
+
@click="scrollToTop"
|
|
180
177
|
>
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
class="mb-3"
|
|
190
|
-
/>
|
|
178
|
+
<VIcon
|
|
179
|
+
v-bind="options.goTopBtnIcon"
|
|
180
|
+
class="scroll"
|
|
181
|
+
>
|
|
182
|
+
{{ arrowTopIcon }}
|
|
183
|
+
</VIcon>
|
|
184
|
+
</VBtn>
|
|
185
|
+
</div>
|
|
191
186
|
|
|
192
|
-
|
|
187
|
+
<VDivider
|
|
188
|
+
v-if="extendedMode"
|
|
189
|
+
v-bind="options.divider"
|
|
190
|
+
class="mb-3"
|
|
191
|
+
/>
|
|
193
192
|
|
|
194
|
-
|
|
195
|
-
v-if="extendedMode"
|
|
196
|
-
v-bind="options.divider"
|
|
197
|
-
class="mt-3 mb-6"
|
|
198
|
-
/>
|
|
193
|
+
<slot />
|
|
199
194
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
195
|
+
<VDivider
|
|
196
|
+
v-if="extendedMode"
|
|
197
|
+
v-bind="options.divider"
|
|
198
|
+
class="mt-3 mb-6"
|
|
199
|
+
/>
|
|
205
200
|
|
|
206
|
-
<
|
|
207
|
-
|
|
208
|
-
|
|
201
|
+
<ul
|
|
202
|
+
:class="{ 'py-2 py-sm-0': !extendedMode }"
|
|
203
|
+
class="vd-footer-bar-links text-sm-center d-flex flex-column flex-sm-row flex-wrap align-start justify-center max-width-none mx-n3 my-n3"
|
|
209
204
|
>
|
|
210
|
-
<
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
:
|
|
215
|
-
:target="item.openInNewTab ? '_blank' : undefined"
|
|
216
|
-
:tabindex="index"
|
|
217
|
-
:rel="item.openInNewTab ? 'noopener noreferrer' : undefined"
|
|
218
|
-
class="my-3 mx-4"
|
|
205
|
+
<slot name="prepend" />
|
|
206
|
+
|
|
207
|
+
<li
|
|
208
|
+
v-for="(item, index) in footerLinksMapping"
|
|
209
|
+
:key="index"
|
|
219
210
|
>
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
211
|
+
<component
|
|
212
|
+
:is="getLinkComponent(item)"
|
|
213
|
+
:href="item.href"
|
|
214
|
+
:to="item.to"
|
|
215
|
+
:aria-label="item.ariaLabel"
|
|
216
|
+
:target="item.openInNewTab ? '_blank' : undefined"
|
|
217
|
+
:tabindex="index"
|
|
218
|
+
:rel="item.openInNewTab ? 'noopener noreferrer' : undefined"
|
|
219
|
+
class="my-3 mx-4"
|
|
220
|
+
>
|
|
221
|
+
{{ item.text }}
|
|
222
|
+
</component>
|
|
223
|
+
</li>
|
|
223
224
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
225
|
+
<li
|
|
226
|
+
v-if="props.version"
|
|
227
|
+
class="text-primary my-3 mx-4"
|
|
228
|
+
>
|
|
229
|
+
{{ locales.versionLabel }} {{ props.version }}
|
|
230
|
+
</li>
|
|
230
231
|
|
|
231
|
-
|
|
232
|
-
|
|
232
|
+
<slot name="append" />
|
|
233
|
+
</ul>
|
|
234
|
+
</div>
|
|
233
235
|
</VFooter>
|
|
234
236
|
</template>
|
|
235
237
|
|
|
@@ -247,6 +249,11 @@ a {
|
|
|
247
249
|
.v-footer {
|
|
248
250
|
flex-grow: 0 !important;
|
|
249
251
|
justify-content: center;
|
|
252
|
+
.container {
|
|
253
|
+
width: 100%;
|
|
254
|
+
max-width: 1712px;
|
|
255
|
+
margin: 0 auto;
|
|
256
|
+
}
|
|
250
257
|
}
|
|
251
258
|
.vd-footer-bar :deep() {
|
|
252
259
|
.vd-footer-bar-links a {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type { VariantType, DensityType } from '@/types/vuetifyTypes'
|
|
2
|
-
import { cnamColorsTokens } from '@/designTokens'
|
|
3
2
|
|
|
4
3
|
export const config = {
|
|
5
4
|
footer: {
|
|
6
5
|
elevation: 3,
|
|
7
|
-
color:
|
|
6
|
+
color: 'backgroundSurface',
|
|
8
7
|
height: 'auto',
|
|
9
8
|
},
|
|
10
9
|
goTopBtn: {
|
|
@@ -12,7 +11,7 @@ export const config = {
|
|
|
12
11
|
density: 'compact' as DensityType,
|
|
13
12
|
icon: 'true',
|
|
14
13
|
variant: 'text' as VariantType,
|
|
15
|
-
color:
|
|
14
|
+
color: 'backgroundSurface',
|
|
16
15
|
},
|
|
17
16
|
goTopBtnIcon: {
|
|
18
17
|
color: 'white',
|
|
@@ -7,7 +7,7 @@ import { vuetify } from '@tests/unit/setup'
|
|
|
7
7
|
import { LogoSize } from '@/components/Logo/LogoSize'
|
|
8
8
|
import { nextTick } from 'vue'
|
|
9
9
|
|
|
10
|
-
describe('FooterBar
|
|
10
|
+
describe('FooterBar', () => {
|
|
11
11
|
const getComponentType = (item: { href: unknown }) => {
|
|
12
12
|
return item.href ? 'a' : 'RouterLink'
|
|
13
13
|
}
|
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
2
|
|
|
3
|
-
exports[`FooterBar
|
|
4
|
-
"<footer data-v-a13c4e60="" class="v-footer v-theme--light elevation-3 vd-footer-bar flex-column align-stretch pa-3 w-100 v-theme--dark" style="
|
|
5
|
-
|
|
6
|
-
<!--v-if-->
|
|
7
|
-
<!--v-if-->
|
|
8
|
-
<ul data-v-a13c4e60="" class="py-2 py-sm-0 vd-footer-bar-links text-sm-center d-flex flex-column flex-sm-row flex-wrap align-start justify-center max-width-none mx-n3 my-n3">
|
|
9
|
-
<li data-v-a13c4e60="">
|
|
10
|
-
<routerlink data-v-a13c4e60="" to="[object Object]" tabindex="0" class="my-3 mx-4">Plan du site</routerlink>
|
|
11
|
-
</li>
|
|
12
|
-
<li data-v-a13c4e60="">
|
|
13
|
-
<routerlink data-v-a13c4e60="" to="[object Object]" tabindex="1" class="my-3 mx-4">Conditions générales d’utilisation</routerlink>
|
|
14
|
-
</li>
|
|
15
|
-
<li data-v-a13c4e60="">
|
|
16
|
-
<routerlink data-v-a13c4e60="" to="[object Object]" tabindex="2" class="my-3 mx-4">Gestion des cookies</routerlink>
|
|
17
|
-
</li>
|
|
18
|
-
<li data-v-a13c4e60="">
|
|
19
|
-
<routerlink data-v-a13c4e60="" to="[object Object]" tabindex="3" class="my-3 mx-4">Mentions légales</routerlink>
|
|
20
|
-
</li>
|
|
21
|
-
<li data-v-a13c4e60="">
|
|
22
|
-
<routerlink data-v-a13c4e60="" to="[object Object]" tabindex="4" class="my-3 mx-4">Accessibilité : non conforme</routerlink>
|
|
23
|
-
</li>
|
|
3
|
+
exports[`FooterBar > renders correctly 1`] = `
|
|
4
|
+
"<footer data-v-a13c4e60="" class="v-footer v-theme--light bg-backgroundSurface elevation-3 vd-footer-bar flex-column align-stretch pa-3 w-100 v-theme--dark" style="height: auto;" role="contentinfo">
|
|
5
|
+
<div data-v-a13c4e60="" class="container">
|
|
24
6
|
<!--v-if-->
|
|
25
|
-
|
|
7
|
+
<!--v-if-->
|
|
8
|
+
<!--v-if-->
|
|
9
|
+
<ul data-v-a13c4e60="" class="py-2 py-sm-0 vd-footer-bar-links text-sm-center d-flex flex-column flex-sm-row flex-wrap align-start justify-center max-width-none mx-n3 my-n3">
|
|
10
|
+
<li data-v-a13c4e60="">
|
|
11
|
+
<routerlink data-v-a13c4e60="" to="[object Object]" tabindex="0" class="my-3 mx-4">Plan du site</routerlink>
|
|
12
|
+
</li>
|
|
13
|
+
<li data-v-a13c4e60="">
|
|
14
|
+
<routerlink data-v-a13c4e60="" to="[object Object]" tabindex="1" class="my-3 mx-4">Conditions générales d’utilisation</routerlink>
|
|
15
|
+
</li>
|
|
16
|
+
<li data-v-a13c4e60="">
|
|
17
|
+
<routerlink data-v-a13c4e60="" to="[object Object]" tabindex="2" class="my-3 mx-4">Gestion des cookies</routerlink>
|
|
18
|
+
</li>
|
|
19
|
+
<li data-v-a13c4e60="">
|
|
20
|
+
<routerlink data-v-a13c4e60="" to="[object Object]" tabindex="3" class="my-3 mx-4">Mentions légales</routerlink>
|
|
21
|
+
</li>
|
|
22
|
+
<li data-v-a13c4e60="">
|
|
23
|
+
<routerlink data-v-a13c4e60="" to="[object Object]" tabindex="4" class="my-3 mx-4">Accessibilité : non conforme</routerlink>
|
|
24
|
+
</li>
|
|
25
|
+
<!--v-if-->
|
|
26
|
+
</ul>
|
|
27
|
+
</div>
|
|
26
28
|
</footer>"
|
|
27
29
|
`;
|
|
@@ -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,194 @@
|
|
|
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/Boutons/FranceConnectBtn/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
|
+
<v-expansion-panel>
|
|
124
|
+
<v-expansion-panel-title style="font-weight: bold;font-size: 13px; line-height: 16px;">
|
|
125
|
+
{{ item.subtitle }}
|
|
126
|
+
</v-expansion-panel-title>
|
|
127
|
+
<v-expansion-panel-text>
|
|
128
|
+
<div v-for="(value, i) in item.items" :key="i">
|
|
129
|
+
<p style="font-size: 13px;line-height: 16px;">
|
|
130
|
+
{{ value.precision }}
|
|
131
|
+
</p>
|
|
132
|
+
<div v-for="element in value.solution"
|
|
133
|
+
style="margin-top:15px; font-size: 13px;line-height: 16px;">
|
|
134
|
+
<p style="font-weight: bold;">Méthodologie du test : <a
|
|
135
|
+
href="value.link" target="blank">
|
|
136
|
+
<VIcon :icon="linkICon"/>
|
|
137
|
+
</a></p>
|
|
138
|
+
<p>{{ element.info1 }}</p>
|
|
139
|
+
<p>{{ element.info2 }}</p>
|
|
140
|
+
<p>{{ element.info3 }}</p>
|
|
141
|
+
</div>
|
|
142
|
+
<span style="display:flex; justify-content:center; margin-bottom:5px;">______</span>
|
|
143
|
+
</div>
|
|
144
|
+
</v-expansion-panel-text>
|
|
145
|
+
</v-expansion-panel>
|
|
146
|
+
</v-expansion-panels>
|
|
147
|
+
</v-expansion-panel-text>
|
|
148
|
+
</v-expansion-panel>
|
|
149
|
+
</v-expansion-panels>
|
|
150
|
+
</v-col>
|
|
151
|
+
</div>
|
|
152
|
+
`,
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
tags: ['!dev'],
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export const Legende: StoryObj = {
|
|
159
|
+
args: {
|
|
160
|
+
icon: checkIcon,
|
|
161
|
+
},
|
|
162
|
+
render: (args) => {
|
|
163
|
+
return {
|
|
164
|
+
components: { VIcon },
|
|
165
|
+
setup() {
|
|
166
|
+
return { args }
|
|
167
|
+
},
|
|
168
|
+
template: `
|
|
169
|
+
<p style="color: grey;font-size: 11px; margin-bottom: 12px;">Date de conception: 20/11/2024</p>
|
|
170
|
+
<div>
|
|
171
|
+
<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>
|
|
172
|
+
<p style="margin-bottom: 12px;font-weight:bold;">Pour rappel le composant seul ne garantie pas
|
|
173
|
+
l'accessibilité du site.</p>
|
|
174
|
+
<div style="font-size: 14px">
|
|
175
|
+
<p>Nous avons deux façons de relever les problèmes d'accessibilité des composants :</p>
|
|
176
|
+
<div>
|
|
177
|
+
<v-btn variant="tonal" color="grey" size="x-small" style="margin: 2px;font-size: 8px;" rounded>
|
|
178
|
+
Audit
|
|
179
|
+
</v-btn>
|
|
180
|
+
Problèmes relevés par le projet
|
|
181
|
+
</div>
|
|
182
|
+
<div>
|
|
183
|
+
<v-btn variant="tonal" color="red" size="x-small" style="margin: 2px;font-size: 8px;" rounded>
|
|
184
|
+
Tanaguru
|
|
185
|
+
</v-btn>
|
|
186
|
+
Problèmes relevés par Tanaguru
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
</div>
|
|
190
|
+
`,
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
tags: ['!dev'],
|
|
194
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { ExpertiseLevelEnum } from './constants/ExpertiseLevelEnum'
|
|
2
|
+
|
|
3
|
+
export const AccessibiliteItemsIndeterminate = [
|
|
4
|
+
|
|
5
|
+
{
|
|
6
|
+
title: 'Catégorie 3 : Couleurs',
|
|
7
|
+
items: [
|
|
8
|
+
|
|
9
|
+
],
|
|
10
|
+
items2: [
|
|
11
|
+
{
|
|
12
|
+
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 ?',
|
|
13
|
+
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 ?',
|
|
14
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#3.1.2',
|
|
15
|
+
solution: [{
|
|
16
|
+
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 ;',
|
|
17
|
+
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.',
|
|
18
|
+
info3: '3. Si c’est le cas pour chaque texte, le test est validé',
|
|
19
|
+
}],
|
|
20
|
+
expertise: ExpertiseLevelEnum.DESIGN,
|
|
21
|
+
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
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é?',
|
|
25
|
+
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.',
|
|
26
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#3.2.1',
|
|
27
|
+
solution: [{
|
|
28
|
+
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 ;',
|
|
29
|
+
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.',
|
|
30
|
+
info3: '3. Si c’est le cas pour chaque texte, le test est validé',
|
|
31
|
+
}],
|
|
32
|
+
expertise: ExpertiseLevelEnum.DESIGN,
|
|
33
|
+
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
title: 'Catégorie 6 : Liens',
|
|
40
|
+
subtitle: '6.1 Chaque lien est-il explicite ? ',
|
|
41
|
+
items: [
|
|
42
|
+
{
|
|
43
|
+
|
|
44
|
+
precision: '6.1.2 Chaque lien image vérifie-t-il une de ces conditions ? '
|
|
45
|
+
+ 'L’intitulé de lien seul permet d’en comprendre la fonction et la destination ; '
|
|
46
|
+
+ 'L’intitulé de lien additionné au contexte du lien permet d’en comprendre la fonction et la destination.',
|
|
47
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#6.1.2',
|
|
48
|
+
solution: [{
|
|
49
|
+
info1: '1. Retrouver dans le document les liens image (lien avec pour contenu un élément <img> ou un élément ayant l’attribut WAI-ARIA role="img", un élément <area> possédant un attribut href, un élément <object>, un élément <canvas> ou un élément <svg>) ; ',
|
|
50
|
+
info2: '2. Pour chaque lien image, vérifier que ce qui permet d’en comprendre la fonction et la destination est : '
|
|
51
|
+
+ 'Soit l’intitulé du lien seul, fourni par l’alternative textuelle de l’image ; '
|
|
52
|
+
+ 'Soit le contexte du lien.',
|
|
53
|
+
info3: '3. Si c’est le cas pour chaque lien image, le test est validé.',
|
|
54
|
+
}],
|
|
55
|
+
expertise: ExpertiseLevelEnum.DEV,
|
|
56
|
+
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
|
|
60
|
+
precision: '6.1.3 Chaque lien composite vérifie-t-il une de ces conditions ? '
|
|
61
|
+
+ 'L’intitulé de lien seul permet d’en comprendre la fonction et la destination ; '
|
|
62
|
+
+ 'L’intitulé de lien additionné au contexte du lien permet d’en comprendre la fonction et la destination. ',
|
|
63
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#6.1.3',
|
|
64
|
+
solution: [{
|
|
65
|
+
info1: '1. Retrouver dans le document les liens composites (lien composé à la fois de contenu texte et d’éléments de type image) ; ',
|
|
66
|
+
info2: '2. Pour chaque lien composite, vérifier que ce qui permet d’en comprendre la fonction et la destination est : '
|
|
67
|
+
+ 'Soit l’intitulé du lien seul, fourni par la combinaison du contenu texte et de l’alternative textuelle de l’image ; '
|
|
68
|
+
+ 'Soit le contexte du lien. ',
|
|
69
|
+
info3: '3. Si c’est le cas pour chaque lien composite, le test est validé.',
|
|
70
|
+
}],
|
|
71
|
+
expertise: ExpertiseLevelEnum.DEV,
|
|
72
|
+
|
|
73
|
+
},
|
|
74
|
+
|
|
75
|
+
],
|
|
76
|
+
},
|
|
77
|
+
|
|
78
|
+
]
|
|
79
|
+
|
|
80
|
+
export const AccessibiliteItemsValidated = [
|
|
81
|
+
{
|
|
82
|
+
title: 'Catégorie 1 : Images',
|
|
83
|
+
subtitle: '1.2 Chaque image de décoration est-elle correctement ignorée par les technologies d’assistance ?',
|
|
84
|
+
items: [
|
|
85
|
+
{
|
|
86
|
+
|
|
87
|
+
precision: '1.2.4 Chaque image vectorielle (balise <svg>) de décoration, sans légende, vérifie-t-elle ces conditions ? '
|
|
88
|
+
+ ' La balise <svg> possède un attribut WAI-ARIA aria-hidden="true" ;'
|
|
89
|
+
+ ' La balise <svg> et ses enfants sont dépourvus d’alternative textuelle ;'
|
|
90
|
+
+ ' Les balises <title> et <desc> sont absentes ou vides ;'
|
|
91
|
+
+ ' La balise <svg> et ses enfants sont dépourvus d’attribut title.',
|
|
92
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#1.2.4',
|
|
93
|
+
solution: [{
|
|
94
|
+
info1: '1. Pour chaque image, vérifier que l’élément <svg> ne possède pas d’attributs aria-labelledby ou aria-label et qu’il :'
|
|
95
|
+
+ ' Possède un attribut WAI-ARIA aria-hidden="true" ;'
|
|
96
|
+
+ ' Et est dépourvu d’alternative textuelle (ainsi que ses éléments enfants) ;'
|
|
97
|
+
+ ' Et ne contient pas d’éléments <title> et <desc> à moins que vides de contenu ;'
|
|
98
|
+
+ ' Et est dépourvu d’attribut title (ainsi que ses éléments enfants).'
|
|
99
|
+
+ ' Le nom du composant est cohérent avec l’état de la fonctionnalité ou des contenus contrôlés (par exemple pour une fonctionnalité permettant d’afficher ou de masquer une zone de contenu).',
|
|
100
|
+
info2: '2. Sinon, vérifier la présence d’un composant d’interface accessible permettant d’accéder aux mêmes fonctionnalités',
|
|
101
|
+
info3: '3. Si c’est le cas pour chaque image, le test est validé.',
|
|
102
|
+
}],
|
|
103
|
+
expertise: ExpertiseLevelEnum.DESIGN,
|
|
104
|
+
|
|
105
|
+
},
|
|
106
|
+
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
title: 'Catégorie 3 : Couleurs',
|
|
111
|
+
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é?',
|
|
112
|
+
items: [
|
|
113
|
+
{
|
|
114
|
+
|
|
115
|
+
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.',
|
|
116
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#3.2.1',
|
|
117
|
+
solution: [{
|
|
118
|
+
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 ;',
|
|
119
|
+
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.',
|
|
120
|
+
info3: '3. Si c’est le cas pour chaque texte, le test est validé',
|
|
121
|
+
}],
|
|
122
|
+
expertise: ExpertiseLevelEnum.DESIGN,
|
|
123
|
+
|
|
124
|
+
},
|
|
125
|
+
|
|
126
|
+
],
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
title: 'Catégorie 6 : Liens',
|
|
130
|
+
subtitle: '6.2 Dans chaque page web, chaque lien a-t-il un intitulé ? ',
|
|
131
|
+
items: [
|
|
132
|
+
{
|
|
133
|
+
|
|
134
|
+
precision: ' 6.2.1 Dans chaque page web, chaque lien a-t-il un intitulé entre <a> et </a> ?',
|
|
135
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#6.2.1',
|
|
136
|
+
solution: [{
|
|
137
|
+
info1: '1. Retrouver dans le document les liens quels qu’ils soient ; ',
|
|
138
|
+
info2: '2. Pour chaque lien, vérifier que le contenu de l’élément <a> (ou d’un élément pourvu d’un attribut WAI-ARIA role=link) contient un intitulé (texte ou alternative) ; ',
|
|
139
|
+
info3: '3. Si c’est le cas pour chaque lien, le test est validé.',
|
|
140
|
+
}],
|
|
141
|
+
expertise: ExpertiseLevelEnum.DESIGN,
|
|
142
|
+
|
|
143
|
+
},
|
|
144
|
+
|
|
145
|
+
],
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
title: 'Catégorie 8 : Eléments Obligatoires',
|
|
149
|
+
subtitle: '8.9 Dans chaque page web, les balises ne doivent pas être utilisées uniquement à des fins de présentation',
|
|
150
|
+
items: [
|
|
151
|
+
|
|
152
|
+
{
|
|
153
|
+
precision: ' 8.9.1 Dans chaque page web les balises (à l’exception de <div>, <span> et <table>) ne doivent pas être utilisées uniquement à des fins de présentation. Cette règle est-elle respectée',
|
|
154
|
+
link: 'https://accessibilite.numerique.gouv.fr/methode/criteres-et-tests/#8.9.1',
|
|
155
|
+
solution: [{
|
|
156
|
+
info1: '1. Retrouver dans le document l’ensemble des éléments sémantiques utilisés à des fins de présentation ;',
|
|
157
|
+
info2: '2. Pour chacun de ces éléments, vérifier que :'
|
|
158
|
+
+ 'L’élément est pourvu d’un attribut role=“presentation” ;'
|
|
159
|
+
+ 'L’utilisation de cet élément à des fins de présentation reste justifée',
|
|
160
|
+
info3: '3. Si c’est le cas, le test est validé',
|
|
161
|
+
}],
|
|
162
|
+
expertise: ExpertiseLevelEnum.DESIGN,
|
|
163
|
+
|
|
164
|
+
},
|
|
165
|
+
|
|
166
|
+
],
|
|
167
|
+
},
|
|
168
|
+
|
|
169
|
+
]
|