@cnamts/synapse 1.0.15 → 1.0.17
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-isr8mXVb.js → DateFilter-RHtdShO1.js} +12 -12
- package/dist/{NumberFilter-BOe7DqWX.js → NumberFilter-DXYz_b_w.js} +1 -1
- package/dist/{PeriodFilter-WTprpO40.js → PeriodFilter-CzphmrNu.js} +1 -1
- package/dist/{SelectFilter-CqlG5dmI.js → SelectFilter-a4fUV5Jp.js} +1 -1
- package/dist/{TextFilter-fVW5bsRw.js → TextFilter-CZ4LTKoq.js} +1 -1
- package/dist/components/Accordion/Accordion.d.ts +22 -7
- package/dist/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.d.ts +2836 -2845
- 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/AmeliproCheckbox/AmeliproCheckbox.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproCheckboxGroup/AmeliproCheckboxGroup.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproClickableTile/AmeliproClickableTile.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproCustomSelector/AmeliproCustomSelector.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproErrorTemplate/AmeliproErrorTemplate.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproFirstLogin/AmeliproFirstLogin.d.ts +3 -3
- 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/AmeliproIcon/AmeliproIcon.d.ts +3 -1
- package/dist/components/Amelipro/AmeliproIconBtn/AmeliproIconBtn.d.ts +5 -3
- package/dist/components/Amelipro/AmeliproIllustratedRadioGroup/AmeliproIllustratedRadioGroup.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproMenu/AmeliproMenu.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproMultipleFoldingCard/AmeliproMultipleFoldingCard.d.ts +1 -1
- 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/AmeliproPatientLogged/AmeliproPatientLogged.d.ts +40 -8
- package/dist/components/Amelipro/AmeliproPatientLogged/types.d.ts +2 -1
- package/dist/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressCityRow/AmeliproPostalAddressCityRow.d.ts +1288 -1284
- package/dist/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressField.d.ts +1936 -1930
- package/dist/components/Amelipro/AmeliproRadioGroup/AmeliproRadioGroup.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproSelect/AmeliproSelect.d.ts +2838 -2865
- package/dist/components/Amelipro/AmeliproStateTile/AmeliproStateTile.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproTabs/AmeliproTabBtn/AmeliproTabBtn.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproTabs/AmeliproTabs.d.ts +2849 -2867
- package/dist/components/Amelipro/AmeliproTextArea/AmeliproTextArea.d.ts +397 -397
- package/dist/components/Amelipro/AmeliproTextField/AmeliproTextField.d.ts +653 -642
- package/dist/components/Amelipro/AmeliproTileBtn/AmeliproTileBtn.d.ts +233 -5
- package/dist/components/Amelipro/AmeliproTooltips/AmeliproTooltips.d.ts +6 -2
- package/dist/components/Amelipro/AmeliproTransmission/AmeliproTransmission.d.ts +9 -9
- package/dist/components/Amelipro/StructureMenu/StructureBtn/StructureBtn.d.ts +9 -0
- package/dist/components/Amelipro/StructureMenu/StructureItem/types.d.ts +1 -0
- package/dist/components/Amelipro/StructureMenu/StructureMenu.d.ts +9 -0
- package/dist/components/Amelipro/StructureMenu/StructureTabs/StructureTabs.d.ts +23 -2
- package/dist/components/Captcha/CaptchaHelpdesk.d.ts +6 -0
- package/dist/components/ChipList/locales.d.ts +1 -0
- package/dist/components/CookieBanner/CookieBanner.d.ts +117 -119
- package/dist/components/CookiesSelection/CookiesInformation/CookiesInformation.d.ts +484 -484
- package/dist/components/CookiesSelection/CookiesSelection.d.ts +104 -106
- package/dist/components/Customs/Selects/SelectBtnField/SelectBtnField.d.ts +14 -10
- package/dist/components/Customs/Selects/SySelect/SySelect.d.ts +118 -129
- package/dist/components/Customs/Selects/SySelect/composables/useSySelectKeyboard.d.ts +1 -3
- package/dist/components/Customs/SyCheckbox/SyCheckbox.d.ts +1 -1
- package/dist/components/Customs/SyForm/SyForm.d.ts +60 -53
- package/dist/components/Customs/SyRadioGroup/SyRadioGroup.d.ts +88 -0
- package/dist/components/Customs/SyRadioGroup/locales.d.ts +3 -0
- package/dist/components/Customs/SyTextField/SyTextField.d.ts +644 -642
- package/dist/components/DataList/DataList.d.ts +6 -1
- package/dist/components/DataListGroup/DataListGroup.d.ts +14 -2
- package/dist/components/DataListItem/DataListItem.d.ts +3 -0
- package/dist/components/DatePicker/CalendarMode/DatePicker.d.ts +2986 -3098
- package/dist/components/DatePicker/ComplexDatePicker/ComplexDatePicker.d.ts +1456 -1558
- package/dist/components/DatePicker/DateTextInput/DateTextInput.d.ts +653 -652
- package/dist/components/DatePicker/composables/index.d.ts +4 -1
- package/dist/components/DatePicker/composables/useAsteriskDisplay.d.ts +1 -1
- package/dist/components/DatePicker/composables/useCalendarKeyboardNavigation.d.ts +11 -0
- package/dist/components/DatePicker/composables/useDatePickerState.d.ts +25 -0
- package/dist/components/DatePicker/composables/useDateTextField.d.ts +61 -0
- package/dist/components/DatePicker/composables/useHolidayHighlighting.d.ts +15 -0
- package/dist/components/DatePicker/constants/messages.d.ts +0 -1
- package/dist/components/DialogBox/DialogBox.d.ts +177 -179
- package/dist/components/DialogBox/config.d.ts +4 -0
- package/dist/components/FilterSideBar/FilterSideBar.d.ts +170 -173
- package/dist/components/FilterSideBar/locales.d.ts +5 -0
- package/dist/components/FooterBar/FooterBar.d.ts +5 -5
- package/dist/components/HeaderBar/HeaderBar.d.ts +4 -2
- package/dist/components/HeaderBar/HeaderLogo/HeaderLogo.d.ts +1 -1
- package/dist/components/HeaderNavigationBar/HeaderNavigationBar.d.ts +15 -5
- package/dist/components/HeaderNavigationBar/HorizontalNavbar/HorizontalNavbar.d.ts +5 -1
- package/dist/components/HeaderToolbar/HeaderToolbar.d.ts +234 -258
- package/dist/components/LangBtn/LangBtn.d.ts +173 -179
- package/dist/components/LogoBrandSection/LogoBrandSection.d.ts +1 -1
- package/dist/components/LunarCalendar/LunarCalendar.d.ts +29 -0
- package/dist/components/LunarCalendar/useLunarCalendarRules.d.ts +5 -0
- package/dist/components/LunarCalendar/useLunarCalendarValidation.d.ts +13 -0
- package/dist/components/MaintenancePage/MaintenancePage.d.ts +8 -1
- package/dist/components/NirField/NirField.d.ts +1296 -1292
- package/dist/components/NotFoundPage/NotFoundPage.d.ts +9 -2
- package/dist/components/NotificationBar/Notification/Notification.d.ts +30 -0
- package/dist/components/NotificationBar/NotificationBar.d.ts +32 -20
- package/dist/components/PaginatedTable/PaginatedTable.d.ts +1 -1
- package/dist/components/PeriodField/PeriodField.d.ts +5855 -6079
- package/dist/components/PhoneField/PhoneField.d.ts +645 -643
- package/dist/components/SubHeader/SubHeader.d.ts +11 -8
- package/dist/components/SyAlert/SyAlert.d.ts +31 -31
- package/dist/components/SyTextArea/SyTextArea.d.ts +397 -395
- package/dist/components/SyTextArea/locales.d.ts +1 -0
- package/dist/components/Tables/SyServerTable/SyServerTable.d.ts +193 -227
- package/dist/components/Tables/SyTable/SyTable.d.ts +192 -226
- package/dist/components/Tables/common/SyTableFilter.d.ts +1 -1
- package/dist/components/Tables/common/SyTablePagination.d.ts +118 -129
- package/dist/components/Tables/common/TableHeader.d.ts +52 -2
- 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/locales.d.ts +1 -0
- package/dist/components/Tables/common/organizeColumns/OrganizeColumns.d.ts +86 -90
- package/dist/components/Tables/common/tableFilterUtils.d.ts +2 -2
- package/dist/components/Tables/common/types.d.ts +3 -2
- package/dist/components/Tables/common/useTableCheckbox.d.ts +3 -2
- package/dist/components/Tables/common/useTableFilter.d.ts +1 -1
- package/dist/components/Tables/common/useTableItems.d.ts +6 -8
- package/dist/components/UploadWorkflow/UploadWorkflow.d.ts +18 -18
- package/dist/components/UserMenuBtn/UserMenuBtn.d.ts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/design-system-v3.js +101 -98
- package/dist/design-system-v3.umd.cjs +25 -33
- package/dist/directives/lockFocus.d.ts +1 -1
- package/dist/main-BXIMMzFS.js +35408 -0
- package/dist/style.css +1 -1
- package/dist/utils/formatNir/formatNir.d.ts +2 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/insertAt.d.ts +1 -0
- package/dist/utils/rules/validateDateValue.d.ts +14 -0
- package/dist/vuetifyConfig.d.ts +6 -6
- package/package.json +14 -7
- package/src/assets/tokens.scss +2 -0
- package/src/components/Accordion/Accessibilite/AccessibilityGuide.mdx +70 -241
- package/src/components/Accordion/Accordion.mdx +6 -1
- package/src/components/Accordion/Accordion.stories.ts +88 -9
- package/src/components/Accordion/Accordion.vue +56 -24
- package/src/components/Accordion/tests/Accordion.a11y.spec.ts +46 -0
- package/src/components/Accordion/tests/__snapshots__/accordion.spec.ts.snap +26 -30
- package/src/components/Accordion/tests/accordion.spec.ts +27 -26
- package/src/components/Amelipro/AmeliproAccordion/AmeliproAccordionTemplate/__tests__/__snapshots__/AmeliproAccordionTemplate.spec.ts.snap +1 -18
- package/src/components/Amelipro/AmeliproAccordion/__tests__/AmeliproAccordion.spec.ts +178 -9
- package/src/components/Amelipro/AmeliproAccordion/__tests__/__snapshots__/AmeliproAccordion.spec.ts.snap +28 -121
- package/src/components/Amelipro/AmeliproAccordionFrieze/__tests__/__snapshots__/AmeliproAccordionFrieze.spec.ts.snap +15 -270
- package/src/components/Amelipro/AmeliproAccordionList/__tests__/__snapshots__/AmeliproAccordionList.spec.ts.snap +12 -194
- package/src/components/Amelipro/AmeliproAccordionResult/AmeliproAccordionResultTemplate/__tests__/__snapshots__/AmeliproAccordionResultTemplate.spec.ts.snap +1 -18
- package/src/components/Amelipro/AmeliproAccordionResult/__tests__/__snapshots__/AmeliproAccordionResult.spec.ts.snap +1 -18
- package/src/components/Amelipro/AmeliproAccordionResultList/__tests__/__snapshots__/AmeliproAccordionResultList.spec.ts.snap +12 -194
- package/src/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.stories.ts +9 -9
- package/src/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.vue +5 -4
- package/src/components/Amelipro/AmeliproAutoCompleteField/__tests__/AmeliproAutoCompleteField.spec.ts +6 -6
- package/src/components/Amelipro/AmeliproAutoCompleteField/__tests__/__snapshots__/AmeliproAutoCompleteField.spec.ts.snap +2 -0
- package/src/components/Amelipro/AmeliproBadge/__tests__/AmeliproBadge.spec.ts +135 -9
- package/src/components/Amelipro/AmeliproBadge/__tests__/__snapshots__/AmeliproBadge.spec.ts.snap +20 -5
- package/src/components/Amelipro/AmeliproBreadcrumb/__tests__/AmeliproBreadcrumb.spec.ts +195 -28
- package/src/components/Amelipro/AmeliproBreadcrumb/__tests__/__snapshots__/AmeliproBreadcrumb.spec.ts.snap +193 -124
- package/src/components/Amelipro/AmeliproCaptcha/AmeliproCaptcha.vue +1 -1
- package/src/components/Amelipro/AmeliproCaptcha/__tests__/AmeliproCaptcha.spec.ts +364 -12
- package/src/components/Amelipro/AmeliproCaptcha/__tests__/__snapshots__/AmeliproCaptcha.spec.ts.snap +30 -390
- package/src/components/Amelipro/AmeliproCarousel/__tests__/__snapshots__/AmeliproCarousel.spec.ts.snap +4 -36
- package/src/components/Amelipro/AmeliproCheckbox/AmeliproCheckbox.stories.ts +10 -10
- package/src/components/Amelipro/AmeliproCheckbox/AmeliproCheckbox.vue +7 -7
- package/src/components/Amelipro/AmeliproCheckbox/__tests__/AmeliproCheckbox.spec.ts +5 -5
- package/src/components/Amelipro/AmeliproCheckbox/__tests__/__snapshots__/AmeliproCheckbox.spec.ts.snap +1 -1
- package/src/components/Amelipro/AmeliproCheckboxGroup/AmeliproCheckboxGroup.stories.ts +7 -6
- package/src/components/Amelipro/AmeliproCheckboxGroup/AmeliproCheckboxGroup.vue +6 -6
- package/src/components/Amelipro/AmeliproCheckboxGroup/__tests__/AmeliproCheckboxGroup.spec.ts +6 -6
- package/src/components/Amelipro/AmeliproCheckboxGroup/__tests__/__snapshots__/AmeliproCheckboxGroup.spec.ts.snap +2 -2
- package/src/components/Amelipro/AmeliproClickableTile/tests/__snapshots__/AmeliproClickableTile.spec.ts.snap +2 -43
- package/src/components/Amelipro/AmeliproContentLayout/__tests__/AmeliproContentLayout.spec.ts +80 -9
- package/src/components/Amelipro/AmeliproContentLayout/__tests__/__snapshots__/AmeliproContentLayout.spec.ts.snap +25 -4
- package/src/components/Amelipro/AmeliproCopyBtn/__tests__/__snapshots__/AmeliproCopyBtn.spec.ts.snap +1 -13
- package/src/components/Amelipro/AmeliproCustomSelector/AmeliproCustomSelector.stories.ts +7 -6
- package/src/components/Amelipro/AmeliproCustomSelector/AmeliproCustomSelector.vue +5 -5
- package/src/components/Amelipro/AmeliproCustomSelector/__tests__/AmeliproCustomSelector.spec.ts +187 -39
- package/src/components/Amelipro/AmeliproCustomSelector/__tests__/__snapshots__/AmeliproCustomSelector.spec.ts.snap +147 -147
- package/src/components/Amelipro/AmeliproDentalChart/tests/__snapshots__/AmeliproDentalChart.spec.ts.snap +1 -1
- package/src/components/Amelipro/AmeliproDialog/__tests__/__snapshots__/AmeliproDialog.spec.ts.snap +0 -2
- package/src/components/Amelipro/AmeliproErrorTemplate/__tests__/AmeliproErrorTemplate.spec.ts +160 -20
- package/src/components/Amelipro/AmeliproErrorTemplate/__tests__/__snapshots__/AmeliproErrorTemplate.spec.ts.snap +34 -177
- package/src/components/Amelipro/AmeliproFilePreview/AmeliproFilePreview.vue +1 -0
- package/src/components/Amelipro/AmeliproFilePreview/__tests__/AmeliproFilePreview.spec.ts +248 -19
- package/src/components/Amelipro/AmeliproFilePreview/__tests__/__snapshots__/AmeliproFilePreview.spec.ts.snap +34 -203
- package/src/components/Amelipro/AmeliproFirstLogin/__tests__/__snapshots__/AmeliproFirstLogin.spec.ts.snap +6 -144
- package/src/components/Amelipro/AmeliproIcon/AmeliproIcon.vue +20 -2
- package/src/components/Amelipro/AmeliproIcon/__tests__/__snapshots__/AmeliproIcon.spec.ts.snap +1 -25
- package/src/components/Amelipro/AmeliproIllustratedRadioGroup/AmeliproIllustratedRadioGroup.stories.ts +5 -5
- package/src/components/Amelipro/AmeliproIllustratedRadioGroup/AmeliproIllustratedRadioGroup.vue +6 -6
- package/src/components/Amelipro/AmeliproIllustratedRadioGroup/__tests__/AmeliproIllustratedRadioGroup.spec.ts +22 -22
- package/src/components/Amelipro/AmeliproIllustratedRadioGroup/__tests__/__snapshots__/AmeliproIllustratedRadioGroup.spec.ts.snap +2 -2
- package/src/components/Amelipro/AmeliproMultipleFoldingCard/__tests__/AmeliproMultipleFoldingCard.spec.ts +304 -0
- package/src/components/Amelipro/AmeliproMultipleFoldingCard/__tests__/__snapshots__/AmeliproMultipleFoldingCard.spec.ts.snap +373 -0
- package/src/components/Amelipro/AmeliproPatientLogged/AmeliproPatientLogged.stories.ts +64 -34
- package/src/components/Amelipro/AmeliproPatientLogged/AmeliproPatientLogged.vue +75 -16
- package/src/components/Amelipro/AmeliproPatientLogged/__tests__/AmeliproPatientLogged.spec.ts +4 -2
- package/src/components/Amelipro/AmeliproPatientLogged/__tests__/__snapshots__/AmeliproPatientLogged.spec.ts.snap +63 -177
- package/src/components/Amelipro/AmeliproPatientLogged/types.d.ts +2 -1
- package/src/components/Amelipro/AmeliproPatientLogin/AmeliproPatientLogin.stories.ts +11 -5
- package/src/components/Amelipro/AmeliproPatientLogin/AmeliproPatientLoginForm/AmeliproPatientLoginForm.vue +9 -1
- package/src/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressCityRow/AmeliproPostalAddressCityRow.vue +162 -72
- package/src/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressCityRow/__tests__/AmeliproPostalAddressCityRow.spec.ts +2 -2
- package/src/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressCityRow/__tests__/__snapshots__/AmeliproPostalAddressCityRow.spec.ts.snap +6 -39
- package/src/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressField.stories.ts +3 -3
- package/src/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressField.vue +8 -8
- package/src/components/Amelipro/AmeliproPostalAddressField/{tests → __tests__}/AmeliproPostalAddressField.spec.ts +2 -2
- package/src/components/Amelipro/AmeliproPostalAddressField/{tests → __tests__}/__snapshots__/AmeliproPostalAddressField.spec.ts.snap +11 -52
- package/src/components/Amelipro/AmeliproRadioGroup/AmeliproRadioGroup.stories.ts +7 -7
- package/src/components/Amelipro/AmeliproRadioGroup/AmeliproRadioGroup.vue +8 -8
- package/src/components/Amelipro/AmeliproRadioGroup/__tests__/AmeliproRadioGroup.spec.ts +6 -6
- package/src/components/Amelipro/AmeliproRadioGroup/__tests__/__snapshots__/AmeliproRadioGroup.spec.ts.snap +2 -2
- package/src/components/Amelipro/AmeliproResultList/__tests__/__snapshots__/AmeliproResultList.spec.ts.snap +2 -14
- package/src/components/Amelipro/AmeliproSelect/AmeliproSelect.stories.ts +7 -7
- package/src/components/Amelipro/AmeliproSelect/AmeliproSelect.vue +41 -5
- package/src/components/Amelipro/AmeliproSelect/__tests__/AmeliproSelect.spec.ts +12 -12
- package/src/components/Amelipro/AmeliproSelect/__tests__/__snapshots__/AmeliproSelect.spec.ts.snap +2 -2
- package/src/components/Amelipro/AmeliproStepper/AmeliproStepper.vue +2 -2
- package/src/components/Amelipro/AmeliproStepper/__tests__/__snapshots__/AmeliproStepper.spec.ts.snap +2 -2
- package/src/components/Amelipro/AmeliproTable/AmeliproTable.vue +2 -2
- package/src/components/Amelipro/AmeliproTable/__tests__/AmeliproTable.spec.ts +463 -68
- package/src/components/Amelipro/AmeliproTable/__tests__/__snapshots__/AmeliproTable.spec.ts.snap +176 -511
- package/src/components/Amelipro/AmeliproTabs/AmeliproTabs.stories.ts +94 -0
- package/src/components/Amelipro/AmeliproTabs/AmeliproTabs.vue +6 -2
- package/src/components/Amelipro/AmeliproTabs/__tests__/AmeliproTabs.spec.ts +4 -0
- package/src/components/Amelipro/AmeliproTabs/__tests__/__snapshots__/AmeliproTabs.spec.ts.snap +4 -2
- package/src/components/Amelipro/AmeliproTextArea/AmeliproTextArea.stories.ts +6 -6
- package/src/components/Amelipro/AmeliproTextArea/AmeliproTextArea.vue +4 -4
- package/src/components/Amelipro/AmeliproTextArea/__tests__/AmeliproTextArea.spec.ts +3 -3
- package/src/components/Amelipro/AmeliproTextArea/__tests__/__snapshots__/AmeliproTextArea.spec.ts.snap +1 -2
- package/src/components/Amelipro/AmeliproTextField/AmeliproTextField.stories.ts +78 -10
- package/src/components/Amelipro/AmeliproTextField/AmeliproTextField.vue +114 -6
- package/src/components/Amelipro/AmeliproTextField/__tests__/AmeliproTextField.spec.ts +19 -7
- package/src/components/Amelipro/AmeliproTextField/__tests__/__snapshots__/AmeliproTextField.spec.ts.snap +2 -0
- package/src/components/Amelipro/AmeliproTileBtn/AmeliproTileBtn.stories.ts +44 -0
- package/src/components/Amelipro/AmeliproTileBtn/AmeliproTileBtn.vue +79 -1
- package/src/components/Amelipro/AmeliproTooltips/AmeliproTooltips.stories.ts +45 -0
- package/src/components/Amelipro/AmeliproTooltips/AmeliproTooltips.vue +6 -0
- package/src/components/Amelipro/AmeliproTooltips/__tests__/__snapshots__/AmeliproTooltips.spec.ts.snap +0 -2
- package/src/components/Amelipro/AmeliproUpload/AmeliproUpload.stories.ts +2 -2
- package/src/components/Amelipro/AmeliproUpload/AmeliproUpload.vue +21 -7
- package/src/components/Amelipro/AmeliproUpload/__tests__/AmeliproUpload.spec.ts +252 -44
- package/src/components/Amelipro/AmeliproUpload/__tests__/__snapshots__/AmeliproUpload.spec.ts.snap +166 -0
- package/src/components/Amelipro/ServiceMenu/ServiceBtn/__tests__/ServiceBtn.spec.ts +137 -0
- package/src/components/Amelipro/ServiceMenu/ServiceBtn/__tests__/__snapshots__/ServiceBtn.spec.ts.snap +56 -0
- package/src/components/Amelipro/ServiceMenu/ServiceList/__tests__/ServiceList.spec.ts +116 -0
- package/src/components/Amelipro/ServiceMenu/ServiceList/__tests__/__snapshots__/ServiceList.spec.ts.snap +58 -0
- package/src/components/Amelipro/ServiceMenu/ServiceMenuContent/__tests__/ServiceMenuContent.spec.ts +118 -0
- package/src/components/Amelipro/ServiceMenu/ServiceMenuContent/__tests__/__snapshots__/ServiceMenuContent.spec.ts.snap +151 -0
- package/src/components/Amelipro/ServiceMenu/__tests__/ServiceMenu.spec.ts +259 -0
- package/src/components/Amelipro/ServiceMenu/__tests__/__snapshots__/ServiceMenu.spec.ts.snap +102 -0
- package/src/components/Amelipro/StructureMenu/StructureBtn/StructureBtn.vue +13 -0
- package/src/components/Amelipro/StructureMenu/StructureBtn/__tests__/StructureBtn.spec.ts +96 -0
- package/src/components/Amelipro/StructureMenu/StructureBtn/__tests__/__snapshots__/StructureBtn.spec.ts.snap +63 -0
- package/src/components/Amelipro/StructureMenu/StructureItem/StructureItem.vue +14 -2
- package/src/components/Amelipro/StructureMenu/StructureItem/__tests__/StructureItem.spec.ts +133 -0
- package/src/components/Amelipro/StructureMenu/StructureItem/__tests__/__snapshots__/StructureItem.spec.ts.snap +159 -0
- package/src/components/Amelipro/StructureMenu/StructureItem/types.d.ts +1 -0
- package/src/components/Amelipro/StructureMenu/StructureList/__tests__/StructureList.spec.ts +190 -0
- package/src/components/Amelipro/StructureMenu/StructureList/__tests__/__snapshots__/StructureList.spec.ts.snap +109 -0
- package/src/components/Amelipro/StructureMenu/StructureMenu.stories.ts +93 -63
- package/src/components/Amelipro/StructureMenu/StructureMenu.vue +5 -0
- package/src/components/Amelipro/StructureMenu/StructureTabs/StructureTabs.vue +22 -1
- package/src/components/Amelipro/StructureMenu/StructureTabs/__tests__/StructureTabs.spec.ts +163 -0
- package/src/components/Amelipro/StructureMenu/StructureTabs/__tests__/__snapshots__/StructureTabs.spec.ts.snap +105 -0
- package/src/components/Amelipro/StructureMenu/__tests__/StructureMenu.spec.ts +171 -0
- package/src/components/Amelipro/StructureMenu/__tests__/__snapshots__/StructureMenu.spec.ts.snap +39 -0
- package/src/components/Amelipro/UserInformationSummary/__tests__/UserInformationSummary.spec.ts +140 -0
- package/src/components/Amelipro/UserInformationSummary/{tests → __tests__}/__snapshots__/UserInformationSummary.spec.ts.snap +17 -24
- package/src/components/Amelipro/UserMenu/UserMenu.stories.ts +3 -3
- package/src/components/Amelipro/UserMenu/UserMenu.vue +2 -2
- package/src/components/Amelipro/UserMenu/UserMenuDetails/__tests__/UserMenuDetails.spec.ts +150 -0
- package/src/components/Amelipro/UserMenu/UserMenuDetails/__tests__/__snapshots__/UserMenuDetails.spec.ts.snap +117 -0
- package/src/components/Amelipro/UserMenu/__tests__/UserMenu.spec.ts +141 -0
- package/src/components/Amelipro/UserMenu/__tests__/__snapshots__/UserMenu.spec.ts.snap +103 -0
- package/src/components/BackBtn/tests/BackBtn.a11y.spec.ts +20 -0
- package/src/components/BackToTopBtn/BackToTopBtn.stories.ts +9 -0
- package/src/components/BackToTopBtn/tests/BackToTopBtn.a11y.spec.ts +37 -0
- package/src/components/Captcha/Captcha.vue +9 -24
- package/src/components/Captcha/CaptchaHelpdesk.vue +42 -0
- package/src/components/Captcha/tests/Captcha.a11y.spec.ts +49 -0
- package/src/components/Captcha/tests/__snapshots__/Captcha.spec.ts.snap +256 -268
- package/src/components/ChipList/ChipList.stories.ts +15 -0
- package/src/components/ChipList/ChipList.vue +20 -17
- package/src/components/ChipList/locales.ts +1 -0
- package/src/components/ChipList/tests/ChipList.a11y.spec.ts +40 -0
- package/src/components/CollapsibleList/Accessibilite.mdx +67 -11
- package/src/components/CollapsibleList/tests/CollapsibleList.a11y.spec.ts +38 -0
- package/src/components/ContextualMenu/ContextualMenu.stories.ts +3 -0
- package/src/components/ContextualMenu/tests/ContextualMenu.a11y.spec.ts +30 -0
- package/src/components/CookieBanner/CookieBanner.stories.ts +15 -0
- package/src/components/CookieBanner/CookieBanner.vue +0 -1
- package/src/components/CookieBanner/tests/CookieBanner.a11y.spec.ts +29 -0
- package/src/components/CookiesSelection/CookiesInformation/tests/CookiesInformation.a11y.spec.ts +46 -0
- package/src/components/CookiesSelection/CookiesTable/tests/CookiesTable.a11y.spec.ts +37 -0
- package/src/components/CookiesSelection/tests/CookiesSelection.a11y.spec.ts +58 -0
- package/src/components/CopyBtn/CopyBtn.stories.ts +21 -0
- package/src/components/CopyBtn/tests/CopyBtn.a11y.spec.ts +40 -0
- package/src/components/CopyBtn/tests/__snapshots__/CopyBtn.spec.ts.snap +0 -1
- package/src/components/Customs/Selects/SelectBtnField/Accessibilite.stories.ts +4 -0
- package/src/components/Customs/Selects/SelectBtnField/SelectBtnField.stories.ts +154 -82
- package/src/components/Customs/Selects/SelectBtnField/SelectBtnField.vue +229 -125
- package/src/components/Customs/Selects/SelectBtnField/tests/SelectBtnField.spec.ts +12 -12
- package/src/components/Customs/Selects/SelectBtnField/tests/__snapshots__/SelectBtnField.spec.ts.snap +344 -826
- package/src/components/Customs/Selects/SyBtnSelect/SyBtnSelect.stories.ts +30 -0
- package/src/components/Customs/Selects/SyBtnSelect/SyBtnSelect.vue +1 -0
- package/src/components/Customs/Selects/SySelect/SySelect.stories.ts +27 -0
- package/src/components/Customs/Selects/SySelect/SySelect.vue +215 -169
- package/src/components/Customs/Selects/SySelect/composables/tests/useSySelectKeyboard.spec.ts +4 -2
- package/src/components/Customs/Selects/SySelect/composables/useSySelectKeyboard.ts +7 -9
- package/src/components/Customs/Selects/SySelect/tests/SySelect.a11y.spec.ts +40 -0
- package/src/components/Customs/SyCheckbox/SyCheckbox.stories.ts +7 -3
- package/src/components/Customs/SyCheckbox/SyCheckbox.vue +20 -2
- package/src/components/Customs/SyCheckbox/tests/SyCheckbox.a11y.spec.ts +26 -0
- package/src/components/Customs/SyForm/SyForm.a11y.spec.ts +33 -0
- package/src/components/Customs/SyForm/SyForm.mdx +47 -7
- package/src/components/Customs/SyForm/SyForm.stories.ts +38 -34
- package/src/components/Customs/SyForm/SyForm.vue +27 -6
- package/src/components/Customs/SyIcon/SyIcon.a11y.spec.ts +37 -0
- package/src/components/Customs/SyIcon/SyIcon.stories.ts +5 -0
- package/src/components/Customs/SyPagination/tests/SyPagination.a11y.spec.ts +27 -0
- package/src/components/Customs/SyRadioGroup/Accessibilite.mdx +263 -0
- package/src/components/Customs/SyRadioGroup/SyRadioGroup.mdx +37 -0
- package/src/components/Customs/SyRadioGroup/SyRadioGroup.stories.ts +665 -0
- package/src/components/Customs/SyRadioGroup/SyRadioGroup.vue +324 -0
- package/src/components/Customs/SyRadioGroup/locales.ts +3 -0
- package/src/components/Customs/SyRadioGroup/tests/SyRadioGroup.a11y.spec.ts +30 -0
- package/src/components/Customs/SyRadioGroup/tests/SyRadioGroup.spec.ts +135 -0
- package/src/components/Customs/SyTabs/SyTabs.stories.ts +33 -0
- package/src/components/Customs/SyTabs/SyTabs.vue +1 -1
- package/src/components/Customs/SyTabs/tests/SyTabs.a11y.spec.ts +51 -0
- package/src/components/Customs/SyTextField/SyTextField.stories.ts +3 -0
- package/src/components/Customs/SyTextField/SyTextField.vue +232 -199
- package/src/components/Customs/SyTextField/tests/SyTextField.a11y.spec.ts +27 -0
- package/src/components/Customs/SyTextField/tests/SyTextField.spec.ts +32 -2
- package/src/components/DataList/DataList.mdx +3 -1
- package/src/components/DataList/DataList.stories.ts +67 -17
- package/src/components/DataList/DataList.vue +13 -1
- package/src/components/DataList/tests/DataList.a11y.spec.ts +35 -0
- package/src/components/DataListGroup/DataListGroup.stories.ts +42 -12
- package/src/components/DataListGroup/DataListGroup.vue +14 -1
- package/src/components/DataListGroup/tests/DataListGroup.a11y.spec.ts +24 -0
- package/src/components/DataListItem/DataListItem.vue +10 -2
- package/src/components/DataListItem/tests/DataListItem.a11y.spec.ts +31 -0
- package/src/components/DataListItem/tests/DataListItem.spec.ts +1 -1
- package/src/components/DatePicker/CalendarMode/DatePicker.stories.ts +45 -0
- package/src/components/DatePicker/CalendarMode/DatePicker.vue +230 -205
- package/src/components/DatePicker/CalendarMode/tests/DatePicker.a11y.spec.ts +27 -0
- package/src/components/DatePicker/CalendarMode/tests/DatePicker.events.spec.ts +5 -0
- package/src/components/DatePicker/CalendarMode/tests/DatePicker.spec.ts +179 -179
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.stories.ts +54 -0
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.vue +337 -278
- package/src/components/DatePicker/ComplexDatePicker/tests/ComplexDatePicker.a11y.spec.ts +26 -0
- package/src/components/DatePicker/ComplexDatePicker/tests/ComplexDatePicker.spec.ts +234 -827
- package/src/components/DatePicker/DateTextInput/DateRange.stories.ts +12 -0
- package/src/components/DatePicker/DateTextInput/DateTextInput.vue +46 -81
- package/src/components/DatePicker/DateTextInput/tests/DateTextInput.a11y.spec.ts +27 -0
- package/src/components/DatePicker/DateTextInput/tests/DateTextInput.spec.ts +350 -0
- package/src/components/DatePicker/composables/index.ts +4 -1
- package/src/components/DatePicker/composables/tests/useCalendarKeyboardNavigation.spec.ts +270 -0
- package/src/components/DatePicker/composables/tests/useDatePickerViewMode.spec.ts +61 -3
- package/src/components/DatePicker/composables/tests/useDateRangeInput.spec.ts +198 -0
- package/src/components/DatePicker/composables/tests/useDisplayedDateString.spec.ts +36 -2
- package/src/components/DatePicker/composables/tests/useInputHandler.spec.ts +755 -0
- package/src/components/DatePicker/composables/tests/useKeyboardEvents.spec.ts +168 -0
- package/src/components/DatePicker/composables/tests/useMonthButtonCustomization.spec.ts +40 -34
- package/src/components/DatePicker/composables/useAsteriskDisplay.ts +1 -2
- package/src/components/DatePicker/composables/useCalendarKeyboardNavigation.ts +155 -0
- package/src/components/DatePicker/composables/useDatePickerState.ts +163 -0
- package/src/components/DatePicker/composables/useDateRangeInput.ts +4 -8
- package/src/components/DatePicker/composables/useDateTextField.ts +156 -0
- package/src/components/DatePicker/composables/useHolidayHighlighting.ts +64 -0
- package/src/components/DatePicker/composables/useInputHandler.ts +25 -19
- package/src/components/DatePicker/composables/useMonthButtonCustomization.ts +51 -26
- package/src/components/DatePicker/constants/messages.ts +0 -1
- package/src/components/DatePicker/docExamples/DatePickerBidirectionalValidation.vue +2 -2
- package/src/components/DatePicker/playground/ComplexDatePickerPlayground.vue +16 -8
- package/src/components/DiacriticPicker/tests/DiacriticPicker.a11y.spec.ts +46 -0
- package/src/components/DialogBox/DialogBox.stories.ts +5 -2
- package/src/components/DialogBox/DialogBox.vue +5 -0
- package/src/components/DialogBox/config.ts +5 -0
- package/src/components/DialogBox/tests/DialogBox.a11y.spec.ts +43 -0
- package/src/components/DownloadBtn/tests/DownloadBtn.a11y.spec.ts +26 -0
- package/src/components/ErrorPage/ErrorPage.stories.ts +60 -0
- package/src/components/ErrorPage/ErrorPage.vue +1 -1
- package/src/components/ErrorPage/tests/ErrorPage.a11y.spec.ts +29 -0
- package/src/components/ErrorPage/tests/ErrorPage.spec.ts +17 -0
- package/src/components/ExternalLinks/ExternalLinks.stories.ts +21 -0
- package/src/components/ExternalLinks/tests/ExternalLinks.a11y.spec.ts +39 -0
- package/src/components/ExternalLinks/tests/__snapshots__/ExternalLinks.spec.ts.snap +0 -1
- package/src/components/FileList/FileList.stories.ts +3 -0
- package/src/components/FileList/tests/FileList.a11y.spec.ts +41 -0
- package/src/components/FilePreview/FilePreview.stories.ts +3 -0
- package/src/components/FilePreview/tests/FilePreview.a11y.spec.ts +47 -0
- package/src/components/FileUpload/tests/FileUpload.a11y.spec.ts +25 -0
- package/src/components/FilterInline/FilterInline.stories.ts +15 -0
- package/src/components/FilterInline/FilterInline.vue +8 -4
- package/src/components/FilterInline/tests/FilterInline.a11y.spec.ts +36 -0
- package/src/components/FilterInline/tests/__snapshots__/FilterInline.spec.ts.snap +0 -3
- package/src/components/FilterSideBar/Accessibilite.stories.ts +4 -0
- package/src/components/FilterSideBar/FilterSideBar.stories.ts +33 -11
- package/src/components/FilterSideBar/FilterSideBar.vue +146 -83
- package/src/components/FilterSideBar/locales.ts +6 -0
- package/src/components/FilterSideBar/tests/FilterSideBar.a11y.spec.ts +59 -0
- package/src/components/FilterSideBar/tests/FilterSideBar.spec.ts +2 -2
- package/src/components/FooterBar/Accessibilite.mdx +67 -11
- package/src/components/FooterBar/FooterBar.vue +1 -1
- package/src/components/FooterBar/config.ts +2 -2
- package/src/components/FooterBar/tests/FooterBar.a11y.spec.ts +31 -0
- package/src/components/FooterBar/tests/FooterBarConfig.spec.ts +1 -1
- package/src/components/FooterBar/tests/__snapshots__/FooterBar.spec.ts.snap +1 -1
- package/src/components/FranceConnectBtn/tests/FranceConnectBtn.a11y.spec.ts +25 -0
- package/src/components/HeaderBar/HeaderBar.stories.ts +21 -0
- package/src/components/HeaderBar/HeaderBar.vue +47 -40
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderBurgerMenu.stories.ts +12 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderSubMenu/HeaderSubMenu.stories.ts +3 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderSubMenu/HeaderSubMenu.vue +4 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/menu.scss +17 -7
- package/src/components/HeaderBar/consts.scss +0 -1
- package/src/components/HeaderBar/tests/HeaderBar.a11y.spec.ts +33 -0
- package/src/components/HeaderBar/tests/__snapshots__/HeaderBar.spec.ts.snap +58 -57
- package/src/components/HeaderLoading/tests/HeaderLoading.a11y.spec.ts +25 -0
- package/src/components/HeaderNavigationBar/HeaderNavigationBar.stories.ts +42 -0
- package/src/components/HeaderNavigationBar/HeaderNavigationBar.vue +4 -0
- package/src/components/HeaderNavigationBar/HorizontalNavbar/HorizontalNavbar.vue +6 -2
- package/src/components/HeaderNavigationBar/tests/HeaderNavigationBar.a11y.spec.ts +45 -0
- package/src/components/HeaderToolbar/HeaderToolbar.stories.ts +6 -0
- package/src/components/HeaderToolbar/HeaderToolbar.vue +0 -3
- package/src/components/HeaderToolbar/tests/HeaderToolbar.a11y.spec.ts +25 -0
- package/src/components/LangBtn/LangBtn.stories.ts +12 -0
- package/src/components/LangBtn/tests/LangBtn.a11y.spec.ts +25 -0
- package/src/components/Logo/tests/Logo.a11y.spec.ts +20 -0
- package/src/components/LogoBrandSection/tests/LogoBrandSection.a11y.spec.ts +38 -0
- package/src/components/LunarCalendar/LunarCalendar.mdx +33 -0
- package/src/components/LunarCalendar/LunarCalendar.stories.ts +232 -0
- package/src/components/LunarCalendar/LunarCalendar.vue +57 -0
- package/src/components/LunarCalendar/tests/LunarCalendar.a11y.spec.ts +31 -0
- package/src/components/LunarCalendar/tests/LunarCalendar.spec.ts +79 -0
- package/src/components/LunarCalendar/useLunarCalendarRules.ts +96 -0
- package/src/components/LunarCalendar/useLunarCalendarValidation.ts +47 -0
- package/src/components/MaintenancePage/MaintenancePage.stories.ts +46 -0
- package/src/components/MaintenancePage/MaintenancePage.vue +7 -5
- package/src/components/MaintenancePage/tests/MaintenancePage.a11y.spec.ts +21 -0
- package/src/components/NirField/NirField.stories.ts +6 -0
- package/src/components/NirField/tests/NirField.a11y.spec.ts +32 -0
- package/src/components/NotFoundPage/NotFoundPage.stories.ts +56 -0
- package/src/components/NotFoundPage/NotFoundPage.vue +7 -5
- package/src/components/NotFoundPage/tests/NotFoundPage.a11y.spec.ts +31 -0
- package/src/components/NotificationBar/Notification/Notification.vue +203 -0
- package/src/components/NotificationBar/NotificationBar.stories.ts +151 -140
- package/src/components/NotificationBar/NotificationBar.vue +148 -202
- package/src/components/NotificationBar/config.ts +1 -1
- package/src/components/NotificationBar/tests/NotificationBar.a11y.spec.ts +66 -0
- package/src/components/NotificationBar/tests/NotificationBar.spec.ts +173 -177
- package/src/components/NotificationBar/tests/__snapshots__/NotificationBar.spec.ts.snap +67 -29
- package/src/components/PageContainer/tests/PageContainer.a11y.spec.ts +27 -0
- package/src/components/PaginatedTable/PaginatedTable.stories.ts +21 -10
- package/src/components/PaginatedTable/PaginatedTable.vue +72 -36
- package/src/components/PaginatedTable/tests/PaginatedTable.a11y.spec.ts +43 -0
- package/src/components/PasswordField/PasswordField.stories.ts +39 -0
- package/src/components/PasswordField/tests/PasswordField.a11y.spec.ts +26 -0
- package/src/components/PeriodField/tests/PeriodField.a11y.spec.ts +31 -0
- package/src/components/PhoneField/PhoneField.stories.ts +51 -0
- package/src/components/PhoneField/PhoneField.vue +102 -83
- package/src/components/PhoneField/tests/PhoneField.a11y.spec.ts +34 -0
- package/src/components/RangeField/tests/RangeField.a11y.spec.ts +32 -0
- package/src/components/RatingPicker/RatingPicker.stories.ts +21 -0
- package/src/components/SearchListField/tests/SearchListField.spec.ts +7 -53
- package/src/components/SkipLink/Accessibilite.mdx +59 -13
- package/src/components/SkipLink/SkipLink.stories.ts +41 -8
- package/src/components/SubHeader/SubHeader.stories.ts +178 -92
- package/src/components/SubHeader/SubHeader.vue +84 -71
- package/src/components/SubHeader/config.ts +1 -1
- package/src/components/SyAlert/SyAlert.vue +6 -3
- package/src/components/SyTextArea/SyTextArea.stories.ts +40 -0
- package/src/components/SyTextArea/SyTextArea.vue +13 -0
- package/src/components/SyTextArea/locales.ts +1 -0
- package/src/components/SyTextArea/tests/SyTextArea.spec.ts +42 -0
- package/src/components/TableToolbar/TableToolbar.stories.ts +3 -0
- package/src/components/TableToolbar/tests/__snapshots__/TableToolbar.spec.ts.snap +24 -72
- package/src/components/Tables/SyServerTable/SyServerTable.stories.ts +591 -24
- package/src/components/Tables/SyServerTable/SyServerTable.vue +19 -13
- package/src/components/Tables/SyTable/FilterRules.stories.ts +12 -0
- package/src/components/Tables/SyTable/SyTable.stories.ts +460 -18
- package/src/components/Tables/SyTable/SyTable.vue +16 -11
- package/src/components/Tables/common/TableHeader.vue +16 -7
- package/src/components/Tables/common/filters/DateFilter.vue +1 -1
- package/src/components/Tables/common/locales.ts +1 -0
- package/src/components/Tables/common/tableFilterUtils.ts +3 -3
- package/src/components/Tables/common/types.ts +4 -2
- package/src/components/Tables/common/useTableCheckbox.ts +4 -3
- package/src/components/Tables/common/useTableFilter.ts +2 -2
- package/src/components/Tables/common/useTableItems.ts +4 -19
- package/src/components/UserMenuBtn/UserMenuBtn.stories.ts +31 -1
- package/src/components/UserMenuBtn/UserMenuBtn.vue +2 -1
- package/src/components/UserMenuBtn/tests/UserMenuBtn.a11y.spec.ts +31 -0
- package/src/components/index.ts +2 -0
- package/src/composables/validation/tests/useFormValidation.spec.ts +251 -0
- package/src/composables/validation/tests/useValidatable.spec.ts +90 -0
- package/src/directives/lockFocus.ts +12 -2
- package/src/stories/Accessibilite/Audit/Exemptions-derogations.mdx +241 -0
- package/src/stories/Accessibilite/KitDePreAudit/Introduction.mdx +17 -10
- package/src/stories/Accessibilite/KitDePreAudit/Outils/Introduction.mdx +16 -0
- package/src/stories/Accessibilite/KitDePreAudit/Preaudit.mdx +160 -106
- package/src/stories/Accessibilite/Vuetify/VuetifyItems.ts +2 -1
- package/src/stories/GuideDuDev/ClassesUtilitaires/DataUtilities.mdx +6 -6
- package/src/stories/GuideDuDev/ClassesUtilitaires/DomBrowserUtilities.mdx +52 -59
- package/src/stories/GuideDuDev/ClassesUtilitaires/FormattingUtilities.mdx +28 -8
- package/src/stories/GuideDuDev/ClassesUtilitaires/StorageUtilities.mdx +2 -2
- package/src/stories/GuideDuDev/ClassesUtilitaires/ValidationRules.mdx +3 -3
- package/src/stories/GuideDuDev/ClassesUtilitaires/ValidationUtilities.mdx +11 -11
- package/src/stories/GuideDuDev/ClassesUtilitaires/index.mdx +24 -14
- package/src/stories/GuideDuDev/MigrationDepuisBridge.mdx +1 -1
- package/src/stories/GuideDuDev/moduleDeNotification.mdx +1 -1
- package/src/stories/accessibility/AccessibilityGuideLayout.mdx +87 -0
- package/src/stories/styles/accessibility-guide.css +153 -0
- package/src/utils/formatNir/formatNir.ts +15 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/insertAt.ts +11 -0
- package/src/utils/rules/isDateValid/IsDateValid.mdx +2 -2
- package/src/utils/rules/isDateValid/IsDateValid.stories.ts +6 -4
- package/src/utils/rules/isDateValid/index.ts +23 -8
- package/src/utils/rules/isDateValid/tests/isDateValid.spec.ts +9 -0
- package/src/utils/rules/isExactLength/IsExactLenght.mdx +1 -1
- package/src/utils/rules/isHolidayDay/IsHolidayDay.mdx +19 -7
- package/src/utils/rules/isHolidayDay/index.ts +6 -8
- package/src/utils/rules/isHolidayDay/tests/isHolidayDay.spec.ts +13 -1
- package/src/utils/rules/isNotAfterDate/IsNotAfterDate.mdx +2 -2
- package/src/utils/rules/isNotAfterDate/IsNotAfterDate.stories.ts +9 -2
- package/src/utils/rules/isNotAfterDate/index.ts +5 -12
- package/src/utils/rules/isNotAfterDate/tests/isNotAfterDate.spec.ts +20 -0
- package/src/utils/rules/isNotAfterToday/IsNotAfterToday.mdx +2 -2
- package/src/utils/rules/isNotAfterToday/IsNotAfterToday.stories.ts +8 -2
- package/src/utils/rules/isNotAfterToday/index.ts +6 -6
- package/src/utils/rules/isNotAfterToday/tests/isNotAfterToday.spec.ts +20 -0
- package/src/utils/rules/isNotBeforeDate/IsNotBeforeDate.mdx +2 -2
- package/src/utils/rules/isNotBeforeDate/index.ts +5 -12
- package/src/utils/rules/isNotBeforeDate/tests/IsNotBeforeDate.spec.ts +20 -0
- package/src/utils/rules/isNotBeforeToday/IsNotBeforeToday.mdx +2 -2
- package/src/utils/rules/isNotBeforeToday/IsNotBeforeToday.stories.ts +8 -2
- package/src/utils/rules/isNotBeforeToday/index.ts +6 -6
- package/src/utils/rules/isNotBeforeToday/tests/notBeforeToday.spec.ts +19 -0
- package/src/utils/rules/validateDateValue.ts +37 -0
- package/src/vuetifyConfig.ts +6 -2
- package/dist/components/Customs/Selects/SelectBtnField/config.d.ts +0 -11
- package/dist/components/DatePicker/composables/useIconState.d.ts +0 -17
- package/dist/components/DatePicker/tests/setup.d.ts +0 -75370
- package/dist/components/Tables/common/formatters.d.ts +0 -17
- package/dist/main-CbBVJ_le.js +0 -34377
- package/dist/stories/Accessibilite/Vuetify/VuetifyItems.d.ts +0 -70
- package/dist/stories/DesignTokens/StylesTypographiques.stories.new.d.ts +0 -8
- package/dist/stories/DesignTokens/TypographyDisplay.d.ts +0 -28
- package/dist/stories/DesignTokens/vue-shims.d.ts +0 -6
- package/src/components/Amelipro/AmeliproMultipleFoldingCard/tests/AmeliproMultipleFoldingCard.spec.ts +0 -40
- package/src/components/Amelipro/AmeliproMultipleFoldingCard/tests/__snapshots__/AmeliproMultipleFoldingCard.spec.ts.snap +0 -369
- package/src/components/Amelipro/ServiceMenu/ServiceBtn/tests/ServiceBtn.spec.ts +0 -21
- package/src/components/Amelipro/ServiceMenu/ServiceBtn/tests/__snapshots__/ServiceBtn.spec.ts.snap +0 -100
- package/src/components/Amelipro/ServiceMenu/ServiceList/tests/ServiceList.spec.ts +0 -25
- package/src/components/Amelipro/ServiceMenu/ServiceList/tests/__snapshots__/ServiceList.spec.ts.snap +0 -245
- package/src/components/Amelipro/ServiceMenu/ServiceMenuContent/tests/ServiceMenuContent.spec.ts +0 -45
- package/src/components/Amelipro/ServiceMenu/ServiceMenuContent/tests/__snapshots__/ServiceMenuContent.spec.ts.snap +0 -787
- package/src/components/Amelipro/ServiceMenu/tests/ServiceMenu.spec.ts +0 -46
- package/src/components/Amelipro/ServiceMenu/tests/__snapshots__/ServiceMenu.spec.ts.snap +0 -111
- package/src/components/Amelipro/StructureMenu/StructureBtn/tests/StructureBtn.spec.ts +0 -17
- package/src/components/Amelipro/StructureMenu/StructureBtn/tests/__snapshots__/StructureBtn.spec.ts.snap +0 -34
- package/src/components/Amelipro/StructureMenu/StructureItem/tests/StructureItem.spec.ts +0 -21
- package/src/components/Amelipro/StructureMenu/StructureItem/tests/__snapshots__/StructureItem.spec.ts.snap +0 -106
- package/src/components/Amelipro/StructureMenu/StructureList/tests/StructureList.spec.ts +0 -33
- package/src/components/Amelipro/StructureMenu/StructureList/tests/__snapshots__/StructureList.spec.ts.snap +0 -353
- package/src/components/Amelipro/StructureMenu/StructureTabs/tests/StructureTabs.spec.ts +0 -60
- package/src/components/Amelipro/StructureMenu/StructureTabs/tests/__snapshots__/StructureTabs.spec.ts.snap +0 -824
- package/src/components/Amelipro/StructureMenu/tests/StructureMenu.spec.ts +0 -69
- package/src/components/Amelipro/StructureMenu/tests/__snapshots__/StructureMenu.spec.ts.snap +0 -1383
- package/src/components/Amelipro/UserInformationSummary/tests/UserInformationSummary.spec.ts +0 -24
- package/src/components/Amelipro/UserMenu/UserMenuDetails/tests/UserMenuDetails.spec.ts +0 -33
- package/src/components/Amelipro/UserMenu/UserMenuDetails/tests/__snapshots__/UserMenuDetails.spec.ts.snap +0 -3
- package/src/components/Amelipro/UserMenu/tests/UserMenu.spec.ts +0 -34
- package/src/components/Amelipro/UserMenu/tests/__snapshots__/UserMenu.spec.ts.snap +0 -101
- package/src/components/Customs/Selects/SelectBtnField/config.ts +0 -11
- package/src/components/DatePicker/ComplexDatePicker/tests/ComplexDatePicker.events.spec.ts +0 -151
- package/src/components/DatePicker/DateTextInput/DateTextInput.events.spec.ts +0 -148
- package/src/components/DatePicker/DateTextInput/DateTextInput.range.spec.ts +0 -361
- package/src/components/DatePicker/DateTextInput/DateTextInput.spec.ts +0 -709
- package/src/components/DatePicker/composables/tests/useIconState.spec.ts +0 -130
- package/src/components/DatePicker/composables/useIconState.ts +0 -53
- package/src/components/DatePicker/tests/DatePicker.validation.spec.ts +0 -4111
- package/src/components/DatePicker/tests/archiTest.md +0 -33
- package/src/components/DatePicker/tests/navigation.regression.spec.ts +0 -74
- package/src/components/DatePicker/tests/navigation.simple.spec.ts +0 -137
- package/src/components/DatePicker/tests/setup.ts +0 -243
- package/src/components/Tables/common/formatters.ts +0 -72
- package/src/components/Usages/tests/Usages.spec.ts +0 -155
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { VueWrapper, mount, shallowMount } from '@vue/test-utils'
|
|
2
|
+
import { beforeEach, describe, expect, it } from 'vitest'
|
|
3
|
+
import type { ComponentProps } from 'vue-component-type-helpers'
|
|
4
|
+
import type { ExpectedPropOptions } from '@tests/types'
|
|
5
|
+
import type { PropType } from 'vue'
|
|
6
|
+
import type { Structure } from '../../StructureItem/types'
|
|
7
|
+
import StructureItem from '../../StructureItem/StructureItem.vue'
|
|
8
|
+
import StructureList from '../StructureList.vue'
|
|
9
|
+
import TestHelper from '@tests/helpers/TestHelper'
|
|
10
|
+
|
|
11
|
+
const expectedPropOptions: ExpectedPropOptions<typeof StructureList> = {
|
|
12
|
+
hiddenLabel: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: false,
|
|
15
|
+
},
|
|
16
|
+
label: {
|
|
17
|
+
type: String,
|
|
18
|
+
required: true,
|
|
19
|
+
},
|
|
20
|
+
maxStructuresLoadedDefault: {
|
|
21
|
+
type: Number,
|
|
22
|
+
default: 5,
|
|
23
|
+
},
|
|
24
|
+
modelValue: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: undefined,
|
|
27
|
+
},
|
|
28
|
+
name: {
|
|
29
|
+
type: String,
|
|
30
|
+
required: true,
|
|
31
|
+
},
|
|
32
|
+
structures: {
|
|
33
|
+
type: Array as PropType<Structure[]>,
|
|
34
|
+
required: true,
|
|
35
|
+
},
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Values pour les props "required"
|
|
39
|
+
const requiredPropValues = (): ComponentProps<typeof StructureList> => ({
|
|
40
|
+
label: 'Required label',
|
|
41
|
+
name: 'Required name',
|
|
42
|
+
structures: [
|
|
43
|
+
{
|
|
44
|
+
address: 'required-address-1',
|
|
45
|
+
idNumber: 'required-id-number-1',
|
|
46
|
+
value: 'required-value-1',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
address: 'required-address-2',
|
|
50
|
+
idNumber: 'required-id-number-2',
|
|
51
|
+
value: 'required-value-2',
|
|
52
|
+
},
|
|
53
|
+
] as Structure[],
|
|
54
|
+
})
|
|
55
|
+
|
|
56
|
+
// Valeurs pour les props "modified"
|
|
57
|
+
const modifiedPropValues = (): ComponentProps<typeof StructureList> => ({
|
|
58
|
+
hiddenLabel: true,
|
|
59
|
+
label: 'Label liste',
|
|
60
|
+
maxStructuresLoadedDefault: 3,
|
|
61
|
+
modelValue: 'valeur',
|
|
62
|
+
name: 'test-name',
|
|
63
|
+
structures: [
|
|
64
|
+
{
|
|
65
|
+
address: 'modified-address-1',
|
|
66
|
+
idNumber: 'modified-id-number-1',
|
|
67
|
+
value: 'modified-value-1',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
address: 'modified-address-2',
|
|
71
|
+
idNumber: 'modified-id-number-2',
|
|
72
|
+
value: 'modified-value-2',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
address: 'modified-address-3',
|
|
76
|
+
idNumber: 'modified-id-number-3',
|
|
77
|
+
value: 'modified-value-3',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
address: 'modified-address-4',
|
|
81
|
+
idNumber: 'modified-id-number-4',
|
|
82
|
+
value: 'modified-value-4',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
address: 'modified-address-5',
|
|
86
|
+
idNumber: 'modified-id-number-5',
|
|
87
|
+
value: 'modified-value-5',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
address: 'modified-address-6',
|
|
91
|
+
idNumber: 'modified-id-number-6',
|
|
92
|
+
value: 'modified-value-6',
|
|
93
|
+
},
|
|
94
|
+
] as Structure[],
|
|
95
|
+
})
|
|
96
|
+
|
|
97
|
+
const testHelper = new TestHelper(StructureList)
|
|
98
|
+
testHelper.setExpectedPropOptions(expectedPropOptions)
|
|
99
|
+
.setRequiredPropValues(requiredPropValues)
|
|
100
|
+
.setModifiedPropValues(modifiedPropValues)
|
|
101
|
+
|
|
102
|
+
describe('StructureList', () => {
|
|
103
|
+
describe('Snapshots', () => {
|
|
104
|
+
testHelper.snapshots()
|
|
105
|
+
})
|
|
106
|
+
|
|
107
|
+
describe('Properties', () => {
|
|
108
|
+
testHelper.properties()
|
|
109
|
+
})
|
|
110
|
+
|
|
111
|
+
describe('Setting props should update attributes of inner tags', () => {
|
|
112
|
+
let vueWrapper: VueWrapper<InstanceType<typeof StructureList>>
|
|
113
|
+
beforeEach(() => {
|
|
114
|
+
vueWrapper = shallowMount(StructureList, { props: requiredPropValues() })
|
|
115
|
+
})
|
|
116
|
+
|
|
117
|
+
it('prop name sets id attribute on root container', async () => {
|
|
118
|
+
expect(vueWrapper.attributes('id')).toBe(`${testHelper.default('name')}-container`)
|
|
119
|
+
const { name } = modifiedPropValues()
|
|
120
|
+
await vueWrapper.setProps({ name })
|
|
121
|
+
expect(vueWrapper.attributes('id')).toBe(`${testHelper.modified('name')}-container`)
|
|
122
|
+
})
|
|
123
|
+
|
|
124
|
+
it('prop name sets id attribute on VRadioGroup', async () => {
|
|
125
|
+
expect(vueWrapper.findComponent({ name: 'VRadioGroup' }).attributes('id')).toBe(`${testHelper.default('name')}-radio-group`)
|
|
126
|
+
const { name } = modifiedPropValues()
|
|
127
|
+
await vueWrapper.setProps({ name })
|
|
128
|
+
expect(vueWrapper.findComponent({ name: 'VRadioGroup' }).attributes('id')).toBe(`${testHelper.modified('name')}-radio-group`)
|
|
129
|
+
})
|
|
130
|
+
})
|
|
131
|
+
|
|
132
|
+
describe('Setting props should update props or attributes of inner components', () => {
|
|
133
|
+
let vueWrapper: VueWrapper<InstanceType<typeof StructureList>>
|
|
134
|
+
beforeEach(() => {
|
|
135
|
+
// Dans un slot, requiert mount au lieu de shallowMount
|
|
136
|
+
vueWrapper = mount(StructureList, { props: requiredPropValues() })
|
|
137
|
+
})
|
|
138
|
+
|
|
139
|
+
it('prop structures sets items prop on StructureItem', async () => {
|
|
140
|
+
expect(vueWrapper.findAllComponents(StructureItem).length).toBe(2)
|
|
141
|
+
const { structures } = modifiedPropValues()
|
|
142
|
+
await vueWrapper.setProps({ structures })
|
|
143
|
+
// Vérifie que chaque StructureItem reçoit bien la prop attendue
|
|
144
|
+
// maxStructuresLoadedDefault = 3 dans modifiedPropValues MAIS composant non réactif aux changements sur cette prop !
|
|
145
|
+
const items = vueWrapper.findAllComponents(StructureItem)
|
|
146
|
+
expect(items.length).toBe(5)
|
|
147
|
+
items.forEach((item, idx) => {
|
|
148
|
+
expect(item.props('item')).toStrictEqual(testHelper.modified('structures')[idx])
|
|
149
|
+
})
|
|
150
|
+
})
|
|
151
|
+
|
|
152
|
+
it('prop name sets group-name prop on StructureItem', async () => {
|
|
153
|
+
const { structures, name } = modifiedPropValues()
|
|
154
|
+
await vueWrapper.setProps({ structures, name })
|
|
155
|
+
const items = vueWrapper.findAllComponents(StructureItem)
|
|
156
|
+
items.forEach((item) => {
|
|
157
|
+
expect(item.props('groupName')).toBe(testHelper.modified('name'))
|
|
158
|
+
})
|
|
159
|
+
})
|
|
160
|
+
})
|
|
161
|
+
|
|
162
|
+
describe.skip('Events', () => {
|
|
163
|
+
const vueWrapper = mount(StructureList, {
|
|
164
|
+
autoAttach: true,
|
|
165
|
+
props: modifiedPropValues(),
|
|
166
|
+
stubs: { StructureItem },
|
|
167
|
+
})
|
|
168
|
+
it('Test emit input', async () => {
|
|
169
|
+
expect(vueWrapper.emitted('input')).toBeUndefined()
|
|
170
|
+
await vueWrapper.findAllComponents(StructureItem).at(2)?.trigger('click')
|
|
171
|
+
await vueWrapper.vm.$nextTick()
|
|
172
|
+
expect(vueWrapper.emitted('input')).toStrictEqual([['valeur3']])
|
|
173
|
+
})
|
|
174
|
+
})
|
|
175
|
+
|
|
176
|
+
describe.skip('functions', () => {
|
|
177
|
+
const vueWrapper = mount(StructureList, {
|
|
178
|
+
autoAttach: true,
|
|
179
|
+
props: modifiedPropValues(),
|
|
180
|
+
stubs: { StructureItem },
|
|
181
|
+
})
|
|
182
|
+
|
|
183
|
+
it('Test loadMore', async () => {
|
|
184
|
+
expect(vueWrapper.findAll('input').length).toStrictEqual(3)
|
|
185
|
+
await vueWrapper.find('button').trigger('click')
|
|
186
|
+
await vueWrapper.vm.$nextTick()
|
|
187
|
+
expect(vueWrapper.findAll('input').length).toStrictEqual(6)
|
|
188
|
+
})
|
|
189
|
+
})
|
|
190
|
+
})
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`StructureList > Snapshots > renders the component with all properties filled in 1`] = `
|
|
4
|
+
<div
|
|
5
|
+
class="structure-list"
|
|
6
|
+
id="test-name-container"
|
|
7
|
+
>
|
|
8
|
+
<v-radio-group-stub
|
|
9
|
+
centeraffix="true"
|
|
10
|
+
class="w-100"
|
|
11
|
+
column=""
|
|
12
|
+
density="default"
|
|
13
|
+
direction="horizontal"
|
|
14
|
+
error="false"
|
|
15
|
+
errormessages=""
|
|
16
|
+
falseicon="$radioOff"
|
|
17
|
+
focused="false"
|
|
18
|
+
glow="false"
|
|
19
|
+
height="auto"
|
|
20
|
+
hidedetails="true"
|
|
21
|
+
hidespinbuttons="false"
|
|
22
|
+
iconcolor="false"
|
|
23
|
+
id="test-name-radio-group"
|
|
24
|
+
inline="false"
|
|
25
|
+
label="Label liste"
|
|
26
|
+
maxerrors="1"
|
|
27
|
+
messages=""
|
|
28
|
+
modelvalue="valeur"
|
|
29
|
+
name="test-name"
|
|
30
|
+
persistenthint="false"
|
|
31
|
+
ripple="true"
|
|
32
|
+
rules=""
|
|
33
|
+
trueicon="$radioOn"
|
|
34
|
+
type="radio"
|
|
35
|
+
valuecomparator="[Function]"
|
|
36
|
+
></v-radio-group-stub>
|
|
37
|
+
<div class="
|
|
38
|
+
d-flex
|
|
39
|
+
justify-center
|
|
40
|
+
">
|
|
41
|
+
<amelipro-btn-stub
|
|
42
|
+
badge="false"
|
|
43
|
+
badgebgcolor="ap-pink"
|
|
44
|
+
badgecolor="ap-white"
|
|
45
|
+
bordered="false"
|
|
46
|
+
class="text-none"
|
|
47
|
+
color="ap-blue-darken-1"
|
|
48
|
+
disabled="false"
|
|
49
|
+
hovercolor="ap-blue-darken-2"
|
|
50
|
+
hoverunderline="true"
|
|
51
|
+
iconbgcolor="transparent"
|
|
52
|
+
iconbordered="false"
|
|
53
|
+
iconleft="false"
|
|
54
|
+
infoblock="false"
|
|
55
|
+
minheight="2.5rem"
|
|
56
|
+
size="60px"
|
|
57
|
+
text="true"
|
|
58
|
+
textcolor="ap-white"
|
|
59
|
+
type="button"
|
|
60
|
+
underline="false"
|
|
61
|
+
uniqueid="test-name-load-more-btn"
|
|
62
|
+
></amelipro-btn-stub>
|
|
63
|
+
<!-- v-if -->
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
`;
|
|
67
|
+
|
|
68
|
+
exports[`StructureList > Snapshots > renders the component with only required properties filled in 1`] = `
|
|
69
|
+
<div
|
|
70
|
+
class="structure-list"
|
|
71
|
+
id="Required name-container"
|
|
72
|
+
>
|
|
73
|
+
<v-radio-group-stub
|
|
74
|
+
centeraffix="true"
|
|
75
|
+
class="w-100"
|
|
76
|
+
column=""
|
|
77
|
+
density="default"
|
|
78
|
+
direction="horizontal"
|
|
79
|
+
error="false"
|
|
80
|
+
errormessages=""
|
|
81
|
+
falseicon="$radioOff"
|
|
82
|
+
focused="false"
|
|
83
|
+
glow="false"
|
|
84
|
+
height="auto"
|
|
85
|
+
hidedetails="true"
|
|
86
|
+
hidespinbuttons="false"
|
|
87
|
+
iconcolor="false"
|
|
88
|
+
id="Required name-radio-group"
|
|
89
|
+
inline="false"
|
|
90
|
+
label="Required label"
|
|
91
|
+
maxerrors="1"
|
|
92
|
+
messages=""
|
|
93
|
+
name="Required name"
|
|
94
|
+
persistenthint="false"
|
|
95
|
+
ripple="true"
|
|
96
|
+
rules=""
|
|
97
|
+
trueicon="$radioOn"
|
|
98
|
+
type="radio"
|
|
99
|
+
valuecomparator="[Function]"
|
|
100
|
+
></v-radio-group-stub>
|
|
101
|
+
<div class="
|
|
102
|
+
d-flex
|
|
103
|
+
justify-center
|
|
104
|
+
">
|
|
105
|
+
<!-- v-if -->
|
|
106
|
+
<!-- v-if -->
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
`;
|
|
@@ -8,6 +8,7 @@ const meta = {
|
|
|
8
8
|
'cancel': { description: 'event émis à la fermeture de la modale par le bouton annuler' },
|
|
9
9
|
'change': { description: 'event émis à la fermeture de la modale par un autre moyen que le bouton de confirmation' },
|
|
10
10
|
'maxStructuresLoadedDefault': { description: 'Le nombre de structures affichées par défaut dans les onglets' },
|
|
11
|
+
'hasStructureAccess': { description: 'Donne accès à l\'onglet \'Mes structures\'' },
|
|
11
12
|
'modelValue': {
|
|
12
13
|
description: 'Objet contenant la valeur d’affichage de la modale ainsi que la structure sélectionnée',
|
|
13
14
|
table: {
|
|
@@ -96,27 +97,31 @@ const structuresTabs = [
|
|
|
96
97
|
{
|
|
97
98
|
structures: [
|
|
98
99
|
{
|
|
100
|
+
name: 'Dr Jean Martin',
|
|
99
101
|
address: '39 rue de Rennes',
|
|
100
102
|
idNumber: 'XXXXXXXXXX',
|
|
101
103
|
value: 'e',
|
|
102
104
|
},
|
|
103
105
|
{
|
|
106
|
+
name: 'Pharmacie de la gare',
|
|
104
107
|
address: '40 rue de Vannes',
|
|
105
108
|
idNumber: 'XXXXXXXXXX',
|
|
106
109
|
value: 'f',
|
|
107
110
|
},
|
|
108
111
|
{
|
|
112
|
+
name: 'Cabinet d\'analayse medicale',
|
|
109
113
|
address: '50 Avenue de Marseille',
|
|
110
114
|
idNumber: 'XXXXXXXXXX',
|
|
111
115
|
value: 'g',
|
|
112
116
|
},
|
|
113
117
|
{
|
|
118
|
+
name: 'Pharmacie du quai',
|
|
114
119
|
address: '62 Boulevard de Lille',
|
|
115
120
|
idNumber: 'XXXXXXXXXX',
|
|
116
121
|
value: 'h',
|
|
117
122
|
},
|
|
118
123
|
],
|
|
119
|
-
label: 'Mes
|
|
124
|
+
label: 'Mes délégations',
|
|
120
125
|
},
|
|
121
126
|
]
|
|
122
127
|
|
|
@@ -167,68 +172,6 @@ export const Default: Story = {
|
|
|
167
172
|
import { ref } from 'vue'
|
|
168
173
|
|
|
169
174
|
const model = ref({ dialog: false, activeTab: 0 })
|
|
170
|
-
const structuresTabs = [
|
|
171
|
-
{
|
|
172
|
-
structures: [
|
|
173
|
-
{
|
|
174
|
-
address: '70 rue de Lyon',
|
|
175
|
-
idNumber: 'XXXXXXXXXX',
|
|
176
|
-
value: 'titu',
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
address: '34 avenue de Bordeaux',
|
|
180
|
-
idNumber: 'XXXXXXXXXX',
|
|
181
|
-
value: 'titi',
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
address: '47 boulevard du Mans',
|
|
185
|
-
idNumber: 'XXXXXXXXXX',
|
|
186
|
-
value: 'a',
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
address: '84 bis rue de Toulouse',
|
|
190
|
-
idNumber: 'XXXXXXXXXX',
|
|
191
|
-
value: 'b',
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
address: '103 rue de Paris',
|
|
195
|
-
idNumber: 'XXXXXXXXXX',
|
|
196
|
-
value: 'c',
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
address: '21 rue de Nantes',
|
|
200
|
-
idNumber: 'XXXXXXXXXX',
|
|
201
|
-
value: 'd',
|
|
202
|
-
},
|
|
203
|
-
],
|
|
204
|
-
label: 'Mes structures',
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
structures: [
|
|
208
|
-
{
|
|
209
|
-
address: '39 rue de Rennes',
|
|
210
|
-
idNumber: 'XXXXXXXXXX',
|
|
211
|
-
value: 'e',
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
address: '40 rue de Vannes',
|
|
215
|
-
idNumber: 'XXXXXXXXXX',
|
|
216
|
-
value: 'f',
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
address: '50 Avenue de Marseille',
|
|
220
|
-
idNumber: 'XXXXXXXXXX',
|
|
221
|
-
value: 'g',
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
address: '62 Boulevard de Lille',
|
|
225
|
-
idNumber: 'XXXXXXXXXX',
|
|
226
|
-
value: 'h',
|
|
227
|
-
},
|
|
228
|
-
],
|
|
229
|
-
label: 'Mes délégués',
|
|
230
|
-
},
|
|
231
|
-
]
|
|
232
175
|
</script>
|
|
233
176
|
`,
|
|
234
177
|
},
|
|
@@ -266,3 +209,90 @@ export const Default: Story = {
|
|
|
266
209
|
</div>`,
|
|
267
210
|
}),
|
|
268
211
|
}
|
|
212
|
+
|
|
213
|
+
export const HasStructureAccess: Story = {
|
|
214
|
+
args: {
|
|
215
|
+
modelValue: { dialog: false, activeTab: 0 },
|
|
216
|
+
structuresTabs,
|
|
217
|
+
uniqueId: 'structure-menu-unique-id',
|
|
218
|
+
userAdeli: 'n° Adeli',
|
|
219
|
+
userName: 'Jean Martin',
|
|
220
|
+
userProfession: 'Médecin génraliste',
|
|
221
|
+
userRpps: 'n° RPPS',
|
|
222
|
+
hasStructureAccess: true,
|
|
223
|
+
},
|
|
224
|
+
parameters: {
|
|
225
|
+
sourceCode: [
|
|
226
|
+
{
|
|
227
|
+
name: 'Template',
|
|
228
|
+
code: `<template>
|
|
229
|
+
<div>
|
|
230
|
+
<AmeliproIconBtn
|
|
231
|
+
btn-label="Sélection de structure"
|
|
232
|
+
icon="localisation"
|
|
233
|
+
icon-bg-color="ap-blue-darken-1"
|
|
234
|
+
icon-color="ap-white"
|
|
235
|
+
icon-hover-bg-color="ap-blue-darken-2"
|
|
236
|
+
icon-hover-color="ap-white"
|
|
237
|
+
size="2rem"
|
|
238
|
+
unique-id="structure-menu-unique-id-open-btn"
|
|
239
|
+
@click="model.dialog = true"
|
|
240
|
+
/>
|
|
241
|
+
<StructureMenu
|
|
242
|
+
v-model="model"
|
|
243
|
+
:structures-tabs="structuresTabs"
|
|
244
|
+
unique-id="structure-menu-unique-id"
|
|
245
|
+
user-adeli="n° Adeli"
|
|
246
|
+
user-name="Jean Martin"
|
|
247
|
+
user-profession="Médecin génraliste"
|
|
248
|
+
user-rpps="n° RPPS"
|
|
249
|
+
:hasStructureAccess="true"
|
|
250
|
+
/>
|
|
251
|
+
</div>
|
|
252
|
+
</template>
|
|
253
|
+
`,
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
name: 'Script',
|
|
257
|
+
code: `<script setup lang="ts">
|
|
258
|
+
import { AmeliproIconBtn, StructureMenu } from '@cnamts/synapse'
|
|
259
|
+
import { ref } from 'vue'
|
|
260
|
+
|
|
261
|
+
const model = ref({ dialog: false, activeTab: 0 })
|
|
262
|
+
</script>
|
|
263
|
+
`,
|
|
264
|
+
},
|
|
265
|
+
],
|
|
266
|
+
},
|
|
267
|
+
render: args => ({
|
|
268
|
+
components: { AmeliproIconBtn, StructureMenu },
|
|
269
|
+
setup() {
|
|
270
|
+
const model = ref(args.modelValue)
|
|
271
|
+
|
|
272
|
+
// Optional: Keeps v-model in sync with storybook args
|
|
273
|
+
watch(() => args.modelValue, (newValue) => {
|
|
274
|
+
model.value = newValue
|
|
275
|
+
})
|
|
276
|
+
|
|
277
|
+
return { args, model }
|
|
278
|
+
},
|
|
279
|
+
template: `
|
|
280
|
+
<div>
|
|
281
|
+
<AmeliproIconBtn
|
|
282
|
+
btn-label="Sélection de structure"
|
|
283
|
+
icon="localisation"
|
|
284
|
+
icon-bg-color="ap-blue-darken-1"
|
|
285
|
+
icon-color="ap-white"
|
|
286
|
+
icon-hover-bg-color="ap-blue-darken-2"
|
|
287
|
+
icon-hover-color="ap-white"
|
|
288
|
+
size="2rem"
|
|
289
|
+
:unique-id="\`\${args.uniqueId}-open-btn\`"
|
|
290
|
+
@click="model.dialog = true"
|
|
291
|
+
/>
|
|
292
|
+
<StructureMenu
|
|
293
|
+
v-bind="args"
|
|
294
|
+
v-model="model"
|
|
295
|
+
/>
|
|
296
|
+
</div>`,
|
|
297
|
+
}),
|
|
298
|
+
}
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
import { locales } from './locales'
|
|
12
12
|
|
|
13
13
|
const props = defineProps({
|
|
14
|
+
hasStructureAccess: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: true,
|
|
17
|
+
},
|
|
14
18
|
maxStructuresLoadedDefault: {
|
|
15
19
|
type: Number,
|
|
16
20
|
default: 5,
|
|
@@ -161,6 +165,7 @@
|
|
|
161
165
|
:max-items-loaded-default="maxStructuresLoadedDefault"
|
|
162
166
|
:tabs="structuresTabs"
|
|
163
167
|
:unique-id="`${uniqueId}-structure-menu-tabs`"
|
|
168
|
+
:has-structure-access="hasStructureAccess"
|
|
164
169
|
>
|
|
165
170
|
<template #searchBar>
|
|
166
171
|
<slot name="searchBar" />
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import type { IStructureTabs, StructureTab } from './types'
|
|
3
|
-
import { computed, nextTick, type PropType, ref } from 'vue'
|
|
3
|
+
import { computed, nextTick, type PropType, ref, watch } from 'vue'
|
|
4
4
|
import StructureBtn from '../StructureBtn/StructureBtn.vue'
|
|
5
5
|
import StructureList from '../StructureList/StructureList.vue'
|
|
6
6
|
import { locales } from './locales'
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
type: String,
|
|
16
16
|
default: undefined,
|
|
17
17
|
},
|
|
18
|
+
hasStructureAccess: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: true,
|
|
21
|
+
},
|
|
18
22
|
maxStructuresLoadedDefault: {
|
|
19
23
|
type: Number,
|
|
20
24
|
default: 5,
|
|
@@ -60,6 +64,8 @@
|
|
|
60
64
|
},
|
|
61
65
|
})
|
|
62
66
|
|
|
67
|
+
const isFirstTabDisabled = computed(() => !props.hasStructureAccess)
|
|
68
|
+
|
|
63
69
|
const onClick = async (index: number): Promise<void> => {
|
|
64
70
|
selected.value = index
|
|
65
71
|
await nextTick()
|
|
@@ -92,6 +98,20 @@
|
|
|
92
98
|
(structureBtns.value[selected.value].$el as HTMLElement).focus()
|
|
93
99
|
}
|
|
94
100
|
}
|
|
101
|
+
|
|
102
|
+
watch(
|
|
103
|
+
() => props.hasStructureAccess,
|
|
104
|
+
(hasAccess) => {
|
|
105
|
+
if (hasAccess && selected.value === 1) {
|
|
106
|
+
selected.value = 0
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (!hasAccess && selected.value === 0) {
|
|
110
|
+
selected.value = 1
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{ immediate: true },
|
|
114
|
+
)
|
|
95
115
|
</script>
|
|
96
116
|
|
|
97
117
|
<template>
|
|
@@ -115,6 +135,7 @@
|
|
|
115
135
|
:key="index"
|
|
116
136
|
ref="structureBtns"
|
|
117
137
|
:aria-selected="selected === index ? 'true' : 'false'"
|
|
138
|
+
:disabled="index === 0 && isFirstTabDisabled"
|
|
118
139
|
class="mr-0 mr-sm-3 mb-2 mb-sm-1"
|
|
119
140
|
:controls="`structure-panel-${index}`"
|
|
120
141
|
role="tab"
|