@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
package/README.md
CHANGED
|
@@ -45,13 +45,35 @@ npm i @cnamts/synapse
|
|
|
45
45
|
## Commandes disponibles
|
|
46
46
|
|
|
47
47
|
```bash
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
pnpm dev # Lancement du serveur de développement
|
|
49
|
+
pnpm build # Build du projet
|
|
50
|
+
pnpm preview # Lancement du serveur de prévisualisation
|
|
51
|
+
pnpm test:unit # Lancement des tests unitaires
|
|
52
|
+
pnpm test:a11y # Tests d'accessibilité
|
|
53
|
+
pnpm test:visual # Tests visuels avec Cypress (Electron headless)
|
|
54
|
+
pnpm test:visual:open # Tests visuels en mode interactif (Cypress Studio)
|
|
55
|
+
pnpm test:visual:update # Mise à jour des snapshots visuels
|
|
56
|
+
pnpm lint # Lancement de l'analyseur de code
|
|
57
|
+
pnpm lint:style # Analyse des styles (CSS/SCSS/Vue)
|
|
53
58
|
```
|
|
54
59
|
|
|
60
|
+
### Tests visuels
|
|
61
|
+
|
|
62
|
+
Les tests visuels utilisent **Electron headless** pour assurer une reproductibilité entre environnements.
|
|
63
|
+
|
|
64
|
+
- **Développement** : `pnpm test:visual:open` pour inspecter et créer des snapshots
|
|
65
|
+
- **Validation locale** : `pnpm test:visual` pour vérifier contre les baselines
|
|
66
|
+
- **Mise à jour des baselines** : `pnpm test:visual:update` si les changements sont intentionnels
|
|
67
|
+
|
|
68
|
+
**Tests visuels en CI** (sur demande pour économiser les GitHub Actions minutes) :
|
|
69
|
+
- Allez à **Actions** → **Run Visual Tests (Manual)** → **Run workflow** pour tester manuellement
|
|
70
|
+
- Ou déclenchez depuis **Actions** → **Update Visual Test Snapshots** pour mettre à jour les baselines
|
|
71
|
+
|
|
72
|
+
⚠️ **Important** : Les snapshots varient entre WSL et Linux natif. Si vous êtes sur WSL :
|
|
73
|
+
- Testez localement avec `test:visual:open` (inspection uniquement)
|
|
74
|
+
- Générez les baselines officielles en CI (Ubuntu) ou sur Linux natif
|
|
75
|
+
- Les diffs visuels sont téléchargeables dans les résultats CI
|
|
76
|
+
|
|
55
77
|
## Contribution
|
|
56
78
|
|
|
57
79
|
Nous encourageons les contributions de la communauté ! Si vous souhaitez contribuer à ce projet, veuillez suivre les étapes suivantes :
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { defineComponent as g, computed as p, openBlock as b, createBlock as v } from "vue";
|
|
2
|
+
import { S as k, _ as C } from "./main-Cpx8Co6H.js";
|
|
3
|
+
const F = /* @__PURE__ */ g({
|
|
4
|
+
__name: "AutocompleteFilter",
|
|
5
|
+
props: {
|
|
6
|
+
header: {
|
|
7
|
+
type: Object,
|
|
8
|
+
required: !0
|
|
9
|
+
},
|
|
10
|
+
filters: {
|
|
11
|
+
type: Array,
|
|
12
|
+
default: () => []
|
|
13
|
+
},
|
|
14
|
+
filterValue: {
|
|
15
|
+
type: [String, Number, Object, Array, void 0, null],
|
|
16
|
+
default: null
|
|
17
|
+
},
|
|
18
|
+
inputConfig: {
|
|
19
|
+
type: Object,
|
|
20
|
+
default: () => ({})
|
|
21
|
+
},
|
|
22
|
+
disableErrorHandling: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
},
|
|
26
|
+
variant: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "outlined"
|
|
29
|
+
},
|
|
30
|
+
hideDetails: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !0
|
|
33
|
+
},
|
|
34
|
+
density: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: "compact"
|
|
37
|
+
},
|
|
38
|
+
backgroundColor: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: "white"
|
|
41
|
+
},
|
|
42
|
+
clearable: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !0
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
emits: ["update:filters"],
|
|
48
|
+
setup(t, { emit: y }) {
|
|
49
|
+
const e = t, u = y;
|
|
50
|
+
function f() {
|
|
51
|
+
return String(e.header.key || e.header.value || (e.header.title ? `filter_${e.header.title}` : `filter_${Date.now()}`));
|
|
52
|
+
}
|
|
53
|
+
const m = p(() => !e.header.filterOptions || !Array.isArray(e.header.filterOptions) ? [] : e.header.filterOptions), c = p({
|
|
54
|
+
get: () => e.filterValue === null || e.filterValue === void 0 ? e.header.multiple ? [] : null : e.filterValue,
|
|
55
|
+
set: (l) => {
|
|
56
|
+
const i = f();
|
|
57
|
+
if (!i) return;
|
|
58
|
+
if (e.header.multiple) {
|
|
59
|
+
if (!l || Array.isArray(l) && l.length === 0) {
|
|
60
|
+
const o = e.filters.filter((s) => s.key !== i);
|
|
61
|
+
u("update:filters", o);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
const r = e.filters.findIndex((o) => o.key === i), a = [...e.filters];
|
|
65
|
+
r >= 0 ? a[r].value = l : a.push({
|
|
66
|
+
key: i,
|
|
67
|
+
value: l,
|
|
68
|
+
type: "autocomplete"
|
|
69
|
+
}), u("update:filters", a);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
if (l == null) {
|
|
73
|
+
const r = e.filters.filter((a) => a.key !== i);
|
|
74
|
+
u("update:filters", r);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
const n = e.filters.findIndex((r) => r.key === i), d = [...e.filters];
|
|
78
|
+
n >= 0 ? d[n].value = l : d.push({
|
|
79
|
+
key: i,
|
|
80
|
+
value: l,
|
|
81
|
+
type: "autocomplete"
|
|
82
|
+
}), u("update:filters", d);
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
function h() {
|
|
86
|
+
const l = f(), i = e.filters.filter((n) => n.key !== l);
|
|
87
|
+
u("update:filters", i);
|
|
88
|
+
}
|
|
89
|
+
return (l, i) => {
|
|
90
|
+
var n, d, r, a, o;
|
|
91
|
+
return b(), v(k, {
|
|
92
|
+
modelValue: c.value,
|
|
93
|
+
"onUpdate:modelValue": i[0] || (i[0] = (s) => c.value = s),
|
|
94
|
+
label: e.header.title || "",
|
|
95
|
+
items: m.value,
|
|
96
|
+
clearable: t.clearable,
|
|
97
|
+
density: ((n = t.inputConfig) == null ? void 0 : n.density) ?? t.density,
|
|
98
|
+
"hide-details": ((d = t.inputConfig) == null ? void 0 : d.hideDetails) ?? t.hideDetails,
|
|
99
|
+
"variant-style": ((r = t.inputConfig) == null ? void 0 : r.variant) ?? t.variant,
|
|
100
|
+
"bg-color": ((a = t.inputConfig) == null ? void 0 : a.backgroundColor) ?? t.backgroundColor,
|
|
101
|
+
"disable-error-handling": ((o = t.inputConfig) == null ? void 0 : o.disableErrorHandling) ?? t.disableErrorHandling,
|
|
102
|
+
multiple: e.header.multiple,
|
|
103
|
+
chips: e.header.chips,
|
|
104
|
+
filter: !0,
|
|
105
|
+
class: "filter-input",
|
|
106
|
+
"aria-label": e.header.title || "Filtre",
|
|
107
|
+
"onClick:clear": h
|
|
108
|
+
}, null, 8, ["modelValue", "label", "items", "clearable", "density", "hide-details", "variant-style", "bg-color", "disable-error-handling", "multiple", "chips", "aria-label"]);
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
}), S = /* @__PURE__ */ C(F, [["__scopeId", "data-v-d44a48a9"]]);
|
|
112
|
+
export {
|
|
113
|
+
S as default
|
|
114
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),p=require("./main-ByDPHpae.cjs"),b=s.defineComponent({__name:"AutocompleteFilter",props:{header:{type:Object,required:!0},filters:{type:Array,default:()=>[]},filterValue:{type:[String,Number,Object,Array,void 0,null],default:null},inputConfig:{type:Object,default:()=>({})},disableErrorHandling:{type:Boolean,default:!1},variant:{type:String,default:"outlined"},hideDetails:{type:Boolean,default:!0},density:{type:String,default:"compact"},backgroundColor:{type:String,default:"white"},clearable:{type:Boolean,default:!0}},emits:["update:filters"],setup(t,{emit:g}){const e=t,o=g;function c(){return String(e.header.key||e.header.value||(e.header.title?`filter_${e.header.title}`:`filter_${Date.now()}`))}const m=s.computed(()=>!e.header.filterOptions||!Array.isArray(e.header.filterOptions)?[]:e.header.filterOptions),y=s.computed({get:()=>e.filterValue===null||e.filterValue===void 0?e.header.multiple?[]:null:e.filterValue,set:l=>{const i=c();if(!i)return;if(e.header.multiple){if(!l||Array.isArray(l)&&l.length===0){const d=e.filters.filter(f=>f.key!==i);o("update:filters",d);return}const r=e.filters.findIndex(d=>d.key===i),a=[...e.filters];r>=0?a[r].value=l:a.push({key:i,value:l,type:"autocomplete"}),o("update:filters",a);return}if(l==null){const r=e.filters.filter(a=>a.key!==i);o("update:filters",r);return}const n=e.filters.findIndex(r=>r.key===i),u=[...e.filters];n>=0?u[n].value=l:u.push({key:i,value:l,type:"autocomplete"}),o("update:filters",u)}});function h(){const l=c(),i=e.filters.filter(n=>n.key!==l);o("update:filters",i)}return(l,i)=>{var n,u,r,a,d;return s.openBlock(),s.createBlock(p.SyAutocomplete,{modelValue:y.value,"onUpdate:modelValue":i[0]||(i[0]=f=>y.value=f),label:e.header.title||"",items:m.value,clearable:t.clearable,density:((n=t.inputConfig)==null?void 0:n.density)??t.density,"hide-details":((u=t.inputConfig)==null?void 0:u.hideDetails)??t.hideDetails,"variant-style":((r=t.inputConfig)==null?void 0:r.variant)??t.variant,"bg-color":((a=t.inputConfig)==null?void 0:a.backgroundColor)??t.backgroundColor,"disable-error-handling":((d=t.inputConfig)==null?void 0:d.disableErrorHandling)??t.disableErrorHandling,multiple:e.header.multiple,chips:e.header.chips,filter:!0,class:"filter-input","aria-label":e.header.title||"Filtre","onClick:clear":h},null,8,["modelValue","label","items","clearable","density","hide-details","variant-style","bg-color","disable-error-handling","multiple","chips","aria-label"])}}}),v=p._export_sfc(b,[["__scopeId","data-v-d44a48a9"]]);exports.default=v;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),f=require("./main-ByDPHpae.cjs"),k=o.defineComponent({__name:"DateFilter",props:{header:{type:Object,required:!0},filters:{type:Array,default:()=>[]},filterValue:{type:[String,Date,Object,null],default:null},inputConfig:{type:Object,default:()=>({})},disableErrorHandling:{type:Boolean,default:!1},variant:{type:String,default:"outlined"},hideDetails:{type:Boolean,default:!0},density:{type:String,default:"compact"},backgroundColor:{type:String,default:"white"},clearable:{type:Boolean,default:!0},headingLevel:{type:Number,default:4}},emits:["update:filters"],setup(e,{emit:h}){const{parseDate:b}=f.useDateFormat(),t=e,s=h;function c(){return String(t.header.key||t.header.value||(t.header.title?`filter_${t.header.title}`:`filter_${Date.now()}`))}const g=o.computed({get:()=>t.filterValue,set:a=>{const l=c();if(!l)return;if(a===null){const r=t.filters.filter(u=>u.key!==l);s("update:filters",r);return}const i=t.filters.findIndex(r=>r.key===l),n=[...t.filters];let d=a;typeof a=="string"&&a.trim()!==""&&b(a,t.header.dateFormat||"DD/MM/YYYY")&&(d=a),n[i]?n[i].value=d:n.push({key:l,value:d,type:"date"}),s("update:filters",n)}});function m(){const a=c(),l=t.filters.filter(i=>i.key!==a);s("update:filters",l)}return(a,l)=>{var i,n,d,r,u,y;return o.openBlock(),o.createBlock(f.DatePicker,{modelValue:g.value,"onUpdate:modelValue":l[0]||(l[0]=D=>g.value=D),label:e.header.title||"Sélectionner une date","heading-level":e.headingLevel,clearable:((i=e.inputConfig)==null?void 0:i.clearable)??e.clearable,density:((n=e.inputConfig)==null?void 0:n.density)??e.density,"hide-details":((d=e.inputConfig)==null?void 0:d.hideDetails)??e.hideDetails,"hide-messages":e.header.hideMessages,variant:((r=e.inputConfig)==null?void 0:r.variant)??e.variant,"disable-error-handling":((u=e.inputConfig)==null?void 0:u.disableErrorHandling)??e.disableErrorHandling,"bg-color":((y=e.inputConfig)==null?void 0:y.backgroundColor)??e.backgroundColor,format:e.header.dateFormat,class:"filter-input","onClick:clear":m},null,8,["modelValue","label","heading-level","clearable","density","hide-details","hide-messages","variant","disable-error-handling","bg-color","format"])}}}),C=f._export_sfc(k,[["__scopeId","data-v-66734b93"]]);exports.default=C;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as b, computed as D, openBlock as k, createBlock as C } from "vue";
|
|
2
|
-
import { D as p, u as v, _ as F } from "./main-
|
|
2
|
+
import { D as p, u as v, _ as F } from "./main-Cpx8Co6H.js";
|
|
3
3
|
const V = /* @__PURE__ */ b({
|
|
4
4
|
__name: "DateFilter",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as k, ref as h, watch as x, computed as T, openBlock as V, createElementBlock as F, createVNode as w } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { b as S, _ as D } from "./main-Cpx8Co6H.js";
|
|
3
3
|
const E = { class: "number-filter-container" }, B = /* @__PURE__ */ k({
|
|
4
4
|
__name: "NumberFilter",
|
|
5
5
|
props: {
|
|
@@ -100,7 +100,7 @@ const E = { class: "number-filter-container" }, B = /* @__PURE__ */ k({
|
|
|
100
100
|
w(S, {
|
|
101
101
|
modelValue: f.value,
|
|
102
102
|
"onUpdate:modelValue": n[0] || (n[0] = (C) => f.value = C),
|
|
103
|
-
label: l.header.title,
|
|
103
|
+
label: l.header.title || "",
|
|
104
104
|
type: "text",
|
|
105
105
|
clearable: ((a = l.inputConfig) == null ? void 0 : a.clearable) ?? l.clearable,
|
|
106
106
|
density: ((i = l.inputConfig) == null ? void 0 : i.density) ?? l.density,
|
|
@@ -115,7 +115,7 @@ const E = { class: "number-filter-container" }, B = /* @__PURE__ */ k({
|
|
|
115
115
|
]);
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
|
-
}), O = /* @__PURE__ */ D(B, [["__scopeId", "data-v-
|
|
118
|
+
}), O = /* @__PURE__ */ D(B, [["__scopeId", "data-v-f3c6e802"]]);
|
|
119
119
|
export {
|
|
120
120
|
O as default
|
|
121
121
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),h=require("./main-ByDPHpae.cjs"),T={class:"number-filter-container"},V=o.defineComponent({__name:"NumberFilter",props:{header:{type:Object,required:!0},filters:{type:Array,default:()=>[]},filterValue:{type:[Number,String],default:""},inputConfig:{type:Object,default:()=>({})},disableErrorHandling:{type:Boolean,default:!1},variant:{type:String,default:"outlined"},hideDetails:{type:Boolean,default:!0},density:{type:String,default:"compact"},backgroundColor:{type:String,default:"white"},clearable:{type:Boolean,default:!0},debounceTime:{type:Number,default:300}},emits:["update:filters"],setup(l,{emit:p}){const e=l,c=p,s=o.ref(e.filterValue||""),d=o.ref(null);o.watch(()=>e.filters,t=>{t.length===0&&(d.value!==null&&(clearTimeout(d.value),d.value=null),s.value="")});function f(){return!e.header||!e.header.key&&!e.header.value&&!e.header.title?`filter_${Date.now()}`:String(e.header.key||e.header.value||(e.header.title?`filter_${e.header.title}`:`filter_${Date.now()}`))}function v(t){const n=/^([=<>]{1,2})?(.*)$/.exec(t);if(!n)return"";const a=n[1]||"";let r=n[2]||"";return r=r.replace(/[^0-9.,]/g,""),a+r}const g=o.computed({get:()=>s.value,set:t=>{var u;const i=t!=null?String(t):"",n=v(i);s.value=n,d.value!==null&&clearTimeout(d.value);const a=((u=e.inputConfig)==null?void 0:u.debounceTime)??e.debounceTime;a===0||void 0?y(n):d.value=window.setTimeout(()=>{y(n)},a)}});function y(t){const i=f();if(!e.header||Object.keys(e.header).length,t===""||t==="0"){c("update:filters",e.filters.filter(u=>u.key!==i));return}const n=e.filters.findIndex(u=>u.key===i),a=[...e.filters],r=/^[=<>]{1,2}/.test(t);n>=0?a[n].value=r?t:parseFloat(t.replace(",",".")):a.push({key:i,value:r?t:parseFloat(t.replace(",",".")),type:"number"}),c("update:filters",a)}function C(){s.value="";const t=f();c("update:filters",e.filters.filter(i=>i.key!==t))}return(t,i)=>{var n,a,r,u,b,m;return o.openBlock(),o.createElementBlock("div",T,[o.createVNode(h.SyTextField,{modelValue:g.value,"onUpdate:modelValue":i[0]||(i[0]=k=>g.value=k),label:l.header.title||"",type:"text",clearable:((n=l.inputConfig)==null?void 0:n.clearable)??l.clearable,density:((a=l.inputConfig)==null?void 0:a.density)??l.density,"hide-details":((r=l.inputConfig)==null?void 0:r.hideDetails)??l.hideDetails,"hide-messages":l.header.hideMessages,"disable-error-handling":((u=l.inputConfig)==null?void 0:u.disableErrorHandling)??l.disableErrorHandling,variant:((b=l.inputConfig)==null?void 0:b.variant)??l.variant,"bg-color":((m=l.inputConfig)==null?void 0:m.backgroundColor)??l.backgroundColor,class:"filter-input","onClick:clear":C},null,8,["modelValue","label","clearable","density","hide-details","hide-messages","disable-error-handling","variant","bg-color"])])}}}),x=h._export_sfc(V,[["__scopeId","data-v-f3c6e802"]]);exports.default=x;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as b, computed as h, openBlock as p, createBlock as k } from "vue";
|
|
2
|
-
import { P as C, _ as F } from "./main-
|
|
2
|
+
import { P as C, _ as F } from "./main-Cpx8Co6H.js";
|
|
3
3
|
const V = /* @__PURE__ */ b({
|
|
4
4
|
__name: "PeriodFilter",
|
|
5
5
|
props: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),g=require("./main-ByDPHpae.cjs"),k=u.defineComponent({__name:"PeriodFilter",props:{header:{type:Object,required:!0},filters:{type:Array,default:()=>[]},filterValue:{type:Object,default:()=>({from:null,to:null})},inputConfig:{type:Object,default:()=>({})},disableErrorHandling:{type:Boolean,default:!1},variant:{type:String,default:"outlined"},hideDetails:{type:Boolean,default:!0},density:{type:String,default:"compact"},backgroundColor:{type:String,default:"white"},clearable:{type:Boolean,default:!0}},emits:["update:filters"],setup(e,{emit:b}){const l=e,o=b;function s(){var r,t,i;return String(((r=l.header)==null?void 0:r.key)||((t=l.header)==null?void 0:t.value)||((i=l.header)!=null&&i.title?`filter_${l.header.title}`:`filter_${Date.now()}`))}const f=u.computed({get:()=>l.filterValue,set:r=>{try{const t=s();if(!t)return;if(!r){const i=l.filters.filter(n=>n.key!==t);o("update:filters",i);return}if(typeof r=="object"&&r.from===null&&r.to===null){const i=l.filters.filter(n=>n.key!==t);o("update:filters",i);return}if(typeof r=="object"){const i={from:r.from,to:r.to},n=l.filters.findIndex(d=>d.key===t),a=[...l.filters];n>=0?a[n].value=i:a.push({key:t,value:i,type:"period"}),o("update:filters",a)}}catch(t){console.error("Erreur dans la mise à jour du filtre de période:",t)}}});function m(){const r=s(),t=l.filters.filter(i=>i.key!==r);o("update:filters",t)}return(r,t)=>{var i,n,a,d,c,y;return u.openBlock(),u.createBlock(g.PeriodField,{modelValue:f.value,"onUpdate:modelValue":t[0]||(t[0]=h=>f.value=h),label:e.header.title,clearable:((i=e.inputConfig)==null?void 0:i.clearable)??e.clearable,density:((n=e.inputConfig)==null?void 0:n.density)??e.density,"hide-details":((a=e.inputConfig)==null?void 0:a.hideDetails)??e.hideDetails,"hide-messages":e.header.hideMessages,variant:((d=e.inputConfig)==null?void 0:d.variant)??e.variant,"disable-error-handling":((c=e.inputConfig)==null?void 0:c.disableErrorHandling)??e.disableErrorHandling,"bg-color":((y=e.inputConfig)==null?void 0:y.backgroundColor)??e.backgroundColor,format:e.header.dateFormat,class:"filter-input","onClick:clear":m},null,8,["modelValue","label","clearable","density","hide-details","hide-messages","variant","disable-error-handling","bg-color","format"])}}}),C=g._export_sfc(k,[["__scopeId","data-v-49b093ac"]]);exports.default=C;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),g=require("./main-ByDPHpae.cjs"),F={emptyValue:"(vide)"},y={},S={class:"select-filter-wrapper"},O=n.defineComponent({__name:"SelectFilter",props:{header:{type:Object,required:!0},filters:{type:Array,default:()=>[]},filterValue:{type:[String,Number,Object,Array,void 0,null],default:null},inputConfig:{type:Object,default:()=>({})},disableErrorHandling:{type:Boolean,default:!1},variant:{type:String,default:"outlined"},hideDetails:{type:Boolean,default:!0},density:{type:String,default:"compact"},backgroundColor:{type:String,default:"white"},clearable:{type:Boolean,default:!0}},emits:["update:filters"],setup(r,{emit:v}){const e=r,o=v;function p(){return String(e.header.key||e.header.value||(e.header.title?`filter_${e.header.title}`:`filter_${Date.now()}`))}const m=n.computed(()=>{if(!e.header.filterOptions||!Array.isArray(e.header.filterOptions))return[];const l=[];return e.header.filterOptions.forEach(t=>{t.text===void 0||t.text===null||t.text===""?l.push({text:F.emptyValue,value:t.value}):l.push(t)}),l}),f=n.computed({get:()=>e.filterValue===null||e.filterValue===void 0?e.header.multiple?[]:null:e.filterValue,set:l=>{const t=p();if(!t)return;if(e.header.multiple){if(!l||Array.isArray(l)&&l.length===0){const d=e.filters.filter(c=>c.key!==t);o("update:filters",d);return}const i=e.filters.findIndex(d=>d.key===t),a=[...e.filters];i>=0?a[i].value=l:a.push({key:t,value:l,type:"select"}),o("update:filters",a);return}if(l==null){const i=e.filters.filter(a=>a.key!==t);o("update:filters",i);return}const u=e.filters.findIndex(i=>i.key===t),s=[...e.filters];u>=0?s[u].value=l:s.push({key:t,value:l,type:"select"}),o("update:filters",s)}});function b(){const l=p(),t=e.filters.filter(u=>u.key!==l);o("update:filters",t)}const h=n.ref(!1);function k(){h.value=!0}function C(){h.value=!1}const x=n.computed(()=>(y==null?void 0:y.NODE_ENV)==="test"?!0:e.header.multiple?Array.isArray(f.value)&&f.value.length>0:f.value!==null);return(l,t)=>{var u,s,i,a,d;return n.openBlock(),n.createElementBlock("div",S,[n.createVNode(g.SySelect,{modelValue:f.value,"onUpdate:modelValue":t[0]||(t[0]=c=>f.value=c),label:e.header.title||"",items:m.value,clearable:x.value,density:((u=r.inputConfig)==null?void 0:u.density)??r.density,"hide-details":((s=r.inputConfig)==null?void 0:s.hideDetails)??r.hideDetails,"hide-messages":!0,variant:((i=r.inputConfig)==null?void 0:i.variant)??r.variant,"bg-color":((a=r.inputConfig)==null?void 0:a.backgroundColor)??r.backgroundColor,"disable-error-handling":((d=r.inputConfig)==null?void 0:d.disableErrorHandling)??r.disableErrorHandling,multiple:e.header.multiple===!0,chips:e.header.chips,class:"filter-input","aria-label":e.header.title||"Filtre","onClick:clear":b,onFocus:k,onBlur:C},null,8,["modelValue","label","items","clearable","density","hide-details","variant","bg-color","disable-error-handling","multiple","chips","aria-label"])])}}}),A=g._export_sfc(O,[["__scopeId","data-v-674627e0"]]);exports.default=A;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { defineComponent as C, computed as c, ref as F, openBlock as S, createElementBlock as A, createVNode as O } from "vue";
|
|
2
|
+
import { a as B, _ as E } from "./main-Cpx8Co6H.js";
|
|
3
|
+
const D = {
|
|
4
|
+
emptyValue: "(vide)"
|
|
5
|
+
}, p = {}, I = { class: "select-filter-wrapper" }, N = /* @__PURE__ */ C({
|
|
6
|
+
__name: "SelectFilter",
|
|
7
|
+
props: {
|
|
8
|
+
header: {
|
|
9
|
+
type: Object,
|
|
10
|
+
required: !0
|
|
11
|
+
},
|
|
12
|
+
filters: {
|
|
13
|
+
type: Array,
|
|
14
|
+
default: () => []
|
|
15
|
+
},
|
|
16
|
+
filterValue: {
|
|
17
|
+
type: [String, Number, Object, Array, void 0, null],
|
|
18
|
+
default: null
|
|
19
|
+
},
|
|
20
|
+
inputConfig: {
|
|
21
|
+
type: Object,
|
|
22
|
+
default: () => ({})
|
|
23
|
+
},
|
|
24
|
+
disableErrorHandling: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !1
|
|
27
|
+
},
|
|
28
|
+
variant: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "outlined"
|
|
31
|
+
},
|
|
32
|
+
hideDetails: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: !0
|
|
35
|
+
},
|
|
36
|
+
density: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: "compact"
|
|
39
|
+
},
|
|
40
|
+
backgroundColor: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: "white"
|
|
43
|
+
},
|
|
44
|
+
clearable: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: !0
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
emits: ["update:filters"],
|
|
50
|
+
setup(r, { emit: g }) {
|
|
51
|
+
const e = r, d = g;
|
|
52
|
+
function y() {
|
|
53
|
+
return String(e.header.key || e.header.value || (e.header.title ? `filter_${e.header.title}` : `filter_${Date.now()}`));
|
|
54
|
+
}
|
|
55
|
+
const m = c(() => {
|
|
56
|
+
if (!e.header.filterOptions || !Array.isArray(e.header.filterOptions))
|
|
57
|
+
return [];
|
|
58
|
+
const l = [];
|
|
59
|
+
return e.header.filterOptions.forEach((t) => {
|
|
60
|
+
t.text === void 0 || t.text === null || t.text === "" ? l.push({ text: D.emptyValue, value: t.value }) : l.push(t);
|
|
61
|
+
}), l;
|
|
62
|
+
}), o = c({
|
|
63
|
+
get: () => e.filterValue === null || e.filterValue === void 0 ? e.header.multiple ? [] : null : e.filterValue,
|
|
64
|
+
set: (l) => {
|
|
65
|
+
const t = y();
|
|
66
|
+
if (!t) return;
|
|
67
|
+
if (e.header.multiple) {
|
|
68
|
+
if (!l || Array.isArray(l) && l.length === 0) {
|
|
69
|
+
const u = e.filters.filter((f) => f.key !== t);
|
|
70
|
+
d("update:filters", u);
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
const i = e.filters.findIndex((u) => u.key === t), a = [...e.filters];
|
|
74
|
+
i >= 0 ? a[i].value = l : a.push({
|
|
75
|
+
key: t,
|
|
76
|
+
value: l,
|
|
77
|
+
type: "select"
|
|
78
|
+
}), d("update:filters", a);
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
if (l == null) {
|
|
82
|
+
const i = e.filters.filter((a) => a.key !== t);
|
|
83
|
+
d("update:filters", i);
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
const n = e.filters.findIndex((i) => i.key === t), s = [...e.filters];
|
|
87
|
+
n >= 0 ? s[n].value = l : s.push({
|
|
88
|
+
key: t,
|
|
89
|
+
value: l,
|
|
90
|
+
type: "select"
|
|
91
|
+
}), d("update:filters", s);
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
function v() {
|
|
95
|
+
const l = y(), t = e.filters.filter((n) => n.key !== l);
|
|
96
|
+
d("update:filters", t);
|
|
97
|
+
}
|
|
98
|
+
const h = F(!1);
|
|
99
|
+
function b() {
|
|
100
|
+
h.value = !0;
|
|
101
|
+
}
|
|
102
|
+
function k() {
|
|
103
|
+
h.value = !1;
|
|
104
|
+
}
|
|
105
|
+
const x = c(() => (p == null ? void 0 : p.NODE_ENV) === "test" ? !0 : e.header.multiple ? Array.isArray(o.value) && o.value.length > 0 : o.value !== null);
|
|
106
|
+
return (l, t) => {
|
|
107
|
+
var n, s, i, a, u;
|
|
108
|
+
return S(), A("div", I, [
|
|
109
|
+
O(B, {
|
|
110
|
+
modelValue: o.value,
|
|
111
|
+
"onUpdate:modelValue": t[0] || (t[0] = (f) => o.value = f),
|
|
112
|
+
label: e.header.title || "",
|
|
113
|
+
items: m.value,
|
|
114
|
+
clearable: x.value,
|
|
115
|
+
density: ((n = r.inputConfig) == null ? void 0 : n.density) ?? r.density,
|
|
116
|
+
"hide-details": ((s = r.inputConfig) == null ? void 0 : s.hideDetails) ?? r.hideDetails,
|
|
117
|
+
"hide-messages": !0,
|
|
118
|
+
variant: ((i = r.inputConfig) == null ? void 0 : i.variant) ?? r.variant,
|
|
119
|
+
"bg-color": ((a = r.inputConfig) == null ? void 0 : a.backgroundColor) ?? r.backgroundColor,
|
|
120
|
+
"disable-error-handling": ((u = r.inputConfig) == null ? void 0 : u.disableErrorHandling) ?? r.disableErrorHandling,
|
|
121
|
+
multiple: e.header.multiple === !0,
|
|
122
|
+
chips: e.header.chips,
|
|
123
|
+
class: "filter-input",
|
|
124
|
+
"aria-label": e.header.title || "Filtre",
|
|
125
|
+
"onClick:clear": v,
|
|
126
|
+
onFocus: b,
|
|
127
|
+
onBlur: k
|
|
128
|
+
}, null, 8, ["modelValue", "label", "items", "clearable", "density", "hide-details", "variant", "bg-color", "disable-error-handling", "multiple", "chips", "aria-label"])
|
|
129
|
+
]);
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
}), H = /* @__PURE__ */ E(N, [["__scopeId", "data-v-674627e0"]]);
|
|
133
|
+
export {
|
|
134
|
+
H as default
|
|
135
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),h=require("./main-ByDPHpae.cjs"),T={class:"text-filter-container"},k=r.defineComponent({__name:"TextFilter",props:{header:{type:Object,required:!0},filters:{type:Array,default:()=>[]},filterValue:{type:String,default:void 0},inputConfig:{type:Object,default:()=>({})},disableErrorHandling:{type:Boolean,default:!1},variant:{type:String,default:"outlined"},hideDetails:{type:Boolean,default:!0},density:{type:String,default:"compact"},backgroundColor:{type:String,default:"white"},clearable:{type:Boolean,default:!0},debounceTime:{type:Number,default:300}},emits:["update:filters"],setup(e,{emit:v}){const t=e,c=v,o=r.ref(t.filterValue||""),u=r.ref(null);r.watch(()=>t.filters,i=>{i.length===0&&(u.value!==null&&(clearTimeout(u.value),u.value=null),o.value="")});function f(){return String(t.header.key||t.header.value||(t.header.title?`filter_${t.header.title}`:`filter_${Date.now()}`))}const g=r.computed({get:()=>o.value,set:i=>{var n;o.value=i,u.value!==null&&clearTimeout(u.value);const l=((n=t.inputConfig)==null?void 0:n.debounceTime)??t.debounceTime;l===0||void 0?y(i):u.value=window.setTimeout(()=>{y(i)},l)}});function y(i){const l=f();if(!l)return;if(i===""){const d=t.filters.filter(s=>s.key!==l);c("update:filters",d);return}const a=t.filters.findIndex(d=>d.key===l),n=[...t.filters];a>=0?n[a].value=i:n.push({key:l,value:i,type:"text"}),c("update:filters",n)}function C(){o.value="";const i=f(),l=t.filters.filter(a=>a.key!==i);c("update:filters",l)}return(i,l)=>{var a,n,d,s,b,m;return r.openBlock(),r.createElementBlock("div",T,[r.createVNode(h.SyTextField,{modelValue:g.value,"onUpdate:modelValue":l[0]||(l[0]=p=>g.value=p),label:e.header.title||"",clearable:((a=e.inputConfig)==null?void 0:a.clearable)??e.clearable,density:((n=e.inputConfig)==null?void 0:n.density)??e.density,"hide-details":((d=e.inputConfig)==null?void 0:d.hideDetails)??e.hideDetails,"hide-messages":e.header.hideMessages,"disable-error-handling":((s=e.inputConfig)==null?void 0:s.disableErrorHandling)??e.disableErrorHandling,variant:((b=e.inputConfig)==null?void 0:b.variant)??e.variant,"bg-color":((m=e.inputConfig)==null?void 0:m.backgroundColor)??e.backgroundColor,class:"filter-input","onClick:clear":C},null,8,["modelValue","label","clearable","density","hide-details","hide-messages","disable-error-handling","variant","bg-color"])])}}}),x=h._export_sfc(k,[["__scopeId","data-v-5d15bb12"]]);exports.default=x;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as C, ref as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as C, ref as y, watch as k, computed as T, openBlock as x, createElementBlock as w, createVNode as F } from "vue";
|
|
2
|
+
import { b as V, _ as E } from "./main-Cpx8Co6H.js";
|
|
3
3
|
const S = { class: "text-filter-container" }, B = /* @__PURE__ */ C({
|
|
4
4
|
__name: "TextFilter",
|
|
5
5
|
props: {
|
|
@@ -50,7 +50,7 @@ const S = { class: "text-filter-container" }, B = /* @__PURE__ */ C({
|
|
|
50
50
|
},
|
|
51
51
|
emits: ["update:filters"],
|
|
52
52
|
setup(e, { emit: h }) {
|
|
53
|
-
const t = e, s = h, u =
|
|
53
|
+
const t = e, s = h, u = y(t.filterValue || ""), r = y(null);
|
|
54
54
|
k(() => t.filters, (i) => {
|
|
55
55
|
i.length === 0 && (r.value !== null && (clearTimeout(r.value), r.value = null), u.value = "");
|
|
56
56
|
});
|
|
@@ -89,26 +89,26 @@ const S = { class: "text-filter-container" }, B = /* @__PURE__ */ C({
|
|
|
89
89
|
s("update:filters", l);
|
|
90
90
|
}
|
|
91
91
|
return (i, l) => {
|
|
92
|
-
var a, n, d, o, m,
|
|
92
|
+
var a, n, d, o, m, b;
|
|
93
93
|
return x(), w("div", S, [
|
|
94
94
|
F(V, {
|
|
95
95
|
modelValue: c.value,
|
|
96
96
|
"onUpdate:modelValue": l[0] || (l[0] = (p) => c.value = p),
|
|
97
|
-
label: e.header.title,
|
|
97
|
+
label: e.header.title || "",
|
|
98
98
|
clearable: ((a = e.inputConfig) == null ? void 0 : a.clearable) ?? e.clearable,
|
|
99
99
|
density: ((n = e.inputConfig) == null ? void 0 : n.density) ?? e.density,
|
|
100
100
|
"hide-details": ((d = e.inputConfig) == null ? void 0 : d.hideDetails) ?? e.hideDetails,
|
|
101
101
|
"hide-messages": e.header.hideMessages,
|
|
102
102
|
"disable-error-handling": ((o = e.inputConfig) == null ? void 0 : o.disableErrorHandling) ?? e.disableErrorHandling,
|
|
103
103
|
variant: ((m = e.inputConfig) == null ? void 0 : m.variant) ?? e.variant,
|
|
104
|
-
"bg-color": ((
|
|
104
|
+
"bg-color": ((b = e.inputConfig) == null ? void 0 : b.backgroundColor) ?? e.backgroundColor,
|
|
105
105
|
class: "filter-input",
|
|
106
106
|
"onClick:clear": v
|
|
107
107
|
}, null, 8, ["modelValue", "label", "clearable", "density", "hide-details", "hide-messages", "disable-error-handling", "variant", "bg-color"])
|
|
108
108
|
]);
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
|
-
}), I = /* @__PURE__ */ E(B, [["__scopeId", "data-v-
|
|
111
|
+
}), I = /* @__PURE__ */ E(B, [["__scopeId", "data-v-5d15bb12"]]);
|
|
112
112
|
export {
|
|
113
113
|
I as default
|
|
114
114
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s={yellow:{darken80:"#302407",darken60:"#60480e",darken40:"#906b15",darken20:"#c08f1c",base:"#f0b323",lighten20:"#f3c24f",lighten40:"#f6d17b",lighten60:"#f9e1a7",lighten80:"#fcf0d3",lighten90:"#fdf7e9",lighten97:"#fffdf8"},green:{darken80:"#112717",darken60:"#224e2d",darken40:"#347444",darken20:"#459b5a",base:"#56c271",lighten20:"#78ce8d",lighten40:"#9adaaa",lighten60:"#bbe7c6",lighten80:"#ddf3e3",lighten90:"#eef9f1",lighten97:"#fafdfb"},turquoise:{darken80:"#00221c",darken60:"#004439",darken40:"#006755",darken20:"#008972",base:"#00ab8e",lighten20:"#33bca5",lighten40:"#66cdbb",lighten60:"#99ddd2",lighten80:"#cceee8",lighten90:"#e5f7f4",lighten97:"#f7fcfc"},blue:{darken80:"#020d1f",darken60:"#051a3e",darken40:"#07275c",darken20:"#0a347b",base:"#0c419a",lighten20:"#3d67ae",lighten40:"#6d8dc2",lighten60:"#9eb3d7",lighten80:"#ced9eb",lighten90:"#e7ecf5",lighten97:"#f8f9fc"},cyan:{darken80:"#00212d",darken60:"#004259",darken40:"#006386",darken20:"#0084b2",base:"#00a5df",lighten20:"#33b7e5",lighten40:"#66c9ec",lighten60:"#99dbf2",lighten80:"#ccedf9",lighten90:"#e5f6fc",lighten97:"#f7fcfe"},parma:{darken80:"#171c26",darken60:"#2f384d",darken40:"#465473",darken20:"#5e709a",base:"#758cc0",lighten20:"#91a3cd",lighten40:"#acbad9",lighten60:"#c8d1e6",lighten80:"#e3e8f2",lighten90:"#f1f3f9",lighten97:"#fbfcfd"},mauve:{darken80:"#201224",darken60:"#402449",darken40:"#60376d",darken20:"#804992",base:"#a05bb6",lighten20:"#b37cc5",lighten40:"#c69dd3",lighten60:"#d9bde2",lighten80:"#ecdef0",lighten90:"#f5eff8",lighten97:"#fcfafd"},pink:{darken80:"#2d051a",darken60:"#5a0a34",darken40:"#87104d",darken20:"#b41567",base:"#e11a81",lighten20:"#e7489a",lighten40:"#ed76b3",lighten60:"#f3a3cd",lighten80:"#f9d1e6",lighten90:"#fce8f2",lighten97:"#fef8fb"},grey:{darken80:"#111212",darken60:"#222324",darken40:"#323535",darken20:"#434647",base:"#545859",lighten20:"#76797a",lighten40:"#989b9b",lighten60:"#bbbcbd",lighten80:"#dddede",lighten90:"#eeeeee",lighten97:"#fafafa"},white:{lighten20:"rgba(255, 255, 255, 0.20)",lighten38:"rgba(255, 255, 255, 0.38)",lighten40:"rgba(255, 255, 255, 0.40)",lighten70:"rgba(255, 255, 255, 0.70)",lighten8:"rgba(255, 255, 255, 0.080)",base:"#ffffff"}},e={...s,orange:{darken80:"#2d100b",darken60:"#5a2017",darken40:"#862f22",darken20:"#b33f2e",base:"#e04f39",lighten20:"#e67261",lighten40:"#ec9588",lighten60:"#f3b9b0",lighten80:"#f9dcd7",lighten90:"#fcedeb",lighten97:"#fefaf9"},frostedBlue:{darken80:"#142327",darken60:"#28464d",darken40:"#3d6874",darken20:"#518b9a",base:"#65aec1",lighten20:"#84becd",lighten40:"#a3ceda",lighten60:"#c1dfe6",lighten80:"#e0eff3",lighten90:"#f0f7f9",lighten97:"#fafdfd"},brick:{darken80:"#291112",darken60:"#522224",darken40:"#7b3237",darken20:"#a44349",base:"#cd545b",lighten20:"#d7767c",lighten40:"#e1989d",lighten60:"#ebbbbd",lighten80:"#f5ddde",lighten90:"#faeeef",lighten97:"#fdfafa"}},n={colors:{background:{main:e.blue.lighten90,surface:e.white.base,mainAlt:e.white.base,mainTer:e.grey.lighten97,surfaceAlt:e.blue.lighten90,raised:e.blue.lighten97,accent:e.blue.base,accentContrasted:e.blue.darken40,accentAlt:e.grey.darken80,info:e.blue.lighten80,infoSubdued:e.blue.lighten90,infoContrasted:e.blue.base,success:e.turquoise.lighten80,successSubdued:e.turquoise.lighten90,successContrasted:e.green.base,warning:e.yellow.lighten80,warningSubdued:e.yellow.lighten90,warningContrasted:e.yellow.base,error:e.orange.lighten80,errorSubdued:e.orange.lighten90,errorContrasted:e.orange.darken20,disabled:e.grey.lighten80,disabledOnDark:e.white.lighten8,assure:e.pink.lighten40,professionnel:e.cyan.lighten40,entreprise:e.yellow.base},border:{darker:e.grey.darken60,base:e.grey.lighten40,subdued:e.grey.lighten80,accentPrimary:e.blue.base,accentPrimaryContrasted:e.blue.darken40,accentPrimaryOnDark:e.white.base,accentSecondary:e.cyan.base,accentSecondaryContrasted:e.cyan.darken40,info:e.blue.base,success:e.green.darken60,warning:e.yellow.darken60,error:e.orange.darken20,onDark:e.white.lighten70,disabled:e.grey.lighten80,disabledOnDark:e.white.lighten40},text:{base:e.grey.darken60,accentPrimary:e.blue.base,accentPrimaryContrasted:e.blue.darken40,accentSecondary:e.cyan.darken60,subdued:e.grey.base,info:e.blue.base,success:e.green.darken60,warning:e.yellow.darken60,error:e.orange.darken20,disabled:e.grey.lighten40,onDark:e.white.base,subduedOnDark:e.white.lighten70,disabledOnDark:e.white.lighten40},icon:{base:e.grey.darken60,subdued:e.grey.base,subduedOnDark:e.white.lighten70,accentPrimary:e.blue.base,accentPrimaryContrasted:e.blue.darken40,accentSecondary:e.cyan.darken40,info:e.blue.base,success:e.green.darken60,warning:e.yellow.darken40,error:e.orange.darken20,onDark:e.white.base,disabled:e.grey.lighten40,disabledOnDark:e.white.lighten40},overlay:{fullpage:e.grey.lighten40,onDark:e.white.base,onLight:e.blue.base},interactive:{selectionEnabled:e.white.base,selectionHover:e.blue.lighten90,selectionPressed:e.blue.lighten80,selectionSelected:e.blue.lighten90,selectionHoverOnSelected:e.blue.lighten80,selectionSelectedAccent:e.blue.base,selectionHoverOnSelectedAccent:e.blue.lighten20,selectionDisabled:e.white.base}}},h={primary:e.blue.base,secondary:e.cyan.darken40,accentPrimaryLight:e.blue.lighten20,accentPrimary:e.blue.base,accentPrimaryContrasted:e.blue.darken40,accentSecondaryLight:e.cyan.lighten60,accentSecondary:e.cyan.base,accentSecondaryContrasted:e.cyan.darken40,accentAlt:e.grey.base,error:e.orange.darken20,info:e.blue.base,avatar:e.cyan.darken20,success:e.turquoise.darken60,warning:e.yellow.darken60,risquePro:e.brick.base,light:e.grey.lighten60,dark:e.grey.darken80,onBackground:n.colors.background.surface,onSurfaceAlt:n.colors.background.surfaceAlt,onSurface:n.colors.background.surface,onWarning:n.colors.background.warning,overlayFullpage:n.colors.overlay.fullpage,overlayOnDark:n.colors.overlay.onDark,overlayOnLight:n.colors.overlay.onLight,interactiveSelectionEnabled:n.colors.interactive.selectionEnabled,interactiveSelectionHover:n.colors.interactive.selectionHover,interactiveSelectionPressed:n.colors.interactive.selectionPressed,interactiveSelectionSelected:n.colors.interactive.selectionSelected,interactiveSelectionHoverOnSelected:n.colors.interactive.selectionHoverOnSelected,interactiveSelectionSelectedAccent:n.colors.interactive.selectionSelectedAccent,interactiveSelectionHoverOnSelectedAccent:n.colors.interactive.selectionHoverOnSelectedAccent,interactiveSelectionDisabled:n.colors.interactive.selectionDisabled,backgroundMain:n.colors.background.main,backgroundMainAlt:n.colors.background.mainAlt,backgroundMainTer:n.colors.background.mainTer,backgroundSurface:n.colors.background.surface,backgroundSurfaceAlt:n.colors.background.surfaceAlt,backgroundRaised:n.colors.background.raised,backgroundAccent:n.colors.background.accent,backgroundAccentContrasted:n.colors.background.accentContrasted,backgroundAccentAlt:n.colors.background.accentAlt,backgroundInfo:n.colors.background.info,backgroundInfoSubdued:n.colors.background.infoSubdued,backgroundInfoContrasted:n.colors.background.infoContrasted,backgroundSuccess:n.colors.background.success,backgroundSuccessSubdued:n.colors.background.successSubdued,backgroundSuccessContrasted:n.colors.background.successContrasted,backgroundWarning:n.colors.background.warning,backgroundWarningSubdued:n.colors.background.warningSubdued,backgroundWarningContrasted:n.colors.background.warningContrasted,backgroundError:n.colors.background.error,backgroundErrorSubdued:n.colors.background.errorSubdued,backgroundErrorContrasted:n.colors.background.errorContrasted,backgroundDisabled:n.colors.background.disabled,backgroundDisabledOnDark:n.colors.background.disabledOnDark,backgroundAssure:n.colors.background.assure,backgroundProfessionnel:n.colors.background.professionnel,backgroundEntreprise:n.colors.background.entreprise,borderDarker:n.colors.border.darker,borderBase:n.colors.border.base,borderSubdued:n.colors.border.subdued,borderAccentPrimary:n.colors.border.accentPrimary,borderAccentPrimaryContrasted:n.colors.border.accentPrimaryContrasted,borderAccentPrimaryOnDark:n.colors.border.accentPrimaryOnDark,borderAccentSecondary:n.colors.border.accentSecondary,borderAccentSecondaryContrasted:n.colors.border.accentSecondaryContrasted,borderInfo:n.colors.border.info,borderSuccess:n.colors.border.success,borderWarning:n.colors.border.warning,borderError:n.colors.border.error,borderOnDark:n.colors.border.onDark,borderDisabled:n.colors.border.disabled,borderDisabledOnDark:n.colors.border.disabledOnDark,textBase:n.colors.text.base,textAccentPrimary:n.colors.text.accentPrimary,textAccentPrimaryContrasted:n.colors.text.accentPrimaryContrasted,textAccentSecondary:n.colors.text.accentSecondary,textSubdued:n.colors.text.subdued,textInfo:n.colors.text.info,textSuccess:n.colors.text.success,textWarning:n.colors.text.warning,textError:n.colors.text.error,textDisabled:n.colors.text.disabled,textOnDark:n.colors.text.onDark,textSubduedOnDark:n.colors.text.subduedOnDark,textDisabledOnDark:n.colors.text.disabledOnDark,iconBase:n.colors.icon.base,iconSubdued:n.colors.icon.subdued,iconSubduedOnDark:n.colors.icon.subduedOnDark,iconAccentPrimary:n.colors.icon.accentPrimary,iconAccentPrimaryContrasted:n.colors.icon.accentPrimaryContrasted,iconAccentSecondary:n.colors.icon.accentSecondary,iconInfo:n.colors.icon.info,iconSuccess:n.colors.icon.success,iconWarning:n.colors.icon.warning,iconError:n.colors.icon.error,iconOnDark:n.colors.icon.onDark,iconDisabled:n.colors.icon.disabled,iconDisabledOnDark:n.colors.icon.disabledOnDark},l={gap:{0:"0",1:"4px",2:"8px",3:"12px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",13:"52px",14:"56px",15:"60px",16:"64px"},iconSize:{xsmall:"8px",small:"16px",default:"24px",large:"32px"},radius:{rounded0:"0",rounded:"4px",roundedLg:"8px",roundedPill:"64px"},padding:{0:"0",2:"8px",3:"12px",4:"16px",6:"24px",8:"32px",10:"40px",14:"56px",16:"64px"},fontSize:{titres:"24px",titresAlternatifs:"20px",corpsDeTexte:"16px",liensEtLibelles:"14px"}},y={...l,colors:{background:"#ffffff",border:"#dddddd",text:"#333333",icon:"#666666",overlay:"rgba(0, 0, 0, 0.5)",interactive:"#fff",interactiveHover:"#E7ECF5",interactivePressed:"#CED9EB",interactiveFocus:"#E7ECF5",interactiveDisabled:"#fff",interactiveHoverOnSelected:"#CED9EB"}},f={backgroundSurface:e.parma.darken60},a={colors:{background:{main:e.blue.lighten90,surface:e.white.base,mainAlt:e.white.base,surfaceAlt:e.blue.lighten90,raised:e.blue.lighten97,accent:e.blue.base,accentContrasted:e.blue.darken40,accentAlt:e.grey.darken80,info:e.blue.lighten80,infoSubdued:e.blue.lighten90,infoContrasted:e.blue.base,success:e.turquoise.lighten80,successSubdued:e.turquoise.lighten90,successContrasted:e.green.base,warning:e.yellow.lighten80,warningSubdued:e.yellow.lighten90,warningContrasted:e.yellow.base,error:e.orange.lighten80,errorSubdued:e.orange.lighten90,errorContrasted:e.orange.darken20,disabled:e.grey.lighten80,disabledOnDark:e.white.lighten8,assure:e.pink.lighten40,professionnel:e.cyan.lighten40,entreprise:e.yellow.base},border:{darker:e.grey.darken60,base:e.grey.lighten40,subdued:e.grey.lighten80,accentPrimary:e.blue.base,accentPrimaryContrasted:e.blue.darken40,accentPrimaryOnDark:e.white.base,accentSecondary:e.cyan.base,accentSecondaryContrasted:e.cyan.darken40,info:e.blue.base,success:e.green.darken60,warning:e.yellow.darken60,error:e.orange.darken20,onDark:e.white.lighten70,disabled:e.grey.lighten80,disabledOnDark:e.white.lighten40},text:{base:e.grey.darken60,accentPrimary:e.blue.base,accentPrimaryContrasted:e.blue.darken40,accentSecondary:e.cyan.darken40,subdued:e.grey.base,info:e.blue.base,success:e.green.darken60,warning:e.yellow.darken60,error:e.orange.darken20,disabled:e.grey.lighten40,onDark:e.white.base,subduedOnDark:e.white.lighten70,disabledOnDark:e.white.lighten40},icon:{base:e.grey.darken60,subdued:e.grey.base,subduedOnDark:e.white.lighten70,accentPrimary:e.blue.base,accentPrimaryContrasted:e.blue.darken40,accentSecondary:e.cyan.darken40,info:e.blue.base,success:e.green.darken60,warning:e.yellow.darken60,error:e.orange.darken20,onDark:e.white.base,disabled:e.grey.lighten40,disabledOnDark:e.white.lighten40},overlay:{fullpage:e.grey.lighten40,onDark:e.white.base,onLight:e.blue.base},interactive:{selectionEnabled:e.white.base,selectionHover:e.blue.lighten90,selectionPressed:e.blue.lighten80,selectionSelected:e.blue.lighten90,selectionHoverOnSelected:e.blue.lighten80,selectionSelectedAccent:e.blue.base,selectionHoverOnSelectedAccent:e.blue.lighten20,selectionDisabled:e.white.base}}},S={primary:e.blue.base,secondary:e.cyan.darken40,accentPrimaryLight:e.blue.lighten20,accentPrimary:e.blue.base,accentPrimaryContrasted:e.blue.darken40,accentSecondaryLight:e.cyan.lighten60,accentSecondary:e.cyan.base,accentSecondaryContrasted:e.cyan.darken40,accentAlt:e.grey.base,error:e.orange.darken20,info:e.blue.base,success:e.turquoise.darken60,warning:e.yellow.darken60,risquePro:e.brick.base,light:e.grey.lighten60,dark:e.grey.darken80,onBackground:a.colors.background.surface,onSurfaceAlt:a.colors.background.surfaceAlt,onSurface:a.colors.background.surface,onWarning:a.colors.background.warning,overlayFullpage:a.colors.overlay.fullpage,overlayOnDark:a.colors.overlay.onDark,overlayOnLight:a.colors.overlay.onLight,interactiveSelectionEnabled:a.colors.interactive.selectionEnabled,interactiveSelectionHover:a.colors.interactive.selectionHover,interactiveSelectionPressed:a.colors.interactive.selectionPressed,interactiveSelectionSelected:a.colors.interactive.selectionSelected,interactiveSelectionHoverOnSelected:a.colors.interactive.selectionHoverOnSelected,interactiveSelectionSelectedAccent:a.colors.interactive.selectionSelectedAccent,interactiveSelectionHoverOnSelectedAccent:a.colors.interactive.selectionHoverOnSelectedAccent,interactiveSelectionDisabled:a.colors.interactive.selectionDisabled,backgroundMain:a.colors.background.main,backgroundSurface:a.colors.background.surface,backgroundSurfaceAlt:a.colors.background.surfaceAlt,backgroundMainAlt:a.colors.background.mainAlt,backgroundRaised:a.colors.background.raised,backgroundAccent:a.colors.background.accent,backgroundAccentContrasted:a.colors.background.accentContrasted,backgroundAccentAlt:a.colors.background.accentAlt,backgroundInfo:a.colors.background.info,backgroundInfoSubdued:a.colors.background.infoSubdued,backgroundInfoContrasted:a.colors.background.infoContrasted,backgroundSuccess:a.colors.background.success,backgroundSuccessSubdued:a.colors.background.successSubdued,backgroundSuccessContrasted:a.colors.background.successContrasted,backgroundWarning:a.colors.background.warning,backgroundWarningSubdued:a.colors.background.warningSubdued,backgroundWarningContrasted:a.colors.background.warningContrasted,backgroundError:a.colors.background.error,backgroundErrorSubdued:a.colors.background.errorSubdued,backgroundErrorContrasted:a.colors.background.errorContrasted,backgroundDisabled:a.colors.background.disabled,backgroundDisabledOnDark:a.colors.background.disabledOnDark,backgroundAssure:a.colors.background.assure,backgroundProfessionnel:a.colors.background.professionnel,backgroundEntreprise:a.colors.background.entreprise,borderDarker:a.colors.border.darker,borderBase:a.colors.border.base,borderSubdued:a.colors.border.subdued,borderAccentPrimary:a.colors.border.accentPrimary,borderAccentPrimaryContrasted:a.colors.border.accentPrimaryContrasted,borderAccentPrimaryOnDark:a.colors.border.accentPrimaryOnDark,borderAccentSecondary:a.colors.border.accentSecondary,borderAccentSecondaryContrasted:a.colors.border.accentSecondaryContrasted,borderInfo:a.colors.border.info,borderSuccess:a.colors.border.success,borderWarning:a.colors.border.warning,borderError:a.colors.border.error,borderOnDark:a.colors.border.onDark,borderDisabled:a.colors.border.disabled,borderDisabledOnDark:a.colors.border.disabledOnDark,textBase:a.colors.text.base,textAccentPrimary:a.colors.text.accentPrimary,textAccentPrimaryContrasted:a.colors.text.accentPrimaryContrasted,textAccentSecondary:a.colors.text.accentSecondary,textSubdued:a.colors.text.subdued,textInfo:a.colors.text.info,textSuccess:a.colors.text.success,textWarning:a.colors.text.warning,textError:a.colors.text.error,textDisabled:a.colors.text.disabled,textOnDark:a.colors.text.onDark,textSubduedOnDark:a.colors.text.subduedOnDark,textDisabledOnDark:a.colors.text.disabledOnDark,iconBase:a.colors.icon.base,iconSubdued:a.colors.icon.subdued,iconSubduedOnDark:a.colors.icon.subduedOnDark,iconAccentPrimary:a.colors.icon.accentPrimary,iconAccentPrimaryContrasted:a.colors.icon.accentPrimaryContrasted,iconAccentSecondary:a.colors.icon.accentSecondary,iconInfo:a.colors.icon.info,iconSuccess:a.colors.icon.success,iconWarning:a.colors.icon.warning,iconError:a.colors.icon.error,iconOnDark:a.colors.icon.onDark,iconDisabled:a.colors.icon.disabled,iconDisabledOnDark:a.colors.icon.disabledOnDark},D={backgroundSurface:e.parma.darken60};function C(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([a-zA-Z])(\d)/g,"$1-$2").replace(/_/g,"-").toLowerCase()}function m(t){const d={};for(const[i,b]of Object.entries(t))for(const[g,u]of Object.entries(b)){const k=`${i}-${g}`.replace(/(\d+)/,"-$1").replace("-base","");d[C(k)]=u.toLowerCase()}return d}const c={apBlack:{base:"#000000"},apBlue:{base:"#0C419A",darken1:"#00749C",darken2:"#00516D",lighten1:"#99DBF2",lighten2:"#CCEDF9",lighten3:"#E6F6FC",lighten4:"#F3FBFE"},apGreen:{base:"#56C271",darken1:"#459B5A",darken2:"#337343",lighten1:"#78CE8D",lighten2:"#DDF3E3"},apGrey:{base:"#545859",darken1:"#1A1B1B",lighten1:"#CCCDCE",lighten2:"#DDDEDE",lighten3:"#EEEEEE",lighten4:"#F3F4F4",lighten5:"#FAFAFA",lighten6:"#F4F8F9"},apParme:{base:"#C8D1E6",darken1:"#4D547D"},apPink:{base:"#D00063"},apRed:{base:"#B33F2E",darken1:"#9D3728",darken2:"#70281C",lighten1:"#E67261",lighten2:"#EC9588",lighten3:"#F9DCD7",lighten4:"#FDF0EE"},apTurquoise:{base:"#33BCA5",darken1:"#007863",darken2:"#006654",darken3:"#005647",lighten1:"#CCEEE8",lighten2:"#E6F7F4"},apWhite:{base:"#FFFFFF"},apYellow:{base:"#F0B323",darken1:"#D8A120",darken2:"#C08F1C",darken3:"#A87D19",darken4:"#906C16",lighten1:"#F3C24F",lighten2:"#FED66D",lighten3:"#F7D990",lighten4:"#F9E1A7",lighten5:"#FCF0D3"}},x=m(c),r={...s,amber:{darken80:"#502C01",darken60:"#784201",darken40:"#9f5801",darken20:"#c76e02",base:"#ef8402",lighten20:"#f2992c",lighten40:"#f4ad56",lighten60:"#f7c281",lighten80:"#fad6ab",lighten90:"#fce6cc",lighten97:"#fffaf5"},forestGreen:{darken80:"#002821",darken60:"#003c32",darken40:"#005042",darken20:"#006453",base:"#007863",lighten20:"#2a8f7d",lighten40:"#55a597",lighten60:"#80bcb1",lighten80:"#aad2cb",lighten90:"#cce4e0",lighten97:"#eefffc"},red:{darken80:"#4d0000",darken60:"#740000",darken40:"#9b0000",darken20:"#b30e0e",base:"#e80000",lighten20:"#ec2a2a",lighten40:"#ff5e5e",lighten60:"#f48080",lighten80:"#f7aaaa",lighten90:"#facccc",lighten97:"#fff4f4"}},o={colors:{background:{main:r.cyan.lighten97,surface:r.white.base,mainAlt:r.white.base,surfaceAlt:r.cyan.lighten80,raised:r.cyan.lighten97,accent:r.cyan.darken20,accentContrasted:r.cyan.darken60,accentAlt:r.grey.base,info:r.blue.lighten80,infoSubdued:r.blue.lighten90,infoContrasted:r.parma.darken40,success:r.forestGreen.lighten80,successSubdued:r.forestGreen.lighten90,successContrasted:r.forestGreen.base,warning:r.yellow.lighten80,warningSubdued:r.yellow.lighten90,warningContrasted:r.yellow.base,error:r.red.lighten80,errorSubdued:r.red.lighten90,errorContrasted:r.red.darken20,disabled:r.grey.lighten80,disabledOnDark:r.white.lighten8,assure:r.pink.lighten40,professionnel:r.cyan.lighten40,entreprise:r.yellow.base},border:{darker:r.grey.darken60,base:r.grey.lighten40,subdued:r.grey.lighten80,accentPrimary:r.cyan.darken20,accentPrimaryContrasted:r.cyan.darken40,accentPrimaryOnDark:r.white.base,accentSecondary:r.cyan.darken60,accentSecondaryContrasted:r.cyan.darken40,info:r.parma.darken40,success:r.forestGreen.base,warning:r.yellow.darken60,error:r.red.darken20,onDark:r.white.lighten70,disabled:r.grey.lighten80,disabledOnDark:r.white.lighten40},text:{base:r.grey.darken60,accentPrimary:r.cyan.darken20,accentPrimaryContrasted:r.cyan.darken40,accentSecondary:r.cyan.darken60,subdued:r.grey.base,info:r.parma.darken40,success:r.forestGreen.base,warning:r.yellow.darken60,error:r.red.darken20,disabled:r.grey.lighten40,onDark:r.white.base,subduedOnDark:r.white.lighten70,disabledOnDark:r.white.lighten40},icon:{base:r.grey.darken60,subdued:r.grey.base,subduedOnDark:r.white.lighten70,accentPrimary:r.cyan.darken20,accentPrimaryContrasted:r.cyan.darken40,accentSecondary:r.cyan.darken80,info:r.parma.darken40,success:r.forestGreen.darken60,warning:r.yellow.darken60,error:r.red.darken20,onDark:r.white.base,disabled:r.grey.lighten40,disabledOnDark:r.white.lighten40},overlay:{fullpage:r.grey.darken60,onDark:r.cyan.darken40,onLight:r.white.base},interactive:{selectionEnabled:r.white.base,selectionHover:r.blue.lighten80,selectionPressed:r.blue.lighten60,selectionSelected:r.blue.lighten80,selectionHoverOnSelected:r.blue.lighten60,selectionSelectedAccent:r.cyan.darken20,selectionHoverOnSelectedAccent:r.cyan.lighten20,selectionDisabled:r.white.base}}},w={...x,error:c.apRed.base,info:c.apParme.darken1,primary:c.apBlue.darken1,secondary:c.apBlue.darken2,success:c.apTurquoise.darken1,warning:c.apYellow.darken4},p={primary:r.cyan.darken20,secondary:r.cyan.darken60,accentPrimaryLight:r.blue.lighten20,accentPrimary:r.cyan.darken20,accentPrimaryContrasted:r.cyan.darken40,accentSecondaryLight:r.cyan.base,accentSecondary:r.cyan.darken60,accentSecondaryContrasted:r.cyan.darken80,accentAlt:r.grey.base,error:r.red.darken20,info:r.parma.darken40,avatar:r.cyan.darken20,success:r.turquoise.darken20,warning:r.yellow.darken60,risquePro:r.red.base,light:r.grey.lighten60,dark:r.grey.darken80,onBackground:o.colors.background.surface,onSurfaceAlt:o.colors.background.surfaceAlt,onSurface:o.colors.background.surface,onWarning:o.colors.background.warning,overlayFullpage:o.colors.overlay.fullpage,overlayOnDark:o.colors.overlay.onDark,overlayOnLight:o.colors.overlay.onLight,interactiveSelectionEnabled:o.colors.interactive.selectionEnabled,interactiveSelectionHover:o.colors.interactive.selectionHover,interactiveSelectionPressed:o.colors.interactive.selectionPressed,interactiveSelectionSelected:o.colors.interactive.selectionSelected,interactiveSelectionHoverOnSelected:o.colors.interactive.selectionHoverOnSelected,interactiveSelectionSelectedAccent:o.colors.interactive.selectionSelectedAccent,interactiveSelectionHoverOnSelectedAccent:o.colors.interactive.selectionHoverOnSelectedAccent,interactiveSelectionDisabled:o.colors.interactive.selectionDisabled,backgroundMain:o.colors.background.main,backgroundSurface:o.colors.background.surface,backgroundSurfaceAlt:o.colors.background.surfaceAlt,backgroundMainAlt:o.colors.background.mainAlt,backgroundRaised:o.colors.background.raised,backgroundAccent:o.colors.background.accent,backgroundAccentContrasted:o.colors.background.accentContrasted,backgroundAccentAlt:o.colors.background.accentAlt,backgroundInfo:o.colors.background.info,backgroundInfoSubdued:o.colors.background.infoSubdued,backgroundInfoContrasted:o.colors.background.infoContrasted,backgroundSuccess:o.colors.background.success,backgroundSuccessSubdued:o.colors.background.successSubdued,backgroundSuccessContrasted:o.colors.background.successContrasted,backgroundWarning:o.colors.background.warning,backgroundWarningSubdued:o.colors.background.warningSubdued,backgroundWarningContrasted:o.colors.background.warningContrasted,backgroundError:o.colors.background.error,backgroundErrorSubdued:o.colors.background.errorSubdued,backgroundErrorContrasted:o.colors.background.errorContrasted,backgroundDisabled:o.colors.background.disabled,backgroundDisabledOnDark:o.colors.background.disabledOnDark,backgroundAssure:o.colors.background.assure,backgroundProfessionnel:o.colors.background.professionnel,backgroundEntreprise:o.colors.background.entreprise,borderDarker:o.colors.border.darker,borderBase:o.colors.border.base,borderSubdued:o.colors.border.subdued,borderAccentPrimary:o.colors.border.accentPrimary,borderAccentPrimaryContrasted:o.colors.border.accentPrimaryContrasted,borderAccentPrimaryOnDark:o.colors.border.accentPrimaryOnDark,borderAccentSecondary:o.colors.border.accentSecondary,borderAccentSecondaryContrasted:o.colors.border.accentSecondaryContrasted,borderInfo:o.colors.border.info,borderSuccess:o.colors.border.success,borderWarning:o.colors.border.warning,borderError:o.colors.border.error,borderOnDark:o.colors.border.onDark,borderDisabled:o.colors.border.disabled,borderDisabledOnDark:o.colors.border.disabledOnDark,textBase:o.colors.text.base,textAccentPrimary:o.colors.text.accentPrimary,textAccentPrimaryContrasted:o.colors.text.accentPrimaryContrasted,textAccentSecondary:o.colors.text.accentSecondary,textSubdued:o.colors.text.subdued,textInfo:o.colors.text.info,textSuccess:o.colors.text.success,textWarning:o.colors.text.warning,textError:o.colors.text.error,textDisabled:o.colors.text.disabled,textOnDark:o.colors.text.onDark,textSubduedOnDark:o.colors.text.subduedOnDark,textDisabledOnDark:o.colors.text.disabledOnDark,iconBase:o.colors.icon.base,iconSubdued:o.colors.icon.subdued,iconSubduedOnDark:o.colors.icon.subduedOnDark,iconAccentPrimary:o.colors.icon.accentPrimary,iconAccentPrimaryContrasted:o.colors.icon.accentPrimaryContrasted,iconAccentSecondary:o.colors.icon.accentSecondary,iconInfo:o.colors.icon.info,iconSuccess:o.colors.icon.success,iconWarning:o.colors.icon.warning,iconError:o.colors.icon.error,iconOnDark:o.colors.icon.onDark,iconDisabled:o.colors.icon.disabled,iconDisabledOnDark:o.colors.icon.disabledOnDark};exports.apColorsTokens=r;exports.apColorsTokens2026=c;exports.apLightTheme=p;exports.apLightTheme2026=w;exports.baseContextualTokens=l;exports.cnamColorsTokens=e;exports.cnamContextualTokens=y;exports.cnamDarkTheme=f;exports.cnamLightTheme=h;exports.cnamSemanticTokens=n;exports.paDarkTheme=D;exports.paLightTheme=S;
|