@cnamts/synapse 1.0.10 → 1.0.11
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-C0wDuzgn.js → DateFilter-QEfKOz0P.js} +1 -1
- package/dist/{NumberFilter-CBj7zdOi.js → NumberFilter-C0h7gVzp.js} +1 -1
- package/dist/{PeriodFilter-DB4wWyKy.js → PeriodFilter-8dVrKjju.js} +1 -1
- package/dist/{SelectFilter-Dces8572.js → SelectFilter-BI3QGbqb.js} +1 -1
- package/dist/{TextFilter-BU9nlkuS.js → TextFilter-UOp1hcPp.js} +1 -1
- package/dist/components/Amelipro/AmeliproAccordionList/AmeliproAccordionList.d.ts +9 -0
- package/dist/components/Amelipro/AmeliproAccordionResultList/AmeliproAccordionResultList.d.ts +9 -0
- package/dist/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.d.ts +6 -24
- package/dist/components/Amelipro/AmeliproCarousel/AmeliproCarousel.d.ts +18 -0
- package/dist/components/Amelipro/AmeliproFooter/AmeliproFooter.d.ts +9 -0
- package/dist/components/Amelipro/AmeliproFooter/locales.d.ts +0 -1
- package/dist/components/Amelipro/AmeliproFooter/types.d.ts +1 -0
- package/dist/components/Amelipro/AmeliproHeader/AmeliproHeader.d.ts +2 -0
- package/dist/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproHeaderBar.d.ts +6 -2
- package/dist/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproHeaderBrandSection/AmeliproHeaderBrandSection.d.ts +8 -4
- package/dist/components/Amelipro/AmeliproPageLayout/AmeliproPageLayout.d.ts +2 -0
- package/dist/components/Amelipro/AmeliproResultList/AmeliproResultList.d.ts +9 -0
- package/dist/components/Amelipro/AmeliproSelect/AmeliproSelect.d.ts +5 -5
- package/dist/components/Amelipro/AmeliproTable/AmeliproTable.d.ts +9 -0
- package/dist/components/Amelipro/AmeliproTabs/AmeliproTabs.d.ts +6 -6
- package/dist/components/Amelipro/AmeliproTextArea/AmeliproTextArea.d.ts +2 -2
- package/dist/components/Amelipro/AmeliproUpload/types.d.ts +10 -0
- package/dist/components/CookiesSelection/CookiesInformation/CookiesInformation.d.ts +2 -2
- package/dist/components/Customs/Selects/SelectBtnField/SelectBtnField.d.ts +1 -1
- package/dist/components/Customs/Selects/SySelect/SySelect.d.ts +3 -3
- package/dist/components/Customs/SyTextField/SyTextField.d.ts +1 -1
- package/dist/components/DatePicker/CalendarMode/DatePicker.d.ts +12 -12
- package/dist/components/DatePicker/ComplexDatePicker/ComplexDatePicker.d.ts +6 -6
- package/dist/components/DatePicker/DateTextInput/DateTextInput.d.ts +3 -3
- package/dist/components/DatePicker/tests/setup.d.ts +96 -96
- package/dist/components/LangBtn/LangBtn.d.ts +2 -2
- package/dist/components/NirField/NirField.d.ts +6 -6
- package/dist/components/PeriodField/PeriodField.d.ts +24 -24
- package/dist/components/PhoneField/PhoneField.d.ts +3 -3
- package/dist/components/SearchListField/SearchListField.d.ts +10 -1
- package/dist/components/SyTextArea/SyTextArea.d.ts +2 -2
- package/dist/components/Tables/common/SyTablePagination.d.ts +4 -4
- package/dist/components/Tables/common/TableHeader.d.ts +6 -0
- package/dist/components/Tables/common/organizeColumns/OrganizeColumns.d.ts +2 -2
- package/dist/components/Tables/common/types.d.ts +7 -0
- package/dist/components/Tables/common/useTableHeaders.d.ts +10 -20
- package/dist/design-system-v3.js +1 -1
- package/dist/design-system-v3.umd.cjs +266 -266
- package/dist/main-DyEOPqqn.js +33329 -0
- package/dist/style.css +1 -1
- package/dist/utils/amelipro/rules/uploadFile/index.d.ts +6 -0
- package/dist/utils/amelipro/toKebabCase/toKebabCase.d.ts +1 -0
- package/dist/utils/rules/isRequired/index.d.ts +5 -2
- package/dist/utils/rules/types.d.ts +12 -3
- package/package.json +12 -3
- package/src/assets/amelipro/img/bg-pieces-jointe.svg +28 -0
- package/src/assets/overrides/_btns.scss +1 -0
- package/src/assets/overrides/_forms.scss +5 -0
- package/src/components/Accordion/tests/accordion.spec.ts +0 -55
- package/src/components/Amelipro/AmeliproAccordion/AmeliproAccordionTemplate/__tests__/AmeliproAccordionTemplate.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproAccordion/__tests__/AmeliproAccordion.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproAccordionFrieze/__tests__/AmeliproAccordionFrieze.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproAccordionGroup/__tests__/AmeliproAccordionGroup.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproAccordionList/AmeliproAccordionList.stories.ts +6 -0
- package/src/components/Amelipro/AmeliproAccordionList/AmeliproAccordionList.vue +5 -1
- package/src/components/Amelipro/AmeliproAccordionList/__tests__/AmeliproAccordionList.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproAccordionList/__tests__/__snapshots__/AmeliproAccordionList.spec.ts.snap +13 -2
- package/src/components/Amelipro/AmeliproAccordionResult/AmeliproAccordionResultTemplate/__tests__/AmeliproAccordionResultTemplate.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproAccordionResult/__tests__/AmeliproAccordionResult.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproAccordionResultList/AmeliproAccordionResultList.stories.ts +6 -0
- package/src/components/Amelipro/AmeliproAccordionResultList/AmeliproAccordionResultList.vue +5 -1
- package/src/components/Amelipro/AmeliproAccordionResultList/__tests__/AmeliproAccordionResultList.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproAccordionResultList/__tests__/__snapshots__/AmeliproAccordionResultList.spec.ts.snap +13 -2
- package/src/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.stories.ts +1 -1
- package/src/components/Amelipro/AmeliproAutoCompleteField/__tests__/AmeliproAutoCompleteField.spec.ts +277 -55
- package/src/components/Amelipro/AmeliproAutoCompleteField/__tests__/__snapshots__/AmeliproAutoCompleteField.spec.ts.snap +113 -233
- package/src/components/Amelipro/AmeliproBadge/__tests__/AmeliproBadge.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproBreadcrumb/__tests__/AmeliproBreadcrumb.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproBtn/__tests__/AmeliproBtn.spec.ts +478 -0
- package/src/components/Amelipro/AmeliproBtn/__tests__/__snapshots__/AmeliproBtn.spec.ts.snap +74 -0
- package/src/components/Amelipro/AmeliproCallback/__tests__/AmeliproCallback.spec.ts +100 -0
- package/src/components/Amelipro/AmeliproCallback/__tests__/__snapshots__/AmeliproCallback.spec.ts.snap +50 -0
- package/src/components/Amelipro/AmeliproCaptcha/__tests__/AmeliproCaptcha.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproCaptcha/__tests__/__snapshots__/AmeliproCaptcha.spec.ts.snap +10 -2
- package/src/components/Amelipro/AmeliproCard/__tests__/AmeliproCard.spec.ts +402 -0
- package/src/components/Amelipro/AmeliproCard/__tests__/__snapshots__/AmeliproCard.spec.ts.snap +106 -0
- package/src/components/Amelipro/AmeliproCarousel/AmeliproCarousel.stories.ts +2 -0
- package/src/components/Amelipro/AmeliproCarousel/AmeliproCarousel.vue +11 -1
- package/src/components/Amelipro/AmeliproCarousel/AmeliproCarouselItem/__tests__/AmeliproCarouselItem.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproCarousel/__tests__/AmeliproCarousel.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproCarousel/__tests__/__snapshots__/AmeliproCarousel.spec.ts.snap +0 -2
- package/src/components/Amelipro/AmeliproCheckbox/tests/AmeliproCheckbox.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproCheckboxGroup/tests/AmeliproCheckboxGroup.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproChips/tests/AmeliproChips.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproClickableTile/tests/AmeliproClickableTile.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproContentLayout/__tests__/AmeliproContentLayout.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproCopyBtn/__tests__/AmeliproCopyBtn.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproCustomSelector/__tests__/AmeliproCustomSelector.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproDentalChart/AmeliproTooth/tests/AmeliproTooth.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproDentalChart/tests/AmeliproDentalChart.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproDialog/tests/AmeliproDialog.spec.ts +0 -2
- package/src/components/Amelipro/AmeliproDisclosure/tests/AmeliproDisclosure.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproErrorTemplate/__tests__/AmeliproErrorTemplate.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproFilePreview/__tests__/AmeliproFilePreview.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproFirstLogin/__tests__/AmeliproFirstLogin.spec.ts +0 -2
- package/src/components/Amelipro/AmeliproFooter/AmeliproFooter.stories.ts +1 -0
- package/src/components/Amelipro/AmeliproFooter/AmeliproFooter.vue +5 -1
- package/src/components/Amelipro/AmeliproFooter/locales.ts +0 -1
- package/src/components/Amelipro/AmeliproFooter/tests/AmeliproFooter.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproFooter/types.d.ts +1 -0
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeader.stories.ts +18 -8
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeader.vue +3 -1
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproHeaderBar.vue +3 -0
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproHeaderBrandSection/AmeliproHeaderBrandSection.vue +10 -2
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproHeaderBrandSection/tests/AmeliproHeaderBrandSection.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproHeaderBrandSection/tests/__snapshots__/AmeliproHeaderBrandSection.spec.ts.snap +2 -3
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproLogoAm/tests/AmeliproLogoAm.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/tests/AmeliproHeaderBar.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/tests/__snapshots__/AmeliproHeaderBar.spec.ts.snap +2 -3
- package/src/components/Amelipro/AmeliproHeader/tests/AmeliproHeader.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproHeader/tests/__snapshots__/AmeliproHeader.spec.ts.snap +2 -3
- package/src/components/Amelipro/AmeliproIcon/tests/AmeliproIcon.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproIconBtn/tests/AmeliproIconBtn.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproIllustratedDataTile/tests/AmeliproIllustratedDataTile.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproIllustratedRadioGroup/tests/AmeliproIllustratedRadioGroup.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproMailTile/tests/AmeliproMailTile.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproMenu/tests/AmeliproMenu.spec.ts +0 -2
- package/src/components/Amelipro/AmeliproMessage/tests/AmeliproMessage.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproMessagingLayout/AmeliproDropdownMenu/AmeliproDropdownMenuBtn/tests/AmeliproDropdownMenuBtn.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproMessagingLayout/AmeliproDropdownMenu/tests/AmeliproDropdownMenu.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproMessagingLayout/AmeliproMessagingMenuBtn/tests/AmeliproMessagingMenuBtn.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproMessagingLayout/tests/AmeliproMessagingLayout.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproMultipleFoldingCard/tests/AmeliproMultipleFoldingCard.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproNumberedCard/tests/AmeliproNumberedCard.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproOnboarding/tests/AmeliproOnboarding.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproPageLayout/AmeliproPageLayout.stories.ts +9 -2
- package/src/components/Amelipro/AmeliproPageLayout/AmeliproPageLayout.vue +4 -1
- package/src/components/Amelipro/AmeliproPageLayout/tests/AmeliproPageLayout.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproPageLayout/tests/__snapshots__/AmeliproPageLayout.spec.ts.snap +2 -3
- package/src/components/Amelipro/AmeliproPagination/AmeliproPaginationBtn/tests/AmeliproPaginationBtn.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproPagination/tests/AmeliproPagination.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproPatientBanner/tests/AmeliproPatientBanner.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproPatientLogged/__tests__/AmeliproPatientLogged.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproPatientLogged/__tests__/__snapshots__/AmeliproPatientLogged.spec.ts.snap +13 -2
- package/src/components/Amelipro/AmeliproPatientLogin/AmeliproPatientLoginForm/__tests__/AmeliproPatientLoginForm.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproPatientLogin/__tests__/AmeliproPatientLogin.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressCityRow/__tests__/AmeliproPostalAddressCityRow.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressCityRow/__tests__/__snapshots__/AmeliproPostalAddressCityRow.spec.ts.snap +24 -4
- package/src/components/Amelipro/AmeliproPostalAddressField/tests/AmeliproPostalAddressField.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproPostalAddressField/tests/__snapshots__/AmeliproPostalAddressField.spec.ts.snap +40 -8
- package/src/components/Amelipro/AmeliproRadioGroup/tests/AmeliproRadioGroup.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproResultList/AmeliproResultList.stories.ts +6 -0
- package/src/components/Amelipro/AmeliproResultList/AmeliproResultList.vue +5 -1
- package/src/components/Amelipro/AmeliproResultList/__tests__/AmeliproResultList.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproResultList/__tests__/__snapshots__/AmeliproResultList.spec.ts.snap +13 -2
- package/src/components/Amelipro/AmeliproSelect/tests/AmeliproSelect.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproSelect/tests/__snapshots__/AmeliproSelect.spec.ts.snap +13 -2
- package/src/components/Amelipro/AmeliproStateTile/tests/AmeliproStateTile.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproStatus/tests/AmeliproStatus.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproStepper/AmeliproStepBtn/tests/AmeliproStepBtn.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproStepper/tests/AmeliproStepper.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproTable/AmeliproTable.stories.ts +6 -0
- package/src/components/Amelipro/AmeliproTable/AmeliproTable.vue +5 -1
- package/src/components/Amelipro/AmeliproTable/__tests__/AmeliproTable.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproTable/__tests__/__snapshots__/AmeliproTable.spec.ts.snap +13 -2
- package/src/components/Amelipro/AmeliproTabs/AmeliproTabBtn/tests/AmeliproTabBtn.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproTabs/tests/AmeliproTabs.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproTextArea/AmeliproTextArea.stories.ts +1 -1
- package/src/components/Amelipro/AmeliproTextArea/__tests__/AmeliproTextArea.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproTextArea/__tests__/__snapshots__/AmeliproTextArea.spec.ts.snap +10 -2
- package/src/components/Amelipro/AmeliproTextField/tests/AmeliproTextField.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproTextField/tests/__snapshots__/AmeliproTextField.spec.ts.snap +10 -2
- package/src/components/Amelipro/AmeliproTileBtn/tests/AmeliproTileBtn.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproTooltips/tests/AmeliproTooltips.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproTransmission/tests/AmeliproTransmission.spec.ts +0 -4
- package/src/components/Amelipro/AmeliproUpload/AmeliproUpload.mdx +38 -0
- package/src/components/Amelipro/AmeliproUpload/AmeliproUpload.stories.ts +99 -0
- package/src/components/Amelipro/AmeliproUpload/AmeliproUpload.vue +714 -0
- package/src/components/Amelipro/AmeliproUpload/README.md +66 -0
- package/src/components/Amelipro/AmeliproUpload/__tests__/AmeliproUpload.spec.ts +74 -0
- package/src/components/Amelipro/AmeliproUpload/types.d.ts +10 -0
- package/src/components/Amelipro/ServiceMenu/ServiceBtn/tests/ServiceBtn.spec.ts +0 -4
- package/src/components/Amelipro/ServiceMenu/ServiceList/tests/ServiceList.spec.ts +0 -4
- package/src/components/Amelipro/ServiceMenu/ServiceMenuContent/tests/ServiceMenuContent.spec.ts +0 -4
- package/src/components/Amelipro/ServiceMenu/tests/ServiceMenu.spec.ts +0 -4
- package/src/components/Amelipro/StructureMenu/StructureBtn/tests/StructureBtn.spec.ts +0 -4
- package/src/components/Amelipro/StructureMenu/StructureItem/tests/StructureItem.spec.ts +0 -4
- package/src/components/Amelipro/StructureMenu/StructureList/tests/StructureList.spec.ts +0 -4
- package/src/components/Amelipro/StructureMenu/StructureTabs/tests/StructureTabs.spec.ts +0 -4
- package/src/components/Amelipro/StructureMenu/tests/StructureMenu.spec.ts +0 -2
- package/src/components/Amelipro/UserInformationSummary/tests/UserInformationSummary.spec.ts +0 -4
- package/src/components/Amelipro/UserMenu/UserMenuDetails/tests/UserMenuDetails.spec.ts +0 -4
- package/src/components/Amelipro/UserMenu/tests/UserMenu.spec.ts +0 -4
- package/src/components/BackBtn/BackBtn.vue +2 -1
- package/src/components/BackBtn/tests/BackBtn.spec.ts +1 -23
- package/src/components/BackToTopBtn/tests/BackToTopBtn.spec.ts +3 -34
- package/src/components/ChipList/tests/chipList.spec.ts +0 -38
- package/src/components/CollapsibleList/tests/CollapsibleList.spec.ts +0 -8
- package/src/components/ContextualMenu/tests/ContextualMenu.spec.ts +0 -28
- package/src/components/CookieBanner/tests/CookieBanner.spec.ts +1 -11
- package/src/components/CookiesSelection/CookiesInformation/tests/CookiesInformation.spec.ts +0 -16
- package/src/components/CookiesSelection/CookiesTable/tests/CookiesTable.spec.ts +0 -4
- package/src/components/CookiesSelection/tests/CookiesSelection.spec.ts +0 -16
- package/src/components/CopyBtn/tests/CopyBtn.spec.ts +0 -31
- package/src/components/CopyBtn/tests/__snapshots__/CopyBtn.spec.ts.snap +1 -0
- package/src/components/Customs/Selects/SelectBtnField/tests/SelectBtnField.spec.ts +3 -37
- package/src/components/Customs/Selects/SyBtnSelect/tests/SyBtnSelect.spec.ts +0 -28
- package/src/components/Customs/Selects/SyInputSelect/tests/SyInputSelect.spec.ts +8 -104
- package/src/components/Customs/Selects/SySelect/SySelect.vue +2 -2
- package/src/components/Customs/Selects/SySelect/tests/SySelect.spec.ts +0 -135
- package/src/components/Customs/SyCheckbox/SyCheckbox.stories.ts +1 -1
- package/src/components/Customs/SyCheckbox/SyCheckbox.vue +1 -1
- package/src/components/Customs/SyCheckbox/tests/SyCheckbox.spec.ts +0 -20
- package/src/components/Customs/SyForm/SyForm.mdx +1 -3
- package/src/components/Customs/SyForm/SyForm.stories.ts +131 -143
- package/src/components/Customs/SyTabs/tests/SyTabs.spec.ts +0 -2
- package/src/components/Customs/SyTextField/tests/SyTextField.spec.ts +1 -27
- package/src/components/DataList/DataListLoading/tests/DataListLoading.spec.ts +0 -4
- package/src/components/DataList/tests/DataList.spec.ts +0 -26
- package/src/components/DataListGroup/tests/DataListGroup.spec.ts +0 -10
- package/src/components/DataListItem/tests/DataListItem.spec.ts +0 -28
- package/src/components/DatePicker/CalendarMode/tests/DatePicker.events.spec.ts +0 -16
- package/src/components/DatePicker/CalendarMode/tests/DatePicker.spec.ts +4 -34
- package/src/components/DatePicker/ComplexDatePicker/tests/ComplexDatePicker.events.spec.ts +0 -10
- package/src/components/DatePicker/DateTextInput/DateTextInput.events.spec.ts +0 -13
- package/src/components/DatePicker/DateTextInput/DateTextInput.range.spec.ts +0 -10
- package/src/components/DatePicker/DateTextInput/DateTextInput.spec.ts +0 -52
- package/src/components/DatePicker/tests/DatePicker.validation.spec.ts +0 -543
- package/src/components/DiacriticPicker/tests/DiatriticPicker.spec.ts +0 -6
- package/src/components/DialogBox/tests/DialogBox.spec.ts +0 -63
- package/src/components/DownloadBtn/tests/DownloadBtn.spec.ts +0 -7
- package/src/components/ErrorPage/tests/ErrorPage.spec.ts +0 -7
- package/src/components/ExternalLinks/tests/ExternalLinks.spec.ts +0 -16
- package/src/components/ExternalLinks/tests/__snapshots__/ExternalLinks.spec.ts.snap +1 -0
- package/src/components/FileList/tests/FileList.spec.ts +0 -13
- package/src/components/FilePreview/tests/FilePreview.spec.ts +1 -6
- package/src/components/FileUpload/tests/FileUpload.spec.ts +1 -48
- package/src/components/FilterInline/tests/FilterInline.spec.ts +0 -10
- package/src/components/FilterSideBar/FilterSideBar.stories.ts +2 -0
- package/src/components/FilterSideBar/tests/FilterSideBar.spec.ts +0 -10
- package/src/components/FooterBar/tests/FooterBar.spec.ts +7 -19
- package/src/components/FranceConnectBtn/tests/FranceConnectBtn.spec.ts +0 -11
- package/src/components/HeaderBar/HeaderBar.stories.ts +37 -38
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderSubMenu/tests/HeaderSubMenu.spec.ts +0 -6
- package/src/components/HeaderBar/HeaderBurgerMenu/tests/HeaderBurgerMenu.spec.ts +0 -6
- package/src/components/HeaderBar/HeaderBurgerMenu/tests/useHandleSubMenus.spec.ts +0 -13
- package/src/components/HeaderBar/HeaderLogo/tests/HeaderLogo.spec.ts +1 -22
- package/src/components/HeaderBar/HeaderMenuBtn/tests/HeaderMenuBtn.spec.ts +0 -10
- package/src/components/HeaderBar/tests/HeaderBar.spec.ts +0 -16
- package/src/components/HeaderLoading/tests/HeaderLoading.spec.ts +0 -4
- package/src/components/HeaderNavigationBar/HorizontalNavbar/HorizontalNavbar.vue +22 -15
- package/src/components/HeaderNavigationBar/tests/HeaderNavigationBar.spec.ts +0 -4
- package/src/components/HeaderToolbar/tests/HeaderToolBar.spec.ts +7 -51
- package/src/components/LangBtn/tests/LangBtn.spec.ts +0 -56
- package/src/components/LogoBrandSection/tests/LogoBrandSection.spec.ts +22 -67
- package/src/components/NirField/NirField.stories.ts +2 -0
- package/src/components/NirField/NirField.vue +48 -25
- package/src/components/NirField/tests/NirField.cursor.spec.ts +315 -0
- package/src/components/NirField/tests/NirField.spec.ts +215 -17
- package/src/components/NotFoundPage/tests/NotFoundPage.spec.ts +2 -12
- package/src/components/NotificationBar/NotificationBar.mdx +1 -1
- package/src/components/NotificationBar/NotificationBar.stories.ts +1 -0
- package/src/components/NotificationBar/tests/NotificationBar.spec.ts +5 -44
- package/src/components/PageContainer/tests/PageContainer.spec.ts +1 -15
- package/src/components/PaginatedTable/tests/PaginatedTable.spec.ts +0 -23
- package/src/components/PasswordField/tests/PasswordField.spec.ts +4 -38
- package/src/components/PeriodField/tests/PeriodField.spec.ts +4 -74
- package/src/components/PhoneField/tests/PhoneField.spec.ts +3 -154
- package/src/components/RangeField/RangeSlider/tests/rangeSlider.spec.ts +0 -13
- package/src/components/RangeField/RangeSlider/tests/useThumbKeyboard.spec.ts +0 -34
- package/src/components/RangeField/RangeSlider/tests/useTrack.spec.ts +4 -24
- package/src/components/RangeField/tests/RangeField.spec.ts +0 -31
- package/src/components/RangeField/tests/__snapshots__/RangeField.spec.ts.snap +78 -30
- package/src/components/RatingPicker/EmotionPicker/tests/EmotionPicker.spec.ts +2 -23
- package/src/components/RatingPicker/NumberPicker/tests/NumberPicker.spec.ts +2 -17
- package/src/components/RatingPicker/StarsPicker/tests/StarsPicker.spec.ts +3 -22
- package/src/components/RatingPicker/tests/Rating.spec.ts +0 -10
- package/src/components/RatingPicker/tests/RatingPicker.spec.ts +0 -23
- package/src/components/SearchListField/SearchListField.mdx +3 -4
- package/src/components/SearchListField/SearchListField.stories.ts +103 -3
- package/src/components/SearchListField/SearchListField.vue +34 -9
- package/src/components/SearchListField/tests/SearchListField.spec.ts +98 -44
- package/src/components/SocialMediaLinks/tests/SocialMediaLinks.spec.ts +0 -32
- package/src/components/SubHeader/tests/SubHeader.spec.ts +0 -18
- package/src/components/SyAlert/tests/SyAlert.spec.ts +0 -14
- package/src/components/SyTextArea/tests/SyTextArea.spec.ts +0 -31
- package/src/components/TableToolbar/tests/TableToolbar.spec.ts +0 -31
- package/src/components/TableToolbar/tests/__snapshots__/TableToolbar.spec.ts.snap +72 -24
- package/src/components/Tables/SyServerTable/SyServerTable.vue +15 -3
- package/src/components/Tables/SyServerTable/tests/SyServerTable.spec.ts +0 -58
- package/src/components/Tables/SyTable/SyTable.vue +30 -7
- package/src/components/Tables/SyTable/tests/SyTable.spec.ts +0 -55
- package/src/components/Tables/common/SyTablePagination.vue +1 -1
- package/src/components/Tables/common/TableHeader.vue +57 -2
- package/src/components/Tables/common/filters/tests/DateFilter.spec.ts +0 -11
- package/src/components/Tables/common/filters/tests/NumberFilter.spec.ts +0 -11
- package/src/components/Tables/common/filters/tests/PeriodFilter.spec.ts +0 -11
- package/src/components/Tables/common/filters/tests/SelectFilter.spec.ts +0 -11
- package/src/components/Tables/common/filters/tests/TextFilter.spec.ts +0 -11
- package/src/components/Tables/common/tests/SyTableFilter.spec.ts +0 -31
- package/src/components/Tables/common/tests/SyTablePagination.spec.ts +0 -49
- package/src/components/Tables/common/tests/TableHeader.spec.ts +0 -19
- package/src/components/Tables/common/tests/filterByRange.spec.ts +0 -13
- package/src/components/Tables/common/tests/resize.spec.ts +0 -13
- package/src/components/Tables/common/types.ts +7 -0
- package/src/components/Tables/common/useStoredOptions.ts +1 -1
- package/src/components/Tables/common/useTableHeaders.ts +73 -6
- package/src/components/ToolbarContainer/tests/ToolbarContainer.spec.ts +0 -19
- package/src/components/UploadWorkflow/tests/UploadWorkflow.spec.ts +0 -15
- package/src/components/Usages/tests/Usages.spec.ts +3 -31
- package/src/components/UserMenuBtn/tests/UserMenuBtn.spec.ts +0 -31
- package/src/composables/useFilterable/useFilterable.ts +33 -24
- package/src/stories/GuideDuDev/FormValidationGuide.mdx +746 -114
- package/src/stories/GuideDuDev/UtiliserLesRules.mdx +138 -136
- package/src/utils/amelipro/rules/uploadFile/index.ts +119 -0
- package/src/utils/amelipro/rules/uploadFile/tests/uploadFile.spec.ts +55 -0
- package/src/utils/amelipro/toKebabCase/toKebabCase.ts +11 -0
- package/src/utils/rules/doMatchPattern/index.ts +1 -1
- package/src/utils/rules/isDateValid/index.ts +1 -1
- package/src/utils/rules/isExactLength/index.ts +4 -0
- package/src/utils/rules/isHolidayDay/index.ts +1 -1
- package/src/utils/rules/isHolidayDay/tests/isHolidayDay.spec.ts +24 -14
- package/src/utils/rules/isMaxLength/index.ts +4 -0
- package/src/utils/rules/isMinLength/index.ts +4 -0
- package/src/utils/rules/isNotAfterDate/index.ts +4 -0
- package/src/utils/rules/isNotAfterToday/index.ts +1 -1
- package/src/utils/rules/isNotBeforeDate/index.ts +4 -0
- package/src/utils/rules/isNotBeforeToday/index.ts +1 -1
- package/src/utils/rules/isRequired/index.ts +11 -5
- package/src/utils/rules/isRequired/tests/{isRequred.spec.ts → isRequired.spec.ts} +24 -0
- package/src/utils/rules/isValidEmail/index.ts +1 -1
- package/src/utils/rules/types.d.ts +12 -3
- package/dist/main-Dt4iNotT.js +0 -33147
- package/src/components/Amelipro/AmeliproBtn/tests/AmeliproBtn.spec.ts +0 -22
- package/src/components/Amelipro/AmeliproBtn/tests/__snapshots__/AmeliproBtn.spec.ts.snap +0 -46
- package/src/components/Amelipro/AmeliproCallback/tests/AmeliproCallback.spec.ts +0 -21
- package/src/components/Amelipro/AmeliproCallback/tests/__snapshots__/AmeliproCallback.spec.ts.snap +0 -165
- package/src/components/Amelipro/AmeliproCard/tests/AmeliproCard.spec.ts +0 -23
- package/src/components/Amelipro/AmeliproCard/tests/__snapshots__/AmeliproCard.spec.ts.snap +0 -78
- package/src/components/DialogBox/tests/__snapshots__/DialogBox.spec.ts.snap +0 -204
- /package/src/composables/validation/{AvecVosComposants.mdx → AvecVosComposants.mdx.old} +0 -0
- /package/src/composables/validation/{FormValidation.mdx → FormValidation.mdx.old} +0 -0
- /package/src/composables/validation/{FormValidation.stories.ts → FormValidation.stories.ts.old} +0 -0
|
@@ -4,7 +4,6 @@ import { mount } from '@vue/test-utils'
|
|
|
4
4
|
import DataListGroup from '../DataListGroup.vue'
|
|
5
5
|
|
|
6
6
|
import { dataListGroupItems } from './data/dataListGroupItems'
|
|
7
|
-
import { vuetify } from '@tests/unit/setup'
|
|
8
7
|
|
|
9
8
|
describe('DataListGroup', () => {
|
|
10
9
|
it('renders correctly', () => {
|
|
@@ -12,9 +11,6 @@ describe('DataListGroup', () => {
|
|
|
12
11
|
props: {
|
|
13
12
|
items: dataListGroupItems,
|
|
14
13
|
},
|
|
15
|
-
global: {
|
|
16
|
-
plugins: [vuetify],
|
|
17
|
-
},
|
|
18
14
|
})
|
|
19
15
|
|
|
20
16
|
expect(wrapper.find('h4').text()).toBe('Catégorie 1')
|
|
@@ -26,9 +22,6 @@ describe('DataListGroup', () => {
|
|
|
26
22
|
loading: true,
|
|
27
23
|
items: dataListGroupItems,
|
|
28
24
|
},
|
|
29
|
-
global: {
|
|
30
|
-
plugins: [vuetify],
|
|
31
|
-
},
|
|
32
25
|
})
|
|
33
26
|
|
|
34
27
|
expect(wrapper.find('.sy-data-list-loading').exists()).toBe(true)
|
|
@@ -39,9 +32,6 @@ describe('DataListGroup', () => {
|
|
|
39
32
|
props: {
|
|
40
33
|
items: dataListGroupItems,
|
|
41
34
|
},
|
|
42
|
-
global: {
|
|
43
|
-
plugins: [vuetify],
|
|
44
|
-
},
|
|
45
35
|
})
|
|
46
36
|
|
|
47
37
|
const button = wrapper.find('button')
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { mount } from '@vue/test-utils'
|
|
2
2
|
import { describe, it, expect } from 'vitest'
|
|
3
|
-
import { vuetify } from '@tests/unit/setup'
|
|
4
3
|
|
|
5
4
|
import DataListItem from '../DataListItem.vue'
|
|
6
5
|
|
|
7
6
|
describe('DataListItem', () => {
|
|
8
7
|
it('renders correctly', () => {
|
|
9
8
|
const wrapper = mount(DataListItem, {
|
|
10
|
-
global: {
|
|
11
|
-
plugins: [vuetify],
|
|
12
|
-
},
|
|
13
9
|
props: {
|
|
14
10
|
label: 'Test',
|
|
15
11
|
value: 'Sample Value',
|
|
@@ -29,9 +25,6 @@ describe('DataListItem', () => {
|
|
|
29
25
|
|
|
30
26
|
it('renders correctly with a number value', () => {
|
|
31
27
|
const wrapper = mount(DataListItem, {
|
|
32
|
-
global: {
|
|
33
|
-
plugins: [vuetify],
|
|
34
|
-
},
|
|
35
28
|
props: {
|
|
36
29
|
label: 'Test',
|
|
37
30
|
value: 123,
|
|
@@ -43,9 +36,6 @@ describe('DataListItem', () => {
|
|
|
43
36
|
|
|
44
37
|
it('renders correctly with a NaN value', () => {
|
|
45
38
|
const wrapper = mount(DataListItem, {
|
|
46
|
-
global: {
|
|
47
|
-
plugins: [vuetify],
|
|
48
|
-
},
|
|
49
39
|
props: {
|
|
50
40
|
label: 'Test',
|
|
51
41
|
value: parseInt('test', 10),
|
|
@@ -57,9 +47,6 @@ describe('DataListItem', () => {
|
|
|
57
47
|
|
|
58
48
|
it('renders correctly a value with HTML as text', () => {
|
|
59
49
|
const wrapper = mount(DataListItem, {
|
|
60
|
-
global: {
|
|
61
|
-
plugins: [vuetify],
|
|
62
|
-
},
|
|
63
50
|
props: {
|
|
64
51
|
label: 'Test',
|
|
65
52
|
value: '<span>Custom Value</span>',
|
|
@@ -73,9 +60,6 @@ describe('DataListItem', () => {
|
|
|
73
60
|
|
|
74
61
|
it('renders correctly a value as plain HTML', () => {
|
|
75
62
|
const wrapper = mount(DataListItem, {
|
|
76
|
-
global: {
|
|
77
|
-
plugins: [vuetify],
|
|
78
|
-
},
|
|
79
63
|
props: {
|
|
80
64
|
label: 'Test',
|
|
81
65
|
value: 'Paul<br> Dupont',
|
|
@@ -90,9 +74,6 @@ describe('DataListItem', () => {
|
|
|
90
74
|
|
|
91
75
|
it('renders correctly value in a chip', () => {
|
|
92
76
|
const wrapper = mount(DataListItem, {
|
|
93
|
-
global: {
|
|
94
|
-
plugins: [vuetify],
|
|
95
|
-
},
|
|
96
77
|
props: {
|
|
97
78
|
label: 'Test',
|
|
98
79
|
value: 'Chip Value',
|
|
@@ -106,9 +87,6 @@ describe('DataListItem', () => {
|
|
|
106
87
|
|
|
107
88
|
it('renders correctly with an action', () => {
|
|
108
89
|
const wrapper = mount(DataListItem, {
|
|
109
|
-
global: {
|
|
110
|
-
plugins: [vuetify],
|
|
111
|
-
},
|
|
112
90
|
props: {
|
|
113
91
|
label: 'Test',
|
|
114
92
|
action: 'Click Me',
|
|
@@ -121,9 +99,6 @@ describe('DataListItem', () => {
|
|
|
121
99
|
|
|
122
100
|
it('emits click:action event on button click', async () => {
|
|
123
101
|
const wrapper = mount(DataListItem, {
|
|
124
|
-
global: {
|
|
125
|
-
plugins: [vuetify],
|
|
126
|
-
},
|
|
127
102
|
props: {
|
|
128
103
|
label: 'Test',
|
|
129
104
|
action: 'Click Me',
|
|
@@ -138,9 +113,6 @@ describe('DataListItem', () => {
|
|
|
138
113
|
|
|
139
114
|
it('renders correctly in row mode', () => {
|
|
140
115
|
const wrapper = mount(DataListItem, {
|
|
141
|
-
global: {
|
|
142
|
-
plugins: [vuetify],
|
|
143
|
-
},
|
|
144
116
|
props: {
|
|
145
117
|
label: 'Test',
|
|
146
118
|
value: 'Sample Value',
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { mount } from '@vue/test-utils'
|
|
2
2
|
import { describe, it, expect, beforeEach } from 'vitest'
|
|
3
|
-
import { vuetify } from '@tests/unit/setup'
|
|
4
3
|
import { nextTick } from 'vue'
|
|
5
4
|
import DatePicker from '../DatePicker.vue'
|
|
6
5
|
|
|
@@ -9,9 +8,6 @@ describe('CalendarMode.vue - Events', () => {
|
|
|
9
8
|
|
|
10
9
|
beforeEach(() => {
|
|
11
10
|
wrapper = mount(DatePicker, {
|
|
12
|
-
global: {
|
|
13
|
-
plugins: [vuetify],
|
|
14
|
-
},
|
|
15
11
|
props: {
|
|
16
12
|
modelValue: '',
|
|
17
13
|
format: 'DD/MM/YYYY',
|
|
@@ -58,9 +54,6 @@ describe('CalendarMode.vue - Events', () => {
|
|
|
58
54
|
it('permet la saisie manuelle même avec disablePickerInteraction', async () => {
|
|
59
55
|
// Créer un composant avec disablePickerInteraction à true
|
|
60
56
|
const wrapperWithDisabledPicker = mount(DatePicker, {
|
|
61
|
-
global: {
|
|
62
|
-
plugins: [vuetify],
|
|
63
|
-
},
|
|
64
57
|
props: {
|
|
65
58
|
modelValue: '',
|
|
66
59
|
format: 'DD/MM/YYYY',
|
|
@@ -118,9 +111,6 @@ describe('CalendarMode.vue - Events', () => {
|
|
|
118
111
|
|
|
119
112
|
it('accepte différents formats de date', async () => {
|
|
120
113
|
const wrapperWithDashFormat = mount(DatePicker, {
|
|
121
|
-
global: {
|
|
122
|
-
plugins: [vuetify],
|
|
123
|
-
},
|
|
124
114
|
props: {
|
|
125
115
|
modelValue: '',
|
|
126
116
|
format: 'YYYY-MM-DD',
|
|
@@ -142,9 +132,6 @@ describe('CalendarMode.vue - Events', () => {
|
|
|
142
132
|
|
|
143
133
|
it('accepte les plages de dates en entrée', async () => {
|
|
144
134
|
const wrapperWithRange = mount(DatePicker, {
|
|
145
|
-
global: {
|
|
146
|
-
plugins: [vuetify],
|
|
147
|
-
},
|
|
148
135
|
props: {
|
|
149
136
|
modelValue: ['01/01/2023', '05/01/2023'],
|
|
150
137
|
format: 'DD/MM/YYYY',
|
|
@@ -168,9 +155,6 @@ describe('CalendarMode.vue - Events', () => {
|
|
|
168
155
|
}
|
|
169
156
|
|
|
170
157
|
const wrapperWithRules = mount(DatePicker, {
|
|
171
|
-
global: {
|
|
172
|
-
plugins: [vuetify],
|
|
173
|
-
},
|
|
174
158
|
props: {
|
|
175
159
|
modelValue: '',
|
|
176
160
|
format: 'DD/MM/YYYY',
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { mount } from '@vue/test-utils'
|
|
2
2
|
import { describe, it, expect, beforeEach, vi } from 'vitest'
|
|
3
|
-
import { vuetify } from '@tests/unit/setup'
|
|
4
3
|
import { nextTick } from 'vue'
|
|
5
4
|
import DatePicker from '../DatePicker.vue'
|
|
6
5
|
|
|
@@ -9,9 +8,6 @@ describe('CalendarMode.vue', () => {
|
|
|
9
8
|
|
|
10
9
|
beforeEach(() => {
|
|
11
10
|
wrapper = mount(DatePicker, {
|
|
12
|
-
global: {
|
|
13
|
-
plugins: [vuetify],
|
|
14
|
-
},
|
|
15
11
|
props: {
|
|
16
12
|
modelValue: '',
|
|
17
13
|
required: true,
|
|
@@ -20,22 +16,14 @@ describe('CalendarMode.vue', () => {
|
|
|
20
16
|
})
|
|
21
17
|
|
|
22
18
|
it('emits update:modelValue event on date selection', async () => {
|
|
23
|
-
const wrapper = mount(DatePicker
|
|
24
|
-
global: {
|
|
25
|
-
plugins: [vuetify],
|
|
26
|
-
},
|
|
27
|
-
})
|
|
19
|
+
const wrapper = mount(DatePicker)
|
|
28
20
|
const input = wrapper.find('input')
|
|
29
21
|
await input.setValue('01/01/2023')
|
|
30
22
|
expect(wrapper.emitted('update:modelValue')).toBeTruthy()
|
|
31
23
|
})
|
|
32
24
|
|
|
33
25
|
it('renders the component', () => {
|
|
34
|
-
const wrapper = mount(DatePicker
|
|
35
|
-
global: {
|
|
36
|
-
plugins: [vuetify],
|
|
37
|
-
},
|
|
38
|
-
})
|
|
26
|
+
const wrapper = mount(DatePicker)
|
|
39
27
|
expect(wrapper.exists()).toBe(true)
|
|
40
28
|
})
|
|
41
29
|
|
|
@@ -75,11 +63,7 @@ describe('CalendarMode.vue', () => {
|
|
|
75
63
|
const removeEventListenerSpy = vi.spyOn(document, 'removeEventListener')
|
|
76
64
|
|
|
77
65
|
// Monte le composant
|
|
78
|
-
const wrapper = mount(DatePicker
|
|
79
|
-
global: {
|
|
80
|
-
plugins: [vuetify],
|
|
81
|
-
},
|
|
82
|
-
})
|
|
66
|
+
const wrapper = mount(DatePicker)
|
|
83
67
|
|
|
84
68
|
// Démonte le composant
|
|
85
69
|
wrapper.unmount()
|
|
@@ -127,9 +111,6 @@ describe('CalendarMode.vue', () => {
|
|
|
127
111
|
|
|
128
112
|
it('returns true when there are no validation errors', async () => {
|
|
129
113
|
const wrapper = mount(DatePicker, {
|
|
130
|
-
global: {
|
|
131
|
-
plugins: [vuetify],
|
|
132
|
-
},
|
|
133
114
|
props: {
|
|
134
115
|
required: true,
|
|
135
116
|
},
|
|
@@ -146,9 +127,6 @@ describe('CalendarMode.vue', () => {
|
|
|
146
127
|
|
|
147
128
|
it('returns false when there are validation errors', async () => {
|
|
148
129
|
const wrapper = mount(DatePicker, {
|
|
149
|
-
global: {
|
|
150
|
-
plugins: [vuetify],
|
|
151
|
-
},
|
|
152
130
|
props: {
|
|
153
131
|
required: true,
|
|
154
132
|
},
|
|
@@ -206,9 +184,7 @@ describe('CalendarMode.vue', () => {
|
|
|
206
184
|
})
|
|
207
185
|
|
|
208
186
|
it('toggles date picker visibility correctly', async () => {
|
|
209
|
-
const wrapper = mount(DatePicker
|
|
210
|
-
global: { plugins: [vuetify] },
|
|
211
|
-
})
|
|
187
|
+
const wrapper = mount(DatePicker)
|
|
212
188
|
|
|
213
189
|
expect(wrapper.vm.isDatePickerVisible).toBe(false)
|
|
214
190
|
|
|
@@ -223,7 +199,6 @@ describe('CalendarMode.vue', () => {
|
|
|
223
199
|
|
|
224
200
|
it('validates required field correctly', async () => {
|
|
225
201
|
const wrapper = mount(DatePicker, {
|
|
226
|
-
global: { plugins: [vuetify] },
|
|
227
202
|
props: {
|
|
228
203
|
required: true,
|
|
229
204
|
},
|
|
@@ -238,7 +213,6 @@ describe('CalendarMode.vue', () => {
|
|
|
238
213
|
const today = new Date()
|
|
239
214
|
const formattedDate = `${today.getDate().toString().padStart(2, '0')}/${(today.getMonth() + 1).toString().padStart(2, '0')}/${today.getFullYear()}`
|
|
240
215
|
const wrapper = mount(DatePicker, {
|
|
241
|
-
global: { plugins: [vuetify] },
|
|
242
216
|
props: {
|
|
243
217
|
modelValue: formattedDate,
|
|
244
218
|
format: 'DD/MM/YYYY',
|
|
@@ -251,7 +225,6 @@ describe('CalendarMode.vue', () => {
|
|
|
251
225
|
|
|
252
226
|
it('supports date ranges when displayRange is true', async () => {
|
|
253
227
|
const wrapper = mount(DatePicker, {
|
|
254
|
-
global: { plugins: [vuetify] },
|
|
255
228
|
props: {
|
|
256
229
|
displayRange: true,
|
|
257
230
|
},
|
|
@@ -264,7 +237,6 @@ describe('CalendarMode.vue', () => {
|
|
|
264
237
|
|
|
265
238
|
it('properly displays error messages from validation', async () => {
|
|
266
239
|
const wrapper = mount(DatePicker, {
|
|
267
|
-
global: { plugins: [vuetify] },
|
|
268
240
|
props: {
|
|
269
241
|
required: true,
|
|
270
242
|
},
|
|
@@ -281,7 +253,6 @@ describe('CalendarMode.vue', () => {
|
|
|
281
253
|
|
|
282
254
|
it('handles birth date mode properly', async () => {
|
|
283
255
|
const wrapper = mount(DatePicker, {
|
|
284
|
-
global: { plugins: [vuetify] },
|
|
285
256
|
props: {
|
|
286
257
|
isBirthDate: true,
|
|
287
258
|
},
|
|
@@ -296,7 +267,6 @@ describe('CalendarMode.vue', () => {
|
|
|
296
267
|
|
|
297
268
|
it('takes into account disabled and readonly limitations', async () => {
|
|
298
269
|
const wrapper = mount(DatePicker, {
|
|
299
|
-
global: { plugins: [vuetify] },
|
|
300
270
|
props: {
|
|
301
271
|
disabled: true,
|
|
302
272
|
},
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { mount } from '@vue/test-utils'
|
|
2
2
|
import { describe, it, expect, beforeEach } from 'vitest'
|
|
3
|
-
import { vuetify } from '@tests/unit/setup'
|
|
4
3
|
import { nextTick } from 'vue'
|
|
5
4
|
import ComplexDatePicker from '../ComplexDatePicker.vue'
|
|
6
5
|
|
|
@@ -9,9 +8,6 @@ describe('ComplexDatePicker.vue - Events', () => {
|
|
|
9
8
|
|
|
10
9
|
beforeEach(() => {
|
|
11
10
|
wrapper = mount(ComplexDatePicker, {
|
|
12
|
-
global: {
|
|
13
|
-
plugins: [vuetify],
|
|
14
|
-
},
|
|
15
11
|
props: {
|
|
16
12
|
modelValue: '',
|
|
17
13
|
format: 'DD/MM/YYYY',
|
|
@@ -114,9 +110,6 @@ describe('ComplexDatePicker.vue - Events', () => {
|
|
|
114
110
|
|
|
115
111
|
it('accepte une plage de dates en entrée', async () => {
|
|
116
112
|
const wrapperWithRange = mount(ComplexDatePicker, {
|
|
117
|
-
global: {
|
|
118
|
-
plugins: [vuetify],
|
|
119
|
-
},
|
|
120
113
|
props: {
|
|
121
114
|
modelValue: ['01/01/2023', '05/01/2023'],
|
|
122
115
|
format: 'DD/MM/YYYY',
|
|
@@ -140,9 +133,6 @@ describe('ComplexDatePicker.vue - Events', () => {
|
|
|
140
133
|
}
|
|
141
134
|
|
|
142
135
|
const wrapperWithRules = mount(ComplexDatePicker, {
|
|
143
|
-
global: {
|
|
144
|
-
plugins: [vuetify],
|
|
145
|
-
},
|
|
146
136
|
props: {
|
|
147
137
|
modelValue: '',
|
|
148
138
|
format: 'DD/MM/YYYY',
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { mount } from '@vue/test-utils'
|
|
2
2
|
import { describe, it, expect, beforeEach } from 'vitest'
|
|
3
|
-
import { vuetify } from '@tests/unit/setup'
|
|
4
3
|
import { nextTick } from 'vue'
|
|
5
4
|
import DateTextInput from './DateTextInput.vue'
|
|
6
5
|
|
|
@@ -9,9 +8,6 @@ describe('DateTextInput.vue - Events', () => {
|
|
|
9
8
|
|
|
10
9
|
beforeEach(() => {
|
|
11
10
|
wrapper = mount(DateTextInput, {
|
|
12
|
-
global: {
|
|
13
|
-
plugins: [vuetify],
|
|
14
|
-
},
|
|
15
11
|
props: {
|
|
16
12
|
modelValue: '',
|
|
17
13
|
format: 'DD/MM/YYYY',
|
|
@@ -84,9 +80,6 @@ describe('DateTextInput.vue - Events', () => {
|
|
|
84
80
|
|
|
85
81
|
it('supporte différents séparateurs selon le format', async () => {
|
|
86
82
|
const wrapperWithDashFormat = mount(DateTextInput, {
|
|
87
|
-
global: {
|
|
88
|
-
plugins: [vuetify],
|
|
89
|
-
},
|
|
90
83
|
props: {
|
|
91
84
|
modelValue: '',
|
|
92
85
|
format: 'YYYY-MM-DD',
|
|
@@ -110,9 +103,6 @@ describe('DateTextInput.vue - Events', () => {
|
|
|
110
103
|
|
|
111
104
|
it('gère correctement les plages de dates', async () => {
|
|
112
105
|
const wrapperWithRange = mount(DateTextInput, {
|
|
113
|
-
global: {
|
|
114
|
-
plugins: [vuetify],
|
|
115
|
-
},
|
|
116
106
|
props: {
|
|
117
107
|
modelValue: '',
|
|
118
108
|
format: 'DD/MM/YYYY',
|
|
@@ -139,9 +129,6 @@ describe('DateTextInput.vue - Events', () => {
|
|
|
139
129
|
}
|
|
140
130
|
|
|
141
131
|
const wrapperWithRules = mount(DateTextInput, {
|
|
142
|
-
global: {
|
|
143
|
-
plugins: [vuetify],
|
|
144
|
-
},
|
|
145
132
|
props: {
|
|
146
133
|
modelValue: '',
|
|
147
134
|
format: 'DD/MM/YYYY',
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { vuetify } from '@tests/unit/setup'
|
|
2
1
|
import { flushPromises, mount } from '@vue/test-utils'
|
|
3
2
|
import { beforeEach, describe, expect, it } from 'vitest'
|
|
4
3
|
import SyTextField from '../../Customs/SyTextField/SyTextField.vue'
|
|
@@ -9,9 +8,6 @@ describe('DateTextInput.vue - Range Mode', () => {
|
|
|
9
8
|
|
|
10
9
|
beforeEach(() => {
|
|
11
10
|
wrapper = mount(DateTextInput, {
|
|
12
|
-
global: {
|
|
13
|
-
plugins: [vuetify],
|
|
14
|
-
},
|
|
15
11
|
props: {
|
|
16
12
|
modelValue: null,
|
|
17
13
|
format: 'DD/MM/YYYY',
|
|
@@ -160,9 +156,6 @@ describe('DateTextInput.vue - Range Mode', () => {
|
|
|
160
156
|
|
|
161
157
|
it('correctly formats range with different return format', async () => {
|
|
162
158
|
wrapper = mount(DateTextInput, {
|
|
163
|
-
global: {
|
|
164
|
-
plugins: [vuetify],
|
|
165
|
-
},
|
|
166
159
|
props: {
|
|
167
160
|
modelValue: null,
|
|
168
161
|
format: 'DD/MM/YYYY',
|
|
@@ -331,9 +324,6 @@ describe('DateTextInput.vue - Range Mode', () => {
|
|
|
331
324
|
it('validates custom rules in range mode', async () => {
|
|
332
325
|
// Créer un wrapper avec une règle personnalisée qui échoue toujours
|
|
333
326
|
const customWrapper = mount(DateTextInput, {
|
|
334
|
-
global: {
|
|
335
|
-
plugins: [vuetify],
|
|
336
|
-
},
|
|
337
327
|
props: {
|
|
338
328
|
modelValue: null,
|
|
339
329
|
format: 'DD/MM/YYYY',
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { flushPromises, mount } from '@vue/test-utils'
|
|
2
2
|
import { describe, it, expect, beforeEach, vi } from 'vitest'
|
|
3
|
-
import { vuetify } from '@tests/unit/setup'
|
|
4
3
|
import DateTextInput from './DateTextInput.vue'
|
|
5
4
|
import SyTextField from '../../Customs/SyTextField/SyTextField.vue'
|
|
6
5
|
|
|
@@ -9,9 +8,6 @@ describe('DateTextInput.vue', () => {
|
|
|
9
8
|
|
|
10
9
|
beforeEach(() => {
|
|
11
10
|
wrapper = mount(DateTextInput, {
|
|
12
|
-
global: {
|
|
13
|
-
plugins: [vuetify],
|
|
14
|
-
},
|
|
15
11
|
props: {
|
|
16
12
|
modelValue: null,
|
|
17
13
|
format: 'DD/MM/YYYY',
|
|
@@ -54,9 +50,6 @@ describe('DateTextInput.vue', () => {
|
|
|
54
50
|
|
|
55
51
|
it('formats date according to dateFormatReturn', async () => {
|
|
56
52
|
const wrapper = mount(DateTextInput, {
|
|
57
|
-
global: {
|
|
58
|
-
plugins: [vuetify],
|
|
59
|
-
},
|
|
60
53
|
props: {
|
|
61
54
|
modelValue: null,
|
|
62
55
|
format: 'DD/MM/YYYY',
|
|
@@ -73,9 +66,6 @@ describe('DateTextInput.vue', () => {
|
|
|
73
66
|
|
|
74
67
|
it('validates custom rules', async () => {
|
|
75
68
|
const wrapper = mount(DateTextInput, {
|
|
76
|
-
global: {
|
|
77
|
-
plugins: [vuetify],
|
|
78
|
-
},
|
|
79
69
|
props: {
|
|
80
70
|
modelValue: null,
|
|
81
71
|
format: 'DD/MM/YYYY',
|
|
@@ -112,9 +102,6 @@ describe('DateTextInput.vue', () => {
|
|
|
112
102
|
},
|
|
113
103
|
}],
|
|
114
104
|
},
|
|
115
|
-
global: {
|
|
116
|
-
plugins: [vuetify],
|
|
117
|
-
},
|
|
118
105
|
})
|
|
119
106
|
|
|
120
107
|
// Force validation by triggering a blur event
|
|
@@ -160,9 +147,6 @@ describe('DateTextInput.vue', () => {
|
|
|
160
147
|
|
|
161
148
|
it('validates modelValue with different dateFormatReturn format', async () => {
|
|
162
149
|
const wrapper = mount(DateTextInput, {
|
|
163
|
-
global: {
|
|
164
|
-
plugins: [vuetify],
|
|
165
|
-
},
|
|
166
150
|
props: {
|
|
167
151
|
modelValue: '2025-1-1',
|
|
168
152
|
format: 'DD/MM/YYYY',
|
|
@@ -213,9 +197,6 @@ describe('DateTextInput.vue', () => {
|
|
|
213
197
|
|
|
214
198
|
it('supports different date formats', async () => {
|
|
215
199
|
const customWrapper = mount(DateTextInput, {
|
|
216
|
-
global: {
|
|
217
|
-
plugins: [vuetify],
|
|
218
|
-
},
|
|
219
200
|
props: {
|
|
220
201
|
modelValue: null,
|
|
221
202
|
format: 'YYYY-MM-DD',
|
|
@@ -255,9 +236,6 @@ describe('DateTextInput.vue', () => {
|
|
|
255
236
|
|
|
256
237
|
it('handles custom date format return', async () => {
|
|
257
238
|
const customWrapper = mount(DateTextInput, {
|
|
258
|
-
global: {
|
|
259
|
-
plugins: [vuetify],
|
|
260
|
-
},
|
|
261
239
|
props: {
|
|
262
240
|
modelValue: null,
|
|
263
241
|
format: 'DD/MM/YYYY',
|
|
@@ -296,9 +274,6 @@ describe('DateTextInput.vue', () => {
|
|
|
296
274
|
|
|
297
275
|
it('handles 2 digits year correctly', async () => {
|
|
298
276
|
const customWrapper = mount(DateTextInput, {
|
|
299
|
-
global: {
|
|
300
|
-
plugins: [vuetify],
|
|
301
|
-
},
|
|
302
277
|
props: {
|
|
303
278
|
modelValue: null,
|
|
304
279
|
format: 'DD/MM/YY',
|
|
@@ -325,9 +300,6 @@ describe('DateTextInput.vue', () => {
|
|
|
325
300
|
|
|
326
301
|
it('handles ISO-8601 date format correctly', async () => {
|
|
327
302
|
const customWrapper = mount(DateTextInput, {
|
|
328
|
-
global: {
|
|
329
|
-
plugins: [vuetify],
|
|
330
|
-
},
|
|
331
303
|
props: {
|
|
332
304
|
modelValue: null,
|
|
333
305
|
format: 'YYYY-MM-DD',
|
|
@@ -430,9 +402,6 @@ describe('DateTextInput.vue', () => {
|
|
|
430
402
|
|
|
431
403
|
it('initializes with model value correctly', async () => {
|
|
432
404
|
const customWrapper = mount(DateTextInput, {
|
|
433
|
-
global: {
|
|
434
|
-
plugins: [vuetify],
|
|
435
|
-
},
|
|
436
405
|
props: {
|
|
437
406
|
modelValue: '01/01/2025',
|
|
438
407
|
dateFormat: 'DD/MM/YYYY',
|
|
@@ -446,9 +415,6 @@ describe('DateTextInput.vue', () => {
|
|
|
446
415
|
|
|
447
416
|
it('handles different date separators correctly', async () => {
|
|
448
417
|
const customWrapper = mount(DateTextInput, {
|
|
449
|
-
global: {
|
|
450
|
-
plugins: [vuetify],
|
|
451
|
-
},
|
|
452
418
|
props: {
|
|
453
419
|
modelValue: null,
|
|
454
420
|
format: 'DD.MM.YYYY',
|
|
@@ -523,9 +489,6 @@ describe('DateTextInput.vue', () => {
|
|
|
523
489
|
},
|
|
524
490
|
}],
|
|
525
491
|
},
|
|
526
|
-
global: {
|
|
527
|
-
plugins: [vuetify],
|
|
528
|
-
},
|
|
529
492
|
})
|
|
530
493
|
|
|
531
494
|
// Force la validation
|
|
@@ -549,9 +512,6 @@ describe('DateTextInput.vue', () => {
|
|
|
549
512
|
|
|
550
513
|
it('handles multiple validation rules correctly', async () => {
|
|
551
514
|
const customWrapper = mount(DateTextInput, {
|
|
552
|
-
global: {
|
|
553
|
-
plugins: [vuetify],
|
|
554
|
-
},
|
|
555
515
|
props: {
|
|
556
516
|
modelValue: null,
|
|
557
517
|
format: 'DD/MM/YYYY',
|
|
@@ -589,9 +549,6 @@ describe('DateTextInput.vue', () => {
|
|
|
589
549
|
// Tests spécifiques pour la gestion du curseur
|
|
590
550
|
it('positionne correctement le curseur après une frappe de caractère', async () => {
|
|
591
551
|
const customWrapper = mount(DateTextInput, {
|
|
592
|
-
global: {
|
|
593
|
-
plugins: [vuetify],
|
|
594
|
-
},
|
|
595
552
|
props: {
|
|
596
553
|
format: 'DD/MM/YYYY',
|
|
597
554
|
required: false,
|
|
@@ -621,9 +578,6 @@ describe('DateTextInput.vue', () => {
|
|
|
621
578
|
|
|
622
579
|
it('saute les séparateurs lors de la saisie de date', async () => {
|
|
623
580
|
const customWrapper = mount(DateTextInput, {
|
|
624
|
-
global: {
|
|
625
|
-
plugins: [vuetify],
|
|
626
|
-
},
|
|
627
581
|
props: {
|
|
628
582
|
format: 'DD/MM/YYYY',
|
|
629
583
|
required: false,
|
|
@@ -651,9 +605,6 @@ describe('DateTextInput.vue', () => {
|
|
|
651
605
|
// Tests d'intégration pour des flux utilisateur complexes
|
|
652
606
|
it('gère correctement un cycle complet de saisie, validation et correction', async () => {
|
|
653
607
|
const customWrapper = mount(DateTextInput, {
|
|
654
|
-
global: {
|
|
655
|
-
plugins: [vuetify],
|
|
656
|
-
},
|
|
657
608
|
props: {
|
|
658
609
|
modelValue: null,
|
|
659
610
|
format: 'DD/MM/YYYY',
|
|
@@ -702,9 +653,6 @@ describe('DateTextInput.vue', () => {
|
|
|
702
653
|
|
|
703
654
|
it('gère correctement plusieurs cycles de validation', async () => {
|
|
704
655
|
const customWrapper = mount(DateTextInput, {
|
|
705
|
-
global: {
|
|
706
|
-
plugins: [vuetify],
|
|
707
|
-
},
|
|
708
656
|
props: {
|
|
709
657
|
modelValue: null,
|
|
710
658
|
format: 'DD/MM/YYYY',
|