@cnamts/synapse 1.0.19 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DateFilter-CeVuSfJ9.js → DateFilter-uN8OURoP.js} +1 -1
- package/dist/{NumberFilter-C8PAu_sw.js → NumberFilter-sm1dQNQi.js} +1 -1
- package/dist/{PeriodFilter-UMUaxx3d.js → PeriodFilter-Cklsxnh9.js} +1 -1
- package/dist/{SelectFilter-CqZl8CYt.js → SelectFilter-CWefj27Z.js} +1 -1
- package/dist/{TextFilter-D_RhhNOh.js → TextFilter-Ddyj885L.js} +1 -1
- package/dist/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.d.ts +4 -4
- package/dist/components/Amelipro/AmeliproClickableTile/AmeliproClickableTile.d.ts +17 -7
- package/dist/components/Amelipro/AmeliproSelect/AmeliproSelect.d.ts +4 -4
- package/dist/components/Amelipro/AmeliproTabs/AmeliproTabs.d.ts +4 -4
- package/dist/components/Customs/Selects/SyAutocomplete/SyAutocomplete.d.ts +2416 -0
- package/dist/components/Customs/Selects/SyAutocomplete/types.d.ts +5 -0
- package/dist/components/Customs/Selects/SyAutocomplete/utils/ariaManager.d.ts +14 -0
- package/dist/components/Customs/Selects/SyAutocomplete/utils/useItemUtils.d.ts +16 -0
- package/dist/components/Customs/Selects/SyAutocomplete/utils/useKeyboardHandler.d.ts +28 -0
- package/dist/components/Customs/Selects/SyAutocomplete/utils/useSelectionLogic.d.ts +12 -0
- package/dist/components/Customs/Selects/SySelect/composables/useSySelectKeyboard.d.ts +2 -0
- package/dist/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.d.ts +160 -0
- package/dist/components/Customs/SyCheckBoxGroup/locales.d.ts +3 -0
- package/dist/components/Customs/SyCheckBoxGroup/types.d.ts +10 -0
- package/dist/components/Customs/SyCheckbox/SyCheckbox.d.ts +1545 -2
- package/dist/components/Customs/SyIcon/SyIcon.d.ts +2 -1
- package/dist/components/Customs/SyRadioGroup/SyRadioGroup.d.ts +1495 -2
- package/dist/components/DatePicker/composables/useDateSelection.d.ts +1 -0
- package/dist/components/DeclarationAccessibilityPage/DeclarationAccessibilityPage.d.ts +60 -0
- package/dist/components/ErrorPage/ErrorPage.d.ts +1 -12
- package/dist/components/ErrorPage/locales.d.ts +18 -3
- package/dist/components/FileUpload/FileUpload.d.ts +2 -0
- package/dist/components/MaintenancePage/locales.d.ts +18 -2
- package/dist/components/NotFoundPage/locales.d.ts +20 -4
- package/dist/components/PaginatedTable/PaginatedTable.d.ts +1 -1
- package/dist/components/PaginatedTable/Pagination.d.ts +17 -0
- package/dist/components/StatusPage/StatusPage.d.ts +39 -0
- package/dist/components/Tables/SyServerTable/SyServerTable.d.ts +5 -5
- package/dist/components/Tables/SyTable/SyTable.d.ts +5 -5
- package/dist/components/UploadWorkflow/UploadWorkflow.d.ts +13 -3
- package/dist/components/index.d.ts +4 -0
- package/dist/components/types.d.ts +15 -0
- package/dist/composables/useFormFieldErrorHandling.d.ts +31 -0
- package/dist/design-system-v3.js +126 -122
- package/dist/design-system-v3.umd.cjs +325 -314
- package/dist/{main-B39UVv5p.js → main-CWniLr0s.js} +15837 -14587
- package/dist/modules.d.ts +6 -0
- package/dist/style.css +1 -1
- package/dist/utils/theme/index.d.ts +6 -0
- package/package.json +12 -10
- package/src/assets/amelipro/icons.ts +166 -153
- package/src/components/Accordion/Accordion.mdx +4 -1
- package/src/components/Accordion/{Accessibilite/AccessibilityGuide.mdx → accessibilite/Accessibility.mdx} +2 -2
- package/src/components/Amelipro/AmeliproClickableTile/AmeliproClickableTile.stories.ts +73 -14
- package/src/components/Amelipro/AmeliproClickableTile/AmeliproClickableTile.vue +119 -27
- package/src/components/Amelipro/AmeliproClickableTile/tests/AmeliproClickableTile.a11y.spec.ts +304 -0
- package/src/components/Amelipro/AmeliproClickableTile/tests/AmeliproClickableTile.spec.ts +435 -9
- package/src/components/Amelipro/AmeliproClickableTile/tests/__snapshots__/AmeliproClickableTile.spec.ts.snap +60 -0
- package/src/components/Amelipro/AmeliproIcon/__tests__/AmeliproIcon.spec.ts +1 -1
- package/src/components/Amelipro/AmeliproIcon/iconList.ts +2 -0
- package/src/components/BackBtn/BackBtn.vue +5 -4
- package/src/components/BackBtn/accessibilite/Accessibility.mdx +15 -0
- package/src/components/BackToTopBtn/BackToTopBtn.vue +6 -3
- package/src/components/BackToTopBtn/accessibilite/Accessibility.mdx +15 -0
- package/src/components/Captcha/Captcha.vue +5 -1
- package/src/components/Captcha/CaptchaAlert.vue +9 -7
- package/src/components/Captcha/accessibilite/Accessibility.mdx +10 -0
- package/src/components/ChipList/accessibilite/Accessibility.mdx +15 -0
- package/src/components/CollapsibleList/{Accessibilite.mdx → accessibilite/Accessibility.mdx} +8 -6
- package/src/components/Common/IconSlot/IconSlot.vue +1 -1
- package/src/components/ContextualMenu/ContextualMenu.stories.ts +0 -3
- package/src/components/ContextualMenu/accessibilite/Accessibility.mdx +71 -0
- package/src/components/CookieBanner/CookieBanner.stories.ts +11 -20
- package/src/components/CookieBanner/CookieBanner.vue +20 -5
- package/src/components/CookieBanner/accessibilite/Accessibility.mdx +71 -0
- package/src/components/CookieBanner/tests/CookieBanner.spec.ts +48 -4
- package/src/components/CookiesSelection/CookiesInformation/CookiesInformation.vue +5 -4
- package/src/components/CopyBtn/CopyBtn.vue +6 -3
- package/src/components/CopyBtn/accessibilite/Accessibility.mdx +15 -0
- package/src/components/Customs/Selects/SelectBtnField/accessibilite/Accessibility.mdx +15 -0
- package/src/components/Customs/Selects/SelectOverview.mdx +112 -1
- package/src/components/Customs/Selects/SyAutocomplete/SyAutocomplete.mdx +52 -0
- package/src/components/Customs/Selects/SyAutocomplete/SyAutocomplete.stories.ts +979 -0
- package/src/components/Customs/Selects/SyAutocomplete/SyAutocomplete.vue +653 -0
- package/src/components/Customs/Selects/{SySelect → SyAutocomplete/accessibilite}/Accessibilite.stories.ts +7 -38
- package/src/components/Customs/Selects/{SySelect/Accessibilite.mdx → SyAutocomplete/accessibilite/Accessibility.mdx} +15 -20
- package/src/components/Customs/Selects/SyAutocomplete/tests/SyAutocomplete.a11y.spec.ts +72 -0
- package/src/components/Customs/Selects/SyAutocomplete/tests/SyAutocomplete.spec.ts +345 -0
- package/src/components/Customs/Selects/SyAutocomplete/types.ts +7 -0
- package/src/components/Customs/Selects/SyAutocomplete/utils/ariaManager.ts +180 -0
- package/src/components/Customs/Selects/SyAutocomplete/utils/useItemUtils.ts +46 -0
- package/src/components/Customs/Selects/SyAutocomplete/utils/useKeyboardHandler.ts +107 -0
- package/src/components/Customs/Selects/SyAutocomplete/utils/useSelectionLogic.ts +74 -0
- package/src/components/Customs/Selects/SyInputSelect/SyInputSelect.vue +13 -9
- package/src/components/Customs/Selects/SyInputSelect/accessibilite/Accessibility.mdx +12 -0
- package/src/components/Customs/Selects/SySelect/SySelect.stories.ts +43 -34
- package/src/components/Customs/Selects/SySelect/SySelect.vue +19 -2
- package/src/components/Customs/Selects/SySelect/accessibilite/Accessibility.mdx +274 -0
- package/src/components/Customs/Selects/SySelect/composables/useSySelectKeyboard.ts +21 -16
- package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.mdx +32 -0
- package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.stories.ts +856 -0
- package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.vue +334 -0
- package/src/components/Customs/SyCheckBoxGroup/accessibilite/Accessibility.mdx +243 -0
- package/src/components/Customs/SyCheckBoxGroup/locales.ts +3 -0
- package/src/components/Customs/SyCheckBoxGroup/tests/SyCheckBoxGroup.a11y.spec.ts +30 -0
- package/src/components/Customs/SyCheckBoxGroup/tests/SyCheckBoxGroup.spec.ts +152 -0
- package/src/components/Customs/SyCheckBoxGroup/types.ts +10 -0
- package/src/components/Customs/SyCheckbox/SyCheckbox.vue +16 -27
- package/src/components/Customs/SyCheckbox/{Accessibilite.mdx → accessibilite/Accessibility.mdx} +3 -3
- package/src/components/Customs/SyForm/SyForm.a11y.spec.ts +1 -1
- package/src/components/Customs/SyForm/accessibilite/Accessibility.mdx +10 -0
- package/src/components/Customs/SyIcon/SyIcon.mdx +4 -1
- package/src/components/Customs/SyIcon/SyIcon.vue +4 -3
- package/src/components/Customs/SyIcon/{Accessibilite.stories.ts → accessibilite/Accessibilite.stories.ts} +3 -3
- package/src/components/Customs/SyIcon/{Accessibilite.mdx → accessibilite/Accessibility.mdx} +2 -2
- package/src/components/Customs/SyPagination/SyPagination.mdx +4 -2
- package/src/components/Customs/SyPagination/accessibilite/Accessibility.mdx +10 -0
- package/src/components/Customs/SyRadioGroup/SyRadioGroup.vue +16 -43
- package/src/components/Customs/SyRadioGroup/{Accessibilite.mdx → accessibilite/Accessibility.mdx} +2 -2
- package/src/components/Customs/SyTabs/SyTabs.mdx +4 -2
- package/src/components/Customs/SyTabs/{Accessibilite.mdx → accessibilite/Accessibility.mdx} +2 -2
- package/src/components/Customs/SyTextField/SyTextField.mdx +1 -2
- package/src/components/Customs/SyTextField/SyTextField.vue +13 -0
- package/src/components/Customs/SyTextField/accessibilite/Accessibility.mdx +15 -0
- package/src/components/DataList/accessibilite/Accessibility.mdx +15 -0
- package/src/components/DataListGroup/accessibilite/Accessibility.mdx +14 -0
- package/src/components/DatePicker/Accessibilite.mdx +1 -1
- package/src/components/DatePicker/Accessibilite.stories.ts +1 -1
- package/src/components/DatePicker/CalendarMode/DatePicker.stories.ts +7 -4
- package/src/components/DatePicker/CalendarMode/DatePicker.vue +49 -13
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.stories.ts +43 -2
- package/src/components/DatePicker/DatePickerValidationExample/DatePickerValidation.stories.ts +297 -0
- package/src/components/DatePicker/DateTextInput/DateTextInput.vue +48 -21
- package/src/components/DatePicker/DateTextInput/NoCalendar.stories.ts +98 -0
- package/src/components/DatePicker/composables/useDateSelection.ts +5 -0
- package/src/components/DatePicker/docExamples/BidirectionalComplexValidation.vue +273 -0
- package/src/components/DatePicker/docExamples/DatePickerBidirectionalValidation.vue +4 -4
- package/src/components/DatePicker/docExamples/DatePickerValidationExamples.vue +10 -0
- package/src/components/DeclarationAccessibilityPage/DeclarationAccessibilityPage.mdx +83 -0
- package/src/components/DeclarationAccessibilityPage/DeclarationAccessibilityPage.stories.ts +502 -0
- package/src/components/DeclarationAccessibilityPage/DeclarationAccessibilityPage.vue +428 -0
- package/src/components/DeclarationAccessibilityPage/accessibilite/Accessibility.mdx +75 -0
- package/src/components/DeclarationAccessibilityPage/tests/DeclarationAccessibilityPage.a11y.spec.ts +53 -0
- package/src/components/DeclarationAccessibilityPage/tests/DeclarationAccessibilityPage.spec.ts +59 -0
- package/src/components/DiacriticPicker/DiacriticPicker.vue +20 -1
- package/src/components/DiacriticPicker/accessibilite/Accessibility.mdx +10 -0
- package/src/components/DialogBox/accessibilite/Accessibility.mdx +15 -0
- package/src/components/DownloadBtn/DownloadBtn.vue +5 -4
- package/src/components/DownloadBtn/accessibilite/Accessibility.mdx +15 -0
- package/src/components/ErrorPage/ErrorPage.mdx +6 -16
- package/src/components/ErrorPage/ErrorPage.stories.ts +16 -87
- package/src/components/ErrorPage/ErrorPage.vue +38 -125
- package/src/components/ErrorPage/accessibilite/Accessibility.mdx +77 -0
- package/src/components/ErrorPage/assets/error-ap.svg +1774 -0
- package/src/components/ErrorPage/locales.ts +21 -3
- package/src/components/ErrorPage/tests/ErrorPage.a11y.spec.ts +5 -13
- package/src/components/ErrorPage/tests/ErrorPage.spec.ts +2 -41
- package/src/components/ErrorPage/tests/__snapshots__/ErrorPage.spec.ts.snap +8 -266
- package/src/components/ExternalLinks/accessibilite/Accessibility.mdx +15 -0
- package/src/components/FileList/UploadItem/UploadItem.vue +25 -20
- package/src/components/FileList/accessibilite/Accessibility.mdx +12 -0
- package/src/components/FilePreview/accessibilite/Accessibility.mdx +12 -0
- package/src/components/FileUpload/FileUpload.vue +5 -0
- package/src/components/FileUpload/FileUploadContent.vue +5 -4
- package/src/components/FileUpload/accessibilite/Accessibility.mdx +12 -0
- package/src/components/FilterInline/FilterInline.vue +5 -4
- package/src/components/FilterInline/accessibilite/Accessibility.mdx +12 -0
- package/src/components/FilterSideBar/accessibilite/Accessibility.mdx +15 -0
- package/src/components/FooterBar/FooterBar.stories.ts +18 -14
- package/src/components/FooterBar/{Accessibilite.mdx → accessibilite/Accessibility.mdx} +3 -4
- package/src/components/FooterBar/defaultSocialMediaLinks.ts +6 -4
- package/src/components/FranceConnectBtn/FranceConnectBtn.vue +6 -5
- package/src/components/FranceConnectBtn/accessibilite/Accessibility.mdx +15 -0
- package/src/components/FranceConnectBtn/tests/__snapshots__/FranceConnectBtn.spec.ts.snap +3 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/accessibilite/Accessibility.mdx +15 -0
- package/src/components/HeaderBar/accessibilite/Accessibility.mdx +15 -0
- package/src/components/HeaderBar/{Usages.mdx → usages/Usages.mdx} +2 -2
- package/src/components/HeaderLoading/{Accessibilite.mdx → accessibilite/Accessibility.mdx} +9 -5
- package/src/components/HeaderToolbar/accessibilite/Accessibility.mdx +15 -0
- package/src/components/LangBtn/LangBtn.vue +5 -4
- package/src/components/LangBtn/accessibilite/Accessibility.mdx +15 -0
- package/src/components/Logo/accessibilite/Accessibility.mdx +17 -0
- package/src/components/LogoBrandSection/accessibilite/Accessibility.mdx +12 -0
- package/src/components/LunarCalendar/accessibilite/Accessibility.mdx +10 -0
- package/src/components/MaintenancePage/MaintenancePage.mdx +1 -1
- package/src/components/MaintenancePage/MaintenancePage.vue +15 -7
- package/src/components/MaintenancePage/accessibilite/Accessibility.mdx +70 -0
- package/src/components/MaintenancePage/assets/maintenance-ap.svg +1718 -0
- package/src/components/MaintenancePage/locales.ts +24 -3
- package/src/components/MaintenancePage/tests/MaintenancePage.a11y.spec.ts +75 -3
- package/src/components/MaintenancePage/tests/MaintenancePage.spec.ts +42 -2
- package/src/components/MaintenancePage/tests/__snapshots__/MaintenancePage.spec.ts.snap +3 -2
- package/src/components/NirField/accessibilite/Accessibility.mdx +15 -0
- package/src/components/NotFoundPage/NotFoundPage.mdx +1 -1
- package/src/components/NotFoundPage/NotFoundPage.stories.ts +3 -3
- package/src/components/NotFoundPage/NotFoundPage.vue +16 -11
- package/src/components/NotFoundPage/accessibilite/Accessibility.mdx +87 -0
- package/src/components/NotFoundPage/assets/not-found-ap.svg +2061 -0
- package/src/components/NotFoundPage/locales.ts +24 -4
- package/src/components/NotFoundPage/tests/NotFoundPage.a11y.spec.ts +168 -4
- package/src/components/NotFoundPage/tests/NotFoundPage.spec.ts +100 -12
- package/src/components/NotFoundPage/tests/__snapshots__/NotFoundPage.spec.ts.snap +2 -2
- package/src/components/NotificationBar/Notification/Notification.vue +1 -1
- package/src/components/NotificationBar/NotificationBar.mdx +2 -2
- package/src/components/NotificationBar/accessibilite/Accessibility.mdx +75 -0
- package/src/components/PageContainer/{AccessibilityGuide.mdx → accessibilite/Accessibility.mdx} +7 -4
- package/src/components/PageContainer/tests/PageContainer.a11y.spec.ts +14 -7
- package/src/components/PaginatedTable/PaginatedTable.vue +27 -47
- package/src/components/PaginatedTable/Pagination.vue +93 -0
- package/src/components/PaginatedTable/accessibilite/Accessibility.mdx +12 -0
- package/src/components/PasswordField/PasswordField.vue +2 -1
- package/src/components/PasswordField/accessibilite/Accessibility.mdx +108 -0
- package/src/components/PeriodField/accessibilite/Accessibility.mdx +12 -0
- package/src/components/PhoneField/PhoneField.stories.ts +46 -38
- package/src/components/PhoneField/accessibilite/Accessibility.mdx +15 -0
- package/src/components/RangeField/accessibilite/Accessibility.mdx +15 -0
- package/src/components/RatingPicker/accessibilite/Accessibility.mdx +15 -0
- package/src/components/SearchListField/SearchListField.vue +6 -3
- package/src/components/SearchListField/accessibilite/Accessibility.mdx +15 -0
- package/src/components/SkipLink/{Accessibilite.mdx → accessibilite/Accessibility.mdx} +7 -4
- package/src/components/SocialMediaLinks/DefaultSocialMediaLinks.ts +6 -4
- package/src/components/SocialMediaLinks/SocialMediaLinks.mdx +7 -5
- package/src/components/SocialMediaLinks/SocialMediaLinks.stories.ts +17 -13
- package/src/components/SocialMediaLinks/SocialMediaLinks.vue +9 -1
- package/src/components/SocialMediaLinks/accessibilite/Accessibility.mdx +67 -0
- package/src/components/SocialMediaLinks/tests/DefaultSocialMediaLinks.spec.ts +5 -5
- package/src/components/SocialMediaLinks/tests/SocialMediaLinks.a11y.spec.ts +59 -0
- package/src/components/SocialMediaLinks/tests/SocialMediaLinks.spec.ts +9 -7
- package/src/components/StatusPage/StatusPage.mdx +22 -0
- package/src/components/StatusPage/StatusPage.stories.ts +193 -0
- package/src/components/StatusPage/StatusPage.vue +145 -0
- package/src/components/StatusPage/accessibilite/Accessibility.mdx +81 -0
- package/src/components/StatusPage/tests/StatusPage.a11y.spec.ts +29 -0
- package/src/components/StatusPage/tests/StatusPage.spec.ts +50 -0
- package/src/components/StatusPage/tests/__snapshots__/StatusPage.spec.ts.snap +270 -0
- package/src/components/SubHeader/accessibilite/Accessibility.mdx +15 -0
- package/src/components/SyAlert/SyAlert.vue +6 -6
- package/src/components/SyAlert/accessibilite/Accessibility.mdx +12 -0
- package/src/components/SyTextArea/accessibilite/Accessibility.mdx +10 -0
- package/src/components/TableToolbar/TableToolbar.stories.ts +6 -6
- package/src/components/TableToolbar/TableToolbar.vue +7 -4
- package/src/components/TableToolbar/accessibilite/Accessibility.mdx +12 -0
- package/src/components/TableToolbar/tests/__snapshots__/TableToolbar.spec.ts.snap +0 -5
- package/src/components/Tables/SyServerTable/SyServerTable.mdx +4 -1
- package/src/components/Tables/SyServerTable/accessibilite/Accessibility.mdx +10 -0
- package/src/components/Tables/SyTable/SyTable.mdx +4 -1
- package/src/components/Tables/SyTable/accessibilite/Accessibility.mdx +10 -0
- package/src/components/Tables/common/TableHeader.vue +3 -1
- package/src/components/Tables/common/organizeColumns/OrganizeColumns.vue +18 -14
- package/src/components/ToolbarContainer/ToolbarContainer.mdx +2 -1
- package/src/components/ToolbarContainer/ToolbarContainer.stories.ts +563 -420
- package/src/components/ToolbarContainer/accessibilite/Accessibility.mdx +69 -0
- package/src/components/UploadWorkflow/UploadWorkflow.mdx +11 -1
- package/src/components/UploadWorkflow/UploadWorkflow.stories.ts +107 -3
- package/src/components/UploadWorkflow/UploadWorkflow.vue +35 -24
- package/src/components/UploadWorkflow/accessibilite/Accessibility.mdx +12 -0
- package/src/components/UploadWorkflow/tests/UploadWorkflow.spec.ts +48 -0
- package/src/components/UploadWorkflow/tests/__snapshots__/UploadWorkflow.spec.ts.snap +9 -5
- package/src/components/UploadWorkflow/useFileList.ts +7 -0
- package/src/components/Usages/Usages.vue +3 -2
- package/src/components/UserMenuBtn/UserMenuBtn.vue +7 -5
- package/src/components/UserMenuBtn/accessibilite/Accessibility.mdx +12 -0
- package/src/components/index.ts +5 -0
- package/src/components/types.ts +10 -0
- package/src/composables/rules/tests/useFieldValidation.spec.ts +39 -3
- package/src/composables/rules/useFieldValidation.ts +31 -9
- package/src/composables/useFormFieldErrorHandling.ts +141 -0
- package/src/modules.d.ts +6 -0
- package/src/stories/Accessibilite/KitDePreAudit/Preaudit.mdx +7 -0
- package/src/utils/theme/index.ts +19 -0
- package/src/utils/theme/tests/useThemeLocales.spec.ts +245 -0
- package/dist/components/MaintenancePage/index.d.ts +0 -2
- package/src/components/BackBtn/Accessibilite.mdx +0 -14
- package/src/components/BackBtn/Accessibilite.stories.ts +0 -30
- package/src/components/BackToTopBtn/Accessibilite.mdx +0 -14
- package/src/components/BackToTopBtn/Accessibilite.stories.ts +0 -31
- package/src/components/ChipList/Accessibilite.mdx +0 -14
- package/src/components/ChipList/Accessibilite.stories.ts +0 -31
- package/src/components/CollapsibleList/Accessibilite.stories.ts +0 -29
- package/src/components/ContextualMenu/Accessibilite.mdx +0 -13
- package/src/components/ContextualMenu/Accessibilite.stories.ts +0 -29
- package/src/components/CookieBanner/Accessibilite.mdx +0 -13
- package/src/components/CookieBanner/Accessibilite.stories.ts +0 -30
- package/src/components/CopyBtn/Accessibilite.mdx +0 -13
- package/src/components/CopyBtn/Accessibilite.stories.ts +0 -29
- package/src/components/Customs/Selects/SelectBtnField/Accessibilite.mdx +0 -14
- package/src/components/Customs/Selects/SelectBtnField/Accessibilite.stories.ts +0 -29
- package/src/components/Customs/Selects/SyInputSelect/Accessibilite.mdx +0 -13
- package/src/components/Customs/Selects/SyInputSelect/Accessibilite.stories.ts +0 -25
- package/src/components/Customs/SyPagination/tests/SyPagination.a11y.spec.ts +0 -27
- package/src/components/Customs/SyTabs/tests/SyTabs.a11y.spec.ts +0 -51
- package/src/components/Customs/SyTextField/Accessibilite.mdx +0 -14
- package/src/components/Customs/SyTextField/Accessibilite.stories.ts +0 -34
- package/src/components/DataList/Accessibilite.mdx +0 -13
- package/src/components/DataList/Accessibilite.stories.ts +0 -29
- package/src/components/DataListGroup/Accessibilite.mdx +0 -13
- package/src/components/DataListGroup/Accessibilite.stories.ts +0 -29
- package/src/components/DataListItem/tests/DataListItem.a11y.spec.ts +0 -31
- package/src/components/DatePicker/CalendarMode/tests/DatePicker.a11y.spec.ts +0 -27
- package/src/components/DatePicker/ComplexDatePicker/tests/ComplexDatePicker.a11y.spec.ts +0 -26
- package/src/components/DatePicker/DateTextInput/tests/DateTextInput.a11y.spec.ts +0 -27
- package/src/components/DialogBox/Accessibilite.mdx +0 -14
- package/src/components/DialogBox/Accessibilite.stories.ts +0 -29
- package/src/components/DownloadBtn/Accessibilite.mdx +0 -14
- package/src/components/DownloadBtn/Accessibilite.stories.ts +0 -29
- package/src/components/DownloadBtn/tests/DownloadBtn.a11y.spec.ts +0 -26
- package/src/components/ErrorPage/Accessibilite.mdx +0 -13
- package/src/components/ErrorPage/Accessibilite.stories.ts +0 -36
- package/src/components/ExternalLinks/Accessibilite.mdx +0 -18
- package/src/components/ExternalLinks/Accessibilite.stories.ts +0 -62
- package/src/components/ExternalLinks/tests/ExternalLinks.a11y.spec.ts +0 -39
- package/src/components/FileList/Accessibilite.mdx +0 -13
- package/src/components/FileList/Accessibilite.stories.ts +0 -26
- package/src/components/FilePreview/Accessibilite.mdx +0 -14
- package/src/components/FilePreview/Accessibilite.stories.ts +0 -26
- package/src/components/FileUpload/Accessibilite.mdx +0 -13
- package/src/components/FileUpload/Accessibilite.stories.ts +0 -26
- package/src/components/FilterInline/Accessibilite.mdx +0 -15
- package/src/components/FilterInline/Accessibilite.stories.ts +0 -26
- package/src/components/FilterSideBar/Accessibilite.mdx +0 -13
- package/src/components/FilterSideBar/Accessibilite.stories.ts +0 -30
- package/src/components/FooterBar/Accessibilite.stories.ts +0 -26
- package/src/components/FranceConnectBtn/Accessibilite.mdx +0 -13
- package/src/components/FranceConnectBtn/Accessibilite.stories.ts +0 -30
- package/src/components/HeaderBar/Accessibilite.mdx +0 -13
- package/src/components/HeaderBar/Accessibilite.stories.ts +0 -31
- package/src/components/HeaderBar/HeaderBurgerMenu/Accessibilite.mdx +0 -13
- package/src/components/HeaderBar/HeaderBurgerMenu/Accessibilite.stories.ts +0 -30
- package/src/components/HeaderLoading/Accessibilite.stories.ts +0 -31
- package/src/components/HeaderNavigationBar/tests/HeaderNavigationBar.a11y.spec.ts +0 -45
- package/src/components/HeaderToolbar/Accessibilite.mdx +0 -13
- package/src/components/HeaderToolbar/Accessibilite.stories.ts +0 -36
- package/src/components/HeaderToolbar/tests/HeaderToolbar.a11y.spec.ts +0 -25
- package/src/components/LangBtn/Accessibilite.mdx +0 -13
- package/src/components/LangBtn/Accessibilite.stories.ts +0 -32
- package/src/components/Logo/Accessibilite.mdx +0 -13
- package/src/components/Logo/Accessibilite.stories.ts +0 -30
- package/src/components/LogoBrandSection/Accessibilite.mdx +0 -13
- package/src/components/LogoBrandSection/Accessibilite.stories.ts +0 -26
- package/src/components/LunarCalendar/tests/LunarCalendar.a11y.spec.ts +0 -31
- package/src/components/MaintenancePage/Accessibilite.mdx +0 -13
- package/src/components/MaintenancePage/Accessibilite.stories.ts +0 -36
- package/src/components/MaintenancePage/index.ts +0 -3
- package/src/components/NirField/Accessibilite.mdx +0 -13
- package/src/components/NirField/Accessibilite.stories.ts +0 -31
- package/src/components/NotFoundPage/Accessibilite.mdx +0 -13
- package/src/components/NotFoundPage/Accessibilite.stories.ts +0 -36
- package/src/components/NotificationBar/Accessibilite.mdx +0 -13
- package/src/components/NotificationBar/Accessibilite.stories.ts +0 -30
- package/src/components/PageContainer/Accessibilite.mdx +0 -13
- package/src/components/PageContainer/Accessibilite.stories.ts +0 -30
- package/src/components/PaginatedTable/Accessibilite.mdx +0 -13
- package/src/components/PaginatedTable/Accessibilite.stories.ts +0 -26
- package/src/components/PaginatedTable/tests/PaginatedTable.a11y.spec.ts +0 -43
- package/src/components/PasswordField/Accessibilite.mdx +0 -13
- package/src/components/PasswordField/Accessibilite.stories.ts +0 -121
- package/src/components/PeriodField/Accessibilite.mdx +0 -13
- package/src/components/PeriodField/Accessibilite.stories.ts +0 -27
- package/src/components/PhoneField/Accessibilite.mdx +0 -13
- package/src/components/PhoneField/Accessibilite.stories.ts +0 -32
- package/src/components/PhoneField/tests/PhoneField.a11y.spec.ts +0 -34
- package/src/components/RangeField/Accessibilite.mdx +0 -13
- package/src/components/RangeField/Accessibilite.stories.ts +0 -32
- package/src/components/RatingPicker/Accessibilite.mdx +0 -13
- package/src/components/RatingPicker/Accessibilite.stories.ts +0 -30
- package/src/components/SearchListField/Accessibilite.mdx +0 -13
- package/src/components/SearchListField/Accessibilite.stories.ts +0 -30
- package/src/components/SkipLink/Accessibilite.stories.ts +0 -36
- package/src/components/SocialMediaLinks/Accessibilite.mdx +0 -13
- package/src/components/SocialMediaLinks/Accessibilite.stories.ts +0 -36
- package/src/components/SubHeader/Accessibilite.mdx +0 -13
- package/src/components/SubHeader/Accessibilite.stories.ts +0 -36
- package/src/components/SyAlert/Accessibilite.mdx +0 -13
- package/src/components/SyAlert/Accessibilite.stories.ts +0 -30
- package/src/components/TableToolbar/Accessibilite.mdx +0 -13
- package/src/components/TableToolbar/Accessibilite.stories.ts +0 -26
- package/src/components/UploadWorkflow/Accessibilite.mdx +0 -13
- package/src/components/UploadWorkflow/Accessibilite.stories.ts +0 -26
- package/src/components/UserMenuBtn/Accessibilite.mdx +0 -13
- package/src/components/UserMenuBtn/Accessibilite.stories.ts +0 -25
- /package/src/components/HeaderBar/{Usages.stories.ts → usages/Usages.stories.ts} +0 -0
- /package/src/components/NotFoundPage/assets/{not-found.svg → not-found-cnam.svg} +0 -0
- /package/src/components/SyBtnMenu/accessibilite/{AccessibilityGuide.mdx → Accessibility.mdx} +0 -0
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { VIcon } from 'vuetify/components'
|
|
2
|
-
import type { StoryObj } from '@storybook/vue3'
|
|
3
|
-
import { mdiCheckboxMarkedCircle } from '@mdi/js'
|
|
4
|
-
|
|
5
|
-
const checkIcon = mdiCheckboxMarkedCircle
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
title: 'Composants/Tableaux/PaginatedTable/Accessibilité',
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const Legende: StoryObj = {
|
|
12
|
-
args: {
|
|
13
|
-
icon: checkIcon,
|
|
14
|
-
},
|
|
15
|
-
render: (args) => {
|
|
16
|
-
return {
|
|
17
|
-
components: { VIcon },
|
|
18
|
-
setup() {
|
|
19
|
-
return { args }
|
|
20
|
-
},
|
|
21
|
-
template: `
|
|
22
|
-
`,
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
tags: ['!dev'],
|
|
26
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
// @vitest-environment jsdom
|
|
2
|
-
|
|
3
|
-
import { describe, it } from 'vitest'
|
|
4
|
-
import { mount } from '@vue/test-utils'
|
|
5
|
-
import { axe } from 'vitest-axe'
|
|
6
|
-
import { assertNoA11yViolations } from '@tests/unit/accessibility/axeUtils'
|
|
7
|
-
import PaginatedTable from '../PaginatedTable.vue'
|
|
8
|
-
import type { DataOptions } from '@/components/PaginatedTable/types'
|
|
9
|
-
|
|
10
|
-
const fakeItems = [
|
|
11
|
-
{ id: 1, name: 'John Doe', age: 25 },
|
|
12
|
-
{ id: 2, name: 'Jane Doe', age: 30 },
|
|
13
|
-
{ id: 3, name: 'John Smith', age: 35 },
|
|
14
|
-
] as const
|
|
15
|
-
|
|
16
|
-
const headers = [
|
|
17
|
-
{ title: 'ID', key: 'id' },
|
|
18
|
-
{ title: 'Name', key: 'name' },
|
|
19
|
-
{ title: 'Age', key: 'age' },
|
|
20
|
-
]
|
|
21
|
-
|
|
22
|
-
// Scénario d’accessibilité : tableau paginé en mode local avec légende cachée.
|
|
23
|
-
|
|
24
|
-
describe('PaginatedTable – accessibility (axe)', () => {
|
|
25
|
-
it('has no obvious axe violations in local mode with caption', async () => {
|
|
26
|
-
const wrapper = mount(PaginatedTable, {
|
|
27
|
-
props: {
|
|
28
|
-
options: {} as DataOptions,
|
|
29
|
-
items: fakeItems,
|
|
30
|
-
headers,
|
|
31
|
-
caption: 'Liste des utilisateurs',
|
|
32
|
-
},
|
|
33
|
-
attachTo: document.body,
|
|
34
|
-
})
|
|
35
|
-
|
|
36
|
-
const results = await axe(wrapper.element as HTMLElement)
|
|
37
|
-
assertNoA11yViolations(results, 'PaginatedTable – local mode with caption', {
|
|
38
|
-
ignoreRules: ['region'],
|
|
39
|
-
})
|
|
40
|
-
|
|
41
|
-
wrapper.unmount()
|
|
42
|
-
})
|
|
43
|
-
})
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
-
import * as AccessStories from './Accessibilite.stories.ts';
|
|
3
|
-
import '../../stories/styles/shared.css';
|
|
4
|
-
|
|
5
|
-
<Meta of={AccessStories} />
|
|
6
|
-
|
|
7
|
-
<div className="header">
|
|
8
|
-
<h1>Accessibilité</h1>
|
|
9
|
-
<p>Informations sur l'accessibilité du composant</p>
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
<Story of={AccessStories.Legende} />
|
|
13
|
-
<br />
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { VIcon } from 'vuetify/components'
|
|
2
|
-
import type { StoryObj } from '@storybook/vue3'
|
|
3
|
-
import { mdiCheckboxMarkedCircle } from '@mdi/js'
|
|
4
|
-
|
|
5
|
-
const checkIcon = mdiCheckboxMarkedCircle
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
title: 'Composants/Formulaires/PasswordField/Accessibilité',
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const Legende: StoryObj = {
|
|
12
|
-
args: {
|
|
13
|
-
icon: checkIcon,
|
|
14
|
-
},
|
|
15
|
-
render: (args) => {
|
|
16
|
-
return {
|
|
17
|
-
components: { VIcon },
|
|
18
|
-
setup() {
|
|
19
|
-
return { args }
|
|
20
|
-
},
|
|
21
|
-
template: `
|
|
22
|
-
<div class="mt-4">
|
|
23
|
-
<p>Rapport d'audit manuel : <a href="/audits/PasswordField.xlsx" style="color:#0C41BD;">rapport</a></p>
|
|
24
|
-
<p style="color: grey; font-size: 14px">Correctifs associés (<a
|
|
25
|
-
href="https://github.com/assurance-maladie-digital/design-system-v3/issues/898" target="_blank"
|
|
26
|
-
style="color:#0C41BD;"
|
|
27
|
-
>issue #898</a>)</p>
|
|
28
|
-
</div>
|
|
29
|
-
<div class="mt-6">
|
|
30
|
-
<h3 style="font-size: 18px; font-weight: 600; margin-bottom: 16px;">Spécificité - Source technique</h3>
|
|
31
|
-
|
|
32
|
-
<div style="background-color: #f5f5f5; padding: 16px; border-radius: 8px; margin-bottom: 16px;">
|
|
33
|
-
<p style="font-weight: 500; margin-bottom: 8px;">Les champs de formulaires doivent avoir une étiquette</p>
|
|
34
|
-
<p style="margin-bottom: 8px;">Techniquement, il est communément utilisé la balise "label" avec les attributs "for" et "id".
|
|
35
|
-
Celle-ci doit être pertinente et accolée au champ associé.</p>
|
|
36
|
-
<p style="font-size: 13px; color: #0C41BD;">
|
|
37
|
-
<a href="https://www.accede-web.com/notices/html-et-css/formulaires/utiliser-la-balise-label-ainsi-que-les-attributs-for-et-id-pour-etiqueter-les-champs-avec-intitule-visible/"
|
|
38
|
-
target="_blank" style="color: inherit;">
|
|
39
|
-
Documentation accede-web
|
|
40
|
-
</a>
|
|
41
|
-
</p>
|
|
42
|
-
</div>
|
|
43
|
-
|
|
44
|
-
<div style="background-color: #f5f5f5; padding: 16px; border-radius: 8px; margin-bottom: 16px;">
|
|
45
|
-
<p style="font-weight: 500; margin-bottom: 8px;">Remplissage automatique des champs</p>
|
|
46
|
-
<p style="margin-bottom: 8px;">Selon la finalité du champ, le remplissage automatique est possible (attribut "autocomplete").</p>
|
|
47
|
-
<p style="font-size: 13px; color: #0C41BD;">
|
|
48
|
-
<a href="https://www.accede-web.com/notices/html-et-css/formulaires/utiliser-lattribut-autocomplete-pour-faciliter-le-remplissage-automatique-des-champs/"
|
|
49
|
-
target="_blank" style="color: inherit;">
|
|
50
|
-
Documentation accede-web
|
|
51
|
-
</a>
|
|
52
|
-
</p>
|
|
53
|
-
</div>
|
|
54
|
-
|
|
55
|
-
<div style="background-color: #f5f5f5; padding: 16px; border-radius: 8px; margin-bottom: 16px;">
|
|
56
|
-
<p style="font-weight: 500; margin-bottom: 8px;">Aide à la saisie</p>
|
|
57
|
-
<p style="margin-bottom: 8px;">En cas d'aide à la saisie, l'inscription est visible dans un message ou présente dans l'étiquette. Il doit être rattaché au libellé ou situé dans le passage de texte associé au champ.</p>
|
|
58
|
-
<p style="font-size: 13px; color: #0C41BD;">
|
|
59
|
-
<a href="https://www.accede-web.com/notices/html-et-css/formulaires/integrer-les-aides-a-la-saisie-directement-dans-les-balises-label/"
|
|
60
|
-
target="_blank" style="color: inherit;">
|
|
61
|
-
Documentation accede-web
|
|
62
|
-
</a>
|
|
63
|
-
</p>
|
|
64
|
-
</div>
|
|
65
|
-
|
|
66
|
-
<div style="background-color: #f5f5f5; padding: 16px; border-radius: 8px; margin-bottom: 16px;">
|
|
67
|
-
<p style="font-weight: 500; margin-bottom: 8px;">Champs obligatoires</p>
|
|
68
|
-
<p style="margin-bottom: 8px;">Les champs obligatoires possèdent l'une et/ou l'autre condition :</p>
|
|
69
|
-
<ul style="margin-bottom: 8px; padding-left: 20px;">
|
|
70
|
-
<li>un intitulé visible permettant de l'identifier comme tel</li>
|
|
71
|
-
<li>un attribut "required" ou 'aria-required="true"'</li>
|
|
72
|
-
</ul>
|
|
73
|
-
<p style="margin-bottom: 8px;">Il doit être rattaché au libellé ou situé dans le passage de texte associé au champ.</p>
|
|
74
|
-
<p style="font-size: 13px; color: #0C41BD;">
|
|
75
|
-
<a href="https://www.accede-web.com/notices/html-et-css/formulaires/integrer-required-ou-aria-requiredtrue-dans-les-champs-obligatoires/"
|
|
76
|
-
target="_blank" style="color: inherit;">
|
|
77
|
-
Documentation accede-web
|
|
78
|
-
</a>
|
|
79
|
-
</p>
|
|
80
|
-
</div>
|
|
81
|
-
|
|
82
|
-
<div style="background-color: #f5f5f5; padding: 16px; border-radius: 8px; margin-bottom: 16px;">
|
|
83
|
-
<p style="font-weight: 500; margin-bottom: 8px;">Gestion des erreurs</p>
|
|
84
|
-
<p style="margin-bottom: 8px;">En cas d'erreur, le champ possède l'une et/ou l'autre condition :</p>
|
|
85
|
-
<ul style="margin-bottom: 8px; padding-left: 20px;">
|
|
86
|
-
<li>un message visible permet de l'identifier comme tel</li>
|
|
87
|
-
<li>un attribut 'aria-invalid="true"'</li>
|
|
88
|
-
</ul>
|
|
89
|
-
<p style="margin-bottom: 8px;">Il doit être rattaché au libellé ou situé dans le passage de texte associé au champ.</p>
|
|
90
|
-
<p style="margin-bottom: 8px;">Par ailleurs, s'il s'agit d'une erreur de type ou format, l'information est retranscrite dans le message d'erreur avec des exemples de valeurs attendues autre que celle de l'aide à la saisie.</p>
|
|
91
|
-
<p style="font-size: 13px; color: #0C41BD;">
|
|
92
|
-
<a href="https://www.accede-web.com/notices/html-et-css/formulaires/integrer-les-messages-derreur-et-les-suggestions-de-correction-directement-dans-les-balises-label/"
|
|
93
|
-
target="_blank" style="color: inherit;">
|
|
94
|
-
Documentation accede-web
|
|
95
|
-
</a>
|
|
96
|
-
</p>
|
|
97
|
-
</div>
|
|
98
|
-
|
|
99
|
-
<div style="background-color: #f5f5f5; padding: 16px; border-radius: 8px; margin-bottom: 16px;">
|
|
100
|
-
<p style="font-weight: 500; margin-bottom: 8px;">Spécificités des champs de mot de passe</p>
|
|
101
|
-
<p style="margin-bottom: 8px;">Le copier-coller doit être possible dans un champ d'authentification. Cela permet notamment de faciliter l'utilisation d'un gestionnaire de mot de passe.</p>
|
|
102
|
-
<p style="margin-bottom: 16px; font-size: 13px; color: #0C41BD;">
|
|
103
|
-
<a href="https://www.w3.org/WAI/WCAG22/Understanding/accessible-authentication-minimum.html"
|
|
104
|
-
target="_blank" style="color: inherit;">
|
|
105
|
-
Documentation W3C
|
|
106
|
-
</a>
|
|
107
|
-
</p>
|
|
108
|
-
<p style="margin-bottom: 8px;">Il faut pouvoir démasquer le mot de passe lors de la saisie. Cela permet d'améliorer les chances de réussite pour certaines personnes souffrant de troubles cognitifs ou ayant des difficultés à saisir correctement un mot de passe.</p>
|
|
109
|
-
<p style="font-size: 13px; color: #0C41BD;">
|
|
110
|
-
<a href="https://www.w3.org/WAI/WCAG22/Understanding/accessible-authentication-minimum.html"
|
|
111
|
-
target="_blank" style="color: inherit;">
|
|
112
|
-
Documentation W3C
|
|
113
|
-
</a>
|
|
114
|
-
</p>
|
|
115
|
-
</div>
|
|
116
|
-
</div>
|
|
117
|
-
`,
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
tags: ['!dev'],
|
|
121
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
-
import * as AccessStories from './Accessibilite.stories.ts';
|
|
3
|
-
import '../../stories/styles/shared.css';
|
|
4
|
-
|
|
5
|
-
<Meta of={AccessStories} />
|
|
6
|
-
|
|
7
|
-
<div className="header">
|
|
8
|
-
<h1>Accessibilité</h1>
|
|
9
|
-
<p>Cette page sera bientôt disponible</p>
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
<Story of={AccessStories.Legende} />
|
|
13
|
-
<br />
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { VIcon } from 'vuetify/components'
|
|
2
|
-
import type { StoryObj } from '@storybook/vue3'
|
|
3
|
-
import { mdiCheckboxMarkedCircle } from '@mdi/js'
|
|
4
|
-
|
|
5
|
-
const checkIcon = mdiCheckboxMarkedCircle
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
title: 'Composants/Formulaires/PeriodField/Accessibilité',
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const Legende: StoryObj = {
|
|
12
|
-
args: {
|
|
13
|
-
icon: checkIcon,
|
|
14
|
-
},
|
|
15
|
-
render: (args) => {
|
|
16
|
-
return {
|
|
17
|
-
components: { VIcon },
|
|
18
|
-
setup() {
|
|
19
|
-
return { args }
|
|
20
|
-
},
|
|
21
|
-
template: `
|
|
22
|
-
|
|
23
|
-
`,
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
tags: ['!dev'],
|
|
27
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
-
import * as AccessStories from './Accessibilite.stories.ts';
|
|
3
|
-
import '../../stories/styles/shared.css';
|
|
4
|
-
|
|
5
|
-
<Meta of={AccessStories} />
|
|
6
|
-
|
|
7
|
-
<div className="header">
|
|
8
|
-
<h1>Accessibilité</h1>
|
|
9
|
-
<p>Informations sur l'accessibilité du composant</p>
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
<Story of={AccessStories.Legende} />
|
|
13
|
-
<br />
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { VIcon } from 'vuetify/components'
|
|
2
|
-
import type { StoryObj } from '@storybook/vue3'
|
|
3
|
-
import { mdiCheckboxMarkedCircle } from '@mdi/js'
|
|
4
|
-
|
|
5
|
-
const checkIcon = mdiCheckboxMarkedCircle
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
title: 'Composants/Formulaires/PhoneField/Accessibilité',
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const Legende: StoryObj = {
|
|
12
|
-
args: {
|
|
13
|
-
icon: checkIcon,
|
|
14
|
-
},
|
|
15
|
-
render: (args) => {
|
|
16
|
-
return {
|
|
17
|
-
components: { VIcon },
|
|
18
|
-
setup() {
|
|
19
|
-
return { args }
|
|
20
|
-
},
|
|
21
|
-
template: `
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<div class="mt-4">
|
|
25
|
-
<p>Rapport d’audit manuel : <a href="/audits/PhoneField.xlsx" style="color:#0C41BD;">Voir le rapport</a></p>
|
|
26
|
-
<p style="color: grey; font-size: 14px">Correctifs associés (<a href="https://github.com/assurance-maladie-digital/design-system-v3/issues/797" target="_blank" style="color:#0C41BD;">issue #797</a>)</p>
|
|
27
|
-
</div>
|
|
28
|
-
`,
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
tags: ['!dev'],
|
|
32
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// @vitest-environment jsdom
|
|
2
|
-
|
|
3
|
-
import { describe, it } from 'vitest'
|
|
4
|
-
import { mount } from '@vue/test-utils'
|
|
5
|
-
import { axe } from 'vitest-axe'
|
|
6
|
-
import { assertNoA11yViolations } from '@tests/unit/accessibility/axeUtils'
|
|
7
|
-
import PhoneField from '../PhoneField.vue'
|
|
8
|
-
import { indicatifs } from '../indicatifs'
|
|
9
|
-
|
|
10
|
-
// Scénario d’accessibilité : champ de téléphone avec indicatif et numéro renseignés.
|
|
11
|
-
|
|
12
|
-
describe('PhoneField – accessibility (axe)', () => {
|
|
13
|
-
it('has no obvious axe violations with country code and phone number', async () => {
|
|
14
|
-
const defaultDialCode = indicatifs[0]
|
|
15
|
-
|
|
16
|
-
const wrapper = mount(PhoneField, {
|
|
17
|
-
props: {
|
|
18
|
-
withCountryCode: true,
|
|
19
|
-
countryCodeRequired: true,
|
|
20
|
-
required: true,
|
|
21
|
-
modelValue: '0612345678',
|
|
22
|
-
dialCodeModel: defaultDialCode,
|
|
23
|
-
},
|
|
24
|
-
attachTo: document.body,
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
const results = await axe(wrapper.element as HTMLElement)
|
|
28
|
-
assertNoA11yViolations(results, 'PhoneField – country code + phone', {
|
|
29
|
-
ignoreRules: ['region'],
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
wrapper.unmount()
|
|
33
|
-
})
|
|
34
|
-
})
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
-
import * as AccessStories from './Accessibilite.stories.ts';
|
|
3
|
-
import '../../stories/styles/shared.css';
|
|
4
|
-
|
|
5
|
-
<Meta of={AccessStories} />
|
|
6
|
-
|
|
7
|
-
<div className="header">
|
|
8
|
-
<h1>Accessibilité</h1>
|
|
9
|
-
<p>Informations sur l'accessibilité du composant</p>
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
<Story of={AccessStories.Legende} />
|
|
13
|
-
<br />
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { VIcon } from 'vuetify/components'
|
|
2
|
-
import type { StoryObj } from '@storybook/vue3'
|
|
3
|
-
import { mdiCheckboxMarkedCircle } from '@mdi/js'
|
|
4
|
-
|
|
5
|
-
const checkIcon = mdiCheckboxMarkedCircle
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
title: 'Composants/Formulaires/RangeField/Accessibilité',
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const Legende: StoryObj = {
|
|
12
|
-
args: {
|
|
13
|
-
icon: checkIcon,
|
|
14
|
-
},
|
|
15
|
-
render: (args) => {
|
|
16
|
-
return {
|
|
17
|
-
components: { VIcon },
|
|
18
|
-
setup() {
|
|
19
|
-
return { args }
|
|
20
|
-
},
|
|
21
|
-
template: `
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<div class="mt-4">
|
|
25
|
-
<p>Rapport d’audit manuel : <a href="/audits/RangeField.xlsx" style="color:#0C41BD;">Voir le rapport</a></p>
|
|
26
|
-
<p style="color: grey; font-size: 14px">Correctifs associés (<a href="https://github.com/assurance-maladie-digital/design-system-v3/issues/908" target="_blank" style="color:#0C41BD;">issue #908</a>)</p>
|
|
27
|
-
</div>
|
|
28
|
-
`,
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
tags: ['!dev'],
|
|
32
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
-
import * as AccessStories from './Accessibilite.stories.ts';
|
|
3
|
-
import '../../stories/styles/shared.css';
|
|
4
|
-
|
|
5
|
-
<Meta of={AccessStories} />
|
|
6
|
-
|
|
7
|
-
<div className="header">
|
|
8
|
-
<h1>Accessibilité</h1>
|
|
9
|
-
<p>Informations sur l'accessibilité du composant</p>
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
<Story of={AccessStories.Legende} />
|
|
13
|
-
<br />
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { VIcon } from 'vuetify/components'
|
|
2
|
-
import type { StoryObj } from '@storybook/vue3'
|
|
3
|
-
import { mdiCheckboxMarkedCircle } from '@mdi/js'
|
|
4
|
-
|
|
5
|
-
const checkIcon = mdiCheckboxMarkedCircle
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
title: 'Composants/Feedback/RatingPicker/Accessibilité',
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const Legende: StoryObj = {
|
|
12
|
-
args: {
|
|
13
|
-
icon: checkIcon,
|
|
14
|
-
},
|
|
15
|
-
render: (args) => {
|
|
16
|
-
return {
|
|
17
|
-
components: { VIcon },
|
|
18
|
-
setup() {
|
|
19
|
-
return { args }
|
|
20
|
-
},
|
|
21
|
-
template: `
|
|
22
|
-
<div class="mt-4">
|
|
23
|
-
<p>Rapport d’audit manuel : <a href="/audits/RatingPicker.xlsx" style="color:#0C41BD;">Voir le rapport</a></p>
|
|
24
|
-
<p style="color: grey; font-size: 14px">Correctifs associés (<a href="https://github.com/assurance-maladie-digital/design-system-v3/issues/910" target="_blank" style="color:#0C41BD;">issue #910</a>)</p>
|
|
25
|
-
</div>
|
|
26
|
-
`,
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
tags: ['!dev'],
|
|
30
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
-
import * as AccessStories from './Accessibilite.stories.ts';
|
|
3
|
-
import '../../stories/styles/shared.css';
|
|
4
|
-
|
|
5
|
-
<Meta of={AccessStories} />
|
|
6
|
-
|
|
7
|
-
<div className="header">
|
|
8
|
-
<h1>Accessibilité</h1>
|
|
9
|
-
<p>Informations sur l'accessibilité du composant</p>
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
<Story of={AccessStories.Legende} />
|
|
13
|
-
<br />
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { VIcon } from 'vuetify/components'
|
|
2
|
-
import type { StoryObj } from '@storybook/vue3'
|
|
3
|
-
import { mdiCheckboxMarkedCircle } from '@mdi/js'
|
|
4
|
-
|
|
5
|
-
const checkIcon = mdiCheckboxMarkedCircle
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
title: 'Composants/Formulaires/SearchListField/Accessibilité',
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const Legende: StoryObj = {
|
|
12
|
-
args: {
|
|
13
|
-
icon: checkIcon,
|
|
14
|
-
},
|
|
15
|
-
render: (args) => {
|
|
16
|
-
return {
|
|
17
|
-
components: { VIcon },
|
|
18
|
-
setup() {
|
|
19
|
-
return { args }
|
|
20
|
-
},
|
|
21
|
-
template: `
|
|
22
|
-
<div class="mt-4">
|
|
23
|
-
<p>Rapport d’audit manuel : <a href="/audits/SearchListField.xlsx" style="color:#0C41BD;">Voir le rapport</a></p>
|
|
24
|
-
<p style="color: grey; font-size: 14px">Correctifs associés (<a href="https://github.com/assurance-maladie-digital/design-system-v3/pull/1499" target="_blank" style="color:#0C41BD;">PR #1499</a>)</p>
|
|
25
|
-
</div>
|
|
26
|
-
`,
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
tags: ['!dev'],
|
|
30
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { VIcon } from 'vuetify/components'
|
|
2
|
-
import type { StoryObj } from '@storybook/vue3'
|
|
3
|
-
import { mdiCheckboxMarkedCircle } from '@mdi/js'
|
|
4
|
-
|
|
5
|
-
const checkIcon = mdiCheckboxMarkedCircle
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
title: 'Composants/Navigation/SkipLink/Accessibilité',
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const Legende: StoryObj = {
|
|
12
|
-
args: {
|
|
13
|
-
icon: checkIcon,
|
|
14
|
-
},
|
|
15
|
-
render: (args) => {
|
|
16
|
-
return {
|
|
17
|
-
components: { VIcon },
|
|
18
|
-
setup() {
|
|
19
|
-
return { args }
|
|
20
|
-
},
|
|
21
|
-
template: `
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<div class="mt-4">
|
|
25
|
-
<p>Rapport d’audit manuel : <a href="/audits/SkipLink.xlsx" style="color:#0C41BD;">Voir le
|
|
26
|
-
rapport</a></p>
|
|
27
|
-
<p style="color: grey; font-size: 14px">Correctifs associés (<a
|
|
28
|
-
href="https://github.com/assurance-maladie-digital/design-system/issues/4012" target="_blank"
|
|
29
|
-
style="color:#0C41BD;"
|
|
30
|
-
>issue #4012</a>)</p>
|
|
31
|
-
</div>
|
|
32
|
-
`,
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
tags: ['!dev'],
|
|
36
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
-
import * as AccessStories from './Accessibilite.stories.ts';
|
|
3
|
-
import '../../stories/styles/shared.css';
|
|
4
|
-
|
|
5
|
-
<Meta of={AccessStories} />
|
|
6
|
-
|
|
7
|
-
<div className="header">
|
|
8
|
-
<h1>Accessibilité</h1>
|
|
9
|
-
<p>Informations sur l'accessibilité du composant</p>
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
<Story of={AccessStories.Legende} />
|
|
13
|
-
<br />
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { VIcon } from 'vuetify/components'
|
|
2
|
-
import type { StoryObj } from '@storybook/vue3'
|
|
3
|
-
import { mdiCheckboxMarkedCircle } from '@mdi/js'
|
|
4
|
-
|
|
5
|
-
const checkIcon = mdiCheckboxMarkedCircle
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
title: 'Composants/Navigation/SocialMediaLinks/Accessibilité',
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const Legende: StoryObj = {
|
|
12
|
-
args: {
|
|
13
|
-
icon: checkIcon,
|
|
14
|
-
},
|
|
15
|
-
render: (args) => {
|
|
16
|
-
return {
|
|
17
|
-
components: { VIcon },
|
|
18
|
-
setup() {
|
|
19
|
-
return { args }
|
|
20
|
-
},
|
|
21
|
-
template: `
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<div class="mt-4">
|
|
25
|
-
<p>Rapport d’audit manuel : <a href="/audits/SocialMediaLinks.xlsx" style="color:#0C41BD;">Voir le
|
|
26
|
-
rapport</a></p>
|
|
27
|
-
<p style="color: grey; font-size: 14px">Correctifs associés (<a
|
|
28
|
-
href="https://github.com/assurance-maladie-digital/design-system-v3/issues/790" target="_blank"
|
|
29
|
-
style="color:#0C41BD;"
|
|
30
|
-
>issue #790</a>)</p>
|
|
31
|
-
</div>
|
|
32
|
-
`,
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
tags: ['!dev'],
|
|
36
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
-
import * as AccessStories from './Accessibilite.stories.ts';
|
|
3
|
-
import '../../stories/styles/shared.css';
|
|
4
|
-
|
|
5
|
-
<Meta of={AccessStories} />
|
|
6
|
-
|
|
7
|
-
<div className="header">
|
|
8
|
-
<h1>Accessibilité</h1>
|
|
9
|
-
<p>Informations sur l'accessibilité du composant</p>
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
<Story of={AccessStories.Legende} />
|
|
13
|
-
<br />
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { VIcon } from 'vuetify/components'
|
|
2
|
-
import type { StoryObj } from '@storybook/vue3'
|
|
3
|
-
import { mdiCheckboxMarkedCircle } from '@mdi/js'
|
|
4
|
-
|
|
5
|
-
const checkIcon = mdiCheckboxMarkedCircle
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
title: 'Composants/Structure/SubHeader/Accessibilité',
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const Legende: StoryObj = {
|
|
12
|
-
args: {
|
|
13
|
-
icon: checkIcon,
|
|
14
|
-
},
|
|
15
|
-
render: (args) => {
|
|
16
|
-
return {
|
|
17
|
-
components: { VIcon },
|
|
18
|
-
setup() {
|
|
19
|
-
return { args }
|
|
20
|
-
},
|
|
21
|
-
template: `
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<div class="mt-4">
|
|
25
|
-
<p>Rapport d’audit manuel : <a href="/audits/SubHeader.xlsx" style="color:#0C41BD;">Voir le
|
|
26
|
-
rapport</a></p>
|
|
27
|
-
<p style="color: grey; font-size: 14px">Correctifs associés (<a
|
|
28
|
-
href="https://github.com/assurance-maladie-digital/design-system-v3/pull/942" target="_blank"
|
|
29
|
-
style="color:#0C41BD;"
|
|
30
|
-
>issue #942</a>)</p>
|
|
31
|
-
</div>
|
|
32
|
-
`,
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
tags: ['!dev'],
|
|
36
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
-
import * as AccessStories from './Accessibilite.stories.ts';
|
|
3
|
-
import '../../stories/styles/shared.css';
|
|
4
|
-
|
|
5
|
-
<Meta of={AccessStories} />
|
|
6
|
-
|
|
7
|
-
<div className="header">
|
|
8
|
-
<h1>Accessibilité</h1>
|
|
9
|
-
<p>Informations sur l'accessibilité du composant</p>
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
<Story of={AccessStories.Legende} />
|
|
13
|
-
<br />
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { VIcon } from 'vuetify/components'
|
|
2
|
-
import type { StoryObj } from '@storybook/vue3'
|
|
3
|
-
import { mdiCheckboxMarkedCircle } from '@mdi/js'
|
|
4
|
-
|
|
5
|
-
const checkIcon = mdiCheckboxMarkedCircle
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
title: 'Composants/Feedback/SyAlert/Accessibilité',
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const Legende: StoryObj = {
|
|
12
|
-
args: {
|
|
13
|
-
icon: checkIcon,
|
|
14
|
-
},
|
|
15
|
-
render: (args) => {
|
|
16
|
-
return {
|
|
17
|
-
components: { VIcon },
|
|
18
|
-
setup() {
|
|
19
|
-
return { args }
|
|
20
|
-
},
|
|
21
|
-
template: `
|
|
22
|
-
<div class="mt-4">
|
|
23
|
-
<p>Rapport d’audit manuel : <a href="/audits/SyAlert.xlsx" style="color:#0C41BD;">Voir le rapport</a></p>
|
|
24
|
-
<p style="color: grey; font-size: 14px">Correctifs associés (<a href="https://github.com/assurance-maladie-digital/design-system/issues/4010" target="_blank" style="color:#0C41BD;">issue #4010</a>)</p>
|
|
25
|
-
</div>
|
|
26
|
-
`,
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
tags: ['!dev'],
|
|
30
|
-
}
|