@cnamts/synapse 1.0.19 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DateFilter-CeVuSfJ9.js → DateFilter-uN8OURoP.js} +1 -1
- package/dist/{NumberFilter-C8PAu_sw.js → NumberFilter-sm1dQNQi.js} +1 -1
- package/dist/{PeriodFilter-UMUaxx3d.js → PeriodFilter-Cklsxnh9.js} +1 -1
- package/dist/{SelectFilter-CqZl8CYt.js → SelectFilter-CWefj27Z.js} +1 -1
- package/dist/{TextFilter-D_RhhNOh.js → TextFilter-Ddyj885L.js} +1 -1
- package/dist/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.d.ts +4 -4
- package/dist/components/Amelipro/AmeliproClickableTile/AmeliproClickableTile.d.ts +17 -7
- package/dist/components/Amelipro/AmeliproSelect/AmeliproSelect.d.ts +4 -4
- package/dist/components/Amelipro/AmeliproTabs/AmeliproTabs.d.ts +4 -4
- package/dist/components/Customs/Selects/SyAutocomplete/SyAutocomplete.d.ts +2416 -0
- package/dist/components/Customs/Selects/SyAutocomplete/types.d.ts +5 -0
- package/dist/components/Customs/Selects/SyAutocomplete/utils/ariaManager.d.ts +14 -0
- package/dist/components/Customs/Selects/SyAutocomplete/utils/useItemUtils.d.ts +16 -0
- package/dist/components/Customs/Selects/SyAutocomplete/utils/useKeyboardHandler.d.ts +28 -0
- package/dist/components/Customs/Selects/SyAutocomplete/utils/useSelectionLogic.d.ts +12 -0
- package/dist/components/Customs/Selects/SySelect/composables/useSySelectKeyboard.d.ts +2 -0
- package/dist/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.d.ts +160 -0
- package/dist/components/Customs/SyCheckBoxGroup/locales.d.ts +3 -0
- package/dist/components/Customs/SyCheckBoxGroup/types.d.ts +10 -0
- package/dist/components/Customs/SyCheckbox/SyCheckbox.d.ts +1545 -2
- package/dist/components/Customs/SyIcon/SyIcon.d.ts +2 -1
- package/dist/components/Customs/SyRadioGroup/SyRadioGroup.d.ts +1495 -2
- package/dist/components/DatePicker/composables/useDateSelection.d.ts +1 -0
- package/dist/components/DeclarationAccessibilityPage/DeclarationAccessibilityPage.d.ts +60 -0
- package/dist/components/ErrorPage/ErrorPage.d.ts +1 -12
- package/dist/components/ErrorPage/locales.d.ts +18 -3
- package/dist/components/FileUpload/FileUpload.d.ts +2 -0
- package/dist/components/MaintenancePage/locales.d.ts +18 -2
- package/dist/components/NotFoundPage/locales.d.ts +20 -4
- package/dist/components/PaginatedTable/PaginatedTable.d.ts +1 -1
- package/dist/components/PaginatedTable/Pagination.d.ts +17 -0
- package/dist/components/StatusPage/StatusPage.d.ts +39 -0
- package/dist/components/Tables/SyServerTable/SyServerTable.d.ts +5 -5
- package/dist/components/Tables/SyTable/SyTable.d.ts +5 -5
- package/dist/components/UploadWorkflow/UploadWorkflow.d.ts +13 -3
- package/dist/components/index.d.ts +4 -0
- package/dist/components/types.d.ts +15 -0
- package/dist/composables/useFormFieldErrorHandling.d.ts +31 -0
- package/dist/design-system-v3.js +126 -122
- package/dist/design-system-v3.umd.cjs +325 -314
- package/dist/{main-B39UVv5p.js → main-CWniLr0s.js} +15837 -14587
- package/dist/modules.d.ts +6 -0
- package/dist/style.css +1 -1
- package/dist/utils/theme/index.d.ts +6 -0
- package/package.json +12 -10
- package/src/assets/amelipro/icons.ts +166 -153
- package/src/components/Accordion/Accordion.mdx +4 -1
- package/src/components/Accordion/{Accessibilite/AccessibilityGuide.mdx → accessibilite/Accessibility.mdx} +2 -2
- package/src/components/Amelipro/AmeliproClickableTile/AmeliproClickableTile.stories.ts +73 -14
- package/src/components/Amelipro/AmeliproClickableTile/AmeliproClickableTile.vue +119 -27
- package/src/components/Amelipro/AmeliproClickableTile/tests/AmeliproClickableTile.a11y.spec.ts +304 -0
- package/src/components/Amelipro/AmeliproClickableTile/tests/AmeliproClickableTile.spec.ts +435 -9
- package/src/components/Amelipro/AmeliproClickableTile/tests/__snapshots__/AmeliproClickableTile.spec.ts.snap +60 -0
- package/src/components/Amelipro/AmeliproIcon/__tests__/AmeliproIcon.spec.ts +1 -1
- package/src/components/Amelipro/AmeliproIcon/iconList.ts +2 -0
- package/src/components/BackBtn/BackBtn.vue +5 -4
- package/src/components/BackBtn/accessibilite/Accessibility.mdx +15 -0
- package/src/components/BackToTopBtn/BackToTopBtn.vue +6 -3
- package/src/components/BackToTopBtn/accessibilite/Accessibility.mdx +15 -0
- package/src/components/Captcha/Captcha.vue +5 -1
- package/src/components/Captcha/CaptchaAlert.vue +9 -7
- package/src/components/Captcha/accessibilite/Accessibility.mdx +10 -0
- package/src/components/ChipList/accessibilite/Accessibility.mdx +15 -0
- package/src/components/CollapsibleList/{Accessibilite.mdx → accessibilite/Accessibility.mdx} +8 -6
- package/src/components/Common/IconSlot/IconSlot.vue +1 -1
- package/src/components/ContextualMenu/ContextualMenu.stories.ts +0 -3
- package/src/components/ContextualMenu/accessibilite/Accessibility.mdx +71 -0
- package/src/components/CookieBanner/CookieBanner.stories.ts +11 -20
- package/src/components/CookieBanner/CookieBanner.vue +20 -5
- package/src/components/CookieBanner/accessibilite/Accessibility.mdx +71 -0
- package/src/components/CookieBanner/tests/CookieBanner.spec.ts +48 -4
- package/src/components/CookiesSelection/CookiesInformation/CookiesInformation.vue +5 -4
- package/src/components/CopyBtn/CopyBtn.vue +6 -3
- package/src/components/CopyBtn/accessibilite/Accessibility.mdx +15 -0
- package/src/components/Customs/Selects/SelectBtnField/accessibilite/Accessibility.mdx +15 -0
- package/src/components/Customs/Selects/SelectOverview.mdx +112 -1
- package/src/components/Customs/Selects/SyAutocomplete/SyAutocomplete.mdx +52 -0
- package/src/components/Customs/Selects/SyAutocomplete/SyAutocomplete.stories.ts +979 -0
- package/src/components/Customs/Selects/SyAutocomplete/SyAutocomplete.vue +653 -0
- package/src/components/Customs/Selects/{SySelect → SyAutocomplete/accessibilite}/Accessibilite.stories.ts +7 -38
- package/src/components/Customs/Selects/{SySelect/Accessibilite.mdx → SyAutocomplete/accessibilite/Accessibility.mdx} +15 -20
- package/src/components/Customs/Selects/SyAutocomplete/tests/SyAutocomplete.a11y.spec.ts +72 -0
- package/src/components/Customs/Selects/SyAutocomplete/tests/SyAutocomplete.spec.ts +345 -0
- package/src/components/Customs/Selects/SyAutocomplete/types.ts +7 -0
- package/src/components/Customs/Selects/SyAutocomplete/utils/ariaManager.ts +180 -0
- package/src/components/Customs/Selects/SyAutocomplete/utils/useItemUtils.ts +46 -0
- package/src/components/Customs/Selects/SyAutocomplete/utils/useKeyboardHandler.ts +107 -0
- package/src/components/Customs/Selects/SyAutocomplete/utils/useSelectionLogic.ts +74 -0
- package/src/components/Customs/Selects/SyInputSelect/SyInputSelect.vue +13 -9
- package/src/components/Customs/Selects/SyInputSelect/accessibilite/Accessibility.mdx +12 -0
- package/src/components/Customs/Selects/SySelect/SySelect.stories.ts +43 -34
- package/src/components/Customs/Selects/SySelect/SySelect.vue +19 -2
- package/src/components/Customs/Selects/SySelect/accessibilite/Accessibility.mdx +274 -0
- package/src/components/Customs/Selects/SySelect/composables/useSySelectKeyboard.ts +21 -16
- package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.mdx +32 -0
- package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.stories.ts +856 -0
- package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.vue +334 -0
- package/src/components/Customs/SyCheckBoxGroup/accessibilite/Accessibility.mdx +243 -0
- package/src/components/Customs/SyCheckBoxGroup/locales.ts +3 -0
- package/src/components/Customs/SyCheckBoxGroup/tests/SyCheckBoxGroup.a11y.spec.ts +30 -0
- package/src/components/Customs/SyCheckBoxGroup/tests/SyCheckBoxGroup.spec.ts +152 -0
- package/src/components/Customs/SyCheckBoxGroup/types.ts +10 -0
- package/src/components/Customs/SyCheckbox/SyCheckbox.vue +16 -27
- package/src/components/Customs/SyCheckbox/{Accessibilite.mdx → accessibilite/Accessibility.mdx} +3 -3
- package/src/components/Customs/SyForm/SyForm.a11y.spec.ts +1 -1
- package/src/components/Customs/SyForm/accessibilite/Accessibility.mdx +10 -0
- package/src/components/Customs/SyIcon/SyIcon.mdx +4 -1
- package/src/components/Customs/SyIcon/SyIcon.vue +4 -3
- package/src/components/Customs/SyIcon/{Accessibilite.stories.ts → accessibilite/Accessibilite.stories.ts} +3 -3
- package/src/components/Customs/SyIcon/{Accessibilite.mdx → accessibilite/Accessibility.mdx} +2 -2
- package/src/components/Customs/SyPagination/SyPagination.mdx +4 -2
- package/src/components/Customs/SyPagination/accessibilite/Accessibility.mdx +10 -0
- package/src/components/Customs/SyRadioGroup/SyRadioGroup.vue +16 -43
- package/src/components/Customs/SyRadioGroup/{Accessibilite.mdx → accessibilite/Accessibility.mdx} +2 -2
- package/src/components/Customs/SyTabs/SyTabs.mdx +4 -2
- package/src/components/Customs/SyTabs/{Accessibilite.mdx → accessibilite/Accessibility.mdx} +2 -2
- package/src/components/Customs/SyTextField/SyTextField.mdx +1 -2
- package/src/components/Customs/SyTextField/SyTextField.vue +13 -0
- package/src/components/Customs/SyTextField/accessibilite/Accessibility.mdx +15 -0
- package/src/components/DataList/accessibilite/Accessibility.mdx +15 -0
- package/src/components/DataListGroup/accessibilite/Accessibility.mdx +14 -0
- package/src/components/DatePicker/Accessibilite.mdx +1 -1
- package/src/components/DatePicker/Accessibilite.stories.ts +1 -1
- package/src/components/DatePicker/CalendarMode/DatePicker.stories.ts +7 -4
- package/src/components/DatePicker/CalendarMode/DatePicker.vue +49 -13
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.stories.ts +43 -2
- package/src/components/DatePicker/DatePickerValidationExample/DatePickerValidation.stories.ts +297 -0
- package/src/components/DatePicker/DateTextInput/DateTextInput.vue +48 -21
- package/src/components/DatePicker/DateTextInput/NoCalendar.stories.ts +98 -0
- package/src/components/DatePicker/composables/useDateSelection.ts +5 -0
- package/src/components/DatePicker/docExamples/BidirectionalComplexValidation.vue +273 -0
- package/src/components/DatePicker/docExamples/DatePickerBidirectionalValidation.vue +4 -4
- package/src/components/DatePicker/docExamples/DatePickerValidationExamples.vue +10 -0
- package/src/components/DeclarationAccessibilityPage/DeclarationAccessibilityPage.mdx +83 -0
- package/src/components/DeclarationAccessibilityPage/DeclarationAccessibilityPage.stories.ts +502 -0
- package/src/components/DeclarationAccessibilityPage/DeclarationAccessibilityPage.vue +428 -0
- package/src/components/DeclarationAccessibilityPage/accessibilite/Accessibility.mdx +75 -0
- package/src/components/DeclarationAccessibilityPage/tests/DeclarationAccessibilityPage.a11y.spec.ts +53 -0
- package/src/components/DeclarationAccessibilityPage/tests/DeclarationAccessibilityPage.spec.ts +59 -0
- package/src/components/DiacriticPicker/DiacriticPicker.vue +20 -1
- package/src/components/DiacriticPicker/accessibilite/Accessibility.mdx +10 -0
- package/src/components/DialogBox/accessibilite/Accessibility.mdx +15 -0
- package/src/components/DownloadBtn/DownloadBtn.vue +5 -4
- package/src/components/DownloadBtn/accessibilite/Accessibility.mdx +15 -0
- package/src/components/ErrorPage/ErrorPage.mdx +6 -16
- package/src/components/ErrorPage/ErrorPage.stories.ts +16 -87
- package/src/components/ErrorPage/ErrorPage.vue +38 -125
- package/src/components/ErrorPage/accessibilite/Accessibility.mdx +77 -0
- package/src/components/ErrorPage/assets/error-ap.svg +1774 -0
- package/src/components/ErrorPage/locales.ts +21 -3
- package/src/components/ErrorPage/tests/ErrorPage.a11y.spec.ts +5 -13
- package/src/components/ErrorPage/tests/ErrorPage.spec.ts +2 -41
- package/src/components/ErrorPage/tests/__snapshots__/ErrorPage.spec.ts.snap +8 -266
- package/src/components/ExternalLinks/accessibilite/Accessibility.mdx +15 -0
- package/src/components/FileList/UploadItem/UploadItem.vue +25 -20
- package/src/components/FileList/accessibilite/Accessibility.mdx +12 -0
- package/src/components/FilePreview/accessibilite/Accessibility.mdx +12 -0
- package/src/components/FileUpload/FileUpload.vue +5 -0
- package/src/components/FileUpload/FileUploadContent.vue +5 -4
- package/src/components/FileUpload/accessibilite/Accessibility.mdx +12 -0
- package/src/components/FilterInline/FilterInline.vue +5 -4
- package/src/components/FilterInline/accessibilite/Accessibility.mdx +12 -0
- package/src/components/FilterSideBar/accessibilite/Accessibility.mdx +15 -0
- package/src/components/FooterBar/FooterBar.stories.ts +18 -14
- package/src/components/FooterBar/{Accessibilite.mdx → accessibilite/Accessibility.mdx} +3 -4
- package/src/components/FooterBar/defaultSocialMediaLinks.ts +6 -4
- package/src/components/FranceConnectBtn/FranceConnectBtn.vue +6 -5
- package/src/components/FranceConnectBtn/accessibilite/Accessibility.mdx +15 -0
- package/src/components/FranceConnectBtn/tests/__snapshots__/FranceConnectBtn.spec.ts.snap +3 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/accessibilite/Accessibility.mdx +15 -0
- package/src/components/HeaderBar/accessibilite/Accessibility.mdx +15 -0
- package/src/components/HeaderBar/{Usages.mdx → usages/Usages.mdx} +2 -2
- package/src/components/HeaderLoading/{Accessibilite.mdx → accessibilite/Accessibility.mdx} +9 -5
- package/src/components/HeaderToolbar/accessibilite/Accessibility.mdx +15 -0
- package/src/components/LangBtn/LangBtn.vue +5 -4
- package/src/components/LangBtn/accessibilite/Accessibility.mdx +15 -0
- package/src/components/Logo/accessibilite/Accessibility.mdx +17 -0
- package/src/components/LogoBrandSection/accessibilite/Accessibility.mdx +12 -0
- package/src/components/LunarCalendar/accessibilite/Accessibility.mdx +10 -0
- package/src/components/MaintenancePage/MaintenancePage.mdx +1 -1
- package/src/components/MaintenancePage/MaintenancePage.vue +15 -7
- package/src/components/MaintenancePage/accessibilite/Accessibility.mdx +70 -0
- package/src/components/MaintenancePage/assets/maintenance-ap.svg +1718 -0
- package/src/components/MaintenancePage/locales.ts +24 -3
- package/src/components/MaintenancePage/tests/MaintenancePage.a11y.spec.ts +75 -3
- package/src/components/MaintenancePage/tests/MaintenancePage.spec.ts +42 -2
- package/src/components/MaintenancePage/tests/__snapshots__/MaintenancePage.spec.ts.snap +3 -2
- package/src/components/NirField/accessibilite/Accessibility.mdx +15 -0
- package/src/components/NotFoundPage/NotFoundPage.mdx +1 -1
- package/src/components/NotFoundPage/NotFoundPage.stories.ts +3 -3
- package/src/components/NotFoundPage/NotFoundPage.vue +16 -11
- package/src/components/NotFoundPage/accessibilite/Accessibility.mdx +87 -0
- package/src/components/NotFoundPage/assets/not-found-ap.svg +2061 -0
- package/src/components/NotFoundPage/locales.ts +24 -4
- package/src/components/NotFoundPage/tests/NotFoundPage.a11y.spec.ts +168 -4
- package/src/components/NotFoundPage/tests/NotFoundPage.spec.ts +100 -12
- package/src/components/NotFoundPage/tests/__snapshots__/NotFoundPage.spec.ts.snap +2 -2
- package/src/components/NotificationBar/Notification/Notification.vue +1 -1
- package/src/components/NotificationBar/NotificationBar.mdx +2 -2
- package/src/components/NotificationBar/accessibilite/Accessibility.mdx +75 -0
- package/src/components/PageContainer/{AccessibilityGuide.mdx → accessibilite/Accessibility.mdx} +7 -4
- package/src/components/PageContainer/tests/PageContainer.a11y.spec.ts +14 -7
- package/src/components/PaginatedTable/PaginatedTable.vue +27 -47
- package/src/components/PaginatedTable/Pagination.vue +93 -0
- package/src/components/PaginatedTable/accessibilite/Accessibility.mdx +12 -0
- package/src/components/PasswordField/PasswordField.vue +2 -1
- package/src/components/PasswordField/accessibilite/Accessibility.mdx +108 -0
- package/src/components/PeriodField/accessibilite/Accessibility.mdx +12 -0
- package/src/components/PhoneField/PhoneField.stories.ts +46 -38
- package/src/components/PhoneField/accessibilite/Accessibility.mdx +15 -0
- package/src/components/RangeField/accessibilite/Accessibility.mdx +15 -0
- package/src/components/RatingPicker/accessibilite/Accessibility.mdx +15 -0
- package/src/components/SearchListField/SearchListField.vue +6 -3
- package/src/components/SearchListField/accessibilite/Accessibility.mdx +15 -0
- package/src/components/SkipLink/{Accessibilite.mdx → accessibilite/Accessibility.mdx} +7 -4
- package/src/components/SocialMediaLinks/DefaultSocialMediaLinks.ts +6 -4
- package/src/components/SocialMediaLinks/SocialMediaLinks.mdx +7 -5
- package/src/components/SocialMediaLinks/SocialMediaLinks.stories.ts +17 -13
- package/src/components/SocialMediaLinks/SocialMediaLinks.vue +9 -1
- package/src/components/SocialMediaLinks/accessibilite/Accessibility.mdx +67 -0
- package/src/components/SocialMediaLinks/tests/DefaultSocialMediaLinks.spec.ts +5 -5
- package/src/components/SocialMediaLinks/tests/SocialMediaLinks.a11y.spec.ts +59 -0
- package/src/components/SocialMediaLinks/tests/SocialMediaLinks.spec.ts +9 -7
- package/src/components/StatusPage/StatusPage.mdx +22 -0
- package/src/components/StatusPage/StatusPage.stories.ts +193 -0
- package/src/components/StatusPage/StatusPage.vue +145 -0
- package/src/components/StatusPage/accessibilite/Accessibility.mdx +81 -0
- package/src/components/StatusPage/tests/StatusPage.a11y.spec.ts +29 -0
- package/src/components/StatusPage/tests/StatusPage.spec.ts +50 -0
- package/src/components/StatusPage/tests/__snapshots__/StatusPage.spec.ts.snap +270 -0
- package/src/components/SubHeader/accessibilite/Accessibility.mdx +15 -0
- package/src/components/SyAlert/SyAlert.vue +6 -6
- package/src/components/SyAlert/accessibilite/Accessibility.mdx +12 -0
- package/src/components/SyTextArea/accessibilite/Accessibility.mdx +10 -0
- package/src/components/TableToolbar/TableToolbar.stories.ts +6 -6
- package/src/components/TableToolbar/TableToolbar.vue +7 -4
- package/src/components/TableToolbar/accessibilite/Accessibility.mdx +12 -0
- package/src/components/TableToolbar/tests/__snapshots__/TableToolbar.spec.ts.snap +0 -5
- package/src/components/Tables/SyServerTable/SyServerTable.mdx +4 -1
- package/src/components/Tables/SyServerTable/accessibilite/Accessibility.mdx +10 -0
- package/src/components/Tables/SyTable/SyTable.mdx +4 -1
- package/src/components/Tables/SyTable/accessibilite/Accessibility.mdx +10 -0
- package/src/components/Tables/common/TableHeader.vue +3 -1
- package/src/components/Tables/common/organizeColumns/OrganizeColumns.vue +18 -14
- package/src/components/ToolbarContainer/ToolbarContainer.mdx +2 -1
- package/src/components/ToolbarContainer/ToolbarContainer.stories.ts +563 -420
- package/src/components/ToolbarContainer/accessibilite/Accessibility.mdx +69 -0
- package/src/components/UploadWorkflow/UploadWorkflow.mdx +11 -1
- package/src/components/UploadWorkflow/UploadWorkflow.stories.ts +107 -3
- package/src/components/UploadWorkflow/UploadWorkflow.vue +35 -24
- package/src/components/UploadWorkflow/accessibilite/Accessibility.mdx +12 -0
- package/src/components/UploadWorkflow/tests/UploadWorkflow.spec.ts +48 -0
- package/src/components/UploadWorkflow/tests/__snapshots__/UploadWorkflow.spec.ts.snap +9 -5
- package/src/components/UploadWorkflow/useFileList.ts +7 -0
- package/src/components/Usages/Usages.vue +3 -2
- package/src/components/UserMenuBtn/UserMenuBtn.vue +7 -5
- package/src/components/UserMenuBtn/accessibilite/Accessibility.mdx +12 -0
- package/src/components/index.ts +5 -0
- package/src/components/types.ts +10 -0
- package/src/composables/rules/tests/useFieldValidation.spec.ts +39 -3
- package/src/composables/rules/useFieldValidation.ts +31 -9
- package/src/composables/useFormFieldErrorHandling.ts +141 -0
- package/src/modules.d.ts +6 -0
- package/src/stories/Accessibilite/KitDePreAudit/Preaudit.mdx +7 -0
- package/src/utils/theme/index.ts +19 -0
- package/src/utils/theme/tests/useThemeLocales.spec.ts +245 -0
- package/dist/components/MaintenancePage/index.d.ts +0 -2
- package/src/components/BackBtn/Accessibilite.mdx +0 -14
- package/src/components/BackBtn/Accessibilite.stories.ts +0 -30
- package/src/components/BackToTopBtn/Accessibilite.mdx +0 -14
- package/src/components/BackToTopBtn/Accessibilite.stories.ts +0 -31
- package/src/components/ChipList/Accessibilite.mdx +0 -14
- package/src/components/ChipList/Accessibilite.stories.ts +0 -31
- package/src/components/CollapsibleList/Accessibilite.stories.ts +0 -29
- package/src/components/ContextualMenu/Accessibilite.mdx +0 -13
- package/src/components/ContextualMenu/Accessibilite.stories.ts +0 -29
- package/src/components/CookieBanner/Accessibilite.mdx +0 -13
- package/src/components/CookieBanner/Accessibilite.stories.ts +0 -30
- package/src/components/CopyBtn/Accessibilite.mdx +0 -13
- package/src/components/CopyBtn/Accessibilite.stories.ts +0 -29
- package/src/components/Customs/Selects/SelectBtnField/Accessibilite.mdx +0 -14
- package/src/components/Customs/Selects/SelectBtnField/Accessibilite.stories.ts +0 -29
- package/src/components/Customs/Selects/SyInputSelect/Accessibilite.mdx +0 -13
- package/src/components/Customs/Selects/SyInputSelect/Accessibilite.stories.ts +0 -25
- package/src/components/Customs/SyPagination/tests/SyPagination.a11y.spec.ts +0 -27
- package/src/components/Customs/SyTabs/tests/SyTabs.a11y.spec.ts +0 -51
- package/src/components/Customs/SyTextField/Accessibilite.mdx +0 -14
- package/src/components/Customs/SyTextField/Accessibilite.stories.ts +0 -34
- package/src/components/DataList/Accessibilite.mdx +0 -13
- package/src/components/DataList/Accessibilite.stories.ts +0 -29
- package/src/components/DataListGroup/Accessibilite.mdx +0 -13
- package/src/components/DataListGroup/Accessibilite.stories.ts +0 -29
- package/src/components/DataListItem/tests/DataListItem.a11y.spec.ts +0 -31
- package/src/components/DatePicker/CalendarMode/tests/DatePicker.a11y.spec.ts +0 -27
- package/src/components/DatePicker/ComplexDatePicker/tests/ComplexDatePicker.a11y.spec.ts +0 -26
- package/src/components/DatePicker/DateTextInput/tests/DateTextInput.a11y.spec.ts +0 -27
- package/src/components/DialogBox/Accessibilite.mdx +0 -14
- package/src/components/DialogBox/Accessibilite.stories.ts +0 -29
- package/src/components/DownloadBtn/Accessibilite.mdx +0 -14
- package/src/components/DownloadBtn/Accessibilite.stories.ts +0 -29
- package/src/components/DownloadBtn/tests/DownloadBtn.a11y.spec.ts +0 -26
- package/src/components/ErrorPage/Accessibilite.mdx +0 -13
- package/src/components/ErrorPage/Accessibilite.stories.ts +0 -36
- package/src/components/ExternalLinks/Accessibilite.mdx +0 -18
- package/src/components/ExternalLinks/Accessibilite.stories.ts +0 -62
- package/src/components/ExternalLinks/tests/ExternalLinks.a11y.spec.ts +0 -39
- package/src/components/FileList/Accessibilite.mdx +0 -13
- package/src/components/FileList/Accessibilite.stories.ts +0 -26
- package/src/components/FilePreview/Accessibilite.mdx +0 -14
- package/src/components/FilePreview/Accessibilite.stories.ts +0 -26
- package/src/components/FileUpload/Accessibilite.mdx +0 -13
- package/src/components/FileUpload/Accessibilite.stories.ts +0 -26
- package/src/components/FilterInline/Accessibilite.mdx +0 -15
- package/src/components/FilterInline/Accessibilite.stories.ts +0 -26
- package/src/components/FilterSideBar/Accessibilite.mdx +0 -13
- package/src/components/FilterSideBar/Accessibilite.stories.ts +0 -30
- package/src/components/FooterBar/Accessibilite.stories.ts +0 -26
- package/src/components/FranceConnectBtn/Accessibilite.mdx +0 -13
- package/src/components/FranceConnectBtn/Accessibilite.stories.ts +0 -30
- package/src/components/HeaderBar/Accessibilite.mdx +0 -13
- package/src/components/HeaderBar/Accessibilite.stories.ts +0 -31
- package/src/components/HeaderBar/HeaderBurgerMenu/Accessibilite.mdx +0 -13
- package/src/components/HeaderBar/HeaderBurgerMenu/Accessibilite.stories.ts +0 -30
- package/src/components/HeaderLoading/Accessibilite.stories.ts +0 -31
- package/src/components/HeaderNavigationBar/tests/HeaderNavigationBar.a11y.spec.ts +0 -45
- package/src/components/HeaderToolbar/Accessibilite.mdx +0 -13
- package/src/components/HeaderToolbar/Accessibilite.stories.ts +0 -36
- package/src/components/HeaderToolbar/tests/HeaderToolbar.a11y.spec.ts +0 -25
- package/src/components/LangBtn/Accessibilite.mdx +0 -13
- package/src/components/LangBtn/Accessibilite.stories.ts +0 -32
- package/src/components/Logo/Accessibilite.mdx +0 -13
- package/src/components/Logo/Accessibilite.stories.ts +0 -30
- package/src/components/LogoBrandSection/Accessibilite.mdx +0 -13
- package/src/components/LogoBrandSection/Accessibilite.stories.ts +0 -26
- package/src/components/LunarCalendar/tests/LunarCalendar.a11y.spec.ts +0 -31
- package/src/components/MaintenancePage/Accessibilite.mdx +0 -13
- package/src/components/MaintenancePage/Accessibilite.stories.ts +0 -36
- package/src/components/MaintenancePage/index.ts +0 -3
- package/src/components/NirField/Accessibilite.mdx +0 -13
- package/src/components/NirField/Accessibilite.stories.ts +0 -31
- package/src/components/NotFoundPage/Accessibilite.mdx +0 -13
- package/src/components/NotFoundPage/Accessibilite.stories.ts +0 -36
- package/src/components/NotificationBar/Accessibilite.mdx +0 -13
- package/src/components/NotificationBar/Accessibilite.stories.ts +0 -30
- package/src/components/PageContainer/Accessibilite.mdx +0 -13
- package/src/components/PageContainer/Accessibilite.stories.ts +0 -30
- package/src/components/PaginatedTable/Accessibilite.mdx +0 -13
- package/src/components/PaginatedTable/Accessibilite.stories.ts +0 -26
- package/src/components/PaginatedTable/tests/PaginatedTable.a11y.spec.ts +0 -43
- package/src/components/PasswordField/Accessibilite.mdx +0 -13
- package/src/components/PasswordField/Accessibilite.stories.ts +0 -121
- package/src/components/PeriodField/Accessibilite.mdx +0 -13
- package/src/components/PeriodField/Accessibilite.stories.ts +0 -27
- package/src/components/PhoneField/Accessibilite.mdx +0 -13
- package/src/components/PhoneField/Accessibilite.stories.ts +0 -32
- package/src/components/PhoneField/tests/PhoneField.a11y.spec.ts +0 -34
- package/src/components/RangeField/Accessibilite.mdx +0 -13
- package/src/components/RangeField/Accessibilite.stories.ts +0 -32
- package/src/components/RatingPicker/Accessibilite.mdx +0 -13
- package/src/components/RatingPicker/Accessibilite.stories.ts +0 -30
- package/src/components/SearchListField/Accessibilite.mdx +0 -13
- package/src/components/SearchListField/Accessibilite.stories.ts +0 -30
- package/src/components/SkipLink/Accessibilite.stories.ts +0 -36
- package/src/components/SocialMediaLinks/Accessibilite.mdx +0 -13
- package/src/components/SocialMediaLinks/Accessibilite.stories.ts +0 -36
- package/src/components/SubHeader/Accessibilite.mdx +0 -13
- package/src/components/SubHeader/Accessibilite.stories.ts +0 -36
- package/src/components/SyAlert/Accessibilite.mdx +0 -13
- package/src/components/SyAlert/Accessibilite.stories.ts +0 -30
- package/src/components/TableToolbar/Accessibilite.mdx +0 -13
- package/src/components/TableToolbar/Accessibilite.stories.ts +0 -26
- package/src/components/UploadWorkflow/Accessibilite.mdx +0 -13
- package/src/components/UploadWorkflow/Accessibilite.stories.ts +0 -26
- package/src/components/UserMenuBtn/Accessibilite.mdx +0 -13
- package/src/components/UserMenuBtn/Accessibilite.stories.ts +0 -25
- /package/src/components/HeaderBar/{Usages.stories.ts → usages/Usages.stories.ts} +0 -0
- /package/src/components/NotFoundPage/assets/{not-found.svg → not-found-cnam.svg} +0 -0
- /package/src/components/SyBtnMenu/accessibilite/{AccessibilityGuide.mdx → Accessibility.mdx} +0 -0
|
@@ -1,5 +1,23 @@
|
|
|
1
|
+
import imgUrlAp from './assets/error-ap.svg'
|
|
2
|
+
|
|
1
3
|
export const locales = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
default: {
|
|
5
|
+
pageTitle: 'Une erreur est survenue',
|
|
6
|
+
message: 'Une erreur est survenue de notre côté, veuillez réessayer plus tard.',
|
|
7
|
+
src: undefined,
|
|
8
|
+
code: '500',
|
|
9
|
+
},
|
|
10
|
+
cnam: {
|
|
11
|
+
pageTitle: 'Une erreur est survenue',
|
|
12
|
+
message: 'Une erreur est survenue de notre côté, veuillez réessayer plus tard. Si le problème persiste veuillez nous contacter par téléphone au 3646',
|
|
13
|
+
src: undefined,
|
|
14
|
+
code: '500',
|
|
15
|
+
},
|
|
16
|
+
ap: {
|
|
17
|
+
pageTitle: 'Les services amelipro sont indisponibles !',
|
|
18
|
+
message:
|
|
19
|
+
'Nous mettons en œuvre les mesures nécessaires pour rétablir rapidement votre accès. Veuillez nous excuser pour la gêne occasionnée.',
|
|
20
|
+
src: imgUrlAp,
|
|
21
|
+
code: '500',
|
|
22
|
+
},
|
|
5
23
|
}
|
|
@@ -6,23 +6,15 @@ import { axe } from 'vitest-axe'
|
|
|
6
6
|
import { assertNoA11yViolations } from '@tests/unit/accessibility/axeUtils'
|
|
7
7
|
import ErrorPage from '../ErrorPage.vue'
|
|
8
8
|
|
|
9
|
-
// Scénario d’accessibilité : page d
|
|
10
|
-
//
|
|
9
|
+
// Scénario d’accessibilité : page d'erreur basée sur StatusPage,
|
|
10
|
+
// sans bouton d’action, avec illustration décorative masquée.
|
|
11
11
|
|
|
12
12
|
describe('ErrorPage – accessibility (axe)', () => {
|
|
13
|
-
it('has no obvious axe violations
|
|
14
|
-
const wrapper = mount(ErrorPage
|
|
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
|
-
})
|
|
13
|
+
it('has no obvious axe violations in default state', async () => {
|
|
14
|
+
const wrapper = mount(ErrorPage)
|
|
23
15
|
|
|
24
16
|
const results = await axe(wrapper.element as HTMLElement)
|
|
25
|
-
assertNoA11yViolations(results, 'ErrorPage – default
|
|
17
|
+
assertNoA11yViolations(results, 'ErrorPage – default state', {
|
|
26
18
|
ignoreRules: ['region'],
|
|
27
19
|
})
|
|
28
20
|
})
|
|
@@ -1,50 +1,11 @@
|
|
|
1
1
|
import { describe, it, expect } from 'vitest'
|
|
2
|
-
import {
|
|
2
|
+
import { shallowMount } from '@vue/test-utils'
|
|
3
3
|
import ErrorPage from '../ErrorPage.vue'
|
|
4
4
|
|
|
5
5
|
describe('ErrorPage', () => {
|
|
6
6
|
it('renders correctly', () => {
|
|
7
|
-
const wrapper =
|
|
8
|
-
props: {
|
|
9
|
-
pageTitle: 'Something went wrong',
|
|
10
|
-
message: 'Error message',
|
|
11
|
-
},
|
|
12
|
-
})
|
|
7
|
+
const wrapper = shallowMount(ErrorPage)
|
|
13
8
|
|
|
14
|
-
expect(wrapper.text()).toContain('Something went wrong')
|
|
15
|
-
expect(wrapper.text()).toContain('Error message')
|
|
16
9
|
expect(wrapper.html()).toMatchSnapshot()
|
|
17
10
|
})
|
|
18
|
-
|
|
19
|
-
it('renders correctly with undefined route', () => {
|
|
20
|
-
const wrapper = mount(ErrorPage, {
|
|
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(ErrorPage, {
|
|
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
11
|
})
|
|
@@ -1,270 +1,12 @@
|
|
|
1
1
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
2
|
|
|
3
3
|
exports[`ErrorPage > renders correctly 1`] = `
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
|
|
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[`ErrorPage > 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>
|
|
4
|
+
<status-page-stub
|
|
5
|
+
btnlink="/"
|
|
6
|
+
code="500"
|
|
7
|
+
codeerrortext="Code d'erreur : "
|
|
8
|
+
hidebtn="false"
|
|
9
|
+
message="Une erreur est survenue de notre côté, veuillez réessayer plus tard."
|
|
10
|
+
pagetitle="Une erreur est survenue"
|
|
11
|
+
></status-page-stub>
|
|
270
12
|
`;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
+
import * as Stories from '../ExternalLinks.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/ExternalLinks.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/808" target="_blank" style={{color:'#0C41BD'}}>issue #808</a>)</p>
|
|
15
|
+
</div>
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
} from '@mdi/js'
|
|
10
10
|
import { cnamContextualTokens } from '@/designTokens/tokens/cnam/cnamContextual'
|
|
11
11
|
import { locales as defaultLocales } from './locales'
|
|
12
|
+
import SyIcon from '@/components/Customs/SyIcon/SyIcon.vue'
|
|
12
13
|
|
|
13
14
|
type FileState = 'initial' | 'success' | 'error' | 'loading'
|
|
14
15
|
|
|
@@ -78,25 +79,29 @@
|
|
|
78
79
|
{{ locales.error }}
|
|
79
80
|
</span>
|
|
80
81
|
|
|
81
|
-
<
|
|
82
|
+
<SyIcon
|
|
82
83
|
v-if="state === 'error'"
|
|
84
|
+
:icon="mdiAlertCircle"
|
|
83
85
|
:size="cnamContextualTokens.iconSize.default"
|
|
84
|
-
:aria-label="locales.error"
|
|
85
86
|
color="error"
|
|
86
|
-
|
|
87
|
+
decorative
|
|
88
|
+
/>
|
|
87
89
|
|
|
88
|
-
<
|
|
90
|
+
<SyIcon
|
|
89
91
|
v-else-if="state === 'success'"
|
|
92
|
+
:icon="mdiCheckCircle"
|
|
90
93
|
:size="cnamContextualTokens.iconSize.default"
|
|
91
|
-
:aria-label="locales.success"
|
|
92
94
|
color="success"
|
|
93
|
-
|
|
95
|
+
decorative
|
|
96
|
+
/>
|
|
94
97
|
|
|
95
|
-
<
|
|
98
|
+
<SyIcon
|
|
96
99
|
v-else
|
|
97
100
|
:size="cnamContextualTokens.iconSize.default"
|
|
98
101
|
color="primary"
|
|
99
|
-
|
|
102
|
+
:icon="mdiFile"
|
|
103
|
+
decorative
|
|
104
|
+
/>
|
|
100
105
|
</slot>
|
|
101
106
|
</span>
|
|
102
107
|
<div>
|
|
@@ -129,11 +134,11 @@
|
|
|
129
134
|
>
|
|
130
135
|
<span>Importer</span>
|
|
131
136
|
<template #prepend>
|
|
132
|
-
<
|
|
137
|
+
<SyIcon
|
|
133
138
|
color="primary"
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
139
|
+
:icon="mdiTrayArrowUp"
|
|
140
|
+
decorative
|
|
141
|
+
/>
|
|
137
142
|
</template>
|
|
138
143
|
</VBtn>
|
|
139
144
|
<VBtn
|
|
@@ -144,11 +149,11 @@
|
|
|
144
149
|
>
|
|
145
150
|
<span>{{ locales.see }}</span>
|
|
146
151
|
<template #prepend>
|
|
147
|
-
<
|
|
152
|
+
<SyIcon
|
|
148
153
|
color="primary"
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
154
|
+
:icon="mdiEyeOutline"
|
|
155
|
+
decorative
|
|
156
|
+
/>
|
|
152
157
|
</template>
|
|
153
158
|
</VBtn>
|
|
154
159
|
<VBtn
|
|
@@ -159,11 +164,11 @@
|
|
|
159
164
|
>
|
|
160
165
|
<span>{{ locales.delete }}</span>
|
|
161
166
|
<template #prepend>
|
|
162
|
-
<
|
|
167
|
+
<SyIcon
|
|
163
168
|
color="error"
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
169
|
+
:icon="mdiDeleteOutline"
|
|
170
|
+
decorative
|
|
171
|
+
/>
|
|
167
172
|
</template>
|
|
168
173
|
</VBtn>
|
|
169
174
|
</div>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
+
import * as Stories from '../FileList.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 />
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
+
import * as Stories from '../FilePreview.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 />
|
|
@@ -40,8 +40,13 @@
|
|
|
40
40
|
const fileList = ref<File[]>([])
|
|
41
41
|
const isDarkMode = useTheme().current.value.dark
|
|
42
42
|
|
|
43
|
+
function openFileDialog() {
|
|
44
|
+
fileInput.value?.click()
|
|
45
|
+
}
|
|
46
|
+
|
|
43
47
|
defineExpose({
|
|
44
48
|
fileInput,
|
|
49
|
+
openFileDialog,
|
|
45
50
|
})
|
|
46
51
|
|
|
47
52
|
watch(() => props.modelValue, (value) => {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { locales } from './locales'
|
|
4
4
|
import { mdiCloudUpload } from '@mdi/js'
|
|
5
5
|
import { computed } from 'vue'
|
|
6
|
+
import SyIcon from '@/components/Customs/SyIcon/SyIcon.vue'
|
|
6
7
|
|
|
7
8
|
const props = defineProps<{
|
|
8
9
|
allowedExtensions: string[]
|
|
@@ -31,12 +32,12 @@
|
|
|
31
32
|
<slot
|
|
32
33
|
name="icon"
|
|
33
34
|
>
|
|
34
|
-
<
|
|
35
|
+
<SyIcon
|
|
35
36
|
size="40"
|
|
36
37
|
color="primary"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
:icon="mdiCloudUpload"
|
|
39
|
+
decorative
|
|
40
|
+
/>
|
|
40
41
|
</slot>
|
|
41
42
|
|
|
42
43
|
<span
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
+
import * as Stories from '../FileUpload.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
|
+
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { toRef } from 'vue'
|
|
5
5
|
import ChipList from '../ChipList/ChipList.vue'
|
|
6
6
|
import { locales as defaultLocales } from './locales'
|
|
7
|
+
import SyIcon from '@/components/Customs/SyIcon/SyIcon.vue'
|
|
7
8
|
|
|
8
9
|
const props = withDefaults(defineProps<{
|
|
9
10
|
modelValue?: FilterProp
|
|
@@ -59,12 +60,12 @@
|
|
|
59
60
|
|
|
60
61
|
{{ filter.title }}
|
|
61
62
|
|
|
62
|
-
<
|
|
63
|
+
<SyIcon
|
|
63
64
|
size="small"
|
|
64
65
|
class="ml-1"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
:icon="isActive ? mdiChevronUp : mdiChevronDown"
|
|
67
|
+
decorative
|
|
68
|
+
/>
|
|
68
69
|
</VBtn>
|
|
69
70
|
</template>
|
|
70
71
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
+
import * as Stories from '../FilterInline.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 />
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
+
import * as Stories from '../FilterSideBar.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/FilterSideBar.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/913" target="_blank" style={{color:'#0C41BD'}}>issue #913</a>)</p>
|
|
15
|
+
</div>
|