@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
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
import { ref, computed, watch, useAttrs, onMounted } from 'vue'
|
|
3
3
|
import type { DataOptions, SortOption, GroupOption } from './types'
|
|
4
4
|
import { LocalStorageUtility } from '@/utils/localStorageUtility'
|
|
5
|
+
import Pagination from './Pagination.vue'
|
|
6
|
+
import type { VDataTable } from 'vuetify/components'
|
|
5
7
|
|
|
6
8
|
const props = defineProps({
|
|
7
9
|
serverItemsLength: {
|
|
@@ -68,6 +70,7 @@
|
|
|
68
70
|
headerProps: {
|
|
69
71
|
'aria-label': sort ? `${title}, trier en fonction de cette colonne` : undefined,
|
|
70
72
|
'aria-sort': sort ? (sort.order === 'asc' ? 'ascending' : 'descending') : 'none',
|
|
73
|
+
'scope': 'col',
|
|
71
74
|
},
|
|
72
75
|
}
|
|
73
76
|
})
|
|
@@ -188,6 +191,18 @@
|
|
|
188
191
|
v-bind="slotProps ?? {}"
|
|
189
192
|
/>
|
|
190
193
|
</template>
|
|
194
|
+
<template #bottom="args">
|
|
195
|
+
<slot
|
|
196
|
+
name="bottom"
|
|
197
|
+
v-bind="args"
|
|
198
|
+
>
|
|
199
|
+
<Pagination>
|
|
200
|
+
<template #prepend>
|
|
201
|
+
<slot name="footer.prepend" />
|
|
202
|
+
</template>
|
|
203
|
+
</Pagination>
|
|
204
|
+
</slot>
|
|
205
|
+
</template>
|
|
191
206
|
</VDataTable>
|
|
192
207
|
<VDataTableServer
|
|
193
208
|
v-else
|
|
@@ -204,6 +219,18 @@
|
|
|
204
219
|
v-bind="slotProps ?? {}"
|
|
205
220
|
/>
|
|
206
221
|
</template>
|
|
222
|
+
<template #bottom="args">
|
|
223
|
+
<slot
|
|
224
|
+
name="bottom"
|
|
225
|
+
v-bind="args"
|
|
226
|
+
>
|
|
227
|
+
<Pagination>
|
|
228
|
+
<template #prepend>
|
|
229
|
+
<slot name="footer.prepend" />
|
|
230
|
+
</template>
|
|
231
|
+
</Pagination>
|
|
232
|
+
</slot>
|
|
233
|
+
</template>
|
|
207
234
|
</VDataTableServer>
|
|
208
235
|
</div>
|
|
209
236
|
</template>
|
|
@@ -260,51 +287,4 @@
|
|
|
260
287
|
}
|
|
261
288
|
}
|
|
262
289
|
}
|
|
263
|
-
|
|
264
|
-
:global(.v-select .v-field__outline__start),
|
|
265
|
-
:global(.v-select .v-field__outline__end) {
|
|
266
|
-
border-color: tokens.$colors-border-base;
|
|
267
|
-
opacity: 1;
|
|
268
|
-
transition: border-color 0.2s ease;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
:global(.v-select:hover .v-field__outline__start),
|
|
272
|
-
:global(.v-select:hover .v-field__outline__end) {
|
|
273
|
-
border-color: tokens.$colors-border-darker;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
:global(.v-select__content .v-list-item:focus-visible) {
|
|
277
|
-
outline: 2px solid tokens.$colors-interactive;
|
|
278
|
-
outline-offset: -2px;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
:global(.v-select__content .v-list-item:hover) {
|
|
282
|
-
background-color: tokens.$colors-interactive-hover;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
:global(.v-select__content .v-list-item > .v-list-item__overlay) {
|
|
286
|
-
background-color: transparent;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
:global(.v-select__content .v-list-item:hover > .v-list-item__overlay),
|
|
290
|
-
:global(.v-select__content .v-list-item--active > .v-list-item__overlay) {
|
|
291
|
-
background-color: currentcolor;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
.sy-paginated-table :deep(.v-pagination) button:focus-visible {
|
|
295
|
-
outline: 2px solid tokens.$colors-interactive;
|
|
296
|
-
outline-offset: -2px;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
.sy-paginated-table :deep(.v-pagination) .v-pagination__list [aria-disabled='false'] svg {
|
|
300
|
-
color: tokens.$colors-icon-base;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.sy-paginated-table :deep(.v-pagination) .v-btn--variant-plain[aria-disabled='false'] {
|
|
304
|
-
opacity: 1;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
.sy-paginated-table :deep(.v-pagination) .v-btn--variant-plain:hover[aria-disabled='false'] svg {
|
|
308
|
-
color: #000;
|
|
309
|
-
}
|
|
310
290
|
</style>
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { VPagination } from 'vuetify/components'
|
|
3
|
+
import { usePagination } from 'vuetify/lib/components/VDataTable/composables/paginate.mjs'
|
|
4
|
+
import SySelect from '../Customs/Selects/SySelect/SySelect.vue'
|
|
5
|
+
import { useLocale } from 'vuetify'
|
|
6
|
+
|
|
7
|
+
const { page, pageCount, startIndex, stopIndex, itemsLength, itemsPerPage, setItemsPerPage } = usePagination()
|
|
8
|
+
|
|
9
|
+
const { t } = useLocale()
|
|
10
|
+
|
|
11
|
+
const itemsPerPageOptions = [
|
|
12
|
+
{ value: 10, title: '10' },
|
|
13
|
+
{ value: 25, title: '25' },
|
|
14
|
+
{ value: 50, title: '50' },
|
|
15
|
+
{ value: 100, title: '100' },
|
|
16
|
+
{ value: -1, title: t('$vuetify.dataFooter.itemsPerPageAll') },
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
</script>
|
|
20
|
+
<template>
|
|
21
|
+
<div class="v-data-table-footer">
|
|
22
|
+
<slot name="prepend" />
|
|
23
|
+
<div class="v-data-table-footer__items-per-page d-flex">
|
|
24
|
+
<span>{{ t('$vuetify.dataFooter.itemsPerPageText') }}</span>
|
|
25
|
+
<SySelect
|
|
26
|
+
:label="t('$vuetify.dataFooter.itemsPerPageText')"
|
|
27
|
+
:items="itemsPerPageOptions"
|
|
28
|
+
text-key="title"
|
|
29
|
+
value-key="value"
|
|
30
|
+
:model-value="itemsPerPage"
|
|
31
|
+
density="compact"
|
|
32
|
+
variant="outlined"
|
|
33
|
+
hide-details
|
|
34
|
+
@update:model-value="v => setItemsPerPage(Number(v))"
|
|
35
|
+
/>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
<div class="v-data-table-footer__info">
|
|
39
|
+
<div>
|
|
40
|
+
{{ t('$vuetify.dataFooter.pageText', !itemsLength ? 0 : startIndex + 1, stopIndex, itemsLength) }}
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="v-data-table-footer__pagination">
|
|
44
|
+
<VPagination
|
|
45
|
+
v-model="page"
|
|
46
|
+
density="comfortable"
|
|
47
|
+
first-aria-label="$vuetify.dataFooter.firstPage"
|
|
48
|
+
last-aria-label="$vuetify.dataFooter.lastPage"
|
|
49
|
+
:length="pageCount"
|
|
50
|
+
next-aria-label="$vuetify.dataFooter.nextPage"
|
|
51
|
+
previous-aria-label="$vuetify.dataFooter.prevPage"
|
|
52
|
+
rounded
|
|
53
|
+
show-first-last-page
|
|
54
|
+
:total-visible="0"
|
|
55
|
+
variant="plain"
|
|
56
|
+
/>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</template>
|
|
60
|
+
<style scoped lang="scss">
|
|
61
|
+
@use '@/assets/tokens';
|
|
62
|
+
|
|
63
|
+
/* stylelint-disable-next-line selector-class-pattern */
|
|
64
|
+
:deep(.v-field__outline__notch, .v-field-label) {
|
|
65
|
+
width: 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:deep(.v-input) {
|
|
69
|
+
min-width: 0 !important;
|
|
70
|
+
width: 90px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:deep(.sy-select-container) {
|
|
74
|
+
width: max-content;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
:deep(.v-pagination) button:focus-visible {
|
|
78
|
+
outline: 2px solid tokens.$colors-interactive;
|
|
79
|
+
outline-offset: -2px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:deep(.v-pagination) .v-pagination__list [aria-disabled='false'] svg {
|
|
83
|
+
color: tokens.$colors-icon-base;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:deep(.v-pagination) .v-btn--variant-plain[aria-disabled='false'] {
|
|
87
|
+
opacity: 1;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
:deep(.v-pagination) .v-btn--variant-plain:hover[aria-disabled='false'] svg {
|
|
91
|
+
color: #000;
|
|
92
|
+
}
|
|
93
|
+
</style>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
+
import * as Stories from '../PaginatedTable.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 />
|
|
@@ -305,10 +305,11 @@
|
|
|
305
305
|
@keydown.space.prevent="togglePasswordVisibility"
|
|
306
306
|
@keydown.enter.prevent="togglePasswordVisibility"
|
|
307
307
|
>
|
|
308
|
-
<
|
|
308
|
+
<SyIcon
|
|
309
309
|
:icon="showEyeIcon ? eyeIcon : eyeOffIcon"
|
|
310
310
|
color="rgb(0 0 0 / 70%)"
|
|
311
311
|
:aria-hidden="true"
|
|
312
|
+
decorative
|
|
312
313
|
/>
|
|
313
314
|
</v-button>
|
|
314
315
|
</div>
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/addon-docs'
|
|
2
|
+
import * as Stories from '../PasswordField.stories.ts'
|
|
3
|
+
import '@/stories/styles/shared.css'
|
|
4
|
+
|
|
5
|
+
<Meta of={Stories} />
|
|
6
|
+
|
|
7
|
+
<div className="header">
|
|
8
|
+
<h1>Accessibilité</h1>
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
Informations sur l’accessibilité du composant **PasswordField**.
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
<div class="mt-2">
|
|
16
|
+
<p>Rapport d’audit manuel : <a href="/audits/PasswordField.xlsx" style={{ color:'#0C41BD' }}>Voir le rapport</a></p>
|
|
17
|
+
<p style={{ color: 'grey', fontSize: '14px', marginTop: '0px' }}>Correctifs associés (<a href="https://github.com/assurance-maladie-digital/design-system-v3/issues/898" target="_blank" style={{color:'#0C41BD'}}>issue #898</a>)</p>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
<div class="mt-6">
|
|
22
|
+
<h3 style={{ fontSize: '18px', fontWeight: 'bold', marginBottom: '16px' }}>Spécificité - Source technique</h3>
|
|
23
|
+
|
|
24
|
+
<div style={{ backgroundColor: '#f5f5f5', padding: '16px', borderRadius: '8px', marginBottom: '16px' }}>
|
|
25
|
+
<p style={{ fontWeight: 'bold', marginBottom: '8px' }}>Les champs de formulaires doivent avoir une étiquette</p>
|
|
26
|
+
<p style={{ marginBottom: '8px' }}>Techniquement, il est communément utilisé la balise "label" avec les attributs "for" et "id".
|
|
27
|
+
Celle-ci doit être pertinente et accolée au champ associé.</p>
|
|
28
|
+
<p>
|
|
29
|
+
<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/"
|
|
30
|
+
target="_blank" style={{ color:'#0C41BD' }}>
|
|
31
|
+
Documentation accede-web
|
|
32
|
+
</a>
|
|
33
|
+
</p>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<div style={{ backgroundColor: '#f5f5f5', padding: '16px', borderRadius: '8px', marginBottom: '16px' }}>
|
|
37
|
+
<p style={{ fontWeight: 'bold', marginBottom: '8px' }}>Remplissage automatique des champs</p>
|
|
38
|
+
<p style={{ marginBottom: '8px' }}>Selon la finalité du champ, le remplissage automatique est possible (attribut "autocomplete").</p>
|
|
39
|
+
<p style={{ fontSize: '13px', color: '#0C41BD' }}>
|
|
40
|
+
<a href="https://www.accede-web.com/notices/html-et-css/formulaires/utiliser-lattribut-autocomplete-pour-faciliter-le-remplissage-automatique-des-champs/"
|
|
41
|
+
target="_blank" style={{color:'#0C41BD'}}>
|
|
42
|
+
Documentation accede-web
|
|
43
|
+
</a>
|
|
44
|
+
</p>
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
<div style={{ backgroundColor: '#f5f5f5', padding: '16px', borderRadius: '8px', marginBottom: '16px' }}>
|
|
48
|
+
<p style={{ fontWeight: 'bold', marginBottom: '8px' }}>Aide à la saisie</p>
|
|
49
|
+
<p style={{ marginBottom: '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>
|
|
50
|
+
<p style={{ fontSize: '13px', color: '#0C41BD' }}>
|
|
51
|
+
<a href="https://www.accede-web.com/notices/html-et-css/formulaires/integrer-les-aides-a-la-saisie-directement-dans-les-balises-label/"
|
|
52
|
+
target="_blank" style={{color:'#0C41BD'}}>
|
|
53
|
+
Documentation accede-web
|
|
54
|
+
</a>
|
|
55
|
+
</p>
|
|
56
|
+
</div>
|
|
57
|
+
|
|
58
|
+
<div style={{ backgroundColor: '#f5f5f5', padding: '16px', borderRadius: '8px', marginBottom: '16px' }}>
|
|
59
|
+
<p style={{ fontWeight: 'bold', marginBottom: '8px' }}>Champs obligatoires</p>
|
|
60
|
+
<p style={{ marginBottom: '8px' }}>Les champs obligatoires possèdent l'une et/ou l'autre condition :</p>
|
|
61
|
+
<ul style={{ marginBottom: '8px', paddingLeft: '20px' }}>
|
|
62
|
+
<li>un intitulé visible permettant de l'identifier comme tel</li>
|
|
63
|
+
<li>un attribut "required" ou 'aria-required="true"'</li>
|
|
64
|
+
</ul>
|
|
65
|
+
<p style={{ marginBottom: '8px' }}>Il doit être rattaché au libellé ou situé dans le passage de texte associé au champ.</p>
|
|
66
|
+
<p style={{ fontSize: '13px', color: '#0C41BD' }}>
|
|
67
|
+
<a href="https://www.accede-web.com/notices/html-et-css/formulaires/integrer-required-ou-aria-requiredtrue-dans-les-champs-obligatoires/"
|
|
68
|
+
target="_blank" style={{color:'#0C41BD'}}>
|
|
69
|
+
Documentation accede-web
|
|
70
|
+
</a>
|
|
71
|
+
</p>
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
<div style={{ backgroundColor: '#f5f5f5', padding: '16px', borderRadius: '8px', marginBottom: '16px' }}>
|
|
75
|
+
<p style={{ fontWeight: 'bold', marginBottom: '8px' }}>Gestion des erreurs</p>
|
|
76
|
+
<p style={{ marginBottom: '8px' }}>En cas d'erreur, le champ possède l'une et/ou l'autre condition :</p>
|
|
77
|
+
<ul style={{ marginBottom: '8px', paddingLeft: '20px' }}>
|
|
78
|
+
<li>un message visible permet de l'identifier comme tel</li>
|
|
79
|
+
<li>un attribut 'aria-invalid="true"'</li>
|
|
80
|
+
</ul>
|
|
81
|
+
<p style={{ marginBottom: '8px' }}>Il doit être rattaché au libellé ou situé dans le passage de texte associé au champ.</p>
|
|
82
|
+
<p style={{ marginBottom: '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>
|
|
83
|
+
<p style={{ fontSize: '13px', color: '#0C41BD' }}>
|
|
84
|
+
<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/"
|
|
85
|
+
target="_blank" style={{color:'#0C41BD'}}>
|
|
86
|
+
Documentation accede-web
|
|
87
|
+
</a>
|
|
88
|
+
</p>
|
|
89
|
+
</div>
|
|
90
|
+
|
|
91
|
+
<div style={{ backgroundColor: '#f5f5f5', padding: '16px', borderRadius: '8px', marginBottom: '16px' }}>
|
|
92
|
+
<p style={{ fontWeight: 'bold', marginBottom: '8px' }}>Spécificités des champs de mot de passe</p>
|
|
93
|
+
<p style={{ marginBottom: '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>
|
|
94
|
+
<p style={{ marginBottom: '16px', fontSize: '13px', color: '#0C41BD' }}>
|
|
95
|
+
<a href="https://www.w3.org/WAI/WCAG22/Understanding/accessible-authentication-minimum.html"
|
|
96
|
+
target="_blank" style={{color:'#0C41BD'}}>
|
|
97
|
+
Documentation W3C
|
|
98
|
+
</a>
|
|
99
|
+
</p>
|
|
100
|
+
<p style={{ marginBottom: '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>
|
|
101
|
+
<p style={{ fontSize: '13px', color: '#0C41BD' }}>
|
|
102
|
+
<a href="https://www.w3.org/WAI/WCAG22/Understanding/accessible-authentication-minimum.html"
|
|
103
|
+
target="_blank" style={{color:'#0C41BD'}}>
|
|
104
|
+
Documentation W3C
|
|
105
|
+
</a>
|
|
106
|
+
</p>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
+
import * as Stories from '../PeriodField.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 />
|
|
@@ -8,47 +8,54 @@ const meta = {
|
|
|
8
8
|
component: PhoneField,
|
|
9
9
|
parameters: {
|
|
10
10
|
layout: 'fullscreen',
|
|
11
|
+
actions: {
|
|
12
|
+
handles: ['update:modelValue', 'update:selectedDialCode', 'update:dialCodeModel', 'change'],
|
|
13
|
+
},
|
|
11
14
|
controls: { exclude: ['computedValue', 'phoneMask', 'counter', 'hasError', 'phoneNumber', 'mergedDialCodes'] },
|
|
12
15
|
},
|
|
13
16
|
argTypes: {
|
|
14
|
-
modelValue: { control: false },
|
|
15
|
-
dialCodeModel: { control: false },
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
'modelValue': { control: false },
|
|
18
|
+
'dialCodeModel': { control: false },
|
|
19
|
+
'onUpdate:modelValue': { action: 'update:modelValue' },
|
|
20
|
+
'onUpdate:selectedDialCode': { action: 'update:selectedDialCode' },
|
|
21
|
+
'onUpdate:dialCodeModel': { action: 'update:dialCodeModel' },
|
|
22
|
+
'onChange': { action: 'change' },
|
|
23
|
+
'required': { control: 'boolean' },
|
|
24
|
+
'outlined': { control: 'boolean' },
|
|
25
|
+
'outlinedIndicatif': { control: 'boolean' },
|
|
26
|
+
'withCountryCode': { control: 'boolean' },
|
|
27
|
+
'countryCodeRequired': { control: 'boolean' },
|
|
28
|
+
'displayFormat': {
|
|
22
29
|
control: { type: 'select' },
|
|
23
30
|
description: 'Format d\'affichage des items',
|
|
24
31
|
options: ['code', 'code-abbreviation', 'code-country', 'country', 'abbreviation'],
|
|
25
32
|
},
|
|
26
|
-
customIndicatifs: {
|
|
33
|
+
'customIndicatifs': {
|
|
27
34
|
control: 'object',
|
|
28
35
|
description: 'Permet d\'ajouter des indicatifs à la liste pre-existante',
|
|
29
36
|
},
|
|
30
|
-
useCustomIndicatifsOnly: {
|
|
37
|
+
'useCustomIndicatifsOnly': {
|
|
31
38
|
control: 'boolean',
|
|
32
39
|
description: 'Permet d\'utiliser uniquement les indicatifs que vous renseignez dans la props customIndicatifs',
|
|
33
40
|
},
|
|
34
|
-
helpText: {
|
|
41
|
+
'helpText': {
|
|
35
42
|
control: 'text',
|
|
36
43
|
description: 'Texte d\'aide affiché sous le champ. Lorsque présent, les messages d\'erreur incluent un exemple concret distinct du texte d\'aide.',
|
|
37
44
|
},
|
|
38
|
-
autocompleteCountryCode: {
|
|
45
|
+
'autocompleteCountryCode': {
|
|
39
46
|
control: 'text',
|
|
40
47
|
description: 'Valeur de l\'attribut autocomplete pour le champ indicatif pays (par défaut: "tel-country-code")',
|
|
41
48
|
},
|
|
42
|
-
autocompletePhone: {
|
|
49
|
+
'autocompletePhone': {
|
|
43
50
|
control: 'text',
|
|
44
51
|
description: 'Valeur de l\'attribut autocomplete pour le champ numéro de téléphone (par défaut: "tel-national")',
|
|
45
52
|
},
|
|
46
|
-
isValidatedOnBlur: { control: 'boolean' },
|
|
47
|
-
displayAsterisk: { control: 'boolean' },
|
|
48
|
-
disableErrorHandling: { control: 'boolean' },
|
|
49
|
-
disabled: { control: 'boolean' },
|
|
50
|
-
readonly: { control: 'boolean' },
|
|
51
|
-
},
|
|
53
|
+
'isValidatedOnBlur': { control: 'boolean' },
|
|
54
|
+
'displayAsterisk': { control: 'boolean' },
|
|
55
|
+
'disableErrorHandling': { control: 'boolean' },
|
|
56
|
+
'disabled': { control: 'boolean' },
|
|
57
|
+
'readonly': { control: 'boolean' },
|
|
58
|
+
} as Record<string, unknown>,
|
|
52
59
|
} satisfies Meta<typeof PhoneField>
|
|
53
60
|
|
|
54
61
|
export default meta
|
|
@@ -1254,7 +1261,7 @@ export const DisplayModels: Story = {
|
|
|
1254
1261
|
code: `
|
|
1255
1262
|
<template>
|
|
1256
1263
|
<span>
|
|
1257
|
-
{{
|
|
1264
|
+
Indicatif: {{ selectedDialCode }}<br/>Numéro: {{ modelValue }}
|
|
1258
1265
|
</span>
|
|
1259
1266
|
<PhoneField
|
|
1260
1267
|
v-model="modelValue"
|
|
@@ -1305,24 +1312,25 @@ export const DisplayModels: Story = {
|
|
|
1305
1312
|
readonly: false,
|
|
1306
1313
|
bgColor: 'white',
|
|
1307
1314
|
},
|
|
1308
|
-
render:
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1315
|
+
render: args => ({
|
|
1316
|
+
components: { PhoneField },
|
|
1317
|
+
setup() {
|
|
1318
|
+
return { args }
|
|
1319
|
+
},
|
|
1320
|
+
template: `
|
|
1321
|
+
<div class="pa-4">
|
|
1322
|
+
<div class="pa-4">
|
|
1323
|
+
Indicatif: {{ args.dialCodeModel }}<br/>Numéro: {{ args.modelValue }}
|
|
1324
|
+
</div>
|
|
1325
|
+
|
|
1326
|
+
<PhoneField
|
|
1327
|
+
v-bind="args"
|
|
1328
|
+
@update:modelValue="args.modelValue = $event"
|
|
1329
|
+
@update:selectedDialCode="args.dialCodeModel = $event"
|
|
1330
|
+
/>
|
|
1331
|
+
</div>
|
|
1332
|
+
`,
|
|
1333
|
+
}),
|
|
1326
1334
|
}
|
|
1327
1335
|
|
|
1328
1336
|
/**
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
+
import * as Stories from '../PhoneField.stories.ts';
|
|
3
|
+
import '@/stories/styles/shared.css';
|
|
4
|
+
|
|
5
|
+
<Meta of={Stories} />
|
|
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/PhoneField.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/797" target="_blank" style={{color:'#0C41BD'}}>issue #797</a>)</p>
|
|
15
|
+
</div>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
+
import * as Stories from '../RangeField.stories.ts';
|
|
3
|
+
import '@/stories/styles/shared.css';
|
|
4
|
+
|
|
5
|
+
<Meta of={Stories} />
|
|
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/RangeField.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/908" target="_blank" style={{color:'#0C41BD'}}>issue #908</a>)</p>
|
|
15
|
+
</div>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
+
import * as RatingPickerStories from '../RatingPicker.stories.ts';
|
|
3
|
+
import '@/stories/styles/shared.css';
|
|
4
|
+
|
|
5
|
+
<Meta of={RatingPickerStories} />
|
|
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/RatingPicker.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/910" target="_blank" style={{color:'#0C41BD'}}>issue #910</a>)</p>
|
|
15
|
+
</div>
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { SyTextField, SyCheckbox } from '@/components'
|
|
9
9
|
import slugify from 'slugify'
|
|
10
|
+
import SyIcon from '@/components/Customs/SyIcon/SyIcon.vue'
|
|
10
11
|
|
|
11
12
|
const props = defineProps({
|
|
12
13
|
modelValue: {
|
|
@@ -114,9 +115,11 @@
|
|
|
114
115
|
:bg-color="props.bgColor"
|
|
115
116
|
>
|
|
116
117
|
<template #prepend-inner>
|
|
117
|
-
<
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
<SyIcon
|
|
119
|
+
:icon="mdiMagnify"
|
|
120
|
+
class="mr-1"
|
|
121
|
+
decorative
|
|
122
|
+
/>
|
|
120
123
|
</template>
|
|
121
124
|
</SyTextField>
|
|
122
125
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
+
import * as Stories from '../SearchListField.stories.ts';
|
|
3
|
+
import '@/stories/styles/shared.css';
|
|
4
|
+
|
|
5
|
+
<Meta of={Stories} />
|
|
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/SearchListField.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/1499" target="_blank" style={{color:'#0C41BD'}}>issue #1499</a>)</p>
|
|
15
|
+
</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Meta, Primary } from '@storybook/blocks';
|
|
2
|
-
import * as SkipLinkStories from '
|
|
2
|
+
import * as SkipLinkStories from '../SkipLink.stories';
|
|
3
3
|
import AccessibilityIcon from '@/common/imgs/accessibility-svgrepo-com.svg';
|
|
4
4
|
import {
|
|
5
5
|
AccessibilityGuideLayout,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
BestPracticesSection,
|
|
10
10
|
ResourcesSection,
|
|
11
11
|
AuditSection,
|
|
12
|
-
} from '
|
|
12
|
+
} from '@/stories/accessibility/AccessibilityGuideLayout.mdx';
|
|
13
13
|
|
|
14
14
|
<Meta of={SkipLinkStories} />
|
|
15
15
|
|
|
@@ -58,7 +58,10 @@ import {
|
|
|
58
58
|
</ResourcesSection>
|
|
59
59
|
|
|
60
60
|
<AuditSection>
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
|
|
62
|
+
<div class="mt-2">
|
|
63
|
+
<p>Rapport d’audit manuel : <a href="/audits/SkipLink.xlsx" style={{ color:'#0C41BD' }}>Voir le rapport</a></p>
|
|
64
|
+
<p style={{ color: 'grey', fontSize: '14px', marginTop: '0px' }}>Correctifs associés (<a href="https://github.com/assurance-maladie-digital/design-system-v3/issues/4012" target="_blank" style={{color:'#0C41BD'}}>issue #4012</a>)</p>
|
|
65
|
+
</div>
|
|
63
66
|
</AuditSection>
|
|
64
67
|
</AccessibilityGuideLayout>
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { mdiFacebook, mdiLinkedin } from '@mdi/js'
|
|
2
2
|
|
|
3
3
|
import type { SocialMediaLink } from './types'
|
|
4
4
|
|
|
5
|
+
const xIcon = 'M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z'
|
|
6
|
+
|
|
5
7
|
export const defaultSocialMediaLinks: SocialMediaLink[] = [
|
|
6
8
|
{
|
|
7
9
|
icon: mdiLinkedin,
|
|
@@ -14,8 +16,8 @@ export const defaultSocialMediaLinks: SocialMediaLink[] = [
|
|
|
14
16
|
href: 'https://www.facebook.com/AssurMaladie/',
|
|
15
17
|
},
|
|
16
18
|
{
|
|
17
|
-
icon:
|
|
18
|
-
name: '
|
|
19
|
-
href: 'https://
|
|
19
|
+
icon: xIcon,
|
|
20
|
+
name: 'X',
|
|
21
|
+
href: 'https://x.com/Assur_Maladie',
|
|
20
22
|
},
|
|
21
23
|
]
|
|
@@ -20,7 +20,9 @@ import * as SocialMediaLinksStories from './SocialMediaLinks.stories.ts';
|
|
|
20
20
|
<Source dark code={`
|
|
21
21
|
<script setup lang="ts">
|
|
22
22
|
import { SocialMediaLinks } from '@cnamts/synapse'
|
|
23
|
-
import { mdiFacebook, mdiLinkedin
|
|
23
|
+
import { mdiFacebook, mdiLinkedin } from '@mdi/js'
|
|
24
|
+
|
|
25
|
+
const xIcon = 'M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z'
|
|
24
26
|
|
|
25
27
|
const links = [
|
|
26
28
|
{
|
|
@@ -31,12 +33,12 @@ const links = [
|
|
|
31
33
|
{
|
|
32
34
|
icon: mdiFacebook,
|
|
33
35
|
name: 'Facebook',
|
|
34
|
-
href: 'https://
|
|
36
|
+
href: 'https://www.facebook.com/AssurMaladie/',
|
|
35
37
|
},
|
|
36
38
|
{
|
|
37
|
-
icon:
|
|
38
|
-
name: '
|
|
39
|
-
href: 'https://
|
|
39
|
+
icon: xIcon,
|
|
40
|
+
name: 'X',
|
|
41
|
+
href: 'https://x.com/Assur_Maladie',
|
|
40
42
|
},
|
|
41
43
|
]
|
|
42
44
|
</script>
|