@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
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/blocks';
|
|
2
|
+
import * as StatusPageStories from '../StatusPage.stories.ts';
|
|
3
|
+
import AccessibilityIcon from '@/common/imgs/accessibility-svgrepo-com.svg';
|
|
4
|
+
import {
|
|
5
|
+
AccessibilityGuideLayout,
|
|
6
|
+
CriteriaSection,
|
|
7
|
+
CriteriaCard,
|
|
8
|
+
DemoSection,
|
|
9
|
+
BestPracticesSection,
|
|
10
|
+
ResourcesSection,
|
|
11
|
+
} from '@/stories/accessibility/AccessibilityGuideLayout.mdx';
|
|
12
|
+
|
|
13
|
+
<Meta of={StatusPageStories} />
|
|
14
|
+
|
|
15
|
+
<AccessibilityGuideLayout
|
|
16
|
+
componentName="StatusPage"
|
|
17
|
+
iconSrc={AccessibilityIcon}
|
|
18
|
+
>
|
|
19
|
+
|
|
20
|
+
<CriteriaSection>
|
|
21
|
+
<CriteriaCard icon="🔍" title="Structure sémantique">
|
|
22
|
+
<ul>
|
|
23
|
+
<li><strong>Titre de page</strong> : le titre est rendu dans une balise <code>h1</code>, unique et descriptif</li>
|
|
24
|
+
<li><strong>Code d'erreur</strong> : le code (ex. <code>500</code>, <code>404</code>) est précédé du texte masqué visuellement <code>codeErrorText</code> (par défaut <em>"Code d'erreur : "</em>) pour les lecteurs d'écran</li>
|
|
25
|
+
<li><strong>Rôles ARIA hérités</strong> via <code>PageContainer</code> :</li>
|
|
26
|
+
<ul>
|
|
27
|
+
<li>exemple : <code>role="main"</code> représente le contenu principal de la page</li>
|
|
28
|
+
</ul>
|
|
29
|
+
</ul>
|
|
30
|
+
</CriteriaCard>
|
|
31
|
+
|
|
32
|
+
<CriteriaCard icon="🔗" title="Liens et boutons">
|
|
33
|
+
<ul>
|
|
34
|
+
<li><strong>Numéros de téléphone</strong> : les numéros de 4 ou 10 chiffres (ex. <code>3646</code>) sont automatiquement transformés en liens <code>tel:</code> cliquables et vocalisables</li>
|
|
35
|
+
<li><strong>Bouton de retour</strong> : rendu via <code>btn-href</code> (balise <code>a</code>) ou <code>btn-link</code> (balise <code>router-link</code>)</li>
|
|
36
|
+
<li><strong>Texte du bouton</strong> : doit être explicite et décrire la destination, ex. <em>"Retour à l'accueil"</em></li>
|
|
37
|
+
<li><strong>Masquage du bouton</strong> : la prop <code>hide-btn</code> permet de masquer le bouton si une alternative de navigation est présente</li>
|
|
38
|
+
</ul>
|
|
39
|
+
</CriteriaCard>
|
|
40
|
+
|
|
41
|
+
<CriteriaCard icon="🖼️" title="Illustration">
|
|
42
|
+
<ul>
|
|
43
|
+
<li><strong>Image décorative</strong> : l'illustration doit avoir <code>alt=""</code> et <code>aria-hidden="true"</code> car elle est purement décorative</li>
|
|
44
|
+
<li><strong>Slot illustration</strong> : si une illustration personnalisée est fournie via le slot <code>#illustration</code>, les mêmes règles s'appliquent</li>
|
|
45
|
+
<li><strong>Mise en page adaptive</strong> : la colonne illustration n'est affichée que si le slot est fourni, évitant des zones vides</li>
|
|
46
|
+
</ul>
|
|
47
|
+
</CriteriaCard>
|
|
48
|
+
|
|
49
|
+
<CriteriaCard icon="📝" title="Contenu additionnel">
|
|
50
|
+
<ul>
|
|
51
|
+
<li><strong>Slot <code>additional-content</code></strong> : destiné à du contenu textuel complémentaire (ex. identifiant de support), doit rester lisible par les lecteurs d'écran</li>
|
|
52
|
+
<li><strong>Slot <code>action</code></strong> : permet d'ajouter des actions supplémentaires accessibles au clavier</li>
|
|
53
|
+
</ul>
|
|
54
|
+
</CriteriaCard>
|
|
55
|
+
</CriteriaSection>
|
|
56
|
+
|
|
57
|
+
<DemoSection title="Avec illustration personnalisée" componentName="StatusPage">
|
|
58
|
+
<Story of={StatusPageStories.CustomIllustration} />
|
|
59
|
+
</DemoSection>
|
|
60
|
+
|
|
61
|
+
<BestPracticesSection>
|
|
62
|
+
<ul>
|
|
63
|
+
<li>Toujours renseigner <code>page-title</code> avec un titre clair et unique décrivant l'erreur</li>
|
|
64
|
+
<li>Personnaliser <code>code-error-text</code> si nécessaire pour un contexte métier spécifique</li>
|
|
65
|
+
<li>Fournir un <code>btn-text</code> explicite — éviter les libellés génériques comme <em>"Cliquez ici"</em></li>
|
|
66
|
+
<li>Ne pas masquer le bouton (<code>hide-btn</code>) sans proposer une alternative de navigation claire</li>
|
|
67
|
+
<li>Les illustrations doivent toujours être décoratives (<code>aria-hidden="true"</code>) — ne jamais y placer d'information essentielle</li>
|
|
68
|
+
<li>Le contenu dans <code>additional-content</code> doit être lisible par les lecteurs d'écran : éviter le contenu purement visuel</li>
|
|
69
|
+
</ul>
|
|
70
|
+
</BestPracticesSection>
|
|
71
|
+
|
|
72
|
+
<ResourcesSection>
|
|
73
|
+
<ul>
|
|
74
|
+
<li><a href="https://www.w3.org/WAI/WCAG21/Understanding/info-and-relationships.html" target="_blank" style={{ color: '#0C41BD' }}>WCAG 1.3.1 – Info and Relationships</a></li>
|
|
75
|
+
<li><a href="https://www.w3.org/WAI/WCAG21/Understanding/link-purpose-in-context.html" target="_blank" style={{ color: '#0C41BD' }}>WCAG 2.4.4 – Link Purpose</a></li>
|
|
76
|
+
<li><a href="https://www.w3.org/WAI/WCAG21/Understanding/non-text-content.html" target="_blank" style={{ color: '#0C41BD' }}>WCAG 1.1.1 – Non-text Content</a></li>
|
|
77
|
+
<li><a href="https://www.w3.org/WAI/ARIA/apg/patterns/" target="_blank" style={{ color: '#0C41BD' }}>ARIA Authoring Practices Guide</a></li>
|
|
78
|
+
</ul>
|
|
79
|
+
</ResourcesSection>
|
|
80
|
+
|
|
81
|
+
</AccessibilityGuideLayout>
|
|
@@ -0,0 +1,29 @@
|
|
|
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 StatusPage from '../StatusPage.vue'
|
|
8
|
+
|
|
9
|
+
// Scénario d’accessibilité : page d’erreur avec titre, message, code
|
|
10
|
+
// et bouton de retour vers la page d’accueil.
|
|
11
|
+
|
|
12
|
+
describe('StatusPage – accessibility (axe)', () => {
|
|
13
|
+
it('has no obvious axe violations with title, message and action button', async () => {
|
|
14
|
+
const wrapper = mount(StatusPage, {
|
|
15
|
+
props: {
|
|
16
|
+
pageTitle: 'Une erreur est survenue',
|
|
17
|
+
message: 'Un problème technique est survenu. Merci de réessayer plus tard.',
|
|
18
|
+
code: '500',
|
|
19
|
+
btnText: 'Retour à l\'accueil',
|
|
20
|
+
btnHref: 'https://www.ameli.fr',
|
|
21
|
+
},
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
const results = await axe(wrapper.element as HTMLElement)
|
|
25
|
+
assertNoA11yViolations(results, 'StatusPage – default page', {
|
|
26
|
+
ignoreRules: ['region'],
|
|
27
|
+
})
|
|
28
|
+
})
|
|
29
|
+
})
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { describe, it, expect } from 'vitest'
|
|
2
|
+
import { mount } from '@vue/test-utils'
|
|
3
|
+
import StatusPage from '../StatusPage.vue'
|
|
4
|
+
|
|
5
|
+
describe('StatusPage', () => {
|
|
6
|
+
it('renders correctly', () => {
|
|
7
|
+
const wrapper = mount(StatusPage, {
|
|
8
|
+
props: {
|
|
9
|
+
pageTitle: 'Something went wrong',
|
|
10
|
+
message: 'Error message',
|
|
11
|
+
},
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
expect(wrapper.text()).toContain('Something went wrong')
|
|
15
|
+
expect(wrapper.text()).toContain('Error message')
|
|
16
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
it('renders correctly with undefined route', () => {
|
|
20
|
+
const wrapper = mount(StatusPage, {
|
|
21
|
+
props: {
|
|
22
|
+
code: '501',
|
|
23
|
+
pageTitle: 'Error',
|
|
24
|
+
message: 'Error message',
|
|
25
|
+
btnText: 'Go to...',
|
|
26
|
+
btnHref: 'https://google.com',
|
|
27
|
+
},
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
expect(wrapper.find('a').exists()).toBe(true)
|
|
31
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
it('uses href without router navigation when only btnHref is provided', () => {
|
|
35
|
+
const wrapper = mount(StatusPage, {
|
|
36
|
+
props: {
|
|
37
|
+
code: '401',
|
|
38
|
+
pageTitle: 'Auth error',
|
|
39
|
+
message: 'You are not authorized',
|
|
40
|
+
btnText: 'Logout',
|
|
41
|
+
btnHref: 'https://google.com',
|
|
42
|
+
},
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
const link = wrapper.find('a')
|
|
46
|
+
expect(link.exists()).toBe(true)
|
|
47
|
+
expect(link.attributes('href')).toBe('https://google.com')
|
|
48
|
+
expect(link.attributes('to')).toBeUndefined()
|
|
49
|
+
})
|
|
50
|
+
})
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`StatusPage > renders correctly 1`] = `
|
|
4
|
+
<div class="
|
|
5
|
+
d-flex
|
|
6
|
+
justify-center
|
|
7
|
+
px-14
|
|
8
|
+
py-10
|
|
9
|
+
vd-page-container
|
|
10
|
+
">
|
|
11
|
+
<div
|
|
12
|
+
class="
|
|
13
|
+
bg-transparent
|
|
14
|
+
v-sheet
|
|
15
|
+
v-theme--light
|
|
16
|
+
"
|
|
17
|
+
style="width: 800px;"
|
|
18
|
+
>
|
|
19
|
+
<div class="
|
|
20
|
+
elevation-0
|
|
21
|
+
pa-6
|
|
22
|
+
pa-sm-16
|
|
23
|
+
v-card
|
|
24
|
+
v-card--density-default
|
|
25
|
+
v-card--variant-elevated
|
|
26
|
+
v-theme--light
|
|
27
|
+
">
|
|
28
|
+
<!---->
|
|
29
|
+
<div class="v-card__loader">
|
|
30
|
+
<div
|
|
31
|
+
aria-hidden="true"
|
|
32
|
+
aria-valuemax="100"
|
|
33
|
+
aria-valuemin="0"
|
|
34
|
+
class="
|
|
35
|
+
v-locale--is-ltr
|
|
36
|
+
v-progress-linear
|
|
37
|
+
v-theme--light
|
|
38
|
+
"
|
|
39
|
+
role="progressbar"
|
|
40
|
+
style="
|
|
41
|
+
top: 0px;
|
|
42
|
+
height: 0px;
|
|
43
|
+
--v-progress-linear-height: 2px;
|
|
44
|
+
"
|
|
45
|
+
>
|
|
46
|
+
<!---->
|
|
47
|
+
<div
|
|
48
|
+
class="v-progress-linear__background"
|
|
49
|
+
style="opacity: NaN;"
|
|
50
|
+
></div>
|
|
51
|
+
<div
|
|
52
|
+
class="v-progress-linear__buffer"
|
|
53
|
+
style="
|
|
54
|
+
opacity: NaN;
|
|
55
|
+
width: 0%;
|
|
56
|
+
"
|
|
57
|
+
></div>
|
|
58
|
+
<transition-stub
|
|
59
|
+
appear="false"
|
|
60
|
+
css="true"
|
|
61
|
+
name="fade-transition"
|
|
62
|
+
persisted="false"
|
|
63
|
+
>
|
|
64
|
+
<div class="v-progress-linear__indeterminate">
|
|
65
|
+
<div class="
|
|
66
|
+
long
|
|
67
|
+
v-progress-linear__indeterminate
|
|
68
|
+
"></div>
|
|
69
|
+
<div class="
|
|
70
|
+
short
|
|
71
|
+
v-progress-linear__indeterminate
|
|
72
|
+
"></div>
|
|
73
|
+
</div>
|
|
74
|
+
</transition-stub>
|
|
75
|
+
<!---->
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
<!---->
|
|
79
|
+
<!---->
|
|
80
|
+
<div class="
|
|
81
|
+
max-width-none
|
|
82
|
+
v-row
|
|
83
|
+
">
|
|
84
|
+
<div class="
|
|
85
|
+
align-sm-start
|
|
86
|
+
d-flex
|
|
87
|
+
flex-column
|
|
88
|
+
justify-center
|
|
89
|
+
order-last
|
|
90
|
+
order-sm-first
|
|
91
|
+
text-center
|
|
92
|
+
text-sm-left
|
|
93
|
+
v-col-12
|
|
94
|
+
v-col-sm-12
|
|
95
|
+
">
|
|
96
|
+
<!-- v-if -->
|
|
97
|
+
<h1 class="
|
|
98
|
+
font-weight-bold
|
|
99
|
+
mb-2
|
|
100
|
+
mb-4
|
|
101
|
+
text-h5
|
|
102
|
+
">
|
|
103
|
+
Something went wrong
|
|
104
|
+
</h1>
|
|
105
|
+
<p>
|
|
106
|
+
<span>
|
|
107
|
+
Error message
|
|
108
|
+
</span>
|
|
109
|
+
</p>
|
|
110
|
+
<!-- v-if -->
|
|
111
|
+
</div>
|
|
112
|
+
<!-- v-if -->
|
|
113
|
+
</div>
|
|
114
|
+
<!---->
|
|
115
|
+
<!---->
|
|
116
|
+
<span class="v-card__underlay"></span>
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
`;
|
|
121
|
+
|
|
122
|
+
exports[`StatusPage > renders correctly with undefined route 1`] = `
|
|
123
|
+
<div class="
|
|
124
|
+
d-flex
|
|
125
|
+
justify-center
|
|
126
|
+
px-14
|
|
127
|
+
py-10
|
|
128
|
+
vd-page-container
|
|
129
|
+
">
|
|
130
|
+
<div
|
|
131
|
+
class="
|
|
132
|
+
bg-transparent
|
|
133
|
+
v-sheet
|
|
134
|
+
v-theme--light
|
|
135
|
+
"
|
|
136
|
+
style="width: 800px;"
|
|
137
|
+
>
|
|
138
|
+
<div class="
|
|
139
|
+
elevation-0
|
|
140
|
+
pa-6
|
|
141
|
+
pa-sm-16
|
|
142
|
+
v-card
|
|
143
|
+
v-card--density-default
|
|
144
|
+
v-card--variant-elevated
|
|
145
|
+
v-theme--light
|
|
146
|
+
">
|
|
147
|
+
<!---->
|
|
148
|
+
<div class="v-card__loader">
|
|
149
|
+
<div
|
|
150
|
+
aria-hidden="true"
|
|
151
|
+
aria-valuemax="100"
|
|
152
|
+
aria-valuemin="0"
|
|
153
|
+
class="
|
|
154
|
+
v-locale--is-ltr
|
|
155
|
+
v-progress-linear
|
|
156
|
+
v-theme--light
|
|
157
|
+
"
|
|
158
|
+
role="progressbar"
|
|
159
|
+
style="
|
|
160
|
+
top: 0px;
|
|
161
|
+
height: 0px;
|
|
162
|
+
--v-progress-linear-height: 2px;
|
|
163
|
+
"
|
|
164
|
+
>
|
|
165
|
+
<!---->
|
|
166
|
+
<div
|
|
167
|
+
class="v-progress-linear__background"
|
|
168
|
+
style="opacity: NaN;"
|
|
169
|
+
></div>
|
|
170
|
+
<div
|
|
171
|
+
class="v-progress-linear__buffer"
|
|
172
|
+
style="
|
|
173
|
+
opacity: NaN;
|
|
174
|
+
width: 0%;
|
|
175
|
+
"
|
|
176
|
+
></div>
|
|
177
|
+
<transition-stub
|
|
178
|
+
appear="false"
|
|
179
|
+
css="true"
|
|
180
|
+
name="fade-transition"
|
|
181
|
+
persisted="false"
|
|
182
|
+
>
|
|
183
|
+
<div class="v-progress-linear__indeterminate">
|
|
184
|
+
<div class="
|
|
185
|
+
long
|
|
186
|
+
v-progress-linear__indeterminate
|
|
187
|
+
"></div>
|
|
188
|
+
<div class="
|
|
189
|
+
short
|
|
190
|
+
v-progress-linear__indeterminate
|
|
191
|
+
"></div>
|
|
192
|
+
</div>
|
|
193
|
+
</transition-stub>
|
|
194
|
+
<!---->
|
|
195
|
+
</div>
|
|
196
|
+
</div>
|
|
197
|
+
<!---->
|
|
198
|
+
<!---->
|
|
199
|
+
<div class="
|
|
200
|
+
max-width-none
|
|
201
|
+
v-row
|
|
202
|
+
">
|
|
203
|
+
<div class="
|
|
204
|
+
align-sm-start
|
|
205
|
+
d-flex
|
|
206
|
+
flex-column
|
|
207
|
+
justify-center
|
|
208
|
+
order-last
|
|
209
|
+
order-sm-first
|
|
210
|
+
text-center
|
|
211
|
+
text-sm-left
|
|
212
|
+
v-col-12
|
|
213
|
+
v-col-sm-12
|
|
214
|
+
">
|
|
215
|
+
<div class="
|
|
216
|
+
mb-4
|
|
217
|
+
sy-code
|
|
218
|
+
text-primary
|
|
219
|
+
">
|
|
220
|
+
<span class="d-sr-only">
|
|
221
|
+
Code d'erreur :
|
|
222
|
+
</span>
|
|
223
|
+
501
|
|
224
|
+
</div>
|
|
225
|
+
<h1 class="
|
|
226
|
+
font-weight-bold
|
|
227
|
+
mb-2
|
|
228
|
+
mb-4
|
|
229
|
+
text-h5
|
|
230
|
+
">
|
|
231
|
+
Error
|
|
232
|
+
</h1>
|
|
233
|
+
<p>
|
|
234
|
+
<span>
|
|
235
|
+
Error message
|
|
236
|
+
</span>
|
|
237
|
+
</p>
|
|
238
|
+
<a
|
|
239
|
+
class="
|
|
240
|
+
bg-primary
|
|
241
|
+
mt-6
|
|
242
|
+
v-btn
|
|
243
|
+
v-btn--density-default
|
|
244
|
+
v-btn--elevated
|
|
245
|
+
v-btn--size-default
|
|
246
|
+
v-btn--variant-elevated
|
|
247
|
+
v-theme--light
|
|
248
|
+
"
|
|
249
|
+
href="https://google.com"
|
|
250
|
+
><span class="v-btn__overlay"></span><span class="v-btn__underlay"></span>
|
|
251
|
+
|
|
252
|
+
<!----><span
|
|
253
|
+
class="v-btn__content"
|
|
254
|
+
data-no-activator=""
|
|
255
|
+
>Go to...</span>
|
|
256
|
+
|
|
257
|
+
<!---->
|
|
258
|
+
|
|
259
|
+
<!---->
|
|
260
|
+
</a>
|
|
261
|
+
</div>
|
|
262
|
+
<!-- v-if -->
|
|
263
|
+
</div>
|
|
264
|
+
<!---->
|
|
265
|
+
<!---->
|
|
266
|
+
<span class="v-card__underlay"></span>
|
|
267
|
+
</div>
|
|
268
|
+
</div>
|
|
269
|
+
</div>
|
|
270
|
+
`;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
+
import * as SubHeaderStories from '../SubHeader.stories.ts';
|
|
3
|
+
import '@/stories/styles/shared.css';
|
|
4
|
+
|
|
5
|
+
<Meta of={SubHeaderStories} />
|
|
6
|
+
|
|
7
|
+
<div className="header">
|
|
8
|
+
<h1>Accessibilité</h1>
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
<div class="mt-2">
|
|
13
|
+
<p>Rapport d’audit manuel : <a href="/audits/SubHeader.xlsx" style={{ color:'#0C41BD' }}>Voir le rapport</a></p>
|
|
14
|
+
<p style={{ color: 'grey', fontSize: '14px', marginTop: '0px' }}>Correctifs associés (<a href="https://github.com/assurance-maladie-digital/design-system-v3/issues/942" target="_blank" style={{color:'#0C41BD'}}>issue #942</a>)</p>
|
|
15
|
+
</div>
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
mdiClose,
|
|
10
10
|
} from '@mdi/js'
|
|
11
11
|
import type { VIcon } from 'vuetify/components'
|
|
12
|
+
import SyIcon from '@/components/Customs/SyIcon/SyIcon.vue'
|
|
12
13
|
|
|
13
14
|
defineOptions({
|
|
14
15
|
inheritAttrs: false,
|
|
@@ -75,9 +76,9 @@
|
|
|
75
76
|
<template #prepend>
|
|
76
77
|
<VIcon
|
|
77
78
|
ref="alertIcon"
|
|
79
|
+
v-rgaa-svg-fix
|
|
78
80
|
class="alert-icon"
|
|
79
81
|
size="1.5rem"
|
|
80
|
-
role="presentation"
|
|
81
82
|
>
|
|
82
83
|
<slot name="icon">
|
|
83
84
|
{{ prependIcon }}
|
|
@@ -102,12 +103,11 @@
|
|
|
102
103
|
class="alert-close-btn"
|
|
103
104
|
@click="dismissAlert"
|
|
104
105
|
>
|
|
105
|
-
<
|
|
106
|
+
<SyIcon
|
|
106
107
|
size="large"
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
:icon="mdiClose"
|
|
109
|
+
decorative
|
|
110
|
+
/>
|
|
111
111
|
<span>
|
|
112
112
|
{{ locales.close }}
|
|
113
113
|
</span>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
+
import * as SyAlertStorie from '../SyAlert.stories';
|
|
3
|
+
import '@/stories/styles/shared.css';
|
|
4
|
+
|
|
5
|
+
<Meta of={SyAlertStorie} />
|
|
6
|
+
|
|
7
|
+
<div className="header">
|
|
8
|
+
<h1>Accessibilité</h1>
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
<p>Rapport d’audit manuel : <a href="/audits/SyAlert.xlsx" style={{ color:'#0C41BD' }}>Voir le rapport</a></p>
|
|
12
|
+
<p style={{ color: 'grey', fontSize: '14px', margin: '0px' }}>Correctifs associés (<a href="https://github.com/assurance-maladie-digital/design-system-v3/issues/4010" target="_blank" style={{color:'#0C41BD'}}>issue #4010</a>)</p>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
+
import * as SyTextArea from '../SyTextArea.stories';
|
|
3
|
+
import '@/stories/styles/shared.css';
|
|
4
|
+
|
|
5
|
+
<Meta of={SyTextArea} />
|
|
6
|
+
|
|
7
|
+
<div className="header">
|
|
8
|
+
<h1>Accessibilité</h1>
|
|
9
|
+
<p>Cette page sera bientôt disponible</p>
|
|
10
|
+
</div>
|
|
@@ -878,7 +878,7 @@ export const SlotFilters: Story = {
|
|
|
878
878
|
},
|
|
879
879
|
]
|
|
880
880
|
|
|
881
|
-
const search = ref(
|
|
881
|
+
const search = ref(undefined)
|
|
882
882
|
|
|
883
883
|
const filterItems = ref<{ text: string, value: string }[]>([])
|
|
884
884
|
|
|
@@ -902,16 +902,16 @@ export const SlotFilters: Story = {
|
|
|
902
902
|
<template #top>
|
|
903
903
|
<TableToolbar
|
|
904
904
|
v-bind="args"
|
|
905
|
-
v-model:search="
|
|
905
|
+
v-model:search="search"
|
|
906
906
|
>
|
|
907
907
|
<template #filters>
|
|
908
|
-
<div class="py-1">
|
|
908
|
+
<div class="px-4 py-4 py-sm-1">
|
|
909
909
|
<SySelect
|
|
910
910
|
v-model="search"
|
|
911
911
|
:items="filterItems"
|
|
912
912
|
label="Nom"
|
|
913
913
|
density="compact"
|
|
914
|
-
width="
|
|
914
|
+
width="150"
|
|
915
915
|
hide-messages
|
|
916
916
|
clearable
|
|
917
917
|
/>
|
|
@@ -942,13 +942,13 @@ export const SlotFilters: Story = {
|
|
|
942
942
|
:nb-total="items.length"
|
|
943
943
|
>
|
|
944
944
|
<template #filters>
|
|
945
|
-
<div class="py-4">
|
|
945
|
+
<div class="px-4 py-4 py-sm-1">
|
|
946
946
|
<SySelect
|
|
947
947
|
v-model="search"
|
|
948
948
|
:items="filterItems"
|
|
949
949
|
label="Nom"
|
|
950
950
|
density="compact"
|
|
951
|
-
width="
|
|
951
|
+
width="150"
|
|
952
952
|
hide-messages
|
|
953
953
|
clearable
|
|
954
954
|
/>
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { useDisplay, useTheme } from 'vuetify'
|
|
6
6
|
import { config } from './config'
|
|
7
7
|
import { locales as defaultLocales } from './locales'
|
|
8
|
+
import SyIcon from '@/components/Customs/SyIcon/SyIcon.vue'
|
|
8
9
|
|
|
9
10
|
const props = withDefaults(defineProps<{
|
|
10
11
|
nbTotal?: number
|
|
@@ -65,7 +66,7 @@
|
|
|
65
66
|
>
|
|
66
67
|
<p
|
|
67
68
|
v-if="nbTotal > 0"
|
|
68
|
-
class="mb-0 font-weight-bold mr-4 mr-sm-0
|
|
69
|
+
class="mb-0 font-weight-bold mr-4 mr-sm-0"
|
|
69
70
|
data-test-id="nb-rows"
|
|
70
71
|
>
|
|
71
72
|
{{ displayNbRows }}
|
|
@@ -95,9 +96,11 @@
|
|
|
95
96
|
data-test-id="add-btn"
|
|
96
97
|
@click="$emit('add')"
|
|
97
98
|
>
|
|
98
|
-
<
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
<SyIcon
|
|
100
|
+
v-bind="options.addIcon"
|
|
101
|
+
:icon="mdiPlus"
|
|
102
|
+
decorative
|
|
103
|
+
/>
|
|
101
104
|
|
|
102
105
|
<span
|
|
103
106
|
v-show="!display.xs.value"
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
+
import * as Stories from '../TableToolbar.stories.ts';
|
|
3
|
+
import '@/stories/styles/shared.css';
|
|
4
|
+
|
|
5
|
+
<Meta of={Stories} />
|
|
6
|
+
|
|
7
|
+
<div className="header">
|
|
8
|
+
<h1>Accessibilité</h1>
|
|
9
|
+
<p>Cette page sera bientôt disponible</p>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
<br />
|
|
@@ -32,7 +32,6 @@ exports[`TableToolbar > renders correctly when all the item are displayed 1`] =
|
|
|
32
32
|
mb-0
|
|
33
33
|
mr-4
|
|
34
34
|
mr-sm-0
|
|
35
|
-
my-3
|
|
36
35
|
">
|
|
37
36
|
5/5 lignes
|
|
38
37
|
</p>
|
|
@@ -254,7 +253,6 @@ exports[`TableToolbar > renders correctly when loading 1`] = `
|
|
|
254
253
|
mb-0
|
|
255
254
|
mr-4
|
|
256
255
|
mr-sm-0
|
|
257
|
-
my-3
|
|
258
256
|
">
|
|
259
257
|
1 ligne
|
|
260
258
|
</p>
|
|
@@ -454,7 +452,6 @@ exports[`TableToolbar > renders correctly when the screen width <= 600px 1`] = `
|
|
|
454
452
|
mb-0
|
|
455
453
|
mr-4
|
|
456
454
|
mr-sm-0
|
|
457
|
-
my-3
|
|
458
455
|
">
|
|
459
456
|
1 ligne
|
|
460
457
|
</p>
|
|
@@ -676,7 +673,6 @@ exports[`TableToolbar > renders correctly with content slot 1`] = `
|
|
|
676
673
|
mb-0
|
|
677
674
|
mr-4
|
|
678
675
|
mr-sm-0
|
|
679
|
-
my-3
|
|
680
676
|
">
|
|
681
677
|
1 ligne
|
|
682
678
|
</p>
|
|
@@ -1113,7 +1109,6 @@ exports[`TableToolbar > should render 1`] = `
|
|
|
1113
1109
|
mb-0
|
|
1114
1110
|
mr-4
|
|
1115
1111
|
mr-sm-0
|
|
1116
|
-
my-3
|
|
1117
1112
|
">
|
|
1118
1113
|
1/2 lignes
|
|
1119
1114
|
</p>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Controls, Canvas, Meta, Source } from '@storybook/blocks';
|
|
2
2
|
import * as SyServerTable from './SyServerTable.stories';
|
|
3
|
+
import '@/stories/styles/shared.css';
|
|
3
4
|
|
|
4
5
|
<Meta of={SyServerTable} />
|
|
5
6
|
|
|
@@ -75,7 +76,9 @@ Le composant permet de personnaliser l'affichage des en-têtes de colonnes en ut
|
|
|
75
76
|
### Items par page options
|
|
76
77
|
Le composant permet de personnaliser le nombre possible d'éléments par page en utilisant la prop `items-per-page-options`. Vous pouvez spécifier un tableau d'options pour permettre de choisir le nombre d'éléments affichés par page.
|
|
77
78
|
|
|
78
|
-
|
|
79
|
+
<div className="header">
|
|
80
|
+
<h1>Accessibilité</h1>
|
|
81
|
+
</div>
|
|
79
82
|
|
|
80
83
|
Le composant améliore l'accessibilité en ajoutant automatiquement:
|
|
81
84
|
- Une légende (caption) pour le tableau
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
+
import * as SyServerTable from '../SyServerTable.stories';
|
|
3
|
+
import '@/stories/styles/shared.css';
|
|
4
|
+
|
|
5
|
+
<Meta of={SyServerTable} />
|
|
6
|
+
|
|
7
|
+
<div className="header">
|
|
8
|
+
<h1>Accessibilité</h1>
|
|
9
|
+
<p>Cette page sera bientôt disponible</p>
|
|
10
|
+
</div>
|