@cnamts/synapse 1.0.7 → 1.0.9
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-CHDLz2EO.js → DateFilter-BylukfjR.js} +1 -1
- package/dist/{NumberFilter-DXNQ4Uls.js → NumberFilter-C_bUk9o1.js} +1 -1
- package/dist/{PeriodFilter-C8Qf3Jcn.js → PeriodFilter-dVOmcfmt.js} +1 -1
- package/dist/{SelectFilter-B2Ejs4Cb.js → SelectFilter-BW8KpXkQ.js} +1 -1
- package/dist/{TextFilter-CfR5_A1S.js → TextFilter-diwVzTz7.js} +1 -1
- package/dist/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.d.ts +2785 -2770
- package/dist/components/Amelipro/AmeliproCallback/AmeliproCallback.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproCarousel/AmeliproCarousel.d.ts +7 -7
- package/dist/components/Amelipro/AmeliproCarousel/AmeliproCarouselItem/AmeliproCarouselItem.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproClickableTile/AmeliproClickableTile.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproContentLayout/AmeliproContentLayout.d.ts +30 -0
- package/dist/components/Amelipro/AmeliproContentLayout/index.d.ts +2 -0
- package/dist/components/Amelipro/AmeliproCopyBtn/AmeliproCopyBtn.d.ts +24 -0
- package/dist/components/Amelipro/AmeliproErrorTemplate/AmeliproErrorTemplate.d.ts +128 -0
- package/dist/components/Amelipro/AmeliproErrorTemplate/errorTemplateTypes.d.ts +2 -0
- package/dist/components/Amelipro/AmeliproErrorTemplate/types.d.ts +7 -0
- package/dist/components/Amelipro/AmeliproFilePreview/AmeliproFilePreview.d.ts +91 -0
- package/dist/components/Amelipro/AmeliproFooter/AmeliproFooter.d.ts +18 -18
- package/dist/components/Amelipro/AmeliproHeader/AmeliproHeader.d.ts +9 -9
- package/dist/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproHeaderBar.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproHeaderBrandSection/AmeliproHeaderBrandSection.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproIconBtn/AmeliproIconBtn.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproMenu/AmeliproMenu.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproPagination/AmeliproPaginationBtn/AmeliproPaginationBtn.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproPatientBanner/AmeliproPatientBanner.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproSelect/AmeliproSelect.d.ts +2766 -2751
- package/dist/components/Amelipro/AmeliproStateTile/AmeliproStateTile.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproTabs/AmeliproTabs.d.ts +2766 -2751
- package/dist/components/Amelipro/AmeliproTextArea/AmeliproTextArea.d.ts +388 -386
- package/dist/components/Amelipro/AmeliproTextField/AmeliproTextField.d.ts +632 -630
- package/dist/components/Amelipro/AmeliproTileBtn/AmeliproTileBtn.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproTransmission/AmeliproTransmission.d.ts +9 -9
- package/dist/components/CookieBanner/CookieBanner.d.ts +116 -114
- package/dist/components/CookiesSelection/CookiesInformation/CookiesInformation.d.ts +465 -465
- package/dist/components/CookiesSelection/CookiesSelection.d.ts +103 -101
- package/dist/components/Customs/Selects/SySelect/SySelect.d.ts +106 -1510
- package/dist/components/Customs/Selects/SySelect/composables/useSySelectKeyboard.d.ts +0 -1
- package/dist/components/Customs/SyCheckbox/SyCheckbox.d.ts +1 -1
- package/dist/components/Customs/SyTextField/SyTextField.d.ts +634 -632
- package/dist/components/DataList/DataList.d.ts +1 -1
- package/dist/components/DatePicker/CalendarMode/DatePicker.d.ts +2875 -2843
- package/dist/components/DatePicker/ComplexDatePicker/ComplexDatePicker.d.ts +1446 -1430
- package/dist/components/DatePicker/DateTextInput/DateTextInput.d.ts +643 -641
- package/dist/components/DialogBox/DialogBox.d.ts +172 -169
- package/dist/components/DialogBox/config.d.ts +3 -3
- package/dist/components/DialogBox/locales.d.ts +2 -0
- package/dist/components/DialogBox/useDraggable.d.ts +8 -0
- package/dist/components/FilterSideBar/FilterSideBar.d.ts +159 -157
- package/dist/components/FooterBar/FooterBar.d.ts +5 -5
- package/dist/components/HeaderBar/HeaderBar.d.ts +2 -2
- package/dist/components/HeaderBar/HeaderLogo/HeaderLogo.d.ts +1 -1
- package/dist/components/HeaderNavigationBar/HeaderNavigationBar.d.ts +1 -1
- package/dist/components/LangBtn/LangBtn.d.ts +169 -167
- package/dist/components/LogoBrandSection/LogoBrandSection.d.ts +1 -1
- package/dist/components/NirField/NirField.d.ts +1277 -1273
- package/dist/components/PeriodField/PeriodField.d.ts +5752 -5688
- package/dist/components/PhoneField/PhoneField.d.ts +647 -636
- package/dist/components/SearchListField/SearchListField.d.ts +105 -105
- package/dist/components/SyAlert/SyAlert.d.ts +29 -29
- package/dist/components/SyTextArea/SyTextArea.d.ts +389 -387
- package/dist/components/Tables/SyServerTable/SyServerTable.d.ts +207 -175
- package/dist/components/Tables/SyTable/SyTable.d.ts +208 -176
- package/dist/components/Tables/common/SyTableFilter.d.ts +1 -1
- package/dist/components/Tables/common/SyTablePagination.d.ts +106 -1510
- package/dist/components/Tables/common/filters/DateFilter.d.ts +1 -1
- package/dist/components/Tables/common/filters/NumberFilter.d.ts +1 -1
- package/dist/components/Tables/common/filters/PeriodFilter.d.ts +1 -1
- package/dist/components/Tables/common/filters/SelectFilter.d.ts +1 -1
- package/dist/components/Tables/common/filters/TextFilter.d.ts +1 -1
- package/dist/components/Tables/common/organizeColumns/OrganizeColumns.d.ts +82 -82
- package/dist/components/Tables/common/tableProps.d.ts +11 -0
- package/dist/components/Tables/common/types.d.ts +8 -4
- package/dist/components/Tables/common/useStoredOptions.d.ts +14 -0
- package/dist/components/Tables/common/useTableHeaders.d.ts +3 -2
- package/dist/components/Tables/common/useTableItems.d.ts +0 -1
- package/dist/components/UploadWorkflow/UploadWorkflow.d.ts +16 -16
- package/dist/components/index.d.ts +4 -0
- package/dist/design-system-v3.js +166 -162
- package/dist/design-system-v3.umd.cjs +269 -268
- package/dist/main-2eWGB7zZ.js +30203 -0
- package/dist/services/NotificationService.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/vuetifyConfig.d.ts +6 -6
- package/package.json +1 -1
- package/src/assets/amelipro/img/ico_pdf.svg +15 -0
- package/src/assets/amelipro/img/navigateurs.png +0 -0
- package/src/assets/amelipro/img/visuel_deconnexion.svg +973 -0
- package/src/assets/amelipro/img/visuel_erreur_403.svg +3652 -0
- package/src/assets/amelipro/img/visuel_erreur_404.svg +1801 -0
- package/src/assets/amelipro/img/visuel_erreur_500.svg +989 -0
- package/src/assets/amelipro/img/visuel_erreur_503.svg +1005 -0
- package/src/assets/amelipro/img/visuel_navigateur_obsolete.svg +828 -0
- package/src/assets/amelipro/pdf/charte-pour-pdf.pdf +0 -0
- package/src/components/Accordion/Accessibilite/AccessibilityGuide.mdx +5 -2
- package/src/components/Accordion/Accordion.mdx +5 -3
- package/src/components/Amelipro/AmeliproAccordion/AmeliproAccordion.stories.ts +258 -0
- package/src/components/Amelipro/AmeliproAccordionGroup/AmeliproAccordionGroup.stories.ts +321 -0
- package/src/components/Amelipro/AmeliproAccordionList/AmeliproAccordionList.stories.ts +656 -0
- package/src/components/Amelipro/AmeliproAccordionResult/AmeliproAccordionResult.mdx +1 -3
- package/src/components/Amelipro/AmeliproAccordionResult/AmeliproAccordionResult.stories.ts +208 -0
- package/src/components/Amelipro/AmeliproAccordionResultList/AmeliproAccordionResultList.stories.ts +562 -0
- package/src/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.stories.ts +480 -0
- package/src/components/Amelipro/AmeliproCaptcha/AmeliproCaptcha.stories.ts +267 -0
- package/src/components/Amelipro/AmeliproCheckbox/AmeliproCheckbox.stories.ts +287 -6
- package/src/components/Amelipro/AmeliproCheckboxGroup/AmeliproCheckboxGroup.stories.ts +433 -0
- package/src/components/Amelipro/AmeliproContentLayout/AmeliproContentLayout.mdx +15 -0
- package/src/components/Amelipro/AmeliproContentLayout/AmeliproContentLayout.stories.ts +44 -0
- package/src/components/Amelipro/AmeliproContentLayout/AmeliproContentLayout.vue +55 -0
- package/src/components/Amelipro/AmeliproContentLayout/__tests__/AmeliproContentLayout.spec.ts +20 -0
- package/src/components/Amelipro/AmeliproContentLayout/__tests__/__snapshots__/AmeliproContentLayout.spec.ts.snap +24 -0
- package/src/components/Amelipro/AmeliproContentLayout/index.ts +3 -0
- package/src/components/Amelipro/AmeliproCopyBtn/AmeliproCopyBtn.mdx +18 -0
- package/src/components/Amelipro/AmeliproCopyBtn/AmeliproCopyBtn.stories.ts +68 -0
- package/src/components/Amelipro/AmeliproCopyBtn/AmeliproCopyBtn.vue +73 -0
- package/src/components/Amelipro/AmeliproCopyBtn/__tests__/AmeliproCopyBtn.spec.ts +20 -0
- package/src/components/Amelipro/AmeliproCopyBtn/__tests__/__snapshots__/AmeliproCopyBtn.spec.ts.snap +84 -0
- package/src/components/Amelipro/AmeliproCustomSelector/AmeliproCustomSelector.stories.ts +422 -0
- package/src/components/Amelipro/AmeliproCustomSelector/AmeliproCustomSelector.vue +2 -2
- package/src/components/Amelipro/AmeliproCustomSelector/__tests__/__snapshots__/AmeliproCustomSelector.spec.ts.snap +4 -6
- package/src/components/Amelipro/AmeliproDisclosure/AmeliproDisclosure.stories.ts +92 -0
- package/src/components/Amelipro/AmeliproErrorTemplate/AmeliproErrorTemplate.mdx +23 -0
- package/src/components/Amelipro/AmeliproErrorTemplate/AmeliproErrorTemplate.stories.ts +386 -0
- package/src/components/Amelipro/AmeliproErrorTemplate/AmeliproErrorTemplate.vue +187 -0
- package/src/components/Amelipro/AmeliproErrorTemplate/__tests__/AmeliproErrorTemplate.spec.ts +31 -0
- package/src/components/Amelipro/AmeliproErrorTemplate/__tests__/__snapshots__/AmeliproErrorTemplate.spec.ts.snap +185 -0
- package/src/components/Amelipro/AmeliproErrorTemplate/errorTemplateTypes.ts +85 -0
- package/src/components/Amelipro/AmeliproErrorTemplate/types.d.ts +7 -0
- package/src/components/Amelipro/AmeliproFilePreview/AmeliproFilePreview.mdx +15 -0
- package/src/components/Amelipro/AmeliproFilePreview/AmeliproFilePreview.stories.ts +71 -0
- package/src/components/Amelipro/AmeliproFilePreview/AmeliproFilePreview.vue +161 -0
- package/src/components/Amelipro/AmeliproFilePreview/__tests__/AmeliproFilePreview.spec.ts +28 -0
- package/src/components/Amelipro/AmeliproFilePreview/__tests__/__snapshots__/AmeliproFilePreview.spec.ts.snap +209 -0
- package/src/components/Amelipro/AmeliproIllustratedRadioGroup/AmeliproIllustratedRadioGroup.stories.ts +194 -0
- package/src/components/Amelipro/AmeliproRadioGroup/AmeliproRadioGroup.stories.ts +639 -0
- package/src/components/Amelipro/AmeliproResultList/AmeliproResultList.stories.ts +648 -0
- package/src/components/Amelipro/AmeliproSelect/AmeliproSelect.stories.ts +392 -0
- package/src/components/Amelipro/AmeliproTextArea/AmeliproTextArea.stories.ts +351 -0
- package/src/components/Amelipro/AmeliproTextField/AmeliproTextField.stories.ts +634 -38
- package/src/components/Amelipro/AmeliproTextField/AmeliproTextField.vue +1 -1
- package/src/components/Amelipro/ServiceMenu/ServiceMenu.mdx +5 -3
- package/src/components/Amelipro/StructureMenu/StructureMenu.mdx +5 -3
- package/src/components/Amelipro/UserMenu/UserMenu.mdx +5 -3
- package/src/components/BackBtn/Accessibilite.mdx +6 -2
- package/src/components/BackBtn/BackBtn.mdx +5 -3
- package/src/components/BackBtn/BackBtn.stories.ts +1 -0
- package/src/components/BackBtn/Usages.mdx +5 -3
- package/src/components/BackToTopBtn/Accessibilite.mdx +6 -2
- package/src/components/BackToTopBtn/BackToTopBtn.mdx +5 -4
- package/src/components/BackToTopBtn/Usages.mdx +5 -3
- package/src/components/ChipList/Accessibilite.mdx +6 -2
- package/src/components/ChipList/ChipList.mdx +5 -3
- package/src/components/CollapsibleList/Accessibilite.mdx +6 -2
- package/src/components/CollapsibleList/CollapsibleList.mdx +5 -3
- package/src/components/ContextualMenu/Accessibilite.mdx +6 -2
- package/src/components/ContextualMenu/ContextualMenu.mdx +7 -4
- package/src/components/ContextualMenu/Usages.mdx +5 -3
- package/src/components/CookieBanner/Accessibilite.mdx +6 -2
- package/src/components/CookieBanner/CookieBanner.mdx +5 -8
- package/src/components/CopyBtn/Accessibilite.mdx +6 -2
- package/src/components/CopyBtn/CopyBtn.mdx +5 -3
- package/src/components/CopyBtn/Usages.mdx +5 -3
- package/src/components/Customs/Selects/SelectBtnField/Accessibilite.mdx +6 -2
- package/src/components/Customs/Selects/SelectBtnField/SelectBtnField.mdx +7 -4
- package/src/components/Customs/Selects/SelectBtnField/Usages.mdx +5 -3
- package/src/components/Customs/Selects/SelectOverview.mdx +27 -60
- package/src/components/Customs/Selects/SyBtnSelect/Accessibilite.mdx +6 -2
- package/src/components/Customs/Selects/SyBtnSelect/SyBtnSelect.mdx +6 -4
- package/src/components/Customs/Selects/SyInputSelect/Accessibilite.mdx +6 -2
- package/src/components/Customs/Selects/SyInputSelect/SyInputSelect.mdx +9 -1
- package/src/components/Customs/Selects/SyInputSelect/SyInputSelect.stories.ts +14 -0
- package/src/components/Customs/Selects/SySelect/Accessibilite.mdx +7 -3
- package/src/components/Customs/Selects/SySelect/SySelect.mdx +6 -4
- package/src/components/Customs/Selects/SySelect/SySelect.stories.ts +2 -2
- package/src/components/Customs/Selects/SySelect/SySelect.vue +289 -375
- package/src/components/Customs/Selects/SySelect/Usages.mdx +5 -3
- package/src/components/Customs/Selects/SySelect/composables/tests/useSySelectKeyboard.spec.ts +0 -10
- package/src/components/Customs/Selects/SySelect/composables/useSySelectKeyboard.ts +0 -5
- package/src/components/Customs/Selects/SySelect/tests/SySelect.spec.ts +184 -25
- package/src/components/Customs/SyCheckbox/Accessibilite.mdx +6 -3
- package/src/components/Customs/SyCheckbox/SyCheckbox.mdx +5 -3
- package/src/components/Customs/SyIcon/Accessibilite.mdx +5 -5
- package/src/components/Customs/SyIcon/SyIcon.mdx +5 -7
- package/src/components/Customs/SyPagination/SyPagination.mdx +7 -4
- package/src/components/Customs/SyTabs/Accessibilite.mdx +4 -1
- package/src/components/Customs/SyTabs/SyTabs.mdx +5 -3
- package/src/components/Customs/SyTabs/SyTabs.vue +87 -24
- package/src/components/Customs/SyTabs/tests/SyTabs.spec.ts +18 -0
- package/src/components/Customs/SyTextField/Accessibilite.mdx +6 -2
- package/src/components/Customs/SyTextField/SyTextField.mdx +5 -6
- package/src/components/Customs/SyTextField/SyTextField.vue +17 -4
- package/src/components/Customs/SyTextField/Usages.mdx +1 -0
- package/src/components/DataList/Accessibilite.mdx +6 -2
- package/src/components/DataList/DataList.mdx +5 -3
- package/src/components/DataListGroup/Accessibilite.mdx +6 -2
- package/src/components/DataListGroup/DataListGroup.mdx +5 -3
- package/src/components/DatePicker/Accessibilite.mdx +6 -2
- package/src/components/DatePicker/CalendarMode/DatePicker.mdx +5 -3
- package/src/components/DatePicker/CalendarMode/DatePicker.vue +6 -3
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.mdx +5 -6
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.vue +14 -3
- package/src/components/DatePicker/DatePickerOverview.mdx +5 -3
- package/src/components/DatePicker/DatePickerValidationExample/DatePickerValidation.mdx +5 -3
- package/src/components/DatePicker/DateTextInput/DateTextInput.vue +37 -32
- package/src/components/DatePicker/DateTextInput/NoCalendar.mdx +5 -3
- package/src/components/DatePicker/DateTextInput/NoCalendar.stories.ts +3 -0
- package/src/components/DatePicker/Usages.mdx +5 -3
- package/src/components/DiacriticPicker/DiacriticPicker.mdx +5 -3
- package/src/components/DialogBox/Accessibilite.mdx +6 -2
- package/src/components/DialogBox/DialogBox.mdx +5 -3
- package/src/components/DialogBox/DialogBox.stories.ts +83 -0
- package/src/components/DialogBox/DialogBox.vue +41 -6
- package/src/components/DialogBox/Usages.mdx +5 -3
- package/src/components/DialogBox/config.ts +3 -3
- package/src/components/DialogBox/locales.ts +2 -0
- package/src/components/DialogBox/tests/DialogBox.spec.ts +132 -3
- package/src/components/DialogBox/tests/__snapshots__/DialogBox.spec.ts.snap +14 -11
- package/src/components/DialogBox/useDraggable.ts +98 -0
- package/src/components/DownloadBtn/Accessibilite.mdx +6 -2
- package/src/components/DownloadBtn/DownloadBtn.mdx +7 -4
- package/src/components/DownloadBtn/DownloadBtn.vue +1 -1
- package/src/components/DownloadBtn/tests/DownloadBtn.spec.ts +2 -3
- package/src/components/ErrorPage/Accessibilite.mdx +6 -2
- package/src/components/ErrorPage/ErrorPage.mdx +5 -3
- package/src/components/ExternalLinks/Accessibilite.mdx +6 -2
- package/src/components/ExternalLinks/ExternalLinks.mdx +5 -8
- package/src/components/ExternalLinks/Usages.mdx +5 -3
- package/src/components/FileList/Accessibilite.mdx +6 -2
- package/src/components/FileList/FileList.mdx +5 -4
- package/src/components/FilePreview/Accessibilite.mdx +6 -2
- package/src/components/FilePreview/FilePreview.mdx +7 -7
- package/src/components/FileUpload/Accessibilite.mdx +6 -2
- package/src/components/FileUpload/FileUpload.mdx +7 -4
- package/src/components/FilterInline/Accessibilite.mdx +6 -2
- package/src/components/FilterInline/FilterInline.mdx +5 -5
- package/src/components/FilterSideBar/Accessibilite.mdx +6 -2
- package/src/components/FilterSideBar/FilterSideBar.mdx +5 -4
- package/src/components/FooterBar/Accessibilite.mdx +6 -2
- package/src/components/FooterBar/FooterBar.mdx +5 -3
- package/src/components/FranceConnectBtn/Accessibilite.mdx +6 -2
- package/src/components/FranceConnectBtn/FranceConnectBtn.mdx +5 -3
- package/src/components/HeaderBar/Accessibilite.mdx +6 -2
- package/src/components/HeaderBar/HeaderBar.mdx +4 -4
- package/src/components/HeaderBar/HeaderBurgerMenu/Accessibilite.mdx +6 -2
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderBurgerMenu.mdx +9 -13
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuItem/HeaderMenuItem.mdx +1 -1
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuSection/HeaderMenuSection.mdx +5 -5
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderSubMenu/HeaderSubMenu.mdx +1 -2
- package/src/components/HeaderBar/Usages.mdx +5 -3
- package/src/components/HeaderLoading/Accessibilite.mdx +2 -1
- package/src/components/HeaderLoading/HeaderLoading.mdx +5 -3
- package/src/components/HeaderNavigationBar/HeaderNavigationBar.mdx +1 -8
- package/src/components/HeaderNavigationBar/HorizontalNavbar/HorizontalNavbar.vue +17 -9
- package/src/components/HeaderToolbar/Accessibilite.mdx +6 -2
- package/src/components/HeaderToolbar/HeaderToolbar.mdx +5 -3
- package/src/components/LangBtn/Accessibilite.mdx +6 -2
- package/src/components/LangBtn/LangBtn.mdx +5 -3
- package/src/components/Logo/Accessibilite.mdx +6 -2
- package/src/components/Logo/Logo.mdx +5 -3
- package/src/components/LogoBrandSection/Accessibilite.mdx +6 -2
- package/src/components/LogoBrandSection/LogoBrandSection.mdx +5 -3
- package/src/components/MaintenancePage/Accessibilite.mdx +6 -2
- package/src/components/MaintenancePage/MaintenancePage.mdx +6 -4
- package/src/components/NirField/Accessibilite.mdx +6 -2
- package/src/components/NirField/NirField.mdx +5 -7
- package/src/components/NirField/NirField.vue +13 -118
- package/src/components/NirField/Usages.mdx +5 -3
- package/src/components/NotFoundPage/Accessibilite.mdx +6 -2
- package/src/components/NotFoundPage/NotFoundPage.mdx +6 -4
- package/src/components/NotificationBar/Accessibilite.mdx +6 -2
- package/src/components/NotificationBar/NotificationBar.mdx +5 -1
- package/src/components/NotificationBar/NotificationBar.stories.ts +128 -2
- package/src/components/NotificationBar/NotificationBar.vue +16 -1
- package/src/components/NotificationBar/Usages.mdx +5 -3
- package/src/components/NotificationBar/tests/NotificationBar.spec.ts +65 -0
- package/src/components/PageContainer/Accessibilite.mdx +6 -2
- package/src/components/PageContainer/PageContainer.mdx +5 -3
- package/src/components/PaginatedTable/Accessibilite.mdx +6 -2
- package/src/components/PaginatedTable/PaginatedTable.mdx +5 -3
- package/src/components/PasswordField/Accessibilite.mdx +6 -2
- package/src/components/PasswordField/PasswordField.mdx +5 -3
- package/src/components/PeriodField/Accessibilite.mdx +6 -2
- package/src/components/PeriodField/PeriodField.mdx +5 -3
- package/src/components/PhoneField/Accessibilite.mdx +6 -2
- package/src/components/PhoneField/PhoneField.mdx +5 -3
- package/src/components/PhoneField/PhoneField.stories.ts +17 -218
- package/src/components/PhoneField/PhoneField.vue +17 -11
- package/src/components/PhoneField/Usages.mdx +5 -3
- package/src/components/PhoneField/tests/PhoneField.spec.ts +51 -15
- package/src/components/RangeField/Accessibilite.mdx +6 -2
- package/src/components/RangeField/RangeField.mdx +5 -7
- package/src/components/RatingPicker/Accessibilite.mdx +6 -2
- package/src/components/RatingPicker/RatingPicker.mdx +5 -4
- package/src/components/SearchListField/Accessibilite.mdx +6 -2
- package/src/components/SearchListField/SearchListField.mdx +7 -5
- package/src/components/SkipLink/Accessibilite.mdx +6 -2
- package/src/components/SkipLink/SkipLink.mdx +5 -3
- package/src/components/SkipLink/Usages.mdx +5 -3
- package/src/components/SocialMediaLinks/Accessibilite.mdx +6 -2
- package/src/components/SocialMediaLinks/SocialMediaLinks.mdx +5 -3
- package/src/components/SubHeader/Accessibilite.mdx +6 -2
- package/src/components/SubHeader/SubHeader.mdx +5 -3
- package/src/components/SyAlert/Accessibilite.mdx +6 -2
- package/src/components/SyAlert/SyAlert.mdx +7 -4
- package/src/components/SyAlert/Usages.mdx +5 -3
- package/src/components/SyTextArea/SyTextArea.mdx +5 -3
- package/src/components/TableToolbar/Accessibilite.mdx +6 -2
- package/src/components/TableToolbar/TableToolbar.mdx +6 -3
- package/src/components/Tables/SyServerTable/SyServerTable.mdx +5 -3
- package/src/components/Tables/SyServerTable/SyServerTable.stories.ts +4 -0
- package/src/components/Tables/SyServerTable/SyServerTable.vue +36 -74
- package/src/components/Tables/SyServerTable/tests/SyServerTable.spec.ts +46 -7
- package/src/components/Tables/SyTable/SyTable.mdx +5 -3
- package/src/components/Tables/SyTable/SyTable.stories.ts +5 -1
- package/src/components/Tables/SyTable/SyTable.vue +38 -60
- package/src/components/Tables/SyTable/tests/SyTable.spec.ts +9 -7
- package/src/components/Tables/common/filters/tests/SelectFilter.spec.ts +6 -1
- package/src/components/Tables/common/tableProps.ts +53 -0
- package/src/components/Tables/common/tableStyles.scss +4 -0
- package/src/components/Tables/common/tests/tableUtils.spec.ts +4 -151
- package/src/components/Tables/common/types.ts +12 -2
- package/src/components/Tables/common/useStoredOptions.ts +36 -0
- package/src/components/Tables/common/useTableHeaders.ts +10 -7
- package/src/components/Tables/common/useTableItems.ts +0 -20
- package/src/components/ToolbarContainer/ToolbarContainer.mdx +1 -0
- package/src/components/UploadWorkflow/Accessibilite.mdx +6 -2
- package/src/components/UploadWorkflow/UploadWorkflow.mdx +5 -7
- package/src/components/UserMenuBtn/Accessibilite.mdx +6 -2
- package/src/components/UserMenuBtn/UserMenuBtn.mdx +5 -3
- package/src/components/index.ts +4 -0
- package/src/services/NotificationService.ts +9 -0
- package/src/stories/Accessibilite/Aculturation/SensibilisationAccessibilite.mdx +2 -65
- package/src/stories/Accessibilite/Audit/RGAA.mdx +2 -20
- package/src/stories/Accessibilite/AuditDesignSystem.mdx +4 -47
- package/src/stories/Accessibilite/Avancement/Avancement.mdx +5 -68
- package/src/stories/Accessibilite/Avancement/Avancement.stories.ts +267 -198
- package/src/stories/Accessibilite/Introduction.mdx +2 -20
- package/src/stories/Accessibilite/KitDePreAudit/Echantillonnage.mdx +4 -21
- package/src/stories/Accessibilite/KitDePreAudit/Introduction.mdx +3 -20
- package/src/stories/Accessibilite/KitDePreAudit/Outils/Introduction.mdx +5 -50
- package/src/stories/Accessibilite/KitDePreAudit/Outils/LecteursDEcran.mdx +3 -46
- package/src/stories/Accessibilite/KitDePreAudit/Outils/Tanaguru/FauxPositifs.mdx +3 -39
- package/src/stories/Accessibilite/KitDePreAudit/Outils/Tanaguru/Utilisation.mdx +4 -54
- package/src/stories/Accessibilite/KitDePreAudit/Preaudit.mdx +4 -51
- package/src/stories/Accessibilite/Vuetify/Vuetify.mdx +3 -11
- package/src/stories/Accessibilite/Vuetify/Vuetify.stories.ts +2 -2
- package/src/stories/Accessibilite/Vuetify/VuetifyItems.ts +6 -3
- package/src/stories/Components/Components.stories.ts +1 -1
- package/src/stories/Demarrer/CreerUneIssue.mdx +4 -1
- package/src/stories/Demarrer/PolitiqueDeConfidentialite.mdx +0 -2
- package/src/stories/Demarrer/PolitiqueDeConfidentialite.stories.ts +3 -0
- package/src/stories/Demarrer/Releases.mdx +0 -2
- package/src/stories/Demarrer/Releases.stories.ts +3 -0
- package/src/stories/DesignTokens/Arrondis.mdx +7 -1
- package/src/stories/DesignTokens/Colors.mdx +7 -1
- package/src/stories/DesignTokens/Conteneurs.mdx +6 -1
- package/src/stories/DesignTokens/Elevations.mdx +7 -1
- package/src/stories/DesignTokens/Espacements.mdx +7 -1
- package/src/stories/DesignTokens/Introduction.mdx +5 -3
- package/src/stories/DesignTokens/StylesTypographiques.mdx +6 -1
- package/src/stories/DesignTokens/Typographie.mdx +5 -1
- package/src/stories/Directives/SvgDirective.mdx +3 -22
- package/src/stories/EcoConception/EcoGuideComponent.vue +569 -0
- package/src/stories/EcoConception/Introduction.mdx +190 -13
- package/src/stories/EcoConception/Referentiel.mdx +13 -0
- package/src/stories/EcoConception/datas/back_rules.json +184 -0
- package/src/stories/EcoConception/datas/ux_ui_rules.json +1073 -0
- package/src/stories/EcoConception/ecoconception.stories.ts +30 -0
- package/src/stories/GuideDuDev/ClassesUtilitaires/DataUtilities.mdx +7 -3
- package/src/stories/GuideDuDev/ClassesUtilitaires/DomBrowserUtilities.mdx +9 -1
- package/src/stories/GuideDuDev/ClassesUtilitaires/FormattingUtilities.mdx +7 -3
- package/src/stories/GuideDuDev/ClassesUtilitaires/StorageUtilities.mdx +5 -1
- package/src/stories/GuideDuDev/ClassesUtilitaires/ValidationRules.mdx +7 -3
- package/src/stories/GuideDuDev/ClassesUtilitaires/ValidationUtilities.mdx +7 -3
- package/src/stories/GuideDuDev/ClassesUtilitaires/index.mdx +5 -2
- package/src/stories/GuideDuDev/FormValidationGuide.mdx +7 -3
- package/src/stories/GuideDuDev/LesBreackingChanges.mdx +6 -2
- package/src/stories/GuideDuDev/MigrationDepuisBridge.mdx +7 -2
- package/src/stories/GuideDuDev/MigrationDepuisVue2.mdx +7 -2
- package/src/stories/GuideDuDev/PortailAgent.mdx +6 -1
- package/src/stories/GuideDuDev/Theme.mdx +8 -2
- package/src/stories/GuideDuDev/UtiliserLesRules.mdx +7 -3
- package/src/stories/GuideDuDev/moduleDeNotification.mdx +8 -3
- package/src/stories/GuideDuDev/vuetifyOptions.mdx +5 -1
- package/src/stories/Templates/Templates.stories.ts +1 -1
- package/src/stories/styles/shared.css +16 -0
- package/src/utils/rules/Rules.mdx +26 -3
- package/src/utils/rules/doMatchPattern/DoMachPattern.mdx +27 -4
- package/src/utils/rules/isDateValid/IsDateValid.mdx +27 -4
- package/src/utils/rules/isExactLength/IsExactLenght.mdx +27 -4
- package/src/utils/rules/isHolidayDay/IsHolidayDay.mdx +27 -4
- package/src/utils/rules/isMaxLength/IsMaxLength.mdx +27 -4
- package/src/utils/rules/isMinLength/IsMinLength.mdx +27 -4
- package/src/utils/rules/isNotAfterDate/IsNotAfterDate.mdx +27 -4
- package/src/utils/rules/isNotAfterToday/IsNotAfterToday.mdx +27 -4
- package/src/utils/rules/isNotBeforeDate/IsNotBeforeDate.mdx +27 -4
- package/src/utils/rules/isNotBeforeToday/IsNotBeforeToday.mdx +27 -3
- package/src/utils/rules/isRequired/IsRequired.mdx +27 -4
- package/src/utils/rules/isValidEmail/IsValidEmail.mdx +27 -4
- package/dist/components/Tables/common/tableStorageUtils.d.ts +0 -69
- package/dist/components/Tables/common/tableUtils.d.ts +0 -79
- package/dist/main-C66C1BkG.js +0 -29878
- package/dist/stories/EcoConception/ecoDesignItems.d.ts +0 -4
- package/src/components/DownloadBtn/tests/__snapshots__/DownloadBtn.spec.ts.snap +0 -92
- package/src/components/Tables/common/tableStorageUtils.ts +0 -127
- package/src/components/Tables/common/tableUtils.ts +0 -102
- package/src/stories/EcoConception/ecoDesignItems.ts +0 -55
- package/src/stories/EcoConception/econception.stories.ts +0 -30
|
@@ -56,3 +56,95 @@ export const Default: Story = {
|
|
|
56
56
|
</AmeliproDisclosure>`,
|
|
57
57
|
}),
|
|
58
58
|
}
|
|
59
|
+
|
|
60
|
+
// --- Panneau ouvert par défaut ---
|
|
61
|
+
export const OpenByDefault: Story = {
|
|
62
|
+
args: {
|
|
63
|
+
default: '[Slot: default]',
|
|
64
|
+
title: 'Ouvert par défaut',
|
|
65
|
+
uniqueId: 'amelipro-disclosure-open',
|
|
66
|
+
isOpen: true,
|
|
67
|
+
},
|
|
68
|
+
parameters: {
|
|
69
|
+
sourceCode: [
|
|
70
|
+
{
|
|
71
|
+
name: 'Template',
|
|
72
|
+
code: `<template>
|
|
73
|
+
<p>Le panneau dépliant est ouvert au chargement grâce à la prop <code>isOpen</code>.</p>
|
|
74
|
+
<AmeliproDisclosure
|
|
75
|
+
title="Ouvert par défaut"
|
|
76
|
+
unique-id="amelipro-disclosure-open"
|
|
77
|
+
:is-open="true"
|
|
78
|
+
>
|
|
79
|
+
[Slot: default]
|
|
80
|
+
</AmeliproDisclosure>
|
|
81
|
+
</template>`,
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'Script',
|
|
85
|
+
code: `<script setup lang="ts">
|
|
86
|
+
import { AmeliproDisclosure } from '@cnamts/synapse'
|
|
87
|
+
</script>`,
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
},
|
|
91
|
+
render: args => ({
|
|
92
|
+
components: { AmeliproDisclosure },
|
|
93
|
+
setup() { return { args } },
|
|
94
|
+
template: `
|
|
95
|
+
<p class="mb-2">Le panneau dépliant est ouvert au chargement grâce à la prop <code>isOpen</code>.</p>
|
|
96
|
+
<AmeliproDisclosure v-bind="args">
|
|
97
|
+
{{ args.default }}
|
|
98
|
+
</AmeliproDisclosure>
|
|
99
|
+
`,
|
|
100
|
+
}),
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// --- Contenu personnalisé complexe ---
|
|
104
|
+
export const CustomContent: Story = {
|
|
105
|
+
args: {
|
|
106
|
+
title: 'Contenu personnalisé',
|
|
107
|
+
uniqueId: 'amelipro-disclosure-custom',
|
|
108
|
+
isOpen: false,
|
|
109
|
+
},
|
|
110
|
+
parameters: {
|
|
111
|
+
sourceCode: [
|
|
112
|
+
{
|
|
113
|
+
name: 'Template',
|
|
114
|
+
code: `<template>
|
|
115
|
+
<p>Le slot <code>default</code> permet d’ajouter un contenu totalement personnalisé dans le panneau.</p>
|
|
116
|
+
<AmeliproDisclosure
|
|
117
|
+
title="Contenu personnalisé"
|
|
118
|
+
unique-id="amelipro-disclosure-custom"
|
|
119
|
+
>
|
|
120
|
+
<ul>
|
|
121
|
+
<li>Premier élément</li>
|
|
122
|
+
<li>Deuxième élément</li>
|
|
123
|
+
<li>Troisième élément</li>
|
|
124
|
+
</ul>
|
|
125
|
+
</AmeliproDisclosure>
|
|
126
|
+
</template>`,
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: 'Script',
|
|
130
|
+
code: `<script setup lang="ts">
|
|
131
|
+
import { AmeliproDisclosure } from '@cnamts/synapse'
|
|
132
|
+
</script>`,
|
|
133
|
+
},
|
|
134
|
+
],
|
|
135
|
+
},
|
|
136
|
+
render: args => ({
|
|
137
|
+
components: { AmeliproDisclosure },
|
|
138
|
+
setup() { return { args } },
|
|
139
|
+
template: `
|
|
140
|
+
<p class="mb-2">Le slot <code>default</code> permet d’ajouter un contenu totalement personnalisé dans le panneau.</p>
|
|
141
|
+
<AmeliproDisclosure v-bind="args">
|
|
142
|
+
<ul>
|
|
143
|
+
<li>Premier élément</li>
|
|
144
|
+
<li>Deuxième élément</li>
|
|
145
|
+
<li>Troisième élément</li>
|
|
146
|
+
</ul>
|
|
147
|
+
</AmeliproDisclosure>
|
|
148
|
+
`,
|
|
149
|
+
}),
|
|
150
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Controls, Canvas, Meta } from '@storybook/blocks';
|
|
2
|
+
|
|
3
|
+
import * as AmeliproErrorTemplateStories from './AmeliproErrorTemplate.stories';
|
|
4
|
+
|
|
5
|
+
<Meta of={AmeliproErrorTemplateStories} />
|
|
6
|
+
|
|
7
|
+
# AmeliproErrorTemplate
|
|
8
|
+
|
|
9
|
+
L’élément `AmeliproErrorTemplate` est utilisé pour afficher les différents messages d’alertes ou d’information.
|
|
10
|
+
|
|
11
|
+
Malgré tous vos efforts, certaines erreurs seront inévitables. Pour entretenir une bonne expérience utilisateur vous devez afficher les bons messages au bon moment en fonction du type de problème. Si vous ne trouvez pas de message adapté parmi les messages de vie listés ci-dessous, veuillez prendre celui qui indique “erreur technique”.
|
|
12
|
+
|
|
13
|
+
Pour les messages contenant un retour à la page d’accueil ou de connexion, il est possible de prévoir une redirection automatique au bout d’un temps défini. Dans ce cas précisez dans le message le texte suivant « Vous allez être redirigé vers (_"la page d’accueil"_ ou _"la page de connexion"_). Si la redirection ne se fait pas automatiquement, veuillez cliquer sur le lien suivant (_"Page d’accueil"_ ou _"Se reconnecter"_) ».
|
|
14
|
+
|
|
15
|
+
## Règles d’usage
|
|
16
|
+
|
|
17
|
+
Ce code est renvoyé par le serveur pour indiquer à l’utilisateur qu’aucune ressource (généralement une page web) n’a été trouvée à l’adresse demandée. L’entête de la page devrait être dynamique car même si dans la majorité des cas, l’utilisateur est connecté, l’affichage devrait être possible également dans le cas où il n’est pas connecté.
|
|
18
|
+
|
|
19
|
+
<Canvas of={AmeliproErrorTemplateStories.Default} />
|
|
20
|
+
|
|
21
|
+
## API
|
|
22
|
+
|
|
23
|
+
<Controls of={AmeliproErrorTemplateStories.Default} />
|
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
+
import AmeliproErrorTemplate from './AmeliproErrorTemplate.vue'
|
|
3
|
+
|
|
4
|
+
const meta = {
|
|
5
|
+
argTypes: {
|
|
6
|
+
btnHref: { description: 'Href du bouton situé sous le texte principal si le slot "button est inutilisé"' },
|
|
7
|
+
btnTo: { description: 'Route du bouton situé sous le texte principal si le slot "button est inutilisé"' },
|
|
8
|
+
button: { description: 'Bouton sous le texte principal' },
|
|
9
|
+
click: { description: 'Événement émis au clic sur le bouton', type: 'void' },
|
|
10
|
+
contentTitle: { description: 'Titre du contenu' },
|
|
11
|
+
customBtnText: { description: 'Texte du bouton' },
|
|
12
|
+
customContentText: { description: 'Texte principal' },
|
|
13
|
+
customContentTitle: { description: 'Titre sous l’image ' },
|
|
14
|
+
customImgUrl: { description: 'Lien de l’image' },
|
|
15
|
+
customTitleText: { description: 'Titre de la card' },
|
|
16
|
+
default: { description: 'Texte principal' },
|
|
17
|
+
errorType: {
|
|
18
|
+
control: 'select',
|
|
19
|
+
description: 'Active les Modes par défaut',
|
|
20
|
+
options: [
|
|
21
|
+
'disconnect',
|
|
22
|
+
'obsolete',
|
|
23
|
+
'inactive',
|
|
24
|
+
'technical',
|
|
25
|
+
'maintenance',
|
|
26
|
+
'error401',
|
|
27
|
+
'error403',
|
|
28
|
+
'error404',
|
|
29
|
+
'error500',
|
|
30
|
+
'error503',
|
|
31
|
+
],
|
|
32
|
+
table: { type: { summary: 'string' } },
|
|
33
|
+
},
|
|
34
|
+
image: { description: 'Image de la fenetre' },
|
|
35
|
+
imgMinWidth: { description: 'Taille de minimal de l’image' },
|
|
36
|
+
imgWidth: { description: 'Taille de l’image' },
|
|
37
|
+
noButton: { description: 'Booléen permettant d’activer supprimer le bouton en bas du message' },
|
|
38
|
+
title: { description: 'Titre de la fenêtre' },
|
|
39
|
+
uniqueId: { description: 'Identifiant unique du composant' },
|
|
40
|
+
},
|
|
41
|
+
component: AmeliproErrorTemplate,
|
|
42
|
+
title: 'Composants/Amelipro/Mise en page/AmeliproErrorTemplate',
|
|
43
|
+
} as Meta<typeof AmeliproErrorTemplate>
|
|
44
|
+
export default meta
|
|
45
|
+
|
|
46
|
+
type Story = StoryObj<typeof AmeliproErrorTemplate>
|
|
47
|
+
|
|
48
|
+
export const Default: Story = {
|
|
49
|
+
args: {
|
|
50
|
+
errorType: 'technical',
|
|
51
|
+
imgMinWidth: '200',
|
|
52
|
+
imgWidth: '200',
|
|
53
|
+
noButton: false,
|
|
54
|
+
},
|
|
55
|
+
parameters: {
|
|
56
|
+
sourceCode: [
|
|
57
|
+
{
|
|
58
|
+
name: 'Template',
|
|
59
|
+
code: `<template>
|
|
60
|
+
<AmeliproErrorTemplate
|
|
61
|
+
error-type="technical"
|
|
62
|
+
img-min-width="200"
|
|
63
|
+
img-width="200"
|
|
64
|
+
:no-button="false"
|
|
65
|
+
/>
|
|
66
|
+
</template>
|
|
67
|
+
`,
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
render: args => ({
|
|
72
|
+
components: { AmeliproErrorTemplate },
|
|
73
|
+
setup() {
|
|
74
|
+
return { args }
|
|
75
|
+
},
|
|
76
|
+
template: `<AmeliproErrorTemplate
|
|
77
|
+
v-bind="args"
|
|
78
|
+
/>`,
|
|
79
|
+
}),
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export const Disconnect: Story = {
|
|
83
|
+
args: {
|
|
84
|
+
errorType: 'disconnect',
|
|
85
|
+
imgMinWidth: '200',
|
|
86
|
+
imgWidth: '200',
|
|
87
|
+
noButton: false,
|
|
88
|
+
},
|
|
89
|
+
parameters: {
|
|
90
|
+
sourceCode: [
|
|
91
|
+
{
|
|
92
|
+
name: 'Template',
|
|
93
|
+
code: `<template>
|
|
94
|
+
<AmeliproErrorTemplate
|
|
95
|
+
error-type="disconnect"
|
|
96
|
+
img-min-width="200"
|
|
97
|
+
img-width="200"
|
|
98
|
+
:no-button="false"
|
|
99
|
+
/>
|
|
100
|
+
</template>
|
|
101
|
+
`,
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
},
|
|
105
|
+
render: args => ({
|
|
106
|
+
components: { AmeliproErrorTemplate },
|
|
107
|
+
setup() {
|
|
108
|
+
return { args }
|
|
109
|
+
},
|
|
110
|
+
template: `<AmeliproErrorTemplate
|
|
111
|
+
v-bind="args"
|
|
112
|
+
/>`,
|
|
113
|
+
}),
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export const Obsolete: Story = {
|
|
117
|
+
args: {
|
|
118
|
+
errorType: 'obsolete',
|
|
119
|
+
imgMinWidth: '200',
|
|
120
|
+
imgWidth: '200',
|
|
121
|
+
noButton: false,
|
|
122
|
+
},
|
|
123
|
+
parameters: {
|
|
124
|
+
sourceCode: [
|
|
125
|
+
{
|
|
126
|
+
name: 'Template',
|
|
127
|
+
code: `<template>
|
|
128
|
+
<AmeliproErrorTemplate
|
|
129
|
+
error-type="obsolete"
|
|
130
|
+
img-min-width="200"
|
|
131
|
+
img-width="200"
|
|
132
|
+
:no-button="false"
|
|
133
|
+
/>
|
|
134
|
+
</template>
|
|
135
|
+
`,
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
},
|
|
139
|
+
render: args => ({
|
|
140
|
+
components: { AmeliproErrorTemplate },
|
|
141
|
+
setup() {
|
|
142
|
+
return { args }
|
|
143
|
+
},
|
|
144
|
+
template: `<AmeliproErrorTemplate
|
|
145
|
+
v-bind="args"
|
|
146
|
+
/>`,
|
|
147
|
+
}),
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export const Inactive: Story = {
|
|
151
|
+
args: {
|
|
152
|
+
errorType: 'inactive',
|
|
153
|
+
imgMinWidth: '200',
|
|
154
|
+
imgWidth: '200',
|
|
155
|
+
noButton: false,
|
|
156
|
+
},
|
|
157
|
+
parameters: {
|
|
158
|
+
sourceCode: [
|
|
159
|
+
{
|
|
160
|
+
name: 'Template',
|
|
161
|
+
code: `<template>
|
|
162
|
+
<AmeliproErrorTemplate
|
|
163
|
+
error-type="inactive"
|
|
164
|
+
img-min-width="200"
|
|
165
|
+
img-width="200"
|
|
166
|
+
:no-button="false"
|
|
167
|
+
/>
|
|
168
|
+
</template>
|
|
169
|
+
`,
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
},
|
|
173
|
+
render: args => ({
|
|
174
|
+
components: { AmeliproErrorTemplate },
|
|
175
|
+
setup() {
|
|
176
|
+
return { args }
|
|
177
|
+
},
|
|
178
|
+
template: `<AmeliproErrorTemplate
|
|
179
|
+
v-bind="args"
|
|
180
|
+
/>`,
|
|
181
|
+
}),
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export const Maintenance: Story = {
|
|
185
|
+
args: {
|
|
186
|
+
errorType: 'maintenance',
|
|
187
|
+
imgMinWidth: '200',
|
|
188
|
+
imgWidth: '200',
|
|
189
|
+
noButton: false,
|
|
190
|
+
},
|
|
191
|
+
parameters: {
|
|
192
|
+
sourceCode: [
|
|
193
|
+
{
|
|
194
|
+
name: 'Template',
|
|
195
|
+
code: `<template>
|
|
196
|
+
<AmeliproErrorTemplate
|
|
197
|
+
error-type="maintenance"
|
|
198
|
+
img-min-width="200"
|
|
199
|
+
img-width="200"
|
|
200
|
+
:no-button="false"
|
|
201
|
+
/>
|
|
202
|
+
</template>
|
|
203
|
+
`,
|
|
204
|
+
},
|
|
205
|
+
],
|
|
206
|
+
},
|
|
207
|
+
render: args => ({
|
|
208
|
+
components: { AmeliproErrorTemplate },
|
|
209
|
+
setup() {
|
|
210
|
+
return { args }
|
|
211
|
+
},
|
|
212
|
+
template: `<AmeliproErrorTemplate
|
|
213
|
+
v-bind="args"
|
|
214
|
+
/>`,
|
|
215
|
+
}),
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export const Error401: Story = {
|
|
219
|
+
args: {
|
|
220
|
+
errorType: 'error401',
|
|
221
|
+
imgMinWidth: '200',
|
|
222
|
+
imgWidth: '200',
|
|
223
|
+
noButton: false,
|
|
224
|
+
},
|
|
225
|
+
parameters: {
|
|
226
|
+
sourceCode: [
|
|
227
|
+
{
|
|
228
|
+
name: 'Template',
|
|
229
|
+
code: `<template>
|
|
230
|
+
<AmeliproErrorTemplate
|
|
231
|
+
error-type="error401"
|
|
232
|
+
img-min-width="200"
|
|
233
|
+
img-width="200"
|
|
234
|
+
:no-button="false"
|
|
235
|
+
/>
|
|
236
|
+
</template>
|
|
237
|
+
`,
|
|
238
|
+
},
|
|
239
|
+
],
|
|
240
|
+
},
|
|
241
|
+
render: args => ({
|
|
242
|
+
components: { AmeliproErrorTemplate },
|
|
243
|
+
setup() {
|
|
244
|
+
return { args }
|
|
245
|
+
},
|
|
246
|
+
template: `<AmeliproErrorTemplate
|
|
247
|
+
v-bind="args"
|
|
248
|
+
/>`,
|
|
249
|
+
}),
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export const Error403: Story = {
|
|
253
|
+
args: {
|
|
254
|
+
errorType: 'error403',
|
|
255
|
+
imgMinWidth: '200',
|
|
256
|
+
imgWidth: '200',
|
|
257
|
+
noButton: false,
|
|
258
|
+
},
|
|
259
|
+
parameters: {
|
|
260
|
+
sourceCode: [
|
|
261
|
+
{
|
|
262
|
+
name: 'Template',
|
|
263
|
+
code: `<template>
|
|
264
|
+
<AmeliproErrorTemplate
|
|
265
|
+
error-type="error403"
|
|
266
|
+
img-min-width="200"
|
|
267
|
+
img-width="200"
|
|
268
|
+
:no-button="false"
|
|
269
|
+
/>
|
|
270
|
+
</template>
|
|
271
|
+
`,
|
|
272
|
+
},
|
|
273
|
+
],
|
|
274
|
+
},
|
|
275
|
+
render: args => ({
|
|
276
|
+
components: { AmeliproErrorTemplate },
|
|
277
|
+
setup() {
|
|
278
|
+
return { args }
|
|
279
|
+
},
|
|
280
|
+
template: `<AmeliproErrorTemplate
|
|
281
|
+
v-bind="args"
|
|
282
|
+
/>`,
|
|
283
|
+
}),
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export const Error404: Story = {
|
|
287
|
+
args: {
|
|
288
|
+
errorType: 'error404',
|
|
289
|
+
imgMinWidth: '200',
|
|
290
|
+
imgWidth: '200',
|
|
291
|
+
noButton: false,
|
|
292
|
+
},
|
|
293
|
+
parameters: {
|
|
294
|
+
sourceCode: [
|
|
295
|
+
{
|
|
296
|
+
name: 'Template',
|
|
297
|
+
code: `<template>
|
|
298
|
+
<AmeliproErrorTemplate
|
|
299
|
+
error-type="error404"
|
|
300
|
+
img-min-width="200"
|
|
301
|
+
img-width="200"
|
|
302
|
+
:no-button="false"
|
|
303
|
+
/>
|
|
304
|
+
</template>
|
|
305
|
+
`,
|
|
306
|
+
},
|
|
307
|
+
],
|
|
308
|
+
},
|
|
309
|
+
render: args => ({
|
|
310
|
+
components: { AmeliproErrorTemplate },
|
|
311
|
+
setup() {
|
|
312
|
+
return { args }
|
|
313
|
+
},
|
|
314
|
+
template: `<AmeliproErrorTemplate
|
|
315
|
+
v-bind="args"
|
|
316
|
+
/>`,
|
|
317
|
+
}),
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
export const Error500: Story = {
|
|
321
|
+
args: {
|
|
322
|
+
errorType: 'error500',
|
|
323
|
+
imgMinWidth: '200',
|
|
324
|
+
imgWidth: '200',
|
|
325
|
+
noButton: false,
|
|
326
|
+
},
|
|
327
|
+
parameters: {
|
|
328
|
+
sourceCode: [
|
|
329
|
+
{
|
|
330
|
+
name: 'Template',
|
|
331
|
+
code: `<template>
|
|
332
|
+
<AmeliproErrorTemplate
|
|
333
|
+
error-type="error500"
|
|
334
|
+
img-min-width="200"
|
|
335
|
+
img-width="200"
|
|
336
|
+
:no-button="false"
|
|
337
|
+
/>
|
|
338
|
+
</template>
|
|
339
|
+
`,
|
|
340
|
+
},
|
|
341
|
+
],
|
|
342
|
+
},
|
|
343
|
+
render: args => ({
|
|
344
|
+
components: { AmeliproErrorTemplate },
|
|
345
|
+
setup() {
|
|
346
|
+
return { args }
|
|
347
|
+
},
|
|
348
|
+
template: `<AmeliproErrorTemplate
|
|
349
|
+
v-bind="args"
|
|
350
|
+
/>`,
|
|
351
|
+
}),
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
export const Error503: Story = {
|
|
355
|
+
args: {
|
|
356
|
+
errorType: 'error503',
|
|
357
|
+
imgMinWidth: '200',
|
|
358
|
+
imgWidth: '200',
|
|
359
|
+
noButton: false,
|
|
360
|
+
},
|
|
361
|
+
parameters: {
|
|
362
|
+
sourceCode: [
|
|
363
|
+
{
|
|
364
|
+
name: 'Template',
|
|
365
|
+
code: `<template>
|
|
366
|
+
<AmeliproErrorTemplate
|
|
367
|
+
error-type="error503"
|
|
368
|
+
img-min-width="200"
|
|
369
|
+
img-width="200"
|
|
370
|
+
:no-button="false"
|
|
371
|
+
/>
|
|
372
|
+
</template>
|
|
373
|
+
`,
|
|
374
|
+
},
|
|
375
|
+
],
|
|
376
|
+
},
|
|
377
|
+
render: args => ({
|
|
378
|
+
components: { AmeliproErrorTemplate },
|
|
379
|
+
setup() {
|
|
380
|
+
return { args }
|
|
381
|
+
},
|
|
382
|
+
template: `<AmeliproErrorTemplate
|
|
383
|
+
v-bind="args"
|
|
384
|
+
/>`,
|
|
385
|
+
}),
|
|
386
|
+
}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { type PropType, computed, ref } from 'vue'
|
|
3
|
+
import AmeliproBtn from '../AmeliproBtn/AmeliproBtn.vue'
|
|
4
|
+
import AmeliproCard from '../AmeliproCard/AmeliproCard.vue'
|
|
5
|
+
import { ErrorTemplateContent } from './errorTemplateTypes'
|
|
6
|
+
import type { RouteLocationRaw } from 'vue-router'
|
|
7
|
+
import { mdiChevronRight } from '@mdi/js'
|
|
8
|
+
|
|
9
|
+
const props = defineProps({
|
|
10
|
+
btnHref: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: undefined,
|
|
13
|
+
},
|
|
14
|
+
btnTo: {
|
|
15
|
+
type: [Array, Object, String] as PropType<RouteLocationRaw>,
|
|
16
|
+
default: undefined,
|
|
17
|
+
},
|
|
18
|
+
customBtnText: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: undefined,
|
|
21
|
+
},
|
|
22
|
+
customContentText: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: undefined,
|
|
25
|
+
},
|
|
26
|
+
customContentTitle: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: undefined,
|
|
29
|
+
},
|
|
30
|
+
customImgUrl: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: undefined,
|
|
33
|
+
},
|
|
34
|
+
customTitleText: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: undefined,
|
|
37
|
+
},
|
|
38
|
+
errorType: {
|
|
39
|
+
type: String as PropType<keyof typeof ErrorTemplateContent>,
|
|
40
|
+
required: true,
|
|
41
|
+
},
|
|
42
|
+
imgMinWidth: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: '200',
|
|
45
|
+
},
|
|
46
|
+
imgWidth: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: '200',
|
|
49
|
+
},
|
|
50
|
+
noButton: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: false,
|
|
53
|
+
},
|
|
54
|
+
uniqueId: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: undefined,
|
|
57
|
+
},
|
|
58
|
+
})
|
|
59
|
+
|
|
60
|
+
const titleText = ref<string | undefined>('')
|
|
61
|
+
const btnText = ref<string | undefined>('')
|
|
62
|
+
const contentText = ref('')
|
|
63
|
+
const contentTitle = ref('')
|
|
64
|
+
const imgUrlDefault = ref('')
|
|
65
|
+
|
|
66
|
+
const imgUrl = computed<string>(() => (props.customImgUrl === undefined ? imgUrlDefault.value : props.customImgUrl))
|
|
67
|
+
|
|
68
|
+
const loadGlobalData = (templateName: string): void => {
|
|
69
|
+
imgUrlDefault.value = ErrorTemplateContent[templateName]?.imgUrl
|
|
70
|
+
contentText.value = ErrorTemplateContent[templateName]?.contentText
|
|
71
|
+
contentTitle.value = ErrorTemplateContent[templateName]?.contentTitle
|
|
72
|
+
titleText.value = ErrorTemplateContent[templateName]?.titleText
|
|
73
|
+
btnText.value = ErrorTemplateContent[templateName]?.btnText
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const emit = defineEmits(['click'])
|
|
77
|
+
const emitClickEvent = (): void => {
|
|
78
|
+
emit('click')
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
loadGlobalData(props.errorType)
|
|
82
|
+
</script>
|
|
83
|
+
|
|
84
|
+
<template>
|
|
85
|
+
<div
|
|
86
|
+
:id="uniqueId ? `${uniqueId}-container` : undefined"
|
|
87
|
+
class="amelipro-error-template"
|
|
88
|
+
>
|
|
89
|
+
<AmeliproCard
|
|
90
|
+
classes="amelipro-error-template__card"
|
|
91
|
+
:divider="false"
|
|
92
|
+
:unique-id="uniqueId ? `${uniqueId}-card` : undefined"
|
|
93
|
+
>
|
|
94
|
+
<template #headerLeft>
|
|
95
|
+
<slot name="title">
|
|
96
|
+
<h1
|
|
97
|
+
:id="uniqueId ? `${uniqueId}-title` : undefined"
|
|
98
|
+
class="text-uppercase font-weight-semibold mb-4 amelipro-error-template__title"
|
|
99
|
+
>
|
|
100
|
+
{{ customTitleText || titleText }}
|
|
101
|
+
</h1>
|
|
102
|
+
</slot>
|
|
103
|
+
</template>
|
|
104
|
+
<template #default>
|
|
105
|
+
<div
|
|
106
|
+
:id="uniqueId ? `${uniqueId}-content` : undefined"
|
|
107
|
+
class="d-flex flex-column align-center amelipro-error-template__content"
|
|
108
|
+
>
|
|
109
|
+
<slot name="image">
|
|
110
|
+
<img
|
|
111
|
+
:id="uniqueId ? `${uniqueId}-img` : undefined"
|
|
112
|
+
alt=""
|
|
113
|
+
class="mx-4 my-2 amelipro-error-template__img"
|
|
114
|
+
:max-width="imgWidth"
|
|
115
|
+
:min-width="imgMinWidth"
|
|
116
|
+
:src="imgUrl"
|
|
117
|
+
:width="imgWidth"
|
|
118
|
+
>
|
|
119
|
+
</slot>
|
|
120
|
+
|
|
121
|
+
<slot name="contentTitle">
|
|
122
|
+
<h2
|
|
123
|
+
:id="uniqueId ? `${uniqueId}-content-title` : undefined"
|
|
124
|
+
class="ap-parme--text text--darken-1 font-weight-semibold amelipro-error-template-content-title"
|
|
125
|
+
>
|
|
126
|
+
{{ customContentTitle || contentTitle }}
|
|
127
|
+
</h2>
|
|
128
|
+
</slot>
|
|
129
|
+
|
|
130
|
+
<slot name="default">
|
|
131
|
+
<div
|
|
132
|
+
:id="uniqueId ? `${uniqueId}-content-text` : undefined"
|
|
133
|
+
class="justify-center w-70 amelipro-error-template__content__text"
|
|
134
|
+
>
|
|
135
|
+
<p class="mt-6 mb-0 text-center">
|
|
136
|
+
{{ customContentText || contentText }}
|
|
137
|
+
</p>
|
|
138
|
+
</div>
|
|
139
|
+
</slot>
|
|
140
|
+
<slot name="button">
|
|
141
|
+
<AmeliproBtn
|
|
142
|
+
v-if="!noButton && (customBtnText || btnText)"
|
|
143
|
+
class="mt-2 text-none amelipro-error-template-content-btn"
|
|
144
|
+
hover-underline
|
|
145
|
+
:href="btnHref"
|
|
146
|
+
text
|
|
147
|
+
:to="btnTo"
|
|
148
|
+
:unique-id="uniqueId ? `${uniqueId}-content-btn` : undefined"
|
|
149
|
+
@click="emitClickEvent"
|
|
150
|
+
>
|
|
151
|
+
{{ customBtnText || btnText }}
|
|
152
|
+
|
|
153
|
+
<template #icon>
|
|
154
|
+
{{ mdiChevronRight }}
|
|
155
|
+
</template>
|
|
156
|
+
</AmeliproBtn>
|
|
157
|
+
</slot>
|
|
158
|
+
|
|
159
|
+
<img
|
|
160
|
+
v-if="errorType === 'obsolete'"
|
|
161
|
+
:id="uniqueId ? `${uniqueId}-obsolete-img` : undefined"
|
|
162
|
+
alt="logo des navigateurs recommandés : Edge, Chrome, Firefox et Safari"
|
|
163
|
+
class="mt-2 amelipro-error-template__content__img--obsolete"
|
|
164
|
+
src="../../../assets/amelipro/img/navigateurs.png"
|
|
165
|
+
>
|
|
166
|
+
</div>
|
|
167
|
+
</template>
|
|
168
|
+
</AmeliproCard>
|
|
169
|
+
</div>
|
|
170
|
+
</template>
|
|
171
|
+
|
|
172
|
+
<style lang="scss" scoped>
|
|
173
|
+
@use '@/assets/amelipro/apTokens';
|
|
174
|
+
|
|
175
|
+
.w-70 {
|
|
176
|
+
width: 70% !important;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.amelipro-error-template__title,
|
|
180
|
+
.amelipro-error-template-content-title {
|
|
181
|
+
font-size: apTokens.$font-size-md;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.amelipro-error-template-content-btn {
|
|
185
|
+
font-size: apTokens.$font-size-sm;
|
|
186
|
+
}
|
|
187
|
+
</style>
|