@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
|
@@ -12,8 +12,10 @@ vi.mock('@/services/NotificationService')
|
|
|
12
12
|
describe('NotificationBar.vue', () => {
|
|
13
13
|
interface NotificationServiceMock {
|
|
14
14
|
notificationQueue: Ref<Notification[]>
|
|
15
|
+
clearAllEvent: Ref<boolean>
|
|
15
16
|
addNotification: (notification: Notification) => void
|
|
16
17
|
removeNotification: (id: string) => void
|
|
18
|
+
clearQueue: () => void
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
let notificationServiceMock: NotificationServiceMock
|
|
@@ -21,8 +23,10 @@ describe('NotificationBar.vue', () => {
|
|
|
21
23
|
vi.useFakeTimers()
|
|
22
24
|
notificationServiceMock = {
|
|
23
25
|
notificationQueue: ref([]),
|
|
26
|
+
clearAllEvent: ref(false),
|
|
24
27
|
addNotification: vi.fn(),
|
|
25
28
|
removeNotification: vi.fn(),
|
|
29
|
+
clearQueue: vi.fn(),
|
|
26
30
|
};
|
|
27
31
|
// @ts-expect-error on vi.Mock
|
|
28
32
|
(useNotificationService as vi.Mock).mockReturnValue(notificationServiceMock)
|
|
@@ -33,6 +37,67 @@ describe('NotificationBar.vue', () => {
|
|
|
33
37
|
vi.useRealTimers()
|
|
34
38
|
})
|
|
35
39
|
|
|
40
|
+
it('should close notification when clearAllEvent is true', async () => {
|
|
41
|
+
// Setup a visible notification
|
|
42
|
+
const notification: Notification = {
|
|
43
|
+
id: '1',
|
|
44
|
+
message: 'Test message',
|
|
45
|
+
type: 'info',
|
|
46
|
+
timeout: -1,
|
|
47
|
+
icon: null,
|
|
48
|
+
}
|
|
49
|
+
const wrapper = mount(NotificationBar, {
|
|
50
|
+
global: {
|
|
51
|
+
plugins: [vuetify],
|
|
52
|
+
},
|
|
53
|
+
})
|
|
54
|
+
wrapper.vm.openNotification(notification)
|
|
55
|
+
await nextTick()
|
|
56
|
+
expect(wrapper.vm.isNotificationVisible).toBe(true)
|
|
57
|
+
|
|
58
|
+
// Simulate triggering clearAllEvent
|
|
59
|
+
notificationServiceMock.clearAllEvent.value = true
|
|
60
|
+
await nextTick()
|
|
61
|
+
|
|
62
|
+
// Check that notification was closed
|
|
63
|
+
expect(wrapper.vm.isNotificationVisible).toBe(false)
|
|
64
|
+
|
|
65
|
+
// Reset for test isolation
|
|
66
|
+
notificationServiceMock.clearAllEvent.value = false
|
|
67
|
+
})
|
|
68
|
+
|
|
69
|
+
it('should handle clearQueue functionality', () => {
|
|
70
|
+
// Setup clearQueue mock implementation
|
|
71
|
+
notificationServiceMock.clearQueue = vi.fn().mockImplementation(() => {
|
|
72
|
+
notificationServiceMock.clearAllEvent.value = true
|
|
73
|
+
setTimeout(() => {
|
|
74
|
+
notificationServiceMock.clearAllEvent.value = false
|
|
75
|
+
}, 100)
|
|
76
|
+
notificationServiceMock.notificationQueue.value = []
|
|
77
|
+
})
|
|
78
|
+
|
|
79
|
+
// Setup component
|
|
80
|
+
mount(NotificationBar, {
|
|
81
|
+
global: {
|
|
82
|
+
plugins: [vuetify],
|
|
83
|
+
},
|
|
84
|
+
})
|
|
85
|
+
|
|
86
|
+
// Call the clearQueue method
|
|
87
|
+
notificationServiceMock.clearQueue()
|
|
88
|
+
|
|
89
|
+
// Check that clearAllEvent was set to true
|
|
90
|
+
expect(notificationServiceMock.clearAllEvent.value).toBe(true)
|
|
91
|
+
|
|
92
|
+
// Wait for the timeout to complete
|
|
93
|
+
vi.runAllTimers()
|
|
94
|
+
|
|
95
|
+
// Verify it's reset back to false
|
|
96
|
+
expect(notificationServiceMock.clearAllEvent.value).toBe(false)
|
|
97
|
+
// Verify queue was cleared
|
|
98
|
+
expect(notificationServiceMock.notificationQueue.value).toEqual([])
|
|
99
|
+
})
|
|
100
|
+
|
|
36
101
|
it('should render notification bar', async () => {
|
|
37
102
|
const notification: Notification = {
|
|
38
103
|
id: '1',
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
2
|
import * as AccessStories from './Accessibilite.stories.ts';
|
|
3
|
+
import '../../stories/styles/shared.css';
|
|
3
4
|
|
|
4
5
|
<Meta of={AccessStories} />
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
<div className="header">
|
|
8
|
+
<h1>Accessibilité</h1>
|
|
9
|
+
<p>Informations sur l'accessibilité du composant</p>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
8
12
|
<Story of={AccessStories.Legende} />
|
|
9
13
|
<br />
|
|
10
14
|
|
|
@@ -4,9 +4,10 @@ import * as PageContainerStories from './PageContainer.stories';
|
|
|
4
4
|
|
|
5
5
|
<Meta of={PageContainerStories} />
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Le composant `PageContainer` est un conteneur transparent utilisé pour afficher une page
|
|
7
|
+
<div className="header">
|
|
8
|
+
<h1>PageContainer</h1>
|
|
9
|
+
<p>Le composant `PageContainer` est un conteneur transparent utilisé pour afficher une page.</p>
|
|
10
|
+
</div>
|
|
10
11
|
|
|
11
12
|
<Canvas of={PageContainerStories.Default} />
|
|
12
13
|
|
|
@@ -20,6 +21,7 @@ Le composant `PageContainer` est un conteneur transparent utilisé pour afficher
|
|
|
20
21
|
<script setup lang="ts">
|
|
21
22
|
import { PageContainer } from '@cnamts/synapse'
|
|
22
23
|
</script>
|
|
24
|
+
import '../../stories/styles/shared.css';
|
|
23
25
|
|
|
24
26
|
<template>
|
|
25
27
|
<PageContainer color="primary">
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
2
|
import * as AccessStories from './Accessibilite.stories.ts';
|
|
3
|
+
import '../../stories/styles/shared.css';
|
|
3
4
|
|
|
4
5
|
<Meta of={AccessStories} />
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
<div className="header">
|
|
8
|
+
<h1>Accessibilité</h1>
|
|
9
|
+
<p>Informations sur l'accessibilité du composant</p>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
8
12
|
<Story of={AccessStories.Legende} />
|
|
9
13
|
<br />
|
|
10
14
|
|
|
@@ -3,9 +3,10 @@ import * as PaginatedTableStories from "./PaginatedTable.stories.ts";
|
|
|
3
3
|
|
|
4
4
|
<Meta of={PaginatedTableStories}/>
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Le composant `PaginatedTable` est utilisé pour afficher une `VDataTable` de Vuetify avec une pagination persistante
|
|
6
|
+
<div className="header">
|
|
7
|
+
<h1>PaginatedTable</h1>
|
|
8
|
+
<p>Le composant `PaginatedTable` est utilisé pour afficher une `VDataTable` de Vuetify avec une pagination persistante.</p>
|
|
9
|
+
</div>
|
|
9
10
|
|
|
10
11
|
> **⚠️ Attention** : Ce composant est déprécié au profit des composants [SyTable](?path=/docs/composants-tableaux-sytable--docs) et [SyServerTable](?path=/docs/composants-tableaux-syservertable--docs).
|
|
11
12
|
|
|
@@ -27,6 +28,7 @@ Le composant `PaginatedTable` est utilisé pour afficher une `VDataTable` de Vue
|
|
|
27
28
|
itemsPerPage: 4,
|
|
28
29
|
sortBy: [{ key: 'calories', order: 'desc' }],
|
|
29
30
|
})
|
|
31
|
+
import '../../stories/styles/shared.css';
|
|
30
32
|
|
|
31
33
|
const headers = reactive([
|
|
32
34
|
{ text: 'Dessert (100g serving)', value: 'name' },
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
2
|
import * as AccessStories from './Accessibilite.stories.ts';
|
|
3
|
+
import '../../stories/styles/shared.css';
|
|
3
4
|
|
|
4
5
|
<Meta of={AccessStories} />
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
<div className="header">
|
|
8
|
+
<h1>Accessibilité</h1>
|
|
9
|
+
<p>Informations sur l'accessibilité du composant</p>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
8
12
|
<Story of={AccessStories.Legende} />
|
|
9
13
|
<br />
|
|
10
14
|
|
|
@@ -3,9 +3,10 @@ import * as PasswordFieldStories from './PasswordField.stories'
|
|
|
3
3
|
|
|
4
4
|
<Meta of={PasswordFieldStories} />
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Le composant `PasswordField` est un champ de saisie sécurisé conçu pour la gestion des mots de passe. Il hérite des fonctionnalités du composant `SyTextField` tout en ajoutant des fonctionnalités spécifiques à la saisie de mots de passe
|
|
6
|
+
<div className="header">
|
|
7
|
+
<h1>PasswordField</h1>
|
|
8
|
+
<p>Le composant `PasswordField` est un champ de saisie sécurisé conçu pour la gestion des mots de passe. Il hérite des fonctionnalités du composant `SyTextField` tout en ajoutant des fonctionnalités spécifiques à la saisie de mots de passe.</p>
|
|
9
|
+
</div>
|
|
9
10
|
|
|
10
11
|
## Utilisation basique
|
|
11
12
|
|
|
@@ -99,6 +100,7 @@ import { ref } from 'vue'
|
|
|
99
100
|
import { PasswordField } from '@cnamts/synapse'
|
|
100
101
|
|
|
101
102
|
const password = ref('')
|
|
103
|
+
import '../../stories/styles/shared.css';
|
|
102
104
|
const passwordFieldRef = ref()
|
|
103
105
|
|
|
104
106
|
const customRules = [{
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
2
|
import * as AccessStories from './Accessibilite.stories.ts';
|
|
3
|
+
import '../../stories/styles/shared.css';
|
|
3
4
|
|
|
4
5
|
<Meta of={AccessStories} />
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
<div className="header">
|
|
8
|
+
<h1>Accessibilité</h1>
|
|
9
|
+
<p>Informations sur l'accessibilité du composant</p>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
8
12
|
<Story of={AccessStories.Legende} />
|
|
9
13
|
<br />
|
|
10
14
|
|
|
@@ -3,9 +3,10 @@ import * as PeriodFieldStories from "./PeriodField.stories.ts";
|
|
|
3
3
|
|
|
4
4
|
<Meta of={PeriodFieldStories}/>
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Le composant `PeriodField` est utilisé pour permettre à l’utilisateur de saisir une période
|
|
6
|
+
<div className="header">
|
|
7
|
+
<h1>PeriodField</h1>
|
|
8
|
+
<p>Le composant `PeriodField` est utilisé pour permettre à l’utilisateur de saisir une période.</p>
|
|
9
|
+
</div>
|
|
9
10
|
|
|
10
11
|
<Canvas story={{height: '550px'}} of={PeriodFieldStories.Default}/>
|
|
11
12
|
|
|
@@ -22,6 +23,7 @@ Le composant `PeriodField` est utilisé pour permettre à l’utilisateur de sai
|
|
|
22
23
|
import { PeriodField } from '@cnamts/synapse'
|
|
23
24
|
|
|
24
25
|
const selectedPeriod = ref({ from: null, to: null })
|
|
26
|
+
import '../../stories/styles/shared.css';
|
|
25
27
|
</script>
|
|
26
28
|
|
|
27
29
|
<template>
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
2
|
import * as AccessStories from './Accessibilite.stories.ts';
|
|
3
|
+
import '../../stories/styles/shared.css';
|
|
3
4
|
|
|
4
5
|
<Meta of={AccessStories} />
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
<div className="header">
|
|
8
|
+
<h1>Accessibilité</h1>
|
|
9
|
+
<p>Informations sur l'accessibilité du composant</p>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
8
12
|
<Story of={AccessStories.Legende} />
|
|
9
13
|
<br />
|
|
10
14
|
|
|
@@ -4,9 +4,10 @@ import PhoneField from './PhoneField.vue'
|
|
|
4
4
|
|
|
5
5
|
<Meta title="Composants/Formulaires/PhoneField" component={PhoneField} />
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Le composant`PhoneField` est utilisé pour saisir des numéros de téléphone avec différentes options de formatage
|
|
7
|
+
<div className="header">
|
|
8
|
+
<h1>PhoneField</h1>
|
|
9
|
+
<p>Le composant`PhoneField` est utilisé pour saisir des numéros de téléphone avec différentes options de formatage.</p>
|
|
10
|
+
</div>
|
|
10
11
|
|
|
11
12
|
<Canvas of={PhoneFieldStories.Default} />
|
|
12
13
|
|
|
@@ -22,6 +23,7 @@ import { PhoneField } from '@cnamts/synapse'
|
|
|
22
23
|
import { ref } from 'vue'
|
|
23
24
|
|
|
24
25
|
const value = ref('')
|
|
26
|
+
import '../../stories/styles/shared.css';
|
|
25
27
|
|
|
26
28
|
const handleChange = (newValue) => {
|
|
27
29
|
console.log('Value changed:', newValue)
|
|
@@ -118,19 +118,7 @@ export const Default: Story = {
|
|
|
118
118
|
template: `
|
|
119
119
|
<div class="pa-4">
|
|
120
120
|
<PhoneField
|
|
121
|
-
v-
|
|
122
|
-
:required="args.required"
|
|
123
|
-
:outlined="args.outlined"
|
|
124
|
-
:outlinedIndicatif="args.outlinedIndicatif"
|
|
125
|
-
:withCountryCode="args.withCountryCode"
|
|
126
|
-
:countryCodeRequired="args.countryCodeRequired"
|
|
127
|
-
:displayFormat="args.displayFormat"
|
|
128
|
-
:customIndicatifs="args.customIndicatifs"
|
|
129
|
-
:useCustomIndicatifsOnly="args.useCustomIndicatifsOnly"
|
|
130
|
-
:isValidatedOnBlur="args.isValidatedOnBlur"
|
|
131
|
-
:bg-color="args.bgColor"
|
|
132
|
-
:readonly="args.readonly"
|
|
133
|
-
:disabled="args.disabled"
|
|
121
|
+
v-bind="args"
|
|
134
122
|
/>
|
|
135
123
|
</div>
|
|
136
124
|
<br><br><br><br><br>
|
|
@@ -202,19 +190,7 @@ export const Required: Story = {
|
|
|
202
190
|
template: `
|
|
203
191
|
<div class="pa-4">
|
|
204
192
|
<PhoneField
|
|
205
|
-
v-
|
|
206
|
-
:required="args.required"
|
|
207
|
-
:outlined="args.outlined"
|
|
208
|
-
:outlinedIndicatif="args.outlinedIndicatif"
|
|
209
|
-
:withCountryCode="args.withCountryCode"
|
|
210
|
-
:countryCodeRequired="args.countryCodeRequired"
|
|
211
|
-
:displayFormat="args.displayFormat"
|
|
212
|
-
:customIndicatifs="args.customIndicatifs"
|
|
213
|
-
:useCustomIndicatifsOnly="args.useCustomIndicatifsOnly"
|
|
214
|
-
:isValidatedOnBlur="args.isValidatedOnBlur"
|
|
215
|
-
:bg-color="args.bgColor"
|
|
216
|
-
:readonly="args.readonly"
|
|
217
|
-
:disabled="args.disabled"
|
|
193
|
+
v-bind="args"
|
|
218
194
|
/>
|
|
219
195
|
</div>
|
|
220
196
|
`,
|
|
@@ -273,20 +249,7 @@ const phoneNumber = ref('')
|
|
|
273
249
|
template: `
|
|
274
250
|
<div class="pa-4">
|
|
275
251
|
<PhoneField
|
|
276
|
-
v-
|
|
277
|
-
:required="args.required"
|
|
278
|
-
:outlined="args.outlined"
|
|
279
|
-
:outlinedIndicatif="args.outlinedIndicatif"
|
|
280
|
-
:withCountryCode="args.withCountryCode"
|
|
281
|
-
:countryCodeRequired="args.countryCodeRequired"
|
|
282
|
-
:displayFormat="args.displayFormat"
|
|
283
|
-
:customIndicatifs="args.customIndicatifs"
|
|
284
|
-
:useCustomIndicatifsOnly="args.useCustomIndicatifsOnly"
|
|
285
|
-
:isValidatedOnBlur="args.isValidatedOnBlur"
|
|
286
|
-
:display-asterisk="args.displayAsterisk"
|
|
287
|
-
:readonly="args.readonly"
|
|
288
|
-
:disabled="args.disabled"
|
|
289
|
-
:bg-color="args.bgColor"
|
|
252
|
+
v-bind="args"
|
|
290
253
|
/>
|
|
291
254
|
</div>
|
|
292
255
|
`,
|
|
@@ -639,19 +602,7 @@ export const CustomIndicatifs: Story = {
|
|
|
639
602
|
template: `
|
|
640
603
|
<div class="pa-4">
|
|
641
604
|
<PhoneField
|
|
642
|
-
|
|
643
|
-
:required="args.required"
|
|
644
|
-
:outlined="args.outlined"
|
|
645
|
-
:outlinedIndicatif="args.outlinedIndicatif"
|
|
646
|
-
:withCountryCode="args.withCountryCode"
|
|
647
|
-
:countryCodeRequired="args.countryCodeRequired"
|
|
648
|
-
:displayFormat="args.displayFormat"
|
|
649
|
-
:customIndicatifs="args.customIndicatifs"
|
|
650
|
-
:useCustomIndicatifsOnly="args.useCustomIndicatifsOnly"
|
|
651
|
-
:isValidatedOnBlur="args.isValidatedOnBlur"
|
|
652
|
-
:readonly="args.readonly"
|
|
653
|
-
:disabled="args.disabled"
|
|
654
|
-
:bg-color="args.bgColor"
|
|
605
|
+
v-bind="args"
|
|
655
606
|
/>
|
|
656
607
|
</div>
|
|
657
608
|
`,
|
|
@@ -667,7 +618,7 @@ export const NotValidatedOnBlur: Story = {
|
|
|
667
618
|
code: `
|
|
668
619
|
<template>
|
|
669
620
|
<PhoneField
|
|
670
|
-
v-
|
|
621
|
+
v-bind="args"
|
|
671
622
|
:required="required"
|
|
672
623
|
:withCountryCode="withCountryCode"
|
|
673
624
|
:countryCodeRequired="countryCodeRequired"
|
|
@@ -722,19 +673,7 @@ export const NotValidatedOnBlur: Story = {
|
|
|
722
673
|
template: `
|
|
723
674
|
<div class="pa-4">
|
|
724
675
|
<PhoneField
|
|
725
|
-
v-
|
|
726
|
-
:required="args.required"
|
|
727
|
-
:outlined="args.outlined"
|
|
728
|
-
:outlinedIndicatif="args.outlinedIndicatif"
|
|
729
|
-
:withCountryCode="args.withCountryCode"
|
|
730
|
-
:countryCodeRequired="args.countryCodeRequired"
|
|
731
|
-
:displayFormat="args.displayFormat"
|
|
732
|
-
:customIndicatifs="args.customIndicatifs"
|
|
733
|
-
:useCustomIndicatifsOnly="args.useCustomIndicatifsOnly"
|
|
734
|
-
:isValidatedOnBlur="args.isValidatedOnBlur"
|
|
735
|
-
:readonly="args.readonly"
|
|
736
|
-
:disabled="args.disabled"
|
|
737
|
-
:bg-color="args.bgColor"
|
|
676
|
+
v-bind="args"
|
|
738
677
|
/>
|
|
739
678
|
</div>
|
|
740
679
|
`,
|
|
@@ -805,19 +744,7 @@ export const DisplayFormatCode: Story = {
|
|
|
805
744
|
template: `
|
|
806
745
|
<div class="pa-4">
|
|
807
746
|
<PhoneField
|
|
808
|
-
v-
|
|
809
|
-
:required="args.required"
|
|
810
|
-
:outlined="args.outlined"
|
|
811
|
-
:outlinedIndicatif="args.outlinedIndicatif"
|
|
812
|
-
:withCountryCode="args.withCountryCode"
|
|
813
|
-
:countryCodeRequired="args.countryCodeRequired"
|
|
814
|
-
:displayFormat="args.displayFormat"
|
|
815
|
-
:customIndicatifs="args.customIndicatifs"
|
|
816
|
-
:useCustomIndicatifsOnly="args.useCustomIndicatifsOnly"
|
|
817
|
-
:isValidatedOnBlur="args.isValidatedOnBlur"
|
|
818
|
-
:readonly="args.readonly"
|
|
819
|
-
:disabled="args.disabled"
|
|
820
|
-
:bg-color="args.bgColor"
|
|
747
|
+
v-bind="args"
|
|
821
748
|
/>
|
|
822
749
|
</div>
|
|
823
750
|
`,
|
|
@@ -888,19 +815,7 @@ export const DisplayFormatCodeAbbreviation: Story = {
|
|
|
888
815
|
template: `
|
|
889
816
|
<div class="pa-4">
|
|
890
817
|
<PhoneField
|
|
891
|
-
v-
|
|
892
|
-
:required="args.required"
|
|
893
|
-
:outlined="args.outlined"
|
|
894
|
-
:outlinedIndicatif="args.outlinedIndicatif"
|
|
895
|
-
:withCountryCode="args.withCountryCode"
|
|
896
|
-
:countryCodeRequired="args.countryCodeRequired"
|
|
897
|
-
:displayFormat="args.displayFormat"
|
|
898
|
-
:customIndicatifs="args.customIndicatifs"
|
|
899
|
-
:useCustomIndicatifsOnly="args.useCustomIndicatifsOnly"
|
|
900
|
-
:isValidatedOnBlur="args.isValidatedOnBlur"
|
|
901
|
-
:readonly="args.readonly"
|
|
902
|
-
:disabled="args.disabled"
|
|
903
|
-
:bg-color="args.bgColor"
|
|
818
|
+
v-bind="args"
|
|
904
819
|
/>
|
|
905
820
|
</div>
|
|
906
821
|
`,
|
|
@@ -971,19 +886,7 @@ export const DisplayFormatCodeCountry: Story = {
|
|
|
971
886
|
template: `
|
|
972
887
|
<div class="pa-4">
|
|
973
888
|
<PhoneField
|
|
974
|
-
v-
|
|
975
|
-
:required="args.required"
|
|
976
|
-
:outlined="args.outlined"
|
|
977
|
-
:outlinedIndicatif="args.outlinedIndicatif"
|
|
978
|
-
:withCountryCode="args.withCountryCode"
|
|
979
|
-
:countryCodeRequired="args.countryCodeRequired"
|
|
980
|
-
:displayFormat="args.displayFormat"
|
|
981
|
-
:customIndicatifs="args.customIndicatifs"
|
|
982
|
-
:useCustomIndicatifsOnly="args.useCustomIndicatifsOnly"
|
|
983
|
-
:isValidatedOnBlur="args.isValidatedOnBlur"
|
|
984
|
-
:readonly="args.readonly"
|
|
985
|
-
:disabled="args.disabled"
|
|
986
|
-
:bg-color="args.bgColor"
|
|
889
|
+
v-bind="args"
|
|
987
890
|
/>
|
|
988
891
|
</div>
|
|
989
892
|
`,
|
|
@@ -1054,19 +957,7 @@ export const DisplayFormatCountry: Story = {
|
|
|
1054
957
|
template: `
|
|
1055
958
|
<div class="pa-4">
|
|
1056
959
|
<PhoneField
|
|
1057
|
-
v-
|
|
1058
|
-
:required="args.required"
|
|
1059
|
-
:outlined="args.outlined"
|
|
1060
|
-
:outlinedIndicatif="args.outlinedIndicatif"
|
|
1061
|
-
:withCountryCode="args.withCountryCode"
|
|
1062
|
-
:countryCodeRequired="args.countryCodeRequired"
|
|
1063
|
-
:displayFormat="args.displayFormat"
|
|
1064
|
-
:customIndicatifs="args.customIndicatifs"
|
|
1065
|
-
:useCustomIndicatifsOnly="args.useCustomIndicatifsOnly"
|
|
1066
|
-
:isValidatedOnBlur="args.isValidatedOnBlur"
|
|
1067
|
-
:readonly="args.readonly"
|
|
1068
|
-
:disabled="args.disabled"
|
|
1069
|
-
:bg-color="args.bgColor"
|
|
960
|
+
v-bind="args"
|
|
1070
961
|
/>
|
|
1071
962
|
</div>
|
|
1072
963
|
`,
|
|
@@ -1137,19 +1028,7 @@ export const DisplayFormatAbbreviation: Story = {
|
|
|
1137
1028
|
template: `
|
|
1138
1029
|
<div class="pa-4">
|
|
1139
1030
|
<PhoneField
|
|
1140
|
-
v-
|
|
1141
|
-
:required="args.required"
|
|
1142
|
-
:outlined="args.outlined"
|
|
1143
|
-
:outlinedIndicatif="args.outlinedIndicatif"
|
|
1144
|
-
:withCountryCode="args.withCountryCode"
|
|
1145
|
-
:countryCodeRequired="args.countryCodeRequired"
|
|
1146
|
-
:displayFormat="args.displayFormat"
|
|
1147
|
-
:customIndicatifs="args.customIndicatifs"
|
|
1148
|
-
:useCustomIndicatifsOnly="args.useCustomIndicatifsOnly"
|
|
1149
|
-
:isValidatedOnBlur="args.isValidatedOnBlur"
|
|
1150
|
-
:readonly="args.readonly"
|
|
1151
|
-
:disabled="args.disabled"
|
|
1152
|
-
:bg-color="args.bgColor"
|
|
1031
|
+
v-bind="args"
|
|
1153
1032
|
/>
|
|
1154
1033
|
</div>
|
|
1155
1034
|
`,
|
|
@@ -1239,20 +1118,7 @@ export const DefaultDialCode: Story = {
|
|
|
1239
1118
|
<h3>PhoneField avec indicatif pré-rempli</h3>
|
|
1240
1119
|
<p>Cette story montre comment pré-remplir l'indicatif téléphonique avec des indicatifs personnalisés.</p>
|
|
1241
1120
|
<PhoneField
|
|
1242
|
-
v-
|
|
1243
|
-
:dial-code-model="args.dialCodeModel"
|
|
1244
|
-
:required="args.required"
|
|
1245
|
-
:outlined="args.outlined"
|
|
1246
|
-
:outlinedIndicatif="args.outlinedIndicatif"
|
|
1247
|
-
:withCountryCode="args.withCountryCode"
|
|
1248
|
-
:countryCodeRequired="args.countryCodeRequired"
|
|
1249
|
-
:displayFormat="args.displayFormat"
|
|
1250
|
-
:customIndicatifs="args.customIndicatifs"
|
|
1251
|
-
:useCustomIndicatifsOnly="args.useCustomIndicatifsOnly"
|
|
1252
|
-
:isValidatedOnBlur="args.isValidatedOnBlur"
|
|
1253
|
-
:readonly="args.readonly"
|
|
1254
|
-
:disabled="args.disabled"
|
|
1255
|
-
:bg-color="args.bgColor"
|
|
1121
|
+
v-bind="args"
|
|
1256
1122
|
/>
|
|
1257
1123
|
</div>
|
|
1258
1124
|
`,
|
|
@@ -1327,20 +1193,7 @@ export const DefaultDialCodeStandard: Story = {
|
|
|
1327
1193
|
<strong>Indicatif sélectionné :</strong> {{ args.dialCodeModel ? args.dialCodeModel.code + ' ' + args.dialCodeModel.country : 'Aucun' }}
|
|
1328
1194
|
</div>
|
|
1329
1195
|
<PhoneField
|
|
1330
|
-
v-
|
|
1331
|
-
:dial-code-model="args.dialCodeModel"
|
|
1332
|
-
:required="args.required"
|
|
1333
|
-
:outlined="args.outlined"
|
|
1334
|
-
:outlinedIndicatif="args.outlinedIndicatif"
|
|
1335
|
-
:withCountryCode="args.withCountryCode"
|
|
1336
|
-
:countryCodeRequired="args.countryCodeRequired"
|
|
1337
|
-
:displayFormat="args.displayFormat"
|
|
1338
|
-
:customIndicatifs="args.customIndicatifs"
|
|
1339
|
-
:useCustomIndicatifsOnly="args.useCustomIndicatifsOnly"
|
|
1340
|
-
:isValidatedOnBlur="args.isValidatedOnBlur"
|
|
1341
|
-
:readonly="args.readonly"
|
|
1342
|
-
:disabled="args.disabled"
|
|
1343
|
-
:bg-color="args.bgColor"
|
|
1196
|
+
v-bind="args"
|
|
1344
1197
|
/>
|
|
1345
1198
|
</div>
|
|
1346
1199
|
`,
|
|
@@ -1419,20 +1272,7 @@ export const DisplayModels: Story = {
|
|
|
1419
1272
|
{{ args.dialCodeModel }} - {{ args.modelValue }}
|
|
1420
1273
|
</div>
|
|
1421
1274
|
<PhoneField
|
|
1422
|
-
v-
|
|
1423
|
-
v-model:selected-dial-code="args.dialCodeModel"
|
|
1424
|
-
:required="args.required"
|
|
1425
|
-
:outlined="args.outlined"
|
|
1426
|
-
:outlinedIndicatif="args.outlinedIndicatif"
|
|
1427
|
-
:withCountryCode="args.withCountryCode"
|
|
1428
|
-
:countryCodeRequired="args.countryCodeRequired"
|
|
1429
|
-
:displayFormat="args.displayFormat"
|
|
1430
|
-
:customIndicatifs="args.customIndicatifs"
|
|
1431
|
-
:useCustomIndicatifsOnly="args.useCustomIndicatifsOnly"
|
|
1432
|
-
:isValidatedOnBlur="args.isValidatedOnBlur"
|
|
1433
|
-
:readonly="args.readonly"
|
|
1434
|
-
:disabled="args.disabled"
|
|
1435
|
-
:bg-color="args.bgColor"
|
|
1275
|
+
v-bind="args"
|
|
1436
1276
|
/>
|
|
1437
1277
|
</div>
|
|
1438
1278
|
`,
|
|
@@ -1508,39 +1348,13 @@ export const DisabledErrorHandling: Story = {
|
|
|
1508
1348
|
<h3>Gestion des erreurs désactivée</h3>
|
|
1509
1349
|
<p>Ce champ est requis mais n'affichera pas d'erreur même s'il est vide.</p>
|
|
1510
1350
|
<PhoneField
|
|
1511
|
-
v-
|
|
1512
|
-
:required="args.required"
|
|
1513
|
-
:outlined="args.outlined"
|
|
1514
|
-
:outlinedIndicatif="args.outlinedIndicatif"
|
|
1515
|
-
:withCountryCode="args.withCountryCode"
|
|
1516
|
-
:countryCodeRequired="args.countryCodeRequired"
|
|
1517
|
-
:displayFormat="args.displayFormat"
|
|
1518
|
-
:customIndicatifs="args.customIndicatifs"
|
|
1519
|
-
:useCustomIndicatifsOnly="args.useCustomIndicatifsOnly"
|
|
1520
|
-
:isValidatedOnBlur="args.isValidatedOnBlur"
|
|
1521
|
-
:disableErrorHandling="args.disableErrorHandling"
|
|
1522
|
-
:readonly="args.readonly"
|
|
1523
|
-
:disabled="args.disabled"
|
|
1524
|
-
:bg-color="args.bgColor"
|
|
1351
|
+
v-bind="args"
|
|
1525
1352
|
/>
|
|
1526
1353
|
<div class="mt-6">
|
|
1527
1354
|
<h3>Comparaison avec gestion des erreurs activée</h3>
|
|
1528
1355
|
<p>Ce champ est requis et affichera une erreur s'il est vide.</p>
|
|
1529
1356
|
<PhoneField
|
|
1530
|
-
v-
|
|
1531
|
-
:required="args.required"
|
|
1532
|
-
:outlined="args.outlined"
|
|
1533
|
-
:outlinedIndicatif="args.outlinedIndicatif"
|
|
1534
|
-
:withCountryCode="args.withCountryCode"
|
|
1535
|
-
:countryCodeRequired="args.countryCodeRequired"
|
|
1536
|
-
:displayFormat="args.displayFormat"
|
|
1537
|
-
:customIndicatifs="args.customIndicatifs"
|
|
1538
|
-
:useCustomIndicatifsOnly="args.useCustomIndicatifsOnly"
|
|
1539
|
-
:isValidatedOnBlur="args.isValidatedOnBlur"
|
|
1540
|
-
:disableErrorHandling="false"
|
|
1541
|
-
:readonly="args.readonly"
|
|
1542
|
-
:disabled="args.disabled"
|
|
1543
|
-
:bg-color="args.bgColor"
|
|
1357
|
+
v-bind="args"
|
|
1544
1358
|
/>
|
|
1545
1359
|
</div>
|
|
1546
1360
|
</div>
|
|
@@ -1654,22 +1468,7 @@ export const FormValidation: Story = {
|
|
|
1654
1468
|
<div class="pa-4">
|
|
1655
1469
|
<form @submit.prevent="submitForm" class="d-flex flex-column">
|
|
1656
1470
|
<PhoneField
|
|
1657
|
-
|
|
1658
|
-
v-model="phoneNumber"
|
|
1659
|
-
:required="args.required"
|
|
1660
|
-
:outlined="args.outlined"
|
|
1661
|
-
:outlinedIndicatif="args.outlinedIndicatif"
|
|
1662
|
-
:withCountryCode="args.withCountryCode"
|
|
1663
|
-
:country-code-required="args.countryCodeRequired"
|
|
1664
|
-
:isValidatedOnBlur="args.isValidatedOnBlur"
|
|
1665
|
-
:readonly="args.readonly"
|
|
1666
|
-
:disabled="args.disabled"
|
|
1667
|
-
:bg-color="args.bgColor"
|
|
1668
|
-
:display-format="args.displayFormat"
|
|
1669
|
-
:custom-indicatifs="args.customIndicatifs"
|
|
1670
|
-
:use-custom-indicatifs-only="args.useCustomIndicatifsOnly"
|
|
1671
|
-
:display-asterisk="args.displayAsterisk"
|
|
1672
|
-
:disable-error-handling="args.disableErrorHandling"
|
|
1471
|
+
v-bind="args"
|
|
1673
1472
|
/>
|
|
1674
1473
|
<v-btn type="submit" color="primary" class="mt-4" style="width: 200px;">Soumettre le formulaire</v-btn>
|
|
1675
1474
|
<div v-if="formSubmitted" class="mt-4 pa-2" :class="{ 'bg-success': formIsValid, 'bg-error': !formIsValid }" style="width: fit-content;">
|