@cnamts/synapse 1.0.23 → 1.0.25
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/README.md +27 -5
- package/dist/AutocompleteFilter-D7qBuCAP.js +114 -0
- package/dist/AutocompleteFilter-Df9i5mAl.cjs +1 -0
- package/dist/DateFilter-BJD6FMev.cjs +1 -0
- package/dist/{DateFilter-Dc-gSGwk.js → DateFilter-BitMWrMU.js} +1 -1
- package/dist/{NumberFilter-vP38Wp6j.js → NumberFilter-BTLUxw0a.js} +3 -3
- package/dist/NumberFilter-DGCzCXzI.cjs +1 -0
- package/dist/{PeriodFilter-Ba1uYUnT.js → PeriodFilter-B5rUIPAC.js} +1 -1
- package/dist/PeriodFilter-DO_ecTZW.cjs +1 -0
- package/dist/SelectFilter-CGwcKWLm.cjs +1 -0
- package/dist/SelectFilter-l4QnRcuk.js +135 -0
- package/dist/TextFilter-B8nf7xoK.cjs +1 -0
- package/dist/{TextFilter-B84dpnoq.js → TextFilter-C9hj6Qrp.js} +7 -7
- package/dist/apLightTheme-CEK4iY3f.cjs +1 -0
- package/dist/apLightTheme-DnIM24Lv.js +950 -0
- package/dist/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.d.ts +7022 -9616
- package/dist/components/Amelipro/AmeliproCarousel/AmeliproCarousel.d.ts +2 -2
- package/dist/components/Amelipro/AmeliproIconBtn/AmeliproIconBtn.d.ts +2 -2
- package/dist/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressCityRow/AmeliproPostalAddressCityRow.d.ts +40 -40
- package/dist/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressField.d.ts +60 -60
- package/dist/components/Amelipro/AmeliproSelect/AmeliproSelect.d.ts +7168 -9762
- package/dist/components/Amelipro/AmeliproStepper/AmeliproStepper.d.ts +2 -2
- package/dist/components/Amelipro/AmeliproTabs/AmeliproTabs.d.ts +7501 -10095
- package/dist/components/Amelipro/AmeliproTextArea/AmeliproTextArea.d.ts +21 -21
- package/dist/components/Amelipro/AmeliproTextField/AmeliproTextField.d.ts +41 -41
- package/dist/components/Amelipro/StructureMenu/StructureTabs/StructureTabs.d.ts +2 -2
- package/dist/components/CookiesSelection/CookiesInformation/CookiesInformation.d.ts +20 -498
- package/dist/components/Customs/Selects/SyAutocomplete/SyAutocomplete.d.ts +117 -151
- package/dist/components/Customs/Selects/SyInputSelect/SyInputSelect.d.ts +5 -5
- package/dist/components/Customs/Selects/SySelect/SySelect.d.ts +12 -16
- package/dist/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.d.ts +8 -8
- package/dist/components/Customs/SyCheckbox/SyCheckbox.d.ts +31 -506
- package/dist/components/Customs/SyRadioGroup/SyRadioGroup.d.ts +28 -506
- package/dist/components/Customs/SyTabs/SyTabs.d.ts +13 -11
- package/dist/components/Customs/SyTextField/SyTextField.d.ts +69 -89
- package/dist/components/DatePicker/CalendarMode/DatePicker.d.ts +627 -791
- package/dist/components/DatePicker/ComplexDatePicker/ComplexDatePicker.d.ts +315 -412
- package/dist/components/DatePicker/DateTextInput/DateTextInput.d.ts +112 -160
- package/dist/components/DatePicker/composables/index.d.ts +1 -0
- package/dist/components/DatePicker/composables/useDatePickerFocusTrap.d.ts +11 -0
- package/dist/components/DatePicker/composables/useDatePickerState.d.ts +1 -0
- package/dist/components/DatePicker/composables/useDateTextField.d.ts +4 -4
- package/dist/components/DatePicker/composables/useDateValidation.d.ts +3 -3
- package/dist/components/DatePicker/composables/useInputBlurHandler.d.ts +2 -2
- package/dist/components/DatePicker/composables/useManualDateValidation.d.ts +2 -2
- package/dist/components/FileList/FileList.d.ts +6 -0
- package/dist/components/FilterSideBar/FilterSideBar.d.ts +2 -0
- package/dist/components/HeaderNavigationBar/HeaderNavigationBar.d.ts +17 -17
- package/dist/components/HeaderNavigationBar/HorizontalNavbar/HorizontalNavbar.d.ts +3 -3
- package/dist/components/HeaderToolbar/HeaderToolbar.d.ts +20 -28
- package/dist/components/LunarCalendar/useLunarCalendarValidation.d.ts +3 -3
- package/dist/components/MonthPicker/MonthPicker.d.ts +86 -127
- package/dist/components/MonthPicker/MonthPickerText/MonthPickerInput.d.ts +85 -126
- package/dist/components/NirField/NirField.d.ts +202 -278
- package/dist/components/NirField/locales.d.ts +10 -10
- package/dist/components/NirField/useNirValidation.d.ts +64 -0
- package/dist/components/PasswordField/PasswordField.d.ts +8 -9
- package/dist/components/PeriodField/PeriodField.d.ts +1352 -1680
- package/dist/components/PhoneField/PhoneField.d.ts +88 -129
- package/dist/components/RangeField/RangeSlider/RangeSlider.d.ts +12 -12
- package/dist/components/SyTextArea/SyTextArea.d.ts +34 -14
- package/dist/components/SyTextArea/useDefaultValidationRules.d.ts +11 -0
- package/dist/components/Tables/SyServerTable/SyServerTable.d.ts +10 -6
- package/dist/components/Tables/SyTable/SyTable.d.ts +10 -6
- package/dist/components/Tables/common/SyTableFilter.d.ts +2 -3
- package/dist/components/Tables/common/SyTablePagination.d.ts +19 -19
- package/dist/components/Tables/common/TableHeader.d.ts +5 -0
- package/dist/components/Tables/common/filters/AutocompleteFilter.d.ts +120 -0
- package/dist/components/Tables/common/filters/locales.d.ts +0 -1
- package/dist/components/Tables/common/locales.d.ts +3 -0
- package/dist/components/Tables/common/types.d.ts +21 -3
- package/dist/components/Tables/common/useClickableTableRow.d.ts +17 -0
- package/dist/components/Tables/common/usePagination.d.ts +3 -1
- package/dist/components/Tables/common/usePinnedColumns.d.ts +31 -0
- package/dist/components/Tables/common/useTableHeaders.d.ts +2 -0
- package/dist/components/Tables/common/useTableRowCheckboxAccessibility.d.ts +5 -0
- package/dist/components/UploadWorkflow/UploadWorkflow.d.ts +7 -6
- package/dist/composables/date/useDatePickerAccessibility.d.ts +1 -1
- package/dist/composables/rules/useFieldValidation.d.ts +4 -4
- package/dist/composables/unifyValidation/documentationValidationProps.d.ts +230 -0
- package/dist/composables/unifyValidation/useCustomValidation.d.ts +8 -0
- package/dist/composables/unifyValidation/useValidation.d.ts +102 -0
- package/dist/composables/unifyValidation/useVuetifyValidation.d.ts +18 -0
- package/dist/composables/useFormFieldErrorHandling.d.ts +2 -2
- package/dist/composables/validation/useFormValidation.d.ts +11 -2
- package/dist/composables/validation/useValidation.d.ts +19 -9
- package/dist/design-system-v3.d.ts +2 -0
- package/dist/design-system-v3.js +186 -187
- package/dist/design-system-v3.umd.cjs +1 -1066
- package/dist/designTokens/tokens/amelipro/apColors.d.ts +10 -10
- package/dist/designTokens/tokens/amelipro/apColors2026.d.ts +1 -2
- package/dist/designTokens/tokens/amelipro/apContextual.d.ts +44 -0
- package/dist/designTokens/tokens/amelipro/apSemantic.d.ts +1 -1
- package/dist/designTokens/tokens/baseColors.d.ts +127 -0
- package/dist/designTokens/tokens/baseContextualTokens.d.ts +50 -0
- package/dist/designTokens/tokens/cnam/cnamColors.d.ts +10 -10
- package/dist/designTokens/tokens/cnam/cnamSemantic.d.ts +1 -1
- package/dist/designTokens/tokens/pa/paColors.d.ts +1 -166
- package/dist/designTokens/tokens/pa/paSemantic.d.ts +1 -1
- package/dist/designTokens/utils/buildColorClassMap.d.ts +12 -0
- package/dist/designTokens/utils/createFlattenTheme.d.ts +1 -3
- package/dist/designTokens/utils/index.d.ts +2 -2
- package/dist/main-ByDPHpae.cjs +1067 -0
- package/dist/main-Cpx8Co6H.js +38869 -0
- package/dist/main.d.ts +0 -1
- package/dist/synapse.css +1 -0
- package/dist/tooth-11-D3sLWv2n.cjs +1 -0
- package/dist/tooth-12-CXrLuH03.cjs +1 -0
- package/dist/tooth-13-BSfo5fpT.cjs +1 -0
- package/dist/tooth-14-DMzulx0h.cjs +1 -0
- package/dist/tooth-15-BKRFVi-9.cjs +1 -0
- package/dist/tooth-16-CpuxAbuM.cjs +1 -0
- package/dist/tooth-17-BPoahUdg.cjs +1 -0
- package/dist/tooth-18-DhHJz8sy.cjs +1 -0
- package/dist/tooth-21-Dgd5hn_X.cjs +1 -0
- package/dist/tooth-22-C2Tn19sB.cjs +1 -0
- package/dist/tooth-23-C9uaaSGb.cjs +1 -0
- package/dist/tooth-24-BrK9UGpf.cjs +1 -0
- package/dist/tooth-25-CE_EfGNp.cjs +1 -0
- package/dist/tooth-26-Ctv4i9Fy.cjs +1 -0
- package/dist/tooth-27-C5J7JkWM.cjs +1 -0
- package/dist/tooth-28-Z9oWqjo0.cjs +1 -0
- package/dist/tooth-31-BrYqmkTi.cjs +1 -0
- package/dist/tooth-32-BNNR0oCZ.cjs +1 -0
- package/dist/tooth-33-DuxvqO2J.cjs +1 -0
- package/dist/tooth-34-BCSCXMB6.cjs +1 -0
- package/dist/tooth-35-BLUXkX88.cjs +1 -0
- package/dist/tooth-36-IrKHYqlA.cjs +1 -0
- package/dist/tooth-37-BYqpdMwo.cjs +1 -0
- package/dist/tooth-38-B_eNXXdu.cjs +1 -0
- package/dist/tooth-41-Ddva4Ot8.cjs +1 -0
- package/dist/tooth-42-szcDqlM0.cjs +1 -0
- package/dist/tooth-43-B3ka6rQm.cjs +1 -0
- package/dist/tooth-44-CazyQucj.cjs +1 -0
- package/dist/tooth-45-B4HQtc8n.cjs +1 -0
- package/dist/tooth-46-BPM40gbG.cjs +1 -0
- package/dist/tooth-47-Dvr20dlh.cjs +1 -0
- package/dist/tooth-48-Bd8ljGsF.cjs +1 -0
- package/dist/tooth-51-OBpwCOF3.cjs +1 -0
- package/dist/tooth-52-aKxyHcmq.cjs +1 -0
- package/dist/tooth-53-vCwJjTOc.cjs +1 -0
- package/dist/tooth-54-DsWu2iFy.cjs +1 -0
- package/dist/tooth-55-BxC1X2Dn.cjs +1 -0
- package/dist/tooth-61-BbLvxMQi.cjs +1 -0
- package/dist/tooth-62-CmTkWczP.cjs +1 -0
- package/dist/tooth-63-DI7l_2qI.cjs +1 -0
- package/dist/tooth-64-B21sOsJh.cjs +1 -0
- package/dist/tooth-65-D2ZC2VEr.cjs +1 -0
- package/dist/tooth-71-D473PPO5.cjs +1 -0
- package/dist/tooth-72-Drh1wnNu.cjs +1 -0
- package/dist/tooth-73-DzlwYI23.cjs +1 -0
- package/dist/tooth-74-8aGvcZPg.cjs +1 -0
- package/dist/tooth-75-BFK7At_r.cjs +1 -0
- package/dist/tooth-81-BZmR-I0M.cjs +1 -0
- package/dist/tooth-82-euVfUUZV.cjs +1 -0
- package/dist/tooth-83-KV010j64.cjs +1 -0
- package/dist/tooth-84-BBg1RjhZ.cjs +1 -0
- package/dist/tooth-85-Cr-kc1wM.cjs +1 -0
- package/dist/utils/functions/classToHex.d.ts +1 -1
- package/dist/utils/functions/createHexResolver.d.ts +16 -0
- package/dist/vuetifyConfig.js +522 -0
- package/dist/vuetifyConfig.umd.cjs +1 -0
- package/package.json +37 -20
- package/src/assets/amelipro/apTokens2026.scss +5 -5
- package/src/assets/overrides/_breakpoints.scss +25 -0
- package/src/assets/overrides/_btns.scss +0 -8
- package/src/assets/overrides/_forms.scss +1 -3
- package/src/assets/overrides/_icons.scss +14 -10
- package/src/assets/overrides/_otp.scss +41 -0
- package/src/assets/overrides/_tables.scss +11 -20
- package/src/assets/overrides/_tooltips.scss +17 -7
- package/src/assets/overrides/_typography.scss +35 -47
- package/src/assets/overrides/_utilities.scss +43 -47
- package/src/assets/themes.scss +1 -0
- package/src/components/Amelipro/AmeliproAccordion/AmeliproAccordionTemplate/AmeliproAccordionTemplate.vue +20 -20
- package/src/components/Amelipro/AmeliproAccordionFrieze/AmeliproAccordionFrieze.vue +12 -14
- package/src/components/Amelipro/AmeliproAccordionList/AmeliproAccordionList.vue +4 -6
- package/src/components/Amelipro/AmeliproAccordionResult/AmeliproAccordionResultTemplate/AmeliproAccordionResultTemplate.vue +5 -5
- package/src/components/Amelipro/AmeliproAccordionResultList/AmeliproAccordionResultList.vue +4 -6
- package/src/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.vue +4 -6
- package/src/components/Amelipro/AmeliproAutoCompleteField/__tests__/__snapshots__/AmeliproAutoCompleteField.spec.ts.snap +2 -2
- package/src/components/Amelipro/AmeliproBadge/AmeliproBadge.vue +4 -6
- package/src/components/Amelipro/AmeliproBreadcrumb/AmeliproBreadcrumb.vue +1 -3
- package/src/components/Amelipro/AmeliproBtn/AmeliproBtn.vue +4 -6
- package/src/components/Amelipro/AmeliproCallback/AmeliproCallback.vue +2 -2
- package/src/components/Amelipro/AmeliproCard/AmeliproCard.vue +31 -31
- package/src/components/Amelipro/AmeliproCarousel/AmeliproCarousel.vue +5 -7
- package/src/components/Amelipro/AmeliproCheckbox/AmeliproCheckbox.vue +13 -15
- package/src/components/Amelipro/AmeliproCheckboxGroup/AmeliproCheckboxGroup.vue +23 -23
- package/src/components/Amelipro/AmeliproChips/AmeliproChips.vue +1 -3
- package/src/components/Amelipro/AmeliproClickableTile/AmeliproClickableTile.vue +17 -12
- package/src/components/Amelipro/AmeliproClickableTile/tests/__snapshots__/AmeliproClickableTile.spec.ts.snap +2 -2
- package/src/components/Amelipro/AmeliproCopyBtn/AmeliproCopyBtn.vue +4 -6
- package/src/components/Amelipro/AmeliproCustomSelector/AmeliproCustomSelector.vue +13 -13
- package/src/components/Amelipro/AmeliproDentalChart/AmeliproDentalChart.vue +4 -2
- package/src/components/Amelipro/AmeliproDentalChart/AmeliproTooth/AmeliproTooth.vue +4 -4
- package/src/components/Amelipro/AmeliproDialog/AmeliproDialog.vue +5 -7
- package/src/components/Amelipro/AmeliproDisclosure/AmeliproDisclosure.vue +1 -3
- package/src/components/Amelipro/AmeliproErrorTemplate/AmeliproErrorTemplate.vue +2 -4
- package/src/components/Amelipro/AmeliproFilePreview/AmeliproFilePreview.vue +4 -6
- package/src/components/Amelipro/AmeliproFilters/AmeliproFilters.vue +13 -13
- package/src/components/Amelipro/AmeliproFirstLogin/AmeliproFirstLogin.vue +3 -5
- package/src/components/Amelipro/AmeliproFooter/AmeliproFooter.vue +1 -3
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeader.vue +2 -4
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproHeaderBar.vue +1 -3
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproHeaderBrandSection/AmeliproHeaderBrandSection.vue +20 -16
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproHeaderBrandSection/__tests__/__snapshots__/AmeliproHeaderBrandSection.spec.ts.snap +2 -2
- package/src/components/Amelipro/AmeliproIconBtn/AmeliproIconBtn.vue +2 -4
- package/src/components/Amelipro/AmeliproIllustratedDataTile/AmeliproIllustratedDataTile.vue +5 -7
- package/src/components/Amelipro/AmeliproIllustratedRadioGroup/AmeliproIllustratedRadioGroup.vue +6 -8
- package/src/components/Amelipro/AmeliproMailTile/AmeliproMailTile.vue +14 -14
- package/src/components/Amelipro/AmeliproMenu/AmeliproMenu.vue +11 -13
- package/src/components/Amelipro/AmeliproMessagingLayout/AmeliproDropdownMenu/AmeliproDropdownMenu.vue +2 -4
- package/src/components/Amelipro/AmeliproMessagingLayout/AmeliproMessagingLayout.vue +8 -8
- package/src/components/Amelipro/AmeliproMultipleFoldingCard/AmeliproMultipleFoldingCard.vue +40 -40
- package/src/components/Amelipro/AmeliproNumberedCard/AmeliproNumberedCard.vue +27 -27
- package/src/components/Amelipro/AmeliproOnboarding/AmeliproOnboarding.vue +3 -5
- package/src/components/Amelipro/AmeliproPageLayout/AmeliproPageLayout.vue +2 -4
- package/src/components/Amelipro/AmeliproPagination/AmeliproPagination.vue +2 -4
- package/src/components/Amelipro/AmeliproPagination/AmeliproPaginationBtn/AmeliproPaginationBtn.vue +3 -5
- package/src/components/Amelipro/AmeliproPatientBanner/AmeliproPatientBanner.vue +1 -3
- package/src/components/Amelipro/AmeliproPatientLogged/AmeliproPatientLogged.vue +2 -4
- package/src/components/Amelipro/AmeliproPatientLogin/AmeliproPatientLogin.vue +4 -4
- package/src/components/Amelipro/AmeliproPatientLogin/AmeliproPatientLoginForm/AmeliproPatientLoginForm.vue +1 -3
- package/src/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressCityRow/AmeliproPostalAddressCityRow.vue +3 -5
- package/src/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressField.vue +3 -5
- package/src/components/Amelipro/AmeliproRadioGroup/AmeliproRadioGroup.vue +23 -23
- package/src/components/Amelipro/AmeliproResultList/AmeliproResultList.vue +4 -6
- package/src/components/Amelipro/AmeliproSelect/AmeliproSelect.vue +12 -22
- package/src/components/Amelipro/AmeliproStateTile/AmeliproStateTile.vue +10 -12
- package/src/components/Amelipro/AmeliproStepper/AmeliproStepper.vue +17 -17
- package/src/components/Amelipro/AmeliproTable/AmeliproTable.vue +8 -10
- package/src/components/Amelipro/AmeliproTabs/AmeliproTabBtn/AmeliproTabBtn.vue +6 -8
- package/src/components/Amelipro/AmeliproTabs/AmeliproTabs.vue +4 -4
- package/src/components/Amelipro/AmeliproTextArea/AmeliproTextArea.vue +4 -6
- package/src/components/Amelipro/AmeliproTextArea/__tests__/__snapshots__/AmeliproTextArea.spec.ts.snap +2 -2
- package/src/components/Amelipro/AmeliproTextField/AmeliproTextField.vue +7 -9
- package/src/components/Amelipro/AmeliproTileBtn/AmeliproTileBtn.vue +3 -5
- package/src/components/Amelipro/AmeliproTooltips/AmeliproTooltips.vue +0 -2
- package/src/components/Amelipro/AmeliproUpload/AmeliproUpload.vue +6 -6
- package/src/components/Amelipro/ServiceMenu/ServiceMenu.vue +2 -2
- package/src/components/Amelipro/StructureMenu/StructureBtn/StructureBtn.vue +4 -4
- package/src/components/Amelipro/StructureMenu/StructureItem/StructureItem.vue +4 -6
- package/src/components/Amelipro/StructureMenu/StructureMenu.vue +2 -2
- package/src/components/Amelipro/StructureMenu/StructureTabs/StructureTabs.vue +2 -2
- package/src/components/Amelipro/UserMenu/UserMenu.vue +1 -3
- package/src/components/BackBtn/tests/BackBtn.visual.cy.ts +43 -0
- package/src/components/BackBtn/tests/__snapshots__/back-btn-custom-bg.snap.png +0 -0
- package/src/components/BackBtn/tests/__snapshots__/back-btn-dark-mode.snap.png +0 -0
- package/src/components/BackBtn/tests/__snapshots__/back-btn-default.snap.png +0 -0
- package/src/components/BackBtn/tests/__snapshots__/back-btn-no-icon.snap.png +0 -0
- package/src/components/Captcha/Captcha.vue +1 -3
- package/src/components/Captcha/accessibilite/Accessibility.mdx +86 -8
- package/src/components/Captcha/tests/__snapshots__/Captcha.spec.ts.snap +12 -12
- package/src/components/ChipList/ChipList.stories.ts +0 -15
- package/src/components/ChipList/ChipList.vue +19 -17
- package/src/components/ChipList/accessibilite/Accessibility.mdx +83 -10
- package/src/components/ChipList/tests/ChipList.a11y.spec.ts +41 -0
- package/src/components/CookiesSelection/CookiesInformation/CookiesInformation.vue +0 -2
- package/src/components/CopyBtn/CopyBtn.vue +1 -3
- package/src/components/Customs/Selects/SelectBtnField/SelectBtnField.vue +17 -17
- package/src/components/Customs/Selects/SelectBtnField/accessibilite/Accessibility.mdx +0 -9
- package/src/components/Customs/Selects/SelectBtnField/tests/SelectBtnField.spec.ts +31 -0
- package/src/components/Customs/Selects/SyAutocomplete/SyAutocomplete.stories.ts +66 -0
- package/src/components/Customs/Selects/SyAutocomplete/SyAutocomplete.vue +28 -7
- package/src/components/Customs/Selects/SyAutocomplete/tests/SyAutocomplete.a11y.spec.ts +18 -0
- package/src/components/Customs/Selects/SyAutocomplete/tests/SyAutocomplete.spec.ts +209 -0
- package/src/components/Customs/Selects/SyAutocomplete/utils/ariaManager.ts +14 -10
- package/src/components/Customs/Selects/SyInputSelect/SyInputSelect.stories.ts +4 -4
- package/src/components/Customs/Selects/SyInputSelect/SyInputSelect.vue +12 -15
- package/src/components/Customs/Selects/SyInputSelect/tests/SyInputSelect.spec.ts +10 -10
- package/src/components/Customs/Selects/SySelect/SySelect.stories.ts +1 -39
- package/src/components/Customs/Selects/SySelect/SySelect.vue +274 -71
- package/src/components/Customs/Selects/SySelect/accessibilite/Accessibility.mdx +199 -269
- package/src/components/Customs/Selects/SySelect/tests/SySelect.spec.ts +89 -0
- package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.vue +6 -9
- package/src/components/Customs/SyCheckbox/SyCheckbox.mdx +5 -0
- package/src/components/Customs/SyCheckbox/SyCheckbox.stories.ts +10 -16
- package/src/components/Customs/SyCheckbox/SyCheckbox.vue +45 -11
- package/src/components/Customs/SyCheckbox/accessibilite/Accessibility.mdx +53 -3
- package/src/components/Customs/SyCheckbox/tests/SyCheckbox.a11y.spec.ts +134 -2
- package/src/components/Customs/SyForm/SyForm.stories.ts +31 -5
- package/src/components/Customs/SyPagination/SyPagination.vue +0 -2
- package/src/components/Customs/SyRadioGroup/SyRadioGroup.vue +4 -7
- package/src/components/Customs/SyTabs/SyTabs.mdx +0 -58
- package/src/components/Customs/SyTabs/SyTabs.stories.ts +32 -33
- package/src/components/Customs/SyTabs/SyTabs.vue +87 -67
- package/src/components/Customs/SyTabs/accessibilite/Accessibility.mdx +83 -23
- package/src/components/Customs/SyTabs/tests/SyTabs.a11y.spec.ts +88 -0
- package/src/components/Customs/SyTabs/tests/SyTabs.spec.ts +46 -1
- package/src/components/Customs/SyTextField/SyTextField.mdx +1 -1
- package/src/components/Customs/SyTextField/SyTextField.stories.ts +50 -68
- package/src/components/Customs/SyTextField/SyTextField.vue +156 -161
- package/src/components/Customs/SyTextField/tests/SyTextField.a11y.spec.ts +32 -0
- package/src/components/Customs/SyTextField/tests/SyTextField.spec.ts +120 -11
- package/src/components/DatePicker/CalendarMode/DatePicker.stories.ts +62 -58
- package/src/components/DatePicker/CalendarMode/DatePicker.vue +342 -237
- package/src/components/DatePicker/CalendarMode/accessibilite/Accessibility.mdx +82 -0
- package/src/components/DatePicker/CalendarMode/tests/DatePicker.a11y.spec.ts +141 -0
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.stories.ts +2 -56
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.vue +215 -175
- package/src/components/DatePicker/ComplexDatePicker/accessibilite/Accessibility.mdx +76 -0
- package/src/components/DatePicker/ComplexDatePicker/tests/ComplexDatePicker.spec.ts +33 -10
- package/src/components/DatePicker/DatePickerValidationExample/CalendarMode.stories.ts +8 -8
- package/src/components/DatePicker/DatePickerValidationExample/ComplexDatePicker.stories.ts +106 -8
- package/src/components/DatePicker/DatePickerValidationExample/DateTextInput.stories.ts +12 -11
- package/src/components/DatePicker/DatePickerValidationExample/MultiMode.stories.ts +12 -12
- package/src/components/DatePicker/DateTextInput/DateRange.stories.ts +0 -12
- package/src/components/DatePicker/DateTextInput/DateTextInput.vue +71 -67
- package/src/components/DatePicker/DateTextInput/NoCalendar.stories.ts +3 -0
- package/src/components/DatePicker/DateTextInput/accessibilite/Accessibility.mdx +66 -0
- package/src/components/DatePicker/DateTextInput/tests/DateTextInput.spec.ts +52 -1
- package/src/components/DatePicker/composables/index.ts +1 -0
- package/src/components/DatePicker/composables/tests/useCalendarKeyboardNavigation.spec.ts +109 -65
- package/src/components/DatePicker/composables/tests/useDatePickerFocusTrap.spec.ts +138 -0
- package/src/components/DatePicker/composables/tests/useDatePickerState.spec.ts +53 -0
- package/src/components/DatePicker/composables/tests/useDateValidation.spec.ts +74 -18
- package/src/components/DatePicker/composables/tests/useInputBlurHandler.spec.ts +39 -0
- package/src/components/DatePicker/composables/tests/useManualDateValidation.spec.ts +91 -0
- package/src/components/DatePicker/composables/useCalendarKeyboardNavigation.ts +442 -36
- package/src/components/DatePicker/composables/useDatePickerFocusTrap.ts +92 -0
- package/src/components/DatePicker/composables/useDatePickerState.ts +24 -0
- package/src/components/DatePicker/composables/useDateTextField.ts +6 -6
- package/src/components/DatePicker/composables/useDateValidation.ts +36 -35
- package/src/components/DatePicker/composables/useInputBlurHandler.ts +3 -3
- package/src/components/DatePicker/composables/useManualDateValidation.ts +6 -2
- package/src/components/DatePicker/composables/useMonthButtonCustomization.ts +9 -8
- package/src/components/DatePicker/playground/DatePickerHolidayRule.vue +1 -1
- package/src/components/DiacriticPicker/accessibilite/Accessibility.mdx +76 -8
- package/src/components/DialogBox/DialogBox.vue +3 -5
- package/src/components/DialogBox/tests/DialogBox.visual.cy.ts +76 -0
- package/src/components/DialogBox/tests/__snapshots__/dialog-box-custom-texts.snap.png +0 -0
- package/src/components/DialogBox/tests/__snapshots__/dialog-box-default.snap.png +0 -0
- package/src/components/DialogBox/tests/__snapshots__/dialog-box-no-actions.snap.png +0 -0
- package/src/components/FileList/FileList.vue +9 -2
- package/src/components/FileList/UploadItem/UploadItem.vue +11 -13
- package/src/components/FileList/tests/FileList.spec.ts +47 -0
- package/src/components/FileUpload/FileUpload.vue +3 -5
- package/src/components/FileUpload/FileUploadContent.vue +3 -5
- package/src/components/FilterInline/FilterInline.vue +1 -3
- package/src/components/FilterSideBar/FilterSideBar.mdx +44 -1
- package/src/components/FilterSideBar/FilterSideBar.stories.ts +105 -1
- package/src/components/FilterSideBar/FilterSideBar.vue +7 -0
- package/src/components/FilterSideBar/tests/FilterSideBar.a11y.spec.ts +54 -1
- package/src/components/FilterSideBar/tests/FilterSideBar.spec.ts +42 -0
- package/src/components/FooterBar/FooterBar.vue +9 -13
- package/src/components/FranceConnectBtn/FranceConnectBtn.vue +1 -1
- package/src/components/HeaderBar/HeaderBar.stories.ts +14 -2
- package/src/components/HeaderBar/HeaderBar.vue +2 -3
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderBurgerMenu.vue +2 -3
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuItem/HeaderMenuItem.vue +2 -3
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuSection/HeaderMenuSection.vue +0 -1
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderSubMenu/HeaderSubMenu.vue +8 -9
- package/src/components/HeaderBar/HeaderBurgerMenu/menu.scss +0 -8
- package/src/components/HeaderBar/HeaderBurgerMenu/tests/HeaderBurgerMenu.visual.cy.ts +196 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/tests/__snapshots__/header-burger-menu-generated-submenu-open.snap.png +0 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/tests/__snapshots__/header-burger-menu-generated.snap.png +0 -0
- package/src/components/HeaderBar/HeaderLogo/HeaderLogo.vue +0 -1
- package/src/components/HeaderBar/HeaderMenuBtn/HeaderMenuBtn.vue +6 -7
- package/src/components/HeaderBar/tests/HeaderBar.visual.cy.ts +81 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-custom-width.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-default.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-no-sticky.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-with-prepend.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-with-side.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-with-subtitle.snap.png +0 -0
- package/src/components/HeaderNavigationBar/HeaderNavigationBar.vue +12 -3
- package/src/components/HeaderNavigationBar/HorizontalNavbar/HorizontalNavbar.vue +15 -8
- package/src/components/HeaderToolbar/HeaderToolbar.vue +6 -7
- package/src/components/LangBtn/LangBtn.vue +2 -4
- package/src/components/Logo/accessibilite/Accessibility.mdx +73 -11
- package/src/components/Logo/tests/Logo.visual.cy.ts +57 -0
- package/src/components/Logo/tests/__snapshots__/logo-avatar.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-dark.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-default.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-no-organism.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-no-signature.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-risque-pro.snap.png +0 -0
- package/src/components/LogoBrandSection/LogoBrandSection.vue +2 -2
- package/src/components/LogoBrandSection/accessibilite/Accessibility.mdx +85 -9
- package/src/components/LunarCalendar/tests/LunarCalendar.spec.ts +3 -1
- package/src/components/LunarCalendar/useLunarCalendarValidation.ts +4 -5
- package/src/components/MonthPicker/MonthPickerVisual/VisualPickerHeader.vue +1 -1
- package/src/components/MonthPicker/tests/MonthPicker.spec.ts +2 -1
- package/src/components/MonthPicker/tests/__snapshots__/MonthPicker.spec.ts.snap +7 -7
- package/src/components/NirField/NirField.stories.ts +6 -2
- package/src/components/NirField/NirField.vue +67 -265
- package/src/components/NirField/accessibilite/Accessibility.mdx +102 -7
- package/src/components/NirField/locales.ts +1 -1
- package/src/components/NirField/tests/NirField.spec.ts +124 -0
- package/src/components/NirField/tests/useNirValidation.spec.ts +449 -0
- package/src/components/NirField/useNirValidation.ts +277 -0
- package/src/components/NotificationBar/Notification/Notification.vue +5 -7
- package/src/components/NotificationBar/NotificationBar.vue +1 -3
- package/src/components/PaginatedTable/PaginatedTable.vue +2 -3
- package/src/components/PaginatedTable/Pagination.vue +3 -5
- package/src/components/PasswordField/PasswordField.stories.ts +4 -4
- package/src/components/PasswordField/PasswordField.vue +26 -34
- package/src/components/PasswordField/tests/PasswordField.spec.ts +6 -3
- package/src/components/PeriodField/PeriodField.stories.ts +4 -4
- package/src/components/PeriodField/PeriodField.vue +57 -57
- package/src/components/PeriodField/__tests__/PeriodField.async.spec.ts +32 -0
- package/src/components/PeriodField/accessibilite/Accessibility.mdx +68 -8
- package/src/components/PeriodField/tests/PeriodField.spec.ts +28 -2
- package/src/components/PhoneField/PhoneField.vue +8 -9
- package/src/components/PhoneField/tests/PhoneField.spec.ts +1 -0
- package/src/components/RangeField/RangeField.vue +6 -0
- package/src/components/RangeField/RangeSlider/RangeSlider.vue +0 -2
- package/src/components/RangeField/RangeSlider/Tooltip/Tooltip.vue +1 -1
- package/src/components/RangeField/tests/RangeField.visual.cy.ts +65 -0
- package/src/components/RangeField/tests/__snapshots__/range-field-custom-bg.snap.png +0 -0
- package/src/components/RangeField/tests/__snapshots__/range-field-custom-range.snap.png +0 -0
- package/src/components/RangeField/tests/__snapshots__/range-field-default.snap.png +0 -0
- package/src/components/RangeField/tests/__snapshots__/range-field-step.snap.png +0 -0
- package/src/components/RangeField/tests/__snapshots__/range-field-with-label.snap.png +0 -0
- package/src/components/RatingPicker/EmotionPicker/EmotionPicker.vue +6 -8
- package/src/components/RatingPicker/StarsPicker/StarsPicker.vue +3 -5
- package/src/components/SearchListField/SearchListField.vue +0 -2
- package/src/components/SkipLink/SkipLink.vue +2 -4
- package/src/components/SocialMediaLinks/SocialMediaLinks.vue +6 -6
- package/src/components/SubHeader/SubHeader.vue +1 -1
- package/src/components/SyAlert/SyAlert.vue +7 -9
- package/src/components/SyAlert/tests/SyAlert.visual.cy.ts +46 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-closable.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-error.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-info.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-success.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-variant-outlined.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-variant-tonal.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-warning.snap.png +0 -0
- package/src/components/SyBtnMenu/SyBtnMenu.vue +2 -4
- package/src/components/SyTextArea/SyTextArea.stories.ts +138 -2
- package/src/components/SyTextArea/SyTextArea.vue +53 -23
- package/src/components/SyTextArea/tests/SyTextArea.spec.ts +126 -3
- package/src/components/SyTextArea/useDefaultValidationRules.ts +74 -0
- package/src/components/TableToolbar/TableToolbar.vue +6 -8
- package/src/components/Tables/SyServerTable/SyServerTable.mdx +25 -0
- package/src/components/Tables/SyServerTable/SyServerTable.stories.ts +839 -1
- package/src/components/Tables/SyServerTable/SyServerTable.vue +154 -95
- package/src/components/Tables/SyServerTable/tests/SyServerTable.a11y.spec.ts +81 -0
- package/src/components/Tables/SyServerTable/tests/SyServerTable.spec.ts +390 -0
- package/src/components/Tables/SyTable/SyTable.mdx +25 -0
- package/src/components/Tables/SyTable/SyTable.stories.ts +556 -1
- package/src/components/Tables/SyTable/SyTable.vue +136 -60
- package/src/components/Tables/SyTable/tests/SyTable.a11y.spec.ts +79 -0
- package/src/components/Tables/SyTable/tests/SyTable.spec.ts +382 -0
- package/src/components/Tables/common/SyTableFilter.vue +49 -4
- package/src/components/Tables/common/SyTablePagination.vue +142 -19
- package/src/components/Tables/common/TableHeader.vue +45 -4
- package/src/components/Tables/common/filters/AutocompleteFilter.vue +160 -0
- package/src/components/Tables/common/filters/NumberFilter.vue +1 -1
- package/src/components/Tables/common/filters/SelectFilter.vue +11 -12
- package/src/components/Tables/common/filters/TextFilter.vue +1 -1
- package/src/components/Tables/common/filters/getFilterComponent.ts +8 -1
- package/src/components/Tables/common/filters/locales.ts +0 -1
- package/src/components/Tables/common/filters/tests/AutocompleteFilter.a11y.spec.ts +110 -0
- package/src/components/Tables/common/filters/tests/AutocompleteFilter.spec.ts +203 -0
- package/src/components/Tables/common/filters/tests/SelectFilter.a11y.spec.ts +104 -0
- package/src/components/Tables/common/filters/tests/SelectFilter.spec.ts +152 -16
- package/src/components/Tables/common/locales.ts +3 -0
- package/src/components/Tables/common/tableFilterUtils.ts +3 -0
- package/src/components/Tables/common/tableStyles.scss +60 -19
- package/src/components/Tables/common/tests/SyTablePagination.spec.ts +18 -0
- package/src/components/Tables/common/tests/TableHeader.spec.ts +39 -0
- package/src/components/Tables/common/tests/filterByRange.spec.ts +2 -1
- package/src/components/Tables/common/types.ts +15 -4
- package/src/components/Tables/common/useClickableTableRow.ts +103 -0
- package/src/components/Tables/common/usePagination.ts +13 -0
- package/src/components/Tables/common/usePinnedColumns.ts +237 -0
- package/src/components/Tables/common/useTableHeaders.ts +52 -30
- package/src/components/Tables/common/useTableRowCheckboxAccessibility.ts +41 -0
- package/src/components/UploadWorkflow/UploadWorkflow.vue +1 -0
- package/src/components/UploadWorkflow/tests/UploadWorkflow.spec.ts +23 -0
- package/src/components/UploadWorkflow/tests/__snapshots__/UploadWorkflow.spec.ts.snap +66 -0
- package/src/components/UploadWorkflow/useFileList.ts +3 -0
- package/src/components/UserMenuBtn/UserMenuBtn.vue +1 -3
- package/src/composables/date/tests/useDatePickerAccessibility.spec.ts +2 -6
- package/src/composables/date/useDatePickerAccessibility.ts +42 -207
- package/src/composables/rules/tests/useFieldValidation.spec.ts +120 -120
- package/src/composables/rules/useFieldValidation.ts +34 -17
- package/src/composables/unifyValidation/documentationValidationProps.ts +235 -0
- package/src/composables/unifyValidation/tests/useCustomValidation.spec.ts +601 -0
- package/src/composables/unifyValidation/tests/useValidation.spec.ts +2048 -0
- package/src/composables/unifyValidation/tests/useVuetifyValidation.spec.ts +184 -0
- package/src/composables/unifyValidation/useCustomValidation.ts +95 -0
- package/src/composables/unifyValidation/useValidation.ts +190 -0
- package/src/composables/unifyValidation/useVuetifyValidation.ts +54 -0
- package/src/composables/useFormFieldErrorHandling.ts +4 -7
- package/src/composables/validation/tests/useFormValidation.spec.ts +14 -0
- package/src/composables/validation/tests/useValidation.spec.ts +116 -21
- package/src/composables/validation/useFormValidation.ts +20 -13
- package/src/composables/validation/useValidatable.ts +8 -1
- package/src/composables/validation/useValidation.ts +151 -99
- package/src/composantsVuetify/Introduction.mdx +48 -0
- package/src/composantsVuetify/VBreadcrumbs/VBreadcrumbs.mdx +28 -0
- package/src/composantsVuetify/VBreadcrumbs/v-breadcrumbs.stories.ts +108 -0
- package/src/composantsVuetify/VBtn/VBtn.mdx +72 -0
- package/src/composantsVuetify/VBtn/v-btn.stories.ts +121 -0
- package/src/composantsVuetify/VOtpInput/VOtpInput.mdx +39 -0
- package/src/composantsVuetify/VOtpInput/v-otp-input.stories.ts +56 -0
- package/src/composantsVuetify/VSkeletonLoader/VSkeletonLoader.mdx +42 -0
- package/src/composantsVuetify/VSkeletonLoader/v-skeleton-loader.stories.ts +77 -0
- package/src/composantsVuetify/VSwitch/VSwitch.mdx +47 -0
- package/src/composantsVuetify/VSwitch/v-switch.stories.ts +166 -0
- package/src/composantsVuetify/VTooltip/VTooltip.mdx +32 -0
- package/src/composantsVuetify/VTooltip/v-tooltip.stories.ts +95 -0
- package/src/designTokens/tests/buildColorClassMap.spec.ts +31 -0
- package/src/designTokens/tests/generateScssTokens.spec.ts +12 -0
- package/src/designTokens/tests/themeUtils.spec.ts +53 -0
- package/src/designTokens/tokens/amelipro/apColors.ts +8 -130
- package/src/designTokens/tokens/amelipro/apColors2026.ts +3 -15
- package/src/designTokens/tokens/amelipro/apContextual.ts +55 -47
- package/src/designTokens/tokens/amelipro/apLightTheme.ts +1 -1
- package/src/designTokens/tokens/amelipro/apSemantic.ts +1 -1
- package/src/designTokens/tokens/baseColors.ts +129 -0
- package/src/designTokens/tokens/baseContextualTokens.ts +52 -0
- package/src/designTokens/tokens/cnam/cnamColors.ts +3 -125
- package/src/designTokens/tokens/cnam/cnamContextual.ts +4 -48
- package/src/designTokens/tokens/cnam/cnamLightTheme.ts +1 -1
- package/src/designTokens/tokens/cnam/cnamSemantic.ts +3 -3
- package/src/designTokens/tokens/pa/paColors.ts +2 -166
- package/src/designTokens/tokens/pa/paContextual.ts +3 -48
- package/src/designTokens/tokens/pa/paLightTheme.ts +1 -1
- package/src/designTokens/tokens/pa/paSemantic.ts +2 -2
- package/src/designTokens/utils/buildColorClassMap.ts +34 -0
- package/src/designTokens/utils/convertSemanticsToken.ts +8 -11
- package/src/designTokens/utils/createFlattenTheme.ts +15 -7
- package/src/designTokens/utils/index.ts +2 -2
- package/src/main.ts +0 -2
- package/src/stories/Accessibilite/AuditDesignSystem.mdx +0 -11
- package/src/stories/Accessibilite/DesignSystem/Avancement.mdx +433 -0
- package/src/stories/Accessibilite/DesignSystem/a11y-status.json +692 -0
- package/src/stories/Accessibilite/KitDePreAudit/Echantillonnage.mdx +8 -1
- package/src/stories/Accessibilite/KitDePreAudit/Introduction.mdx +51 -10
- package/src/stories/Accessibilite/KitDePreAudit/Outils/Introduction.mdx +16 -9
- package/src/stories/Accessibilite/KitDePreAudit/Preaudit.mdx +48 -58
- package/src/stories/Components/Components.stories.ts +113 -9
- package/src/stories/Demarrer/Accueil.stories.ts +3 -3
- package/src/stories/Demarrer/EnrichirLeDesignSystem.mdx +4 -9
- package/src/stories/Demarrer/EnrichirLeDesignSystem.stories.ts +28 -0
- package/src/stories/Demarrer/Releases.stories.ts +48 -5
- package/src/stories/DesignTokens/ColorDisplay.vue +6 -5
- package/src/stories/DesignTokens/ColorIntegrationExample.vue +2 -4
- package/src/stories/DesignTokens/colors.stories.ts +5 -6
- package/src/stories/GuideDuDev/Amelipro.mdx +15 -0
- package/src/stories/GuideDuDev/Amelipro.stories.ts +209 -0
- package/src/stories/GuideDuDev/CreateVuetifyInstance.mdx +95 -0
- package/src/stories/GuideDuDev/Theme.mdx +36 -26
- package/src/stories/GuideDuDev/moduleDeNotification.mdx +3 -2
- package/src/stories/GuideDuDev/vuetifyOptions.mdx +3 -3
- package/src/stories/styles/accessibility-guide.css +3 -3
- package/src/utils/functions/classToHex.ts +6 -34
- package/src/utils/functions/createHexResolver.ts +45 -0
- package/src/utils/functions/tests/classToHex.spec.ts +36 -0
- package/src/utils/functions/tests/convertToHex.spec.ts +31 -0
- package/src/utils/functions/tests/createHexResolver.spec.ts +66 -0
- package/src/utils/functions/tests/isCssColor.spec.ts +48 -0
- package/dist/SelectFilter-BioGT6Nn.js +0 -136
- package/dist/designTokens/utils/convertGaps.d.ts +0 -5
- package/dist/main-aLKwdMi1.js +0 -37886
- package/dist/style.css +0 -1
- package/src/assets/apTokens.scss +0 -343
- package/src/assets/overrides/_container.scss +0 -36
- package/src/assets/tokens.scss +0 -388
- package/src/components/DatePicker/Accessibilite.mdx +0 -14
- package/src/designTokens/apColors.md +0 -66
- package/src/designTokens/cnamColors.md +0 -193
- package/src/designTokens/paColors.md +0 -66
- package/src/designTokens/tokens/json/contextual-tokens.json +0 -156
- package/src/designTokens/tokens/json/primitives.json +0 -209
- package/src/designTokens/tokens/json/semantic.json +0 -120
- package/src/designTokens/utils/convertGaps.ts +0 -11
- package/src/stories/Accessibilite/Avancement/Avancement.mdx +0 -533
- package/src/stories/Accessibilite/Avancement/Avancement.stories.ts +0 -306
|
@@ -183,6 +183,149 @@ describe('SyAutocomplete', () => {
|
|
|
183
183
|
expect(wrapper.emitted('update:modelValue')?.[0]).toEqual([null])
|
|
184
184
|
})
|
|
185
185
|
|
|
186
|
+
it('removes chip when Enter key is pressed on chip close button', async () => {
|
|
187
|
+
wrapper.unmount()
|
|
188
|
+
wrapper = mount(SyAutocomplete, {
|
|
189
|
+
props: {
|
|
190
|
+
modelValue: [items[0]!, items[1]!],
|
|
191
|
+
items,
|
|
192
|
+
multiple: true,
|
|
193
|
+
chips: true,
|
|
194
|
+
returnObject: true,
|
|
195
|
+
label: 'Test Chips Keyboard',
|
|
196
|
+
textKey: 'text',
|
|
197
|
+
valueKey: 'value',
|
|
198
|
+
},
|
|
199
|
+
attachTo: document.body,
|
|
200
|
+
})
|
|
201
|
+
|
|
202
|
+
await wrapper.vm.$nextTick()
|
|
203
|
+
const closeBtn = wrapper.find('.v-chip__close')
|
|
204
|
+
closeBtn.element.dispatchEvent(new KeyboardEvent('keydown', { key: 'Enter', bubbles: true, cancelable: true }))
|
|
205
|
+
await flushPromises()
|
|
206
|
+
await wrapper.vm.$nextTick()
|
|
207
|
+
|
|
208
|
+
expect(wrapper.emitted('update:modelValue')).toBeTruthy()
|
|
209
|
+
// First item was removed — remaining is [items[1]]
|
|
210
|
+
const emitted = wrapper.emitted('update:modelValue')?.[0]?.[0] as unknown[]
|
|
211
|
+
expect(emitted).toHaveLength(1)
|
|
212
|
+
expect((emitted[0] as { value: string }).value).toBe('2')
|
|
213
|
+
})
|
|
214
|
+
|
|
215
|
+
it('removes chip when Space key is pressed on chip close button', async () => {
|
|
216
|
+
wrapper.unmount()
|
|
217
|
+
wrapper = mount(SyAutocomplete, {
|
|
218
|
+
props: {
|
|
219
|
+
modelValue: [items[0]!, items[1]!],
|
|
220
|
+
items,
|
|
221
|
+
multiple: true,
|
|
222
|
+
chips: true,
|
|
223
|
+
returnObject: true,
|
|
224
|
+
label: 'Test Chips Space',
|
|
225
|
+
textKey: 'text',
|
|
226
|
+
valueKey: 'value',
|
|
227
|
+
},
|
|
228
|
+
attachTo: document.body,
|
|
229
|
+
})
|
|
230
|
+
|
|
231
|
+
await wrapper.vm.$nextTick()
|
|
232
|
+
const closeBtn = wrapper.find('.v-chip__close')
|
|
233
|
+
closeBtn.element.dispatchEvent(new KeyboardEvent('keydown', { key: ' ', bubbles: true, cancelable: true }))
|
|
234
|
+
await flushPromises()
|
|
235
|
+
await wrapper.vm.$nextTick()
|
|
236
|
+
|
|
237
|
+
expect(wrapper.emitted('update:modelValue')).toBeTruthy()
|
|
238
|
+
const emitted = wrapper.emitted('update:modelValue')?.[0]?.[0] as unknown[]
|
|
239
|
+
expect(emitted).toHaveLength(1)
|
|
240
|
+
})
|
|
241
|
+
|
|
242
|
+
it('does not open menu when modelValue is set programmatically (suppressMenuOpen)', async () => {
|
|
243
|
+
// Menu must be closed initially
|
|
244
|
+
expect(isMenuOverlayActive()).toBe(false)
|
|
245
|
+
|
|
246
|
+
// Programmatic update (e.g., filter reset sets a value) should NOT open the menu
|
|
247
|
+
await wrapper.setProps({ modelValue: items[0] })
|
|
248
|
+
await flushPromises()
|
|
249
|
+
await wrapper.vm.$nextTick()
|
|
250
|
+
|
|
251
|
+
expect(isMenuOverlayActive()).toBe(false)
|
|
252
|
+
})
|
|
253
|
+
|
|
254
|
+
it('keeps menu open when blur target is a chip (checkErrorOnBlur)', async () => {
|
|
255
|
+
wrapper.unmount()
|
|
256
|
+
wrapper = mount(SyAutocomplete, {
|
|
257
|
+
props: {
|
|
258
|
+
modelValue: ['1'],
|
|
259
|
+
items,
|
|
260
|
+
multiple: true,
|
|
261
|
+
chips: true,
|
|
262
|
+
label: 'Test blur chip',
|
|
263
|
+
textKey: 'text',
|
|
264
|
+
valueKey: 'value',
|
|
265
|
+
menuId,
|
|
266
|
+
},
|
|
267
|
+
attachTo: document.body,
|
|
268
|
+
})
|
|
269
|
+
|
|
270
|
+
// Open menu
|
|
271
|
+
const input = wrapper.find('input')
|
|
272
|
+
await input.trigger('click')
|
|
273
|
+
await flushPromises()
|
|
274
|
+
await wrapper.vm.$nextTick()
|
|
275
|
+
expect(isMenuOverlayActive()).toBe(true)
|
|
276
|
+
|
|
277
|
+
// Create a chip DOM element as blur relatedTarget
|
|
278
|
+
const chipEl = document.createElement('span')
|
|
279
|
+
chipEl.className = 'sy-autocomplete__chip'
|
|
280
|
+
document.body.appendChild(chipEl)
|
|
281
|
+
|
|
282
|
+
const inputEl = getInputEl()!
|
|
283
|
+
inputEl.dispatchEvent(new FocusEvent('blur', { relatedTarget: chipEl, bubbles: true }))
|
|
284
|
+
await flushPromises()
|
|
285
|
+
await wrapper.vm.$nextTick()
|
|
286
|
+
|
|
287
|
+
// Menu should remain open
|
|
288
|
+
expect(isMenuOverlayActive()).toBe(true)
|
|
289
|
+
|
|
290
|
+
document.body.removeChild(chipEl)
|
|
291
|
+
})
|
|
292
|
+
|
|
293
|
+
it('keeps menu open when blur target is the clear button (checkErrorOnBlur)', async () => {
|
|
294
|
+
wrapper.unmount()
|
|
295
|
+
wrapper = mount(SyAutocomplete, {
|
|
296
|
+
props: {
|
|
297
|
+
modelValue: items[0],
|
|
298
|
+
items,
|
|
299
|
+
clearable: true,
|
|
300
|
+
label: 'Test blur clear',
|
|
301
|
+
textKey: 'text',
|
|
302
|
+
valueKey: 'value',
|
|
303
|
+
menuId,
|
|
304
|
+
},
|
|
305
|
+
attachTo: document.body,
|
|
306
|
+
})
|
|
307
|
+
|
|
308
|
+
const input = wrapper.find('input')
|
|
309
|
+
await input.trigger('click')
|
|
310
|
+
await flushPromises()
|
|
311
|
+
await wrapper.vm.$nextTick()
|
|
312
|
+
expect(isMenuOverlayActive()).toBe(true)
|
|
313
|
+
|
|
314
|
+
// Create a clear-button DOM element as blur relatedTarget
|
|
315
|
+
const clearBtn = document.createElement('button')
|
|
316
|
+
clearBtn.className = 'sy-autocomplete__clear-button'
|
|
317
|
+
document.body.appendChild(clearBtn)
|
|
318
|
+
|
|
319
|
+
const inputEl = getInputEl()!
|
|
320
|
+
inputEl.dispatchEvent(new FocusEvent('blur', { relatedTarget: clearBtn, bubbles: true }))
|
|
321
|
+
await flushPromises()
|
|
322
|
+
await wrapper.vm.$nextTick()
|
|
323
|
+
|
|
324
|
+
expect(isMenuOverlayActive()).toBe(true)
|
|
325
|
+
|
|
326
|
+
document.body.removeChild(clearBtn)
|
|
327
|
+
})
|
|
328
|
+
|
|
186
329
|
it('shows clear button when clearable and has selection', async () => {
|
|
187
330
|
wrapper.unmount()
|
|
188
331
|
wrapper = mount(SyAutocomplete, {
|
|
@@ -520,6 +663,72 @@ describe('SyAutocomplete', () => {
|
|
|
520
663
|
expect(option0?.getAttribute('aria-selected')).toBe('false')
|
|
521
664
|
})
|
|
522
665
|
|
|
666
|
+
describe('disabled', () => {
|
|
667
|
+
it('does not open menu when input is clicked on a disabled field', async () => {
|
|
668
|
+
wrapper.unmount()
|
|
669
|
+
wrapper = mount(SyAutocomplete, {
|
|
670
|
+
props: {
|
|
671
|
+
modelValue: null,
|
|
672
|
+
items,
|
|
673
|
+
label: 'Test Disabled',
|
|
674
|
+
textKey: 'text',
|
|
675
|
+
valueKey: 'value',
|
|
676
|
+
disabled: true,
|
|
677
|
+
menuId,
|
|
678
|
+
},
|
|
679
|
+
attachTo: document.body,
|
|
680
|
+
})
|
|
681
|
+
|
|
682
|
+
const input = wrapper.find('input')
|
|
683
|
+
await input.trigger('click')
|
|
684
|
+
await flushPromises()
|
|
685
|
+
await wrapper.vm.$nextTick()
|
|
686
|
+
expect(isMenuOverlayActive()).toBe(false)
|
|
687
|
+
})
|
|
688
|
+
|
|
689
|
+
it('does not emit update:modelValue when selectItem is called on a disabled field', async () => {
|
|
690
|
+
wrapper.unmount()
|
|
691
|
+
wrapper = mount(SyAutocomplete, {
|
|
692
|
+
props: {
|
|
693
|
+
modelValue: null,
|
|
694
|
+
items,
|
|
695
|
+
label: 'Test Disabled Select',
|
|
696
|
+
textKey: 'text',
|
|
697
|
+
valueKey: 'value',
|
|
698
|
+
disabled: true,
|
|
699
|
+
menuId,
|
|
700
|
+
},
|
|
701
|
+
attachTo: document.body,
|
|
702
|
+
})
|
|
703
|
+
|
|
704
|
+
// openAndFocus is guarded, but selectItem itself is not — the field input
|
|
705
|
+
// is natively disabled so users cannot interact; we verify the menu stays closed.
|
|
706
|
+
expect(isMenuOverlayActive()).toBe(false)
|
|
707
|
+
await wrapper.vm.$nextTick()
|
|
708
|
+
expect(isMenuOverlayActive()).toBe(false)
|
|
709
|
+
})
|
|
710
|
+
|
|
711
|
+
it('passes disabled prop to SyTextField', async () => {
|
|
712
|
+
wrapper.unmount()
|
|
713
|
+
wrapper = mount(SyAutocomplete, {
|
|
714
|
+
props: {
|
|
715
|
+
modelValue: null,
|
|
716
|
+
items,
|
|
717
|
+
label: 'Test Disabled TextField',
|
|
718
|
+
textKey: 'text',
|
|
719
|
+
valueKey: 'value',
|
|
720
|
+
disabled: true,
|
|
721
|
+
menuId,
|
|
722
|
+
},
|
|
723
|
+
attachTo: document.body,
|
|
724
|
+
})
|
|
725
|
+
|
|
726
|
+
await wrapper.vm.$nextTick()
|
|
727
|
+
const textField = wrapper.findComponent(SyTextField)
|
|
728
|
+
expect(textField.props('disabled')).toBe(true)
|
|
729
|
+
})
|
|
730
|
+
})
|
|
731
|
+
|
|
523
732
|
describe('hideDetails', () => {
|
|
524
733
|
it('hides the details zone when hideDetails is true', async () => {
|
|
525
734
|
wrapper.unmount()
|
|
@@ -160,21 +160,25 @@ export const ariaManager = {
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
inputEl.setAttribute('aria-haspopup', 'listbox')
|
|
163
|
-
if (!
|
|
163
|
+
if (!isOpen.value) {
|
|
164
164
|
inputEl.removeAttribute('aria-controls')
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
165
|
+
}
|
|
166
|
+
else if (!popupRendered) {
|
|
167
|
+
inputEl.removeAttribute('aria-controls')
|
|
168
|
+
nextTick(() => {
|
|
169
|
+
const popupNowRendered = Boolean(document.getElementById(menuId))
|
|
170
|
+
if (isOpen.value && popupNowRendered) {
|
|
171
|
+
inputEl.setAttribute('aria-controls', menuId)
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
inputEl.removeAttribute('aria-controls')
|
|
175
|
+
}
|
|
176
|
+
})
|
|
173
177
|
}
|
|
174
178
|
ariaManager.updateValidationAttributes(inputEl, false, false)
|
|
175
179
|
nextTick(() => {
|
|
176
180
|
const popupStillThere = Boolean(document.getElementById(menuId))
|
|
177
|
-
if (popupStillThere) {
|
|
181
|
+
if (isOpen.value && popupStillThere) {
|
|
178
182
|
inputEl.setAttribute('aria-controls', menuId)
|
|
179
183
|
}
|
|
180
184
|
else {
|
|
@@ -508,12 +508,12 @@ const options = [
|
|
|
508
508
|
{ text: 'Option 3', value: '3' },
|
|
509
509
|
]
|
|
510
510
|
|
|
511
|
-
const validateForm = () => {
|
|
511
|
+
const validateForm = async (): Promise<void> => {
|
|
512
512
|
// Réinitialiser
|
|
513
513
|
formSubmitted.value = false
|
|
514
514
|
|
|
515
515
|
// Valider le champ avec la méthode validateOnSubmit
|
|
516
|
-
const isValid = selectField.value.validateOnSubmit()
|
|
516
|
+
const isValid = await selectField.value.validateOnSubmit()
|
|
517
517
|
|
|
518
518
|
if (!isValid) {
|
|
519
519
|
return
|
|
@@ -551,7 +551,7 @@ const validateForm = () => {
|
|
|
551
551
|
const errorMessages = ref([])
|
|
552
552
|
const formSubmitted = ref(false)
|
|
553
553
|
|
|
554
|
-
const validateForm = () => {
|
|
554
|
+
const validateForm = async (): Promise<void> => {
|
|
555
555
|
// Réinitialiser
|
|
556
556
|
formSubmitted.value = false
|
|
557
557
|
|
|
@@ -562,7 +562,7 @@ const validateForm = () => {
|
|
|
562
562
|
}
|
|
563
563
|
|
|
564
564
|
// Valider le champ avec la méthode validateOnSubmit
|
|
565
|
-
const isValid = selectField.value.validateOnSubmit()
|
|
565
|
+
const isValid = await selectField.value.validateOnSubmit()
|
|
566
566
|
|
|
567
567
|
if (!isValid) {
|
|
568
568
|
return
|
|
@@ -50,7 +50,6 @@
|
|
|
50
50
|
|
|
51
51
|
// Initialisation du composable de validation
|
|
52
52
|
const validation = useValidation({
|
|
53
|
-
customRules: props.customRules,
|
|
54
53
|
fieldIdentifier: props.label,
|
|
55
54
|
disableErrorHandling: props.disableErrorHandling,
|
|
56
55
|
})
|
|
@@ -90,11 +89,11 @@
|
|
|
90
89
|
const inputId = ref(`sy-input-select-${Math.random().toString(36).substring(7)}`)
|
|
91
90
|
|
|
92
91
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- This is a generic type
|
|
93
|
-
const selectItem = (item: any) => {
|
|
92
|
+
const selectItem = async (item: any) => {
|
|
94
93
|
selectedItem.value = item
|
|
95
94
|
emit('update:modelValue', item)
|
|
96
95
|
isOpen.value = false
|
|
97
|
-
validateField(item)
|
|
96
|
+
await validateField(item)
|
|
98
97
|
emit('update:errorMessages', localErrorMessages.value)
|
|
99
98
|
}
|
|
100
99
|
|
|
@@ -182,7 +181,7 @@
|
|
|
182
181
|
: [],
|
|
183
182
|
)
|
|
184
183
|
|
|
185
|
-
const validateField = (value: unknown) => {
|
|
184
|
+
const validateField = async (value: unknown) => {
|
|
186
185
|
if (props.readonly) {
|
|
187
186
|
validation.clearValidation()
|
|
188
187
|
localErrorMessages.value = []
|
|
@@ -195,7 +194,7 @@
|
|
|
195
194
|
return true
|
|
196
195
|
}
|
|
197
196
|
|
|
198
|
-
const result = validation.validateField(
|
|
197
|
+
const result = await validation.validateField(
|
|
199
198
|
value,
|
|
200
199
|
[...defaultRules.value, ...(props.customRules || [])],
|
|
201
200
|
)
|
|
@@ -204,14 +203,14 @@
|
|
|
204
203
|
return !result.hasError
|
|
205
204
|
}
|
|
206
205
|
|
|
207
|
-
const validateOnSubmit = () => {
|
|
208
|
-
const isValid = validateField(selectedItem.value)
|
|
206
|
+
const validateOnSubmit = async () => {
|
|
207
|
+
const isValid = await validateField(selectedItem.value)
|
|
209
208
|
hasError.value = !isValid
|
|
210
209
|
return isValid
|
|
211
210
|
}
|
|
212
211
|
|
|
213
|
-
const checkForErrors = () => {
|
|
214
|
-
return validateField(selectedItem.value)
|
|
212
|
+
const checkForErrors = async () => {
|
|
213
|
+
return await validateField(selectedItem.value)
|
|
215
214
|
}
|
|
216
215
|
|
|
217
216
|
defineExpose({
|
|
@@ -304,11 +303,9 @@
|
|
|
304
303
|
</template>
|
|
305
304
|
|
|
306
305
|
<style lang="scss" scoped>
|
|
307
|
-
@use '@/assets/tokens';
|
|
308
|
-
|
|
309
306
|
.sy-input-select {
|
|
310
307
|
text-transform: none !important;
|
|
311
|
-
font-size:
|
|
308
|
+
font-size: var(--v-fontSize-corpsDeTexte);
|
|
312
309
|
}
|
|
313
310
|
|
|
314
311
|
.v-input {
|
|
@@ -347,14 +344,14 @@
|
|
|
347
344
|
}
|
|
348
345
|
|
|
349
346
|
.error {
|
|
350
|
-
border-color:
|
|
347
|
+
border-color: rgb(var(--v-theme-error));
|
|
351
348
|
}
|
|
352
349
|
|
|
353
350
|
.v-btn {
|
|
354
|
-
color:
|
|
351
|
+
color: rgb(var(--v-theme-blue-base));
|
|
355
352
|
}
|
|
356
353
|
|
|
357
354
|
.text-color {
|
|
358
|
-
color:
|
|
355
|
+
color: rgb(var(--v-theme-blue-base));
|
|
359
356
|
}
|
|
360
357
|
</style>
|
|
@@ -96,7 +96,7 @@ describe('SyInputSelect', () => {
|
|
|
96
96
|
})
|
|
97
97
|
})
|
|
98
98
|
|
|
99
|
-
describe('Validation', () => {
|
|
99
|
+
describe('Validation', async () => {
|
|
100
100
|
it('validateField valide correctement un champ requis avec une valeur', async () => {
|
|
101
101
|
const wrapper = mount(SyInputSelect, {
|
|
102
102
|
props: {
|
|
@@ -105,7 +105,7 @@ describe('SyInputSelect', () => {
|
|
|
105
105
|
},
|
|
106
106
|
})
|
|
107
107
|
|
|
108
|
-
const result = wrapper.vm.validateField({ text: 'Option 1', value: '1' })
|
|
108
|
+
const result = await wrapper.vm.validateField({ text: 'Option 1', value: '1' })
|
|
109
109
|
expect(result).toBe(true)
|
|
110
110
|
expect(wrapper.find('.v-messages__message').exists()).toBe(false)
|
|
111
111
|
})
|
|
@@ -119,7 +119,7 @@ describe('SyInputSelect', () => {
|
|
|
119
119
|
},
|
|
120
120
|
})
|
|
121
121
|
|
|
122
|
-
const result = wrapper.vm.validateField(null)
|
|
122
|
+
const result = await wrapper.vm.validateField(null)
|
|
123
123
|
expect(result).toBe(false)
|
|
124
124
|
|
|
125
125
|
await wrapper.setProps({ errorMessages: ['Test Label est requis'] })
|
|
@@ -134,15 +134,15 @@ describe('SyInputSelect', () => {
|
|
|
134
134
|
props: { required: true },
|
|
135
135
|
})
|
|
136
136
|
|
|
137
|
-
const result = wrapper.vm.validateOnSubmit()
|
|
137
|
+
const result = await wrapper.vm.validateOnSubmit()
|
|
138
138
|
expect(result).toBe(false)
|
|
139
139
|
|
|
140
140
|
await wrapper.setProps({ modelValue: { text: 'Option 1', value: '1' } })
|
|
141
|
-
const resultWithValue = wrapper.vm.validateOnSubmit()
|
|
141
|
+
const resultWithValue = await wrapper.vm.validateOnSubmit()
|
|
142
142
|
expect(resultWithValue).toBe(true)
|
|
143
143
|
})
|
|
144
144
|
|
|
145
|
-
it('vérifie que checkForErrors retourne le résultat de la validation', () => {
|
|
145
|
+
it('vérifie que checkForErrors retourne le résultat de la validation', async () => {
|
|
146
146
|
const wrapper1 = mount(SyInputSelect, {
|
|
147
147
|
props: {
|
|
148
148
|
required: true,
|
|
@@ -150,7 +150,7 @@ describe('SyInputSelect', () => {
|
|
|
150
150
|
},
|
|
151
151
|
})
|
|
152
152
|
|
|
153
|
-
const result1 = wrapper1.vm.checkForErrors()
|
|
153
|
+
const result1 = await wrapper1.vm.checkForErrors()
|
|
154
154
|
expect(result1).toBe(false)
|
|
155
155
|
|
|
156
156
|
const wrapper2 = mount(SyInputSelect, {
|
|
@@ -160,13 +160,13 @@ describe('SyInputSelect', () => {
|
|
|
160
160
|
},
|
|
161
161
|
})
|
|
162
162
|
|
|
163
|
-
const result2 = wrapper2.vm.checkForErrors()
|
|
163
|
+
const result2 = await wrapper2.vm.checkForErrors()
|
|
164
164
|
expect(result2).toBe(true)
|
|
165
165
|
})
|
|
166
166
|
})
|
|
167
167
|
|
|
168
168
|
describe('Mode readonly', () => {
|
|
169
|
-
it('désactive la validation en mode readonly', () => {
|
|
169
|
+
it('désactive la validation en mode readonly', async () => {
|
|
170
170
|
const wrapper = mount(SyInputSelect, {
|
|
171
171
|
props: {
|
|
172
172
|
readonly: true,
|
|
@@ -174,7 +174,7 @@ describe('SyInputSelect', () => {
|
|
|
174
174
|
},
|
|
175
175
|
})
|
|
176
176
|
|
|
177
|
-
const result = wrapper.vm.validateField(null)
|
|
177
|
+
const result = await wrapper.vm.validateField(null)
|
|
178
178
|
expect(result).toBe(true)
|
|
179
179
|
expect(wrapper.find('.v-messages__message').exists()).toBe(false)
|
|
180
180
|
})
|
|
@@ -11,7 +11,7 @@ const meta: Meta<typeof SySelect> = {
|
|
|
11
11
|
component: SySelect,
|
|
12
12
|
parameters: {
|
|
13
13
|
layout: 'fullscreen',
|
|
14
|
-
controls: { exclude: ['selectedValue', 'isOpen', 'closeList'] },
|
|
14
|
+
controls: { exclude: ['onUpdate:modelValue', 'selectedValue', 'isOpen', 'closeList'] },
|
|
15
15
|
},
|
|
16
16
|
argTypes: {
|
|
17
17
|
selectedValue: { control: 'text' },
|
|
@@ -115,9 +115,6 @@ export default meta
|
|
|
115
115
|
type Story = StoryObj<typeof meta>
|
|
116
116
|
export const Default: Story = {
|
|
117
117
|
parameters: {
|
|
118
|
-
a11y: {
|
|
119
|
-
disable: false,
|
|
120
|
-
},
|
|
121
118
|
sourceCode: [
|
|
122
119
|
{
|
|
123
120
|
name: 'Template',
|
|
@@ -180,7 +177,6 @@ export const Default: Story = {
|
|
|
180
177
|
v-bind="args"
|
|
181
178
|
/>
|
|
182
179
|
</div>
|
|
183
|
-
<br/><br/><br/><br/>
|
|
184
180
|
`,
|
|
185
181
|
}
|
|
186
182
|
},
|
|
@@ -188,9 +184,6 @@ export const Default: Story = {
|
|
|
188
184
|
|
|
189
185
|
export const HelpText: Story = {
|
|
190
186
|
parameters: {
|
|
191
|
-
a11y: {
|
|
192
|
-
disable: false,
|
|
193
|
-
},
|
|
194
187
|
sourceCode: [
|
|
195
188
|
{
|
|
196
189
|
name: 'Template',
|
|
@@ -257,7 +250,6 @@ export const HelpText: Story = {
|
|
|
257
250
|
v-bind="args"
|
|
258
251
|
/>
|
|
259
252
|
</div>
|
|
260
|
-
<br/><br/><br/><br/>
|
|
261
253
|
`,
|
|
262
254
|
}
|
|
263
255
|
},
|
|
@@ -265,9 +257,6 @@ export const HelpText: Story = {
|
|
|
265
257
|
|
|
266
258
|
export const Required: Story = {
|
|
267
259
|
parameters: {
|
|
268
|
-
a11y: {
|
|
269
|
-
disable: false,
|
|
270
|
-
},
|
|
271
260
|
sourceCode: [
|
|
272
261
|
{
|
|
273
262
|
name: 'Template',
|
|
@@ -326,9 +315,6 @@ export const Required: Story = {
|
|
|
326
315
|
|
|
327
316
|
export const RequiredWithAsterisk: Story = {
|
|
328
317
|
parameters: {
|
|
329
|
-
a11y: {
|
|
330
|
-
disable: false,
|
|
331
|
-
},
|
|
332
318
|
docs: {
|
|
333
319
|
description: {
|
|
334
320
|
story: 'Version du champ de sélection requis avec un astérisque visuel.',
|
|
@@ -394,9 +380,6 @@ const items = [
|
|
|
394
380
|
|
|
395
381
|
export const SlotPrepend: Story = {
|
|
396
382
|
parameters: {
|
|
397
|
-
a11y: {
|
|
398
|
-
disable: false,
|
|
399
|
-
},
|
|
400
383
|
sourceCode: [
|
|
401
384
|
{
|
|
402
385
|
name: 'Template',
|
|
@@ -461,9 +444,6 @@ export const SlotPrepend: Story = {
|
|
|
461
444
|
|
|
462
445
|
export const SlotAppend: Story = {
|
|
463
446
|
parameters: {
|
|
464
|
-
a11y: {
|
|
465
|
-
disable: false,
|
|
466
|
-
},
|
|
467
447
|
sourceCode: [
|
|
468
448
|
{
|
|
469
449
|
name: 'Template',
|
|
@@ -561,9 +541,6 @@ export const WithTooltips: Story = {
|
|
|
561
541
|
}
|
|
562
542
|
},
|
|
563
543
|
parameters: {
|
|
564
|
-
a11y: {
|
|
565
|
-
disable: false,
|
|
566
|
-
},
|
|
567
544
|
docs: {
|
|
568
545
|
description: {
|
|
569
546
|
story: 'Exemple de champ avec des tooltips d\'information. Les icônes d\'information apparaissent automatiquement lorsque les props prependTooltip et/ou appendTooltip sont renseignées. La position des tooltips peut être contrôlée avec la prop tooltipLocation.',
|
|
@@ -606,9 +583,6 @@ export const WithTooltips: Story = {
|
|
|
606
583
|
|
|
607
584
|
export const MultipleSelection: Story = {
|
|
608
585
|
parameters: {
|
|
609
|
-
a11y: {
|
|
610
|
-
disable: true,
|
|
611
|
-
},
|
|
612
586
|
docs: {
|
|
613
587
|
description: {
|
|
614
588
|
story: 'Exemple de sélection multiple avec SySelect. Les options dans le menu déroulant sont affichées avec des cases à cocher pour faciliter la sélection multiple.',
|
|
@@ -699,9 +673,6 @@ const options = [
|
|
|
699
673
|
|
|
700
674
|
export const ChipsDisplay: Story = {
|
|
701
675
|
parameters: {
|
|
702
|
-
a11y: {
|
|
703
|
-
disable: true,
|
|
704
|
-
},
|
|
705
676
|
docs: {
|
|
706
677
|
description: {
|
|
707
678
|
story: 'Exemple de sélection multiple avec affichage en chips. Les options sélectionnées sont affichées sous forme de chips dans le champ, et les options dans le menu déroulant sont affichées avec des cases à cocher.',
|
|
@@ -776,9 +747,6 @@ const options = [
|
|
|
776
747
|
|
|
777
748
|
export const withCustomError: Story = {
|
|
778
749
|
parameters: {
|
|
779
|
-
a11y: {
|
|
780
|
-
disable: false,
|
|
781
|
-
},
|
|
782
750
|
sourceCode: [
|
|
783
751
|
{
|
|
784
752
|
name: 'Template',
|
|
@@ -854,9 +822,6 @@ export const withCustomError: Story = {
|
|
|
854
822
|
|
|
855
823
|
export const withCustomKey: Story = {
|
|
856
824
|
parameters: {
|
|
857
|
-
a11y: {
|
|
858
|
-
disable: false,
|
|
859
|
-
},
|
|
860
825
|
sourceCode: [
|
|
861
826
|
{
|
|
862
827
|
name: 'Template',
|
|
@@ -935,9 +900,6 @@ export const Info: Story = {
|
|
|
935
900
|
|
|
936
901
|
export const FormValidation: Story = {
|
|
937
902
|
parameters: {
|
|
938
|
-
a11y: {
|
|
939
|
-
disable: false,
|
|
940
|
-
},
|
|
941
903
|
docs: {
|
|
942
904
|
description: {
|
|
943
905
|
story: 'Exemple d\'utilisation du SySelect dans un formulaire.',
|