@cnamts/synapse 1.0.27 → 1.1.1
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 +1 -1
- package/dist/{AutocompleteFilter-C9eLKyW8.js → AutocompleteFilter-CGF33skz.js} +3 -3
- package/dist/{DateFilter-y-GLkAkn.js → DateFilter-D7-MsKtx.js} +8 -8
- package/dist/{NumberFilter-DN6hIBS7.js → NumberFilter-bjQPPfsj.js} +1 -1
- package/dist/{PeriodFilter-MoUUp9qS.js → PeriodFilter-B3wJpK8-.js} +1 -1
- package/dist/{SelectFilter-bCbrdLmu.js → SelectFilter-BN6DbKAV.js} +1 -1
- package/dist/{TextFilter-CvjgEaoM.js → TextFilter-BffP0J2f.js} +4 -4
- package/dist/{apLightTheme2026-ug4Y23ns.js → apLightTheme2026-C4ygwMHC.js} +23 -22
- package/dist/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.d.ts +10 -10
- package/dist/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressCityRow/AmeliproPostalAddressCityRow.d.ts +4 -4
- package/dist/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressField.d.ts +6 -6
- package/dist/components/Amelipro/AmeliproSelect/AmeliproSelect.d.ts +10 -10
- package/dist/components/Amelipro/AmeliproTabs/AmeliproTabs.d.ts +10 -10
- package/dist/components/Amelipro/AmeliproTextArea/AmeliproTextArea.d.ts +4 -4
- package/dist/components/Amelipro/AmeliproTextField/AmeliproTextField.d.ts +4 -4
- package/dist/components/Captcha/Captcha.d.ts +27 -16
- package/dist/components/Captcha/CaptchaForm.d.ts +29 -3
- package/dist/components/Captcha/types.d.ts +14 -0
- package/dist/components/Captcha/useCaptchaValidation.d.ts +37 -0
- package/dist/components/CookiesSelection/CookiesInformation/CookiesInformation.d.ts +2 -2
- package/dist/components/Customs/Selects/SelectBtnField/SelectBtnField.d.ts +33 -13
- package/dist/components/Customs/Selects/SelectBtnField/composables/useSelectBtnFieldValidation.d.ts +23 -0
- package/dist/components/Customs/Selects/SyAutocomplete/SyAutocomplete.d.ts +85 -313
- package/dist/components/Customs/Selects/SyAutocomplete/composables/useSyAutocompleteValidation.d.ts +4 -4
- package/dist/components/Customs/Selects/SyInputSelect/SyInputSelect.d.ts +1 -1
- package/dist/components/Customs/Selects/SySelect/SySelect.d.ts +9 -11
- package/dist/components/Customs/Selects/SySelect/composables/useSySelectValidation.d.ts +7 -7
- package/dist/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.d.ts +18 -49
- package/dist/components/Customs/SyCheckBoxGroup/composables/useSyCheckBoxGroupValidation.d.ts +29 -0
- package/dist/components/Customs/SyCheckBoxGroup/types.d.ts +46 -0
- package/dist/components/Customs/SyCheckbox/SyCheckbox.d.ts +19 -54
- package/dist/components/Customs/SyCheckbox/composables/useSyCheckboxValidation.d.ts +27 -0
- package/dist/components/Customs/SyCheckbox/types.d.ts +49 -0
- package/dist/components/Customs/SyIcon/SyIcon.d.ts +77 -1
- package/dist/components/Customs/SyRadioGroup/SyRadioGroup.d.ts +10 -10
- package/dist/components/Customs/SyTextField/FieldState.d.ts +5 -0
- package/dist/components/Customs/SyTextField/SyTextField.d.ts +19 -79
- package/dist/components/Customs/SyTextField/locales.d.ts +7 -0
- package/dist/components/Customs/SyTextField/types.d.ts +67 -4
- package/dist/components/Customs/SyTextField/useNumberField.d.ts +23 -0
- package/dist/components/Customs/SyTextField/useSyTextFieldValidation.d.ts +38 -0
- package/dist/components/DatePicker/CalendarMode/DatePicker.d.ts +170 -622
- package/dist/components/DatePicker/ComplexDatePicker/ComplexDatePicker.d.ts +85 -311
- package/dist/components/DatePicker/DateTextInput/DateTextInput.d.ts +39 -152
- package/dist/components/DialogBox/DialogBox.d.ts +2 -0
- package/dist/components/DialogBox/locales.d.ts +1 -0
- package/dist/components/FilterInline/FilterInline.d.ts +3 -3
- package/dist/components/FilterSideBar/FilterSideBar.d.ts +8 -4
- package/dist/components/LunarCalendar/LunarCalendar.d.ts +43 -14
- package/dist/components/LunarCalendar/types.d.ts +35 -0
- package/dist/components/LunarCalendar/useLunarCalendarValidation.d.ts +11 -12
- package/dist/components/MonthPicker/MonthPicker.d.ts +72 -1860
- package/dist/components/MonthPicker/MonthPickerText/MonthPickerInput.d.ts +21 -1846
- package/dist/components/MonthPicker/MonthPickerText/useTextField.d.ts +5 -0
- package/dist/components/MonthPicker/locales.d.ts +1 -0
- package/dist/components/MonthPicker/types.d.ts +11 -0
- package/dist/components/MonthPicker/useMonthPickerValidation.d.ts +37 -24
- package/dist/components/NirField/NirField.d.ts +96 -325
- package/dist/components/NirField/useNirValidation.d.ts +17 -25
- package/dist/components/PageContainer/PageContainer.d.ts +8 -0
- package/dist/components/PasswordField/PasswordField.d.ts +18 -37
- package/dist/components/PasswordField/locales.d.ts +2 -0
- package/dist/components/PasswordField/types.d.ts +16 -0
- package/dist/components/PasswordField/usePasswordFieldValidation.d.ts +38 -0
- package/dist/components/PeriodField/PeriodField.d.ts +349 -1253
- package/dist/components/PhoneField/PhoneField.d.ts +960 -2051
- package/dist/components/PhoneField/indicatifs.d.ts +715 -8
- package/dist/components/PhoneField/locales.d.ts +7 -0
- package/dist/components/PhoneField/types.d.ts +29 -0
- package/dist/components/PhoneField/usePhoneFieldValidation.d.ts +45 -0
- package/dist/components/PhoneField/usePhoneIndicatifs.d.ts +947 -0
- package/dist/components/SearchListField/SearchListField.d.ts +3 -3
- package/dist/components/SyTextArea/SyTextArea.d.ts +14 -11
- package/dist/components/SyTextArea/composables/useSyTextAreaValidation.d.ts +7 -7
- package/dist/components/Tables/common/SyTablePagination.d.ts +19 -20
- package/dist/composables/unifyValidation/documentationValidationProps.d.ts +2 -2
- package/dist/composables/unifyValidation/useValidation.d.ts +4 -13
- package/dist/composables/useFilterable/useFilterable.d.ts +1 -2
- package/dist/design-system-v3.js +19 -19
- package/dist/designTokens/tokens/amelipro/apLightTheme.d.ts +11 -10
- package/dist/designTokens/tokens/baseTokens.d.ts +18 -18
- package/dist/designTokens/tokens/cnam/cnamLightTheme.d.ts +10 -10
- package/dist/designTokens/tokens/pa/paLightTheme.d.ts +11 -10
- package/dist/designTokens/tokens/semanticTokens.d.ts +14 -14
- package/dist/{main-CI6Q9nmO.js → main-C4wAktOs.js} +14999 -14025
- package/dist/synapse.css +1 -1
- package/dist/vuetifyConfig.js +27 -25
- package/package.json +12 -11
- package/src/assets/compat/_legacy-tokens.scss +91 -0
- package/src/assets/overrides/_utilities.scss +23 -0
- package/src/components/Accordion/Accordion.stories.ts +121 -1
- package/src/components/Accordion/tests/Accordion.visual.cy.ts +44 -0
- package/src/components/Accordion/tests/__snapshots__/accordion-default.snap.png +0 -0
- package/src/components/Accordion/tests/__snapshots__/accordion-disabled-item.snap.png +0 -0
- package/src/components/Accordion/tests/__snapshots__/accordion-open-first.snap.png +0 -0
- package/src/components/BackBtn/BackBtn.mdx +1 -1
- 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/BackToTopBtn/BackToTopBtn.mdx +0 -1
- package/src/components/BackToTopBtn/tests/BackToTopBtn.visual.cy.ts +34 -0
- package/src/components/BackToTopBtn/tests/__snapshots__/back-to-top-btn-custom-nudge.snap.png +0 -0
- package/src/components/BackToTopBtn/tests/__snapshots__/back-to-top-btn-default.snap.png +0 -0
- package/src/components/Captcha/Captcha.stories.ts +134 -31
- package/src/components/Captcha/Captcha.vue +95 -28
- package/src/components/Captcha/CaptchaForm.vue +51 -22
- package/src/components/Captcha/tests/Captcha.focus.spec.ts +214 -0
- package/src/components/Captcha/tests/Captcha.spec.ts +233 -24
- package/src/components/Captcha/tests/Captcha.visual.cy.ts +45 -0
- package/src/components/Captcha/tests/CaptchaForm.spec.ts +82 -0
- package/src/components/Captcha/tests/__snapshots__/Captcha.spec.ts.snap +20 -42
- package/src/components/Captcha/tests/__snapshots__/captcha-audio-type.snap.png +0 -0
- package/src/components/Captcha/tests/__snapshots__/captcha-image-type.snap.png +0 -0
- package/src/components/Captcha/tests/__snapshots__/captcha-no-helpdesk.snap.png +0 -0
- package/src/components/Captcha/types.ts +15 -0
- package/src/components/Captcha/useCaptchaValidation.ts +87 -0
- package/src/components/Captcha/validation/validation.stories.ts +1194 -0
- package/src/components/ChipList/ChipList.mdx +0 -1
- package/src/components/ChipList/tests/ChipList.visual.cy.ts +46 -0
- package/src/components/ChipList/tests/__snapshots__/chip-list-default.snap.png +0 -0
- package/src/components/ChipList/tests/__snapshots__/chip-list-readonly.snap.png +0 -0
- package/src/components/ChipList/tests/__snapshots__/chip-list-state-icons.snap.png +0 -0
- package/src/components/CollapsibleList/CollapsibleList.mdx +0 -1
- package/src/components/CollapsibleList/tests/CollapsibleList.visual.cy.ts +33 -0
- package/src/components/CollapsibleList/tests/__snapshots__/collapsible-list-default.snap.png +0 -0
- package/src/components/CollapsibleList/tests/__snapshots__/collapsible-list-no-title.snap.png +0 -0
- package/src/components/ContextualMenu/tests/ContextualMenu.visual.cy.ts +35 -0
- package/src/components/ContextualMenu/tests/__snapshots__/contextual-menu-default.snap.png +0 -0
- package/src/components/ContextualMenu/tests/__snapshots__/contextual-menu-selected.snap.png +0 -0
- package/src/components/CookieBanner/CookieBanner.mdx +0 -1
- package/src/components/CookieBanner/tests/CookieBanner.visual.cy.ts +29 -0
- package/src/components/CookieBanner/tests/__snapshots__/cookie-banner-default.snap.png +0 -0
- package/src/components/CookieBanner/tests/__snapshots__/cookie-banner-with-items.snap.png +0 -0
- package/src/components/CookiesSelection/tests/CookiesSelection.visual.cy.ts +21 -0
- package/src/components/CookiesSelection/tests/__snapshots__/cookies-selection-default.snap.png +0 -0
- package/src/components/CopyBtn/CopyBtn.mdx +0 -1
- package/src/components/CopyBtn/tests/CopyBtn.visual.cy.ts +24 -0
- package/src/components/CopyBtn/tests/__snapshots__/copy-btn-default.snap.png +0 -0
- package/src/components/CopyBtn/tests/__snapshots__/copy-btn-no-tooltip.snap.png +0 -0
- package/src/components/Customs/Selects/SelectBtnField/SelectBtnField.stories.ts +123 -439
- package/src/components/Customs/Selects/SelectBtnField/SelectBtnField.vue +147 -41
- package/src/components/Customs/Selects/SelectBtnField/Validation/Validation.stories.ts +600 -0
- package/src/components/Customs/Selects/SelectBtnField/composables/useSelectBtnFieldValidation.ts +87 -0
- package/src/components/Customs/Selects/SelectBtnField/tests/SelectBtnField.spec.ts +402 -33
- package/src/components/Customs/Selects/SelectBtnField/tests/SelectBtnField.visual.cy.ts +60 -0
- package/src/components/Customs/Selects/SelectBtnField/tests/__snapshots__/SelectBtnField.spec.ts.snap +52 -38
- package/src/components/Customs/Selects/SelectBtnField/tests/__snapshots__/select-btn-field-default.snap.png +0 -0
- package/src/components/Customs/Selects/SelectBtnField/tests/__snapshots__/select-btn-field-inline.snap.png +0 -0
- package/src/components/Customs/Selects/SelectBtnField/tests/__snapshots__/select-btn-field-readonly.snap.png +0 -0
- package/src/components/Customs/Selects/SelectBtnField/tests/__snapshots__/select-btn-field-selected.snap.png +0 -0
- package/src/components/Customs/Selects/SyAutocomplete/SyAutocomplete.vue +1 -1
- package/src/components/Customs/Selects/SyAutocomplete/tests/SyAutocomplete.spec.ts +2 -0
- package/src/components/Customs/Selects/SyAutocomplete/tests/SyAutocomplete.visual.cy.ts +63 -0
- package/src/components/Customs/Selects/SyAutocomplete/tests/__snapshots__/sy-autocomplete-default.snap.png +0 -0
- package/src/components/Customs/Selects/SyAutocomplete/tests/__snapshots__/sy-autocomplete-loading.snap.png +0 -0
- package/src/components/Customs/Selects/SyAutocomplete/tests/__snapshots__/sy-autocomplete-multiple.snap.png +0 -0
- package/src/components/Customs/Selects/SyAutocomplete/tests/__snapshots__/sy-autocomplete-with-value.snap.png +0 -0
- package/src/components/Customs/Selects/SyAutocomplete/validation/Validation.stories.ts +0 -93
- package/src/components/Customs/Selects/SyInputSelect/tests/SyInputSelect.visual.cy.ts +48 -0
- package/src/components/Customs/Selects/SyInputSelect/tests/__snapshots__/sy-input-select-default.snap.png +0 -0
- package/src/components/Customs/Selects/SyInputSelect/tests/__snapshots__/sy-input-select-required.snap.png +0 -0
- package/src/components/Customs/Selects/SyInputSelect/tests/__snapshots__/sy-input-select-with-value.snap.png +0 -0
- package/src/components/Customs/Selects/SySelect/SySelect.vue +22 -47
- package/src/components/Customs/Selects/SySelect/tests/SySelect.spec.ts +3 -3
- package/src/components/Customs/Selects/SySelect/tests/SySelect.visual.cy.ts +77 -0
- package/src/components/Customs/Selects/SySelect/tests/__snapshots__/sy-select-clearable.snap.png +0 -0
- package/src/components/Customs/Selects/SySelect/tests/__snapshots__/sy-select-default.snap.png +0 -0
- package/src/components/Customs/Selects/SySelect/tests/__snapshots__/sy-select-multiple-chips.snap.png +0 -0
- package/src/components/Customs/Selects/SySelect/tests/__snapshots__/sy-select-required.snap.png +0 -0
- package/src/components/Customs/Selects/SySelect/tests/__snapshots__/sy-select-with-value.snap.png +0 -0
- package/src/components/Customs/Selects/SySelect/validation/Validation.stories.ts +1 -92
- package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.stories.ts +342 -162
- package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.vue +77 -129
- package/src/components/Customs/SyCheckBoxGroup/Validation/Validation.stories.ts +1008 -0
- package/src/components/Customs/SyCheckBoxGroup/composables/useSyCheckBoxGroupValidation.ts +107 -0
- package/src/components/Customs/SyCheckBoxGroup/tests/SyCheckBoxGroup.spec.ts +180 -7
- package/src/components/Customs/SyCheckBoxGroup/tests/SyCheckBoxGroup.visual.cy.ts +55 -0
- package/src/components/Customs/SyCheckBoxGroup/tests/__snapshots__/sy-checkbox-group-default.snap.png +0 -0
- package/src/components/Customs/SyCheckBoxGroup/tests/__snapshots__/sy-checkbox-group-disabled.snap.png +0 -0
- package/src/components/Customs/SyCheckBoxGroup/tests/__snapshots__/sy-checkbox-group-selected.snap.png +0 -0
- package/src/components/Customs/SyCheckBoxGroup/tests/__snapshots__/sy-checkbox-group-with-label.snap.png +0 -0
- package/src/components/Customs/SyCheckBoxGroup/types.ts +49 -0
- package/src/components/Customs/SyCheckbox/SyCheckbox.stories.ts +41 -161
- package/src/components/Customs/SyCheckbox/SyCheckbox.vue +71 -156
- package/src/components/Customs/SyCheckbox/Validation/Validation.stories.ts +654 -0
- package/src/components/Customs/SyCheckbox/composables/useSyCheckboxValidation.ts +105 -0
- package/src/components/Customs/SyCheckbox/tests/SyCheckbox.spec.ts +106 -0
- package/src/components/Customs/SyCheckbox/tests/SyCheckbox.visual.cy.ts +61 -0
- package/src/components/Customs/SyCheckbox/tests/__snapshots__/sy-checkbox-checked.snap.png +0 -0
- package/src/components/Customs/SyCheckbox/tests/__snapshots__/sy-checkbox-disabled.snap.png +0 -0
- package/src/components/Customs/SyCheckbox/tests/__snapshots__/sy-checkbox-indeterminate.snap.png +0 -0
- package/src/components/Customs/SyCheckbox/tests/__snapshots__/sy-checkbox-required.snap.png +0 -0
- package/src/components/Customs/SyCheckbox/tests/__snapshots__/sy-checkbox-unchecked.snap.png +0 -0
- package/src/components/Customs/SyCheckbox/tests/useSyCheckboxValidation.spec.ts +98 -0
- package/src/components/Customs/SyCheckbox/types.ts +51 -0
- package/src/components/Customs/SyIcon/SyIcon.vue +19 -1
- package/src/components/Customs/SyIcon/tests/SyIcon.visual.cy.ts +83 -0
- package/src/components/Customs/SyIcon/tests/__snapshots__/sy-icon-color-error.snap.png +0 -0
- package/src/components/Customs/SyIcon/tests/__snapshots__/sy-icon-decorative.snap.png +0 -0
- package/src/components/Customs/SyIcon/tests/__snapshots__/sy-icon-informative.snap.png +0 -0
- package/src/components/Customs/SyIcon/tests/__snapshots__/sy-icon-role-button.snap.png +0 -0
- package/src/components/Customs/SyIcon/tests/__snapshots__/sy-icon-size-large.snap.png +0 -0
- package/src/components/Customs/SyIconButton/tests/SyIconButton.visual.cy.ts +55 -0
- package/src/components/Customs/SyIconButton/tests/__snapshots__/sy-icon-button-default.snap.png +0 -0
- package/src/components/Customs/SyIconButton/tests/__snapshots__/sy-icon-button-disabled.snap.png +0 -0
- package/src/components/Customs/SyIconButton/tests/__snapshots__/sy-icon-button-error.snap.png +0 -0
- package/src/components/Customs/SyIconButton/tests/__snapshots__/sy-icon-button-large.snap.png +0 -0
- package/src/components/Customs/SyPagination/tests/SyPagination.visual.cy.ts +40 -0
- package/src/components/Customs/SyPagination/tests/__snapshots__/sy-pagination-first-page.snap.png +0 -0
- package/src/components/Customs/SyPagination/tests/__snapshots__/sy-pagination-middle-page.snap.png +0 -0
- package/src/components/Customs/SyPagination/tests/__snapshots__/sy-pagination-with-label.snap.png +0 -0
- package/src/components/Customs/SyRadioGroup/SyRadioGroup.stories.ts +0 -1
- package/src/components/Customs/SyRadioGroup/SyRadioGroup.vue +4 -3
- package/src/components/Customs/SyRadioGroup/composables/useSyRadioGroupValidation.ts +1 -1
- package/src/components/Customs/SyRadioGroup/tests/__snapshots__/sy-radio-group-asterisk.snap.png +0 -0
- package/src/components/Customs/SyRadioGroup/tests/__snapshots__/sy-radio-group-comfortable.snap.png +0 -0
- package/src/components/Customs/SyRadioGroup/tests/__snapshots__/sy-radio-group-compact.snap.png +0 -0
- package/src/components/Customs/SyRadioGroup/tests/__snapshots__/sy-radio-group-default.snap.png +0 -0
- package/src/components/Customs/SyRadioGroup/tests/__snapshots__/sy-radio-group-disabled.snap.png +0 -0
- package/src/components/Customs/SyRadioGroup/tests/__snapshots__/sy-radio-group-error.snap.png +0 -0
- package/src/components/Customs/SyRadioGroup/tests/__snapshots__/sy-radio-group-no-details.snap.png +0 -0
- package/src/components/Customs/SyRadioGroup/tests/__snapshots__/sy-radio-group-readonly.snap.png +0 -0
- package/src/components/Customs/SyRadioGroup/tests/__snapshots__/sy-radio-group-selected.snap.png +0 -0
- package/src/components/Customs/SyRadioGroup/tests/__snapshots__/sy-radio-group-success.snap.png +0 -0
- package/src/components/Customs/SyRadioGroup/tests/__snapshots__/sy-radio-group-warning.snap.png +0 -0
- package/src/components/Customs/SyRadioGroup/validation/Validation.stories.ts +63 -27
- package/src/components/Customs/SyTabs/tests/SyTabs.visual.cy.ts +30 -0
- package/src/components/Customs/SyTabs/tests/__snapshots__/sy-tabs-default.snap.png +0 -0
- package/src/components/Customs/SyTabs/tests/__snapshots__/sy-tabs-second-active.snap.png +0 -0
- package/src/components/Customs/SyTextField/FieldState.vue +50 -0
- package/src/components/Customs/SyTextField/SyTextField.stories.ts +160 -778
- package/src/components/Customs/SyTextField/SyTextField.vue +178 -160
- package/src/components/Customs/SyTextField/Validation/Validation.stories.ts +1164 -0
- package/src/components/Customs/SyTextField/locales.ts +12 -0
- package/src/components/Customs/SyTextField/tests/SyTextField.spec.ts +174 -8
- package/src/components/Customs/SyTextField/tests/SyTextField.visual.cy.ts +116 -0
- package/src/components/Customs/SyTextField/tests/__snapshots__/sy-text-field-clearable.snap.png +0 -0
- package/src/components/Customs/SyTextField/tests/__snapshots__/sy-text-field-default.snap.png +0 -0
- package/src/components/Customs/SyTextField/tests/__snapshots__/sy-text-field-number-disabled.snap.png +0 -0
- package/src/components/Customs/SyTextField/tests/__snapshots__/sy-text-field-number-no-spinner.snap.png +0 -0
- package/src/components/Customs/SyTextField/tests/__snapshots__/sy-text-field-number.snap.png +0 -0
- package/src/components/Customs/SyTextField/tests/__snapshots__/sy-text-field-prepend-icon.snap.png +0 -0
- package/src/components/Customs/SyTextField/tests/__snapshots__/sy-text-field-readonly.snap.png +0 -0
- package/src/components/Customs/SyTextField/tests/__snapshots__/sy-text-field-required.snap.png +0 -0
- package/src/components/Customs/SyTextField/tests/__snapshots__/sy-text-field-with-value.snap.png +0 -0
- package/src/components/Customs/SyTextField/types.ts +70 -0
- package/src/components/Customs/SyTextField/useNumberField.ts +93 -0
- package/src/components/Customs/SyTextField/useSyTextFieldValidation.ts +95 -0
- package/src/components/DataList/DataList.mdx +0 -1
- package/src/components/DataList/tests/DataList.visual.cy.ts +85 -0
- package/src/components/DataList/tests/__snapshots__/data-list-default.snap.png +0 -0
- package/src/components/DataList/tests/__snapshots__/data-list-loading.snap.png +0 -0
- package/src/components/DataList/tests/__snapshots__/data-list-row.snap.png +0 -0
- package/src/components/DataList/tests/__snapshots__/data-list-with-icons.snap.png +0 -0
- package/src/components/DataList/tests/__snapshots__/data-list-with-title.snap.png +0 -0
- package/src/components/DataListGroup/DataListGroup.mdx +0 -1
- package/src/components/DataListGroup/tests/DataListGroup.visual.cy.ts +51 -0
- package/src/components/DataListGroup/tests/__snapshots__/data-list-group-default.snap.png +0 -0
- package/src/components/DataListGroup/tests/__snapshots__/data-list-group-loading.snap.png +0 -0
- package/src/components/DataListItem/tests/DataListItem.visual.cy.ts +53 -0
- package/src/components/DataListItem/tests/__snapshots__/data-list-item-chip.snap.png +0 -0
- package/src/components/DataListItem/tests/__snapshots__/data-list-item-default.snap.png +0 -0
- package/src/components/DataListItem/tests/__snapshots__/data-list-item-placeholder.snap.png +0 -0
- package/src/components/DataListItem/tests/__snapshots__/data-list-item-row.snap.png +0 -0
- package/src/components/DatePicker/CalendarMode/DatePicker.stories.ts +1 -1
- package/src/components/DatePicker/CalendarMode/DatePicker.vue +7 -7
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.stories.ts +1 -1
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.vue +7 -8
- package/src/components/DatePicker/DateTextInput/DateRange.stories.ts +1 -1
- package/src/components/DatePicker/DateTextInput/DateTextInput.vue +2 -2
- package/src/components/DatePicker/DateTextInput/NoCalendar.stories.ts +1 -1
- package/src/components/DatePicker/composables/tests/useTodayButton.spec.ts +10 -10
- package/src/components/DatePicker/composables/useCalendarKeyboardNavigation.ts +11 -2
- package/src/components/DeclarationAccessibilityPage/tests/DeclarationAccessibilityPage.visual.cy.ts +35 -0
- package/src/components/DeclarationAccessibilityPage/tests/__snapshots__/declaration-a11y-page-default.snap.png +0 -0
- package/src/components/DeclarationAccessibilityPage/tests/__snapshots__/declaration-a11y-page-full.snap.png +0 -0
- package/src/components/DiacriticPicker/DiacriticPicker.mdx +0 -1
- package/src/components/DiacriticPicker/tests/DiacriticPicker.visual.cy.ts +24 -0
- package/src/components/DiacriticPicker/tests/__snapshots__/diacritic-picker-custom-title.snap.png +0 -0
- package/src/components/DiacriticPicker/tests/__snapshots__/diacritic-picker-default.snap.png +0 -0
- package/src/components/DialogBox/DialogBox.mdx +0 -1
- package/src/components/DialogBox/DialogBox.stories.ts +399 -4
- package/src/components/DialogBox/DialogBox.vue +20 -0
- package/src/components/DialogBox/locales.ts +1 -0
- package/src/components/DialogBox/tests/DialogBox.spec.ts +73 -0
- package/src/components/DialogBox/tests/DialogBox.visual.cy.ts +24 -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/DownloadBtn/tests/DownloadBtn.spec.ts +2 -2
- package/src/components/DownloadBtn/tests/DownloadBtn.visual.cy.ts +38 -0
- package/src/components/DownloadBtn/tests/__snapshots__/download-btn-dark.snap.png +0 -0
- package/src/components/DownloadBtn/tests/__snapshots__/download-btn-idle.snap.png +0 -0
- package/src/components/ErrorPage/ErrorPage.mdx +1 -1
- package/src/components/ErrorPage/tests/ErrorPage.visual.cy.ts +32 -0
- package/src/components/ErrorPage/tests/__snapshots__/error-page-custom.snap.png +0 -0
- package/src/components/ErrorPage/tests/__snapshots__/error-page-default.snap.png +0 -0
- package/src/components/ErrorPage/tests/__snapshots__/error-page-no-btn.snap.png +0 -0
- package/src/components/ExternalLinks/ExternalLinks.mdx +0 -1
- package/src/components/ExternalLinks/tests/ExternalLinks.visual.cy.ts +30 -0
- package/src/components/ExternalLinks/tests/__snapshots__/external-links-default.snap.png +0 -0
- package/src/components/ExternalLinks/tests/__snapshots__/external-links-fixed.snap.png +0 -0
- package/src/components/FileList/FileList.mdx +0 -1
- package/src/components/FileList/tests/FileList.visual.cy.ts +31 -0
- package/src/components/FileList/tests/__snapshots__/file-list-default.snap.png +0 -0
- package/src/components/FileList/tests/__snapshots__/file-list-with-delete.snap.png +0 -0
- package/src/components/FilePreview/accessibilite/Accessibility.mdx +86 -8
- package/src/components/FileUpload/tests/FileUpload.visual.cy.ts +36 -0
- package/src/components/FileUpload/tests/__snapshots__/file-upload-default.snap.png +0 -0
- package/src/components/FileUpload/tests/__snapshots__/file-upload-disabled.snap.png +0 -0
- package/src/components/FileUpload/tests/__snapshots__/file-upload-multiple.snap.png +0 -0
- package/src/components/FilterInline/FilterInline.mdx +0 -1
- package/src/components/FilterInline/FilterInline.stories.ts +2 -0
- package/src/components/FilterInline/FilterInline.vue +10 -5
- package/src/components/FilterInline/tests/FilterInline.visual.cy.ts +25 -0
- package/src/components/FilterInline/tests/__snapshots__/filter-inline-default.snap.png +0 -0
- package/src/components/FilterSideBar/FilterSideBar.mdx +8 -1
- package/src/components/FilterSideBar/FilterSideBar.stories.ts +136 -1
- package/src/components/FilterSideBar/FilterSideBar.vue +30 -8
- package/src/components/FilterSideBar/tests/FilterSideBar.spec.ts +55 -0
- package/src/components/FilterSideBar/tests/FilterSideBar.visual.cy.ts +37 -0
- package/src/components/FilterSideBar/tests/__snapshots__/filter-sidebar-default.snap.png +0 -0
- package/src/components/FilterSideBar/tests/__snapshots__/filter-sidebar-modale.snap.png +0 -0
- package/src/components/FooterBar/FooterBar.mdx +0 -1
- package/src/components/FooterBar/tests/FooterBar.visual.cy.ts +37 -0
- package/src/components/FooterBar/tests/__snapshots__/footer-bar-default.snap.png +0 -0
- package/src/components/FooterBar/tests/__snapshots__/footer-bar-no-logo.snap.png +0 -0
- package/src/components/FooterBar/tests/__snapshots__/footer-bar-no-social.snap.png +0 -0
- package/src/components/FooterBar/tests/__snapshots__/footer-bar-version.snap.png +0 -0
- package/src/components/FranceConnectBtn/FranceConnectBtn.mdx +0 -1
- package/src/components/FranceConnectBtn/tests/FranceConnectBtn.visual.cy.ts +38 -0
- package/src/components/FranceConnectBtn/tests/__snapshots__/france-connect-btn-dark.snap.png +0 -0
- package/src/components/FranceConnectBtn/tests/__snapshots__/france-connect-btn-default.snap.png +0 -0
- package/src/components/FranceConnectBtn/tests/__snapshots__/france-connect-btn-plus.snap.png +0 -0
- package/src/components/HeaderBar/HeaderBar.mdx +0 -1
- package/src/components/HeaderBar/HeaderBurgerMenu/tests/HeaderBurgerMenu.spec.ts +4 -4
- 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/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/HeaderLoading/HeaderLoading.mdx +0 -1
- package/src/components/HeaderLoading/tests/HeaderLoading.visual.cy.ts +34 -0
- package/src/components/HeaderLoading/tests/__snapshots__/header-loading-custom-size.snap.png +0 -0
- package/src/components/HeaderLoading/tests/__snapshots__/header-loading-default.snap.png +0 -0
- package/src/components/HeaderLoading/tests/__snapshots__/header-loading-standalone.snap.png +0 -0
- package/src/components/HeaderNavigationBar/tests/HeaderNavigationBar.spec.ts +4 -4
- package/src/components/HeaderNavigationBar/tests/HeaderNavigationBar.visual.cy.ts +34 -0
- package/src/components/HeaderNavigationBar/tests/__snapshots__/header-navigation-bar-default.snap.png +0 -0
- package/src/components/HeaderNavigationBar/tests/__snapshots__/header-navigation-bar-subtitle.snap.png +0 -0
- package/src/components/HeaderToolbar/tests/HeaderToolbar.visual.cy.ts +25 -0
- package/src/components/HeaderToolbar/tests/__snapshots__/header-toolbar-custom.snap.png +0 -0
- package/src/components/HeaderToolbar/tests/__snapshots__/header-toolbar-default.snap.png +0 -0
- package/src/components/LangBtn/LangBtn.mdx +0 -1
- package/src/components/LangBtn/tests/LangBtn.visual.cy.ts +33 -0
- package/src/components/LangBtn/tests/__snapshots__/lang-btn-default.snap.png +0 -0
- package/src/components/LangBtn/tests/__snapshots__/lang-btn-english.snap.png +0 -0
- package/src/components/LangBtn/tests/__snapshots__/lang-btn-no-arrow.snap.png +0 -0
- package/src/components/Logo/Logo.mdx +1 -1
- 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/tests/LogoBrandSection.visual.cy.ts +43 -0
- package/src/components/LogoBrandSection/tests/__snapshots__/logo-brand-section-default.snap.png +0 -0
- package/src/components/LogoBrandSection/tests/__snapshots__/logo-brand-section-mobile.snap.png +0 -0
- package/src/components/LogoBrandSection/tests/__snapshots__/logo-brand-section-reduced.snap.png +0 -0
- package/src/components/LogoBrandSection/tests/__snapshots__/logo-brand-section-with-title.snap.png +0 -0
- package/src/components/LunarCalendar/LunarCalendar.mdx +6 -9
- package/src/components/LunarCalendar/LunarCalendar.stories.ts +243 -46
- package/src/components/LunarCalendar/LunarCalendar.vue +61 -26
- package/src/components/LunarCalendar/Validation/Validation.stories.ts +717 -0
- package/src/components/LunarCalendar/tests/LunarCalendar.a11y.spec.ts +1 -1
- package/src/components/LunarCalendar/tests/LunarCalendar.spec.ts +197 -6
- package/src/components/LunarCalendar/tests/LunarCalendar.visual.cy.ts +36 -0
- package/src/components/LunarCalendar/tests/__snapshots__/lunar-calendar-default.snap.png +0 -0
- package/src/components/LunarCalendar/tests/__snapshots__/lunar-calendar-required.snap.png +0 -0
- package/src/components/LunarCalendar/tests/__snapshots__/lunar-calendar-with-value.snap.png +0 -0
- package/src/components/LunarCalendar/tests/useLunarCalendarValidation.spec.ts +287 -0
- package/src/components/LunarCalendar/types.ts +39 -0
- package/src/components/LunarCalendar/useLunarCalendarValidation.ts +115 -39
- package/src/components/MaintenancePage/tests/MaintenancePage.visual.cy.ts +22 -0
- package/src/components/MaintenancePage/tests/__snapshots__/maintenance-page-custom.snap.png +0 -0
- package/src/components/MaintenancePage/tests/__snapshots__/maintenance-page-default.snap.png +0 -0
- package/src/components/MonthPicker/MonthPicker.stories.ts +38 -281
- package/src/components/MonthPicker/MonthPicker.vue +66 -17
- package/src/components/MonthPicker/MonthPickerText/MonthPickerInput.vue +44 -20
- package/src/components/MonthPicker/MonthPickerText/useTextField.ts +5 -0
- package/src/components/MonthPicker/Validation/Validation.stories.ts +1117 -0
- package/src/components/MonthPicker/locales.ts +1 -0
- package/src/components/MonthPicker/tests/MonthPicker.spec.ts +353 -2
- package/src/components/MonthPicker/tests/MonthPicker.visual.cy.ts +37 -0
- package/src/components/MonthPicker/tests/__snapshots__/MonthPicker.spec.ts.snap +14 -8
- package/src/components/MonthPicker/tests/__snapshots__/month-picker-default.snap.png +0 -0
- package/src/components/MonthPicker/tests/__snapshots__/month-picker-disabled.snap.png +0 -0
- package/src/components/MonthPicker/tests/__snapshots__/month-picker-readonly.snap.png +0 -0
- package/src/components/MonthPicker/tests/__snapshots__/month-picker-with-value.snap.png +0 -0
- package/src/components/MonthPicker/types.ts +16 -0
- package/src/components/MonthPicker/useMonthPickerValidation.ts +64 -27
- package/src/components/NirField/NirField.mdx +120 -66
- package/src/components/NirField/NirField.stories.ts +256 -682
- package/src/components/NirField/NirField.vue +98 -32
- package/src/components/NirField/tests/NirField.spec.ts +135 -14
- package/src/components/NirField/tests/NirField.visual.cy.ts +28 -0
- package/src/components/NirField/tests/__snapshots__/nir-field-complex.snap.png +0 -0
- package/src/components/NirField/tests/__snapshots__/nir-field-default.snap.png +0 -0
- package/src/components/NirField/tests/__snapshots__/nir-field-with-key.snap.png +0 -0
- package/src/components/NirField/tests/useNirValidation.spec.ts +168 -0
- package/src/components/NirField/useNirValidation.ts +44 -19
- package/src/components/NirField/validation/Validation.stories.ts +866 -0
- package/src/components/NotFoundPage/tests/NotFoundPage.visual.cy.ts +28 -0
- package/src/components/NotFoundPage/tests/__snapshots__/NotFoundPage.spec.ts.snap +263 -245
- package/src/components/NotFoundPage/tests/__snapshots__/not-found-page-custom-btn.snap.png +0 -0
- package/src/components/NotFoundPage/tests/__snapshots__/not-found-page-default.snap.png +0 -0
- package/src/components/NotFoundPage/tests/__snapshots__/not-found-page-no-btn.snap.png +0 -0
- package/src/components/NotificationBar/NotificationBar.mdx +0 -1
- package/src/components/NotificationBar/tests/NotificationBar.visual.cy.ts +54 -0
- package/src/components/NotificationBar/tests/__snapshots__/notification-bar-bottom.snap.png +0 -0
- package/src/components/NotificationBar/tests/__snapshots__/notification-bar-info.snap.png +0 -0
- package/src/components/NotificationBar/tests/__snapshots__/notification-bar-multiple.snap.png +0 -0
- package/src/components/PageContainer/PageContainer.mdx +0 -1
- package/src/components/PageContainer/PageContainer.stories.ts +170 -2
- package/src/components/PageContainer/PageContainer.vue +63 -8
- package/src/components/PageContainer/tests/PageContainer.visual.cy.ts +33 -0
- package/src/components/PageContainer/tests/__snapshots__/PageContainer.spec.ts.snap +19 -11
- package/src/components/PageContainer/tests/__snapshots__/page-container-color.snap.png +0 -0
- package/src/components/PageContainer/tests/__snapshots__/page-container-default.snap.png +0 -0
- package/src/components/PageContainer/tests/__snapshots__/page-container-md.snap.png +0 -0
- package/src/components/PaginatedTable/PaginatedTable.mdx +0 -1
- package/src/components/PaginatedTable/accessibilite/Accessibility.mdx +99 -7
- package/src/components/PaginatedTable/tests/PaginatedTable.visual.cy.ts +41 -0
- package/src/components/PaginatedTable/tests/__snapshots__/paginated-table-default.snap.png +0 -0
- package/src/components/PaginatedTable/tests/__snapshots__/paginated-table-server.snap.png +0 -0
- package/src/components/PasswordField/PasswordField.mdx +5 -52
- package/src/components/PasswordField/PasswordField.stories.ts +74 -931
- package/src/components/PasswordField/PasswordField.vue +120 -191
- package/src/components/PasswordField/Validation/Validation.stories.ts +1295 -0
- package/src/components/PasswordField/locales.ts +2 -0
- package/src/components/PasswordField/tests/PasswordField.spec.ts +144 -106
- package/src/components/PasswordField/tests/PasswordField.visual.cy.ts +49 -0
- package/src/components/PasswordField/tests/__snapshots__/password-field-default.snap.png +0 -0
- package/src/components/PasswordField/tests/__snapshots__/password-field-disabled.snap.png +0 -0
- package/src/components/PasswordField/tests/__snapshots__/password-field-required.snap.png +0 -0
- package/src/components/PasswordField/tests/__snapshots__/password-field-underlined.snap.png +0 -0
- package/src/components/PasswordField/types.ts +17 -0
- package/src/components/PasswordField/usePasswordFieldValidation.ts +100 -0
- package/src/components/PeriodField/PeriodField.mdx +0 -1
- package/src/components/PeriodField/PeriodField.stories.ts +3 -1
- package/src/components/PeriodField/PeriodField.vue +1 -1
- package/src/components/PeriodField/tests/PeriodField.visual.cy.ts +39 -0
- package/src/components/PeriodField/tests/__snapshots__/period-field-default.snap.png +0 -0
- package/src/components/PeriodField/tests/__snapshots__/period-field-no-calendar.snap.png +0 -0
- package/src/components/PeriodField/tests/__snapshots__/period-field-required.snap.png +0 -0
- package/src/components/PeriodField/tests/__snapshots__/period-field-with-value.snap.png +0 -0
- package/src/components/PhoneField/PhoneField.mdx +2 -3
- package/src/components/PhoneField/PhoneField.stories.ts +227 -410
- package/src/components/PhoneField/PhoneField.vue +205 -439
- package/src/components/PhoneField/indicatifs.ts +1 -1
- package/src/components/PhoneField/locales.ts +7 -0
- package/src/components/PhoneField/tests/PhoneField.a11y.spec.ts +0 -1
- package/src/components/PhoneField/tests/PhoneField.spec.ts +518 -220
- package/src/components/PhoneField/tests/PhoneField.visual.cy.ts +28 -0
- package/src/components/PhoneField/tests/__snapshots__/phone-field-default.snap.png +0 -0
- package/src/components/PhoneField/tests/__snapshots__/phone-field-with-country-code.snap.png +0 -0
- package/src/components/PhoneField/tests/__snapshots__/phone-field-with-value.snap.png +0 -0
- package/src/components/PhoneField/types.ts +30 -0
- package/src/components/PhoneField/usePhoneFieldValidation.ts +119 -0
- package/src/components/PhoneField/usePhoneIndicatifs.ts +89 -0
- package/src/components/PhoneField/validation/validation.stories.ts +717 -0
- package/src/components/RangeField/RangeField.mdx +0 -1
- 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/RatingPicker.mdx +0 -1
- package/src/components/RatingPicker/tests/RatingPicker.visual.cy.ts +52 -0
- package/src/components/RatingPicker/tests/__snapshots__/rating-picker-emotion.snap.png +0 -0
- package/src/components/RatingPicker/tests/__snapshots__/rating-picker-number.snap.png +0 -0
- package/src/components/RatingPicker/tests/__snapshots__/rating-picker-readonly.snap.png +0 -0
- package/src/components/RatingPicker/tests/__snapshots__/rating-picker-stars.snap.png +0 -0
- package/src/components/SearchListField/SearchListField.mdx +1 -1
- package/src/components/SearchListField/SearchListField.stories.ts +1 -1
- package/src/components/SearchListField/SearchListField.vue +9 -4
- package/src/components/SearchListField/tests/SearchListField.spec.ts +127 -0
- package/src/components/SearchListField/tests/SearchListField.visual.cy.ts +35 -0
- package/src/components/SearchListField/tests/__snapshots__/search-list-field-default.snap.png +0 -0
- package/src/components/SearchListField/tests/__snapshots__/search-list-field-with-selection.snap.png +0 -0
- package/src/components/SkipLink/tests/SkipLink.visual.cy.ts +16 -0
- package/src/components/SkipLink/tests/__snapshots__/skip-link-focused.snap.png +0 -0
- package/src/components/SocialMediaLinks/SocialMediaLinks.mdx +0 -1
- package/src/components/SocialMediaLinks/tests/SocialMediaLinks.visual.cy.ts +33 -0
- package/src/components/SocialMediaLinks/tests/__snapshots__/social-media-links-default.snap.png +0 -0
- package/src/components/SocialMediaLinks/tests/__snapshots__/social-media-links-no-native-heading.snap.png +0 -0
- package/src/components/StatusPage/StatusPage.vue +1 -0
- package/src/components/StatusPage/tests/StatusPage.visual.cy.ts +47 -0
- package/src/components/StatusPage/tests/__snapshots__/StatusPage.spec.ts.snap +248 -230
- package/src/components/StatusPage/tests/__snapshots__/status-page-default.snap.png +0 -0
- package/src/components/StatusPage/tests/__snapshots__/status-page-full.snap.png +0 -0
- package/src/components/StatusPage/tests/__snapshots__/status-page-no-btn.snap.png +0 -0
- package/src/components/SubHeader/SubHeader.mdx +5 -6
- package/src/components/SubHeader/tests/SubHeader.visual.cy.ts +48 -0
- package/src/components/SubHeader/tests/__snapshots__/sub-header-default.snap.png +0 -0
- package/src/components/SubHeader/tests/__snapshots__/sub-header-loading.snap.png +0 -0
- package/src/components/SubHeader/tests/__snapshots__/sub-header-no-back-btn.snap.png +0 -0
- package/src/components/SubHeader/tests/__snapshots__/sub-header-with-subtitle.snap.png +0 -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/SyHeading/tests/SyHeading.visual.cy.ts +33 -0
- package/src/components/SyHeading/tests/__snapshots__/sy-heading-level-1.snap.png +0 -0
- package/src/components/SyHeading/tests/__snapshots__/sy-heading-level-2.snap.png +0 -0
- package/src/components/SyHeading/tests/__snapshots__/sy-heading-level-3.snap.png +0 -0
- package/src/components/SyTextArea/SyTextArea.stories.ts +25 -0
- package/src/components/SyTextArea/SyTextArea.vue +7 -0
- package/src/components/SyTextArea/composables/useSyTextAreaValidation.ts +1 -1
- package/src/components/SyTextArea/tests/SyTextArea.a11y.spec.ts +18 -0
- package/src/components/SyTextArea/tests/SyTextArea.spec.ts +135 -1
- package/src/components/SyTextArea/tests/SyTextArea.visual.cy.ts +48 -0
- package/src/components/SyTextArea/tests/__snapshots__/sy-textarea-default.snap.png +0 -0
- package/src/components/SyTextArea/tests/__snapshots__/sy-textarea-filled.snap.png +0 -0
- package/src/components/SyTextArea/tests/__snapshots__/sy-textarea-required.snap.png +0 -0
- package/src/components/SyTextArea/tests/__snapshots__/sy-textarea-with-value.snap.png +0 -0
- package/src/components/SyTextArea/validation/Validation.stories.ts +6 -86
- package/src/components/TableToolbar/tests/TableToolbar.visual.cy.ts +49 -0
- package/src/components/TableToolbar/tests/__snapshots__/table-toolbar-default.snap.png +0 -0
- package/src/components/TableToolbar/tests/__snapshots__/table-toolbar-filtered.snap.png +0 -0
- package/src/components/TableToolbar/tests/__snapshots__/table-toolbar-loading.snap.png +0 -0
- package/src/components/TableToolbar/tests/__snapshots__/table-toolbar-with-add-btn.snap.png +0 -0
- package/src/components/Tables/SyServerTable/SyServerTable.vue +3 -3
- package/src/components/Tables/SyServerTable/accessibilite/Accessibility.mdx +114 -7
- package/src/components/Tables/SyServerTable/tests/SyServerTable.visual.cy.ts +58 -0
- package/src/components/Tables/SyServerTable/tests/__snapshots__/sy-server-table-default.snap.png +0 -0
- package/src/components/Tables/SyServerTable/tests/__snapshots__/sy-server-table-loading.snap.png +0 -0
- package/src/components/Tables/SyServerTable/tests/__snapshots__/sy-server-table-with-select.snap.png +0 -0
- package/src/components/Tables/SyTable/accessibilite/Accessibility.mdx +116 -7
- package/src/components/Tables/SyTable/tests/SyTable.visual.cy.ts +70 -0
- package/src/components/Tables/SyTable/tests/__snapshots__/sy-table-compact.snap.png +0 -0
- package/src/components/Tables/SyTable/tests/__snapshots__/sy-table-default.snap.png +0 -0
- package/src/components/Tables/SyTable/tests/__snapshots__/sy-table-striped.snap.png +0 -0
- package/src/components/Tables/SyTable/tests/__snapshots__/sy-table-with-select.snap.png +0 -0
- package/src/components/Tables/common/tableStyles.scss +4 -4
- package/src/components/Tables/common/tests/SyTableFilter.spec.ts +19 -13
- package/src/components/Tables/common/tests/filterByRange.spec.ts +23 -22
- package/src/components/ToolbarContainer/tests/ToolbarContainer.visual.cy.ts +34 -0
- package/src/components/ToolbarContainer/tests/__snapshots__/toolbar-container-default.snap.png +0 -0
- package/src/components/ToolbarContainer/tests/__snapshots__/toolbar-container-links.snap.png +0 -0
- package/src/components/UploadWorkflow/UploadWorkflow.mdx +0 -1
- package/src/components/UploadWorkflow/tests/UploadWorkflow.spec.ts +1 -2
- package/src/components/UploadWorkflow/tests/UploadWorkflow.visual.cy.ts +39 -0
- package/src/components/UploadWorkflow/tests/__snapshots__/upload-workflow-default.snap.png +0 -0
- package/src/components/UploadWorkflow/tests/__snapshots__/upload-workflow-with-title.snap.png +0 -0
- package/src/components/UserMenuBtn/UserMenuBtn.mdx +0 -1
- package/src/components/UserMenuBtn/UserMenuBtn.stories.ts +177 -0
- package/src/components/UserMenuBtn/tests/UserMenuBtn.visual.cy.ts +42 -0
- package/src/components/UserMenuBtn/tests/__snapshots__/user-menu-btn-default.snap.png +0 -0
- package/src/components/UserMenuBtn/tests/__snapshots__/user-menu-btn-no-logout.snap.png +0 -0
- package/src/components/UserMenuBtn/tests/__snapshots__/user-menu-btn-with-name.snap.png +0 -0
- package/src/composables/unifyValidation/documentationValidationProps.ts +2 -2
- package/src/composables/unifyValidation/tests/documentationValidationProps.spec.ts +2 -2
- package/src/composables/unifyValidation/tests/useValidation.spec.ts +13 -1
- package/src/composables/unifyValidation/useValidation.ts +41 -31
- package/src/composables/useFilterable/useFilterable.spec.ts +105 -142
- package/src/composables/useFilterable/useFilterable.ts +6 -17
- package/src/composables/useFormFieldErrorHandling.ts +1 -1
- package/src/composables/validation/tests/useFormValidation.spec.ts +11 -2
- package/src/composables/validation/tests/useValidatable.spec.ts +16 -6
- package/src/composables/validation/tests/useValidation.spec.ts +2 -2
- package/src/composables/validation/useValidation.ts +1 -1
- package/src/composantsVuetify/VCard/VCard.mdx +12 -0
- package/src/composantsVuetify/VCard/v-card.stories.ts +283 -1
- package/src/composantsVuetify/VCarousel/VCarousel.mdx +74 -0
- package/src/composantsVuetify/VCarousel/v-carousel.stories.ts +531 -0
- package/src/composantsVuetify/VNavigationDrawer/VNavgationDrawer.mdx +53 -0
- package/src/composantsVuetify/VNavigationDrawer/v-navigation-drawer.stories.ts +310 -0
- package/src/composantsVuetify/VSlideGroup/VSlideGroup.mdx +105 -0
- package/src/composantsVuetify/VSlideGroup/v-slide-group.stories.ts +463 -0
- package/src/composantsVuetify/VStepper/VStepper.mdx +56 -0
- package/src/composantsVuetify/VStepper/v-stepper.stories.ts +563 -0
- package/src/designTokens/tokens/amelipro/apLightTheme.ts +1 -0
- package/src/designTokens/tokens/amelipro/apSemantic.ts +1 -1
- package/src/designTokens/tokens/baseColors.ts +1 -1
- package/src/designTokens/tokens/baseTokens.ts +18 -18
- package/src/designTokens/tokens/pa/paLightTheme.ts +1 -0
- package/src/stories/Accessibilite/DesignSystem/a11y-status.json +1 -1
- package/src/stories/Components/Components.stories.ts +95 -11
- package/src/stories/Demarrer/Releases.stories.ts +59 -2
- package/src/stories/DesignTokens/Arrondis.mdx +1 -1
- package/src/stories/DesignTokens/Colors.mdx +2 -0
- package/src/stories/DesignTokens/Correspondances.mdx +219 -0
- package/src/stories/DesignTokens/UtiliserLesTokens.mdx +235 -0
- package/src/stories/DesignTokens/colors.stories.ts +582 -569
- package/src/stories/EcoConception/EcoBestPracticesDoc.vue +930 -0
- package/src/stories/EcoConception/EcoBestPratices.mdx +38 -0
- package/src/stories/EcoConception/Introduction.mdx +8 -1
- package/src/stories/EcoConception/datas/bonnes_pratiques_essentielles.json +1018 -0
- package/src/stories/EcoConception/ecoconception-best-practices.stories.ts +20 -0
- package/src/stories/GuideDuDev/Amelipro.mdx +9 -1
- package/src/stories/GuideDuDev/Amelipro.stories.ts +1023 -168
- package/src/stories/GuideDuDev/PortailAgent.stories.ts +0 -1
- package/src/utils/functions/deepCopy/index.ts +2 -3
- package/dist/components/Customs/SyCheckbox/locales.d.ts +0 -3
- package/dist/components/LunarCalendar/useLunarCalendarRules.d.ts +0 -5
- package/dist/components/PhoneField/tests/types.d.ts +0 -18
- package/dist/components/SyHeading/SyHeading.a11y.test.d.ts +0 -1
- package/dist/components/SyHeading/SyHeading.test.d.ts +0 -1
- package/src/components/Customs/SyCheckbox/locales.ts +0 -3
- package/src/components/Customs/SyTextField/types.d.ts +0 -4
- package/src/components/LunarCalendar/tests/useLunarCalendarRules.spec.ts +0 -184
- package/src/components/LunarCalendar/useLunarCalendarRules.ts +0 -96
- package/src/components/PhoneField/tests/types.d.ts +0 -19
|
@@ -0,0 +1,563 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
+
import {
|
|
3
|
+
VStepper,
|
|
4
|
+
VStepperHeader,
|
|
5
|
+
VStepperItem,
|
|
6
|
+
VStepperWindow,
|
|
7
|
+
VStepperWindowItem,
|
|
8
|
+
VStepperActions,
|
|
9
|
+
} from 'vuetify/components'
|
|
10
|
+
import { ref } from 'vue'
|
|
11
|
+
|
|
12
|
+
const meta: Meta<typeof VStepper> = {
|
|
13
|
+
title: 'Composants/Composants Vuetify/VStepper',
|
|
14
|
+
tags: ['!dev'],
|
|
15
|
+
component: VStepper,
|
|
16
|
+
parameters: {
|
|
17
|
+
docs: {
|
|
18
|
+
source: {
|
|
19
|
+
transform: (src: string) =>
|
|
20
|
+
src
|
|
21
|
+
.replace(/VStepper/g, 'v-stepper')
|
|
22
|
+
.replace(/VStepperHeader/g, 'v-stepper-header')
|
|
23
|
+
.replace(/VStepperItem/g, 'v-stepper-item')
|
|
24
|
+
.replace(/VStepperWindow/g, 'v-stepper-window')
|
|
25
|
+
.replace(/VStepperWindowItem/g, 'v-stepper-window-item')
|
|
26
|
+
.replace(/VStepperActions/g, 'v-stepper-actions'),
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
argTypes: {
|
|
31
|
+
color: {
|
|
32
|
+
control: { type: 'text' },
|
|
33
|
+
description: 'Couleur du stepper',
|
|
34
|
+
},
|
|
35
|
+
disabled: {
|
|
36
|
+
control: { type: 'boolean' },
|
|
37
|
+
description: 'Désactive le stepper',
|
|
38
|
+
},
|
|
39
|
+
altLabels: {
|
|
40
|
+
control: { type: 'boolean' },
|
|
41
|
+
description: 'Affiche les labels en dessous des étapes',
|
|
42
|
+
},
|
|
43
|
+
flat: {
|
|
44
|
+
control: { type: 'boolean' },
|
|
45
|
+
description: 'Supprime l\'élévation du stepper',
|
|
46
|
+
},
|
|
47
|
+
hideActions: {
|
|
48
|
+
control: { type: 'boolean' },
|
|
49
|
+
description: 'Masque les boutons d\'action',
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export default meta
|
|
55
|
+
|
|
56
|
+
type Story = StoryObj<typeof VStepper>
|
|
57
|
+
|
|
58
|
+
// Primary
|
|
59
|
+
|
|
60
|
+
export const Primary: Story = {
|
|
61
|
+
render: args => ({
|
|
62
|
+
components: {
|
|
63
|
+
VStepper,
|
|
64
|
+
VStepperHeader,
|
|
65
|
+
VStepperItem,
|
|
66
|
+
VStepperWindow,
|
|
67
|
+
VStepperWindowItem,
|
|
68
|
+
VStepperActions,
|
|
69
|
+
},
|
|
70
|
+
setup() {
|
|
71
|
+
const step = ref(1)
|
|
72
|
+
return { args, step }
|
|
73
|
+
},
|
|
74
|
+
template: `
|
|
75
|
+
<VStepper v-bind="args" v-model="step">
|
|
76
|
+
<template #default="{ prev, next }">
|
|
77
|
+
<VStepperHeader>
|
|
78
|
+
<VStepperItem title="Étape 1" :value="1" color="primary" />
|
|
79
|
+
<VStepperItem title="Étape 2" :value="2" color="primary" />
|
|
80
|
+
<VStepperItem title="Étape 3" :value="3" color="primary" />
|
|
81
|
+
</VStepperHeader>
|
|
82
|
+
|
|
83
|
+
<VStepperWindow>
|
|
84
|
+
<VStepperWindowItem :value="1">
|
|
85
|
+
<div style="padding: 24px;">
|
|
86
|
+
<h3>Contenu de l'étape 1</h3>
|
|
87
|
+
<p>Ceci est le contenu de la première étape.</p>
|
|
88
|
+
</div>
|
|
89
|
+
</VStepperWindowItem>
|
|
90
|
+
|
|
91
|
+
<VStepperWindowItem :value="2">
|
|
92
|
+
<div style="padding: 24px;">
|
|
93
|
+
<h3>Contenu de l'étape 2</h3>
|
|
94
|
+
<p>Ceci est le contenu de la deuxième étape.</p>
|
|
95
|
+
</div>
|
|
96
|
+
</VStepperWindowItem>
|
|
97
|
+
|
|
98
|
+
<VStepperWindowItem :value="3">
|
|
99
|
+
<div style="padding: 24px;">
|
|
100
|
+
<h3>Contenu de l'étape 3</h3>
|
|
101
|
+
<p>Ceci est le contenu de la troisième étape.</p>
|
|
102
|
+
</div>
|
|
103
|
+
</VStepperWindowItem>
|
|
104
|
+
</VStepperWindow>
|
|
105
|
+
|
|
106
|
+
<VStepperActions
|
|
107
|
+
@click:prev="prev"
|
|
108
|
+
@click:next="next"
|
|
109
|
+
prev-text="Précédent"
|
|
110
|
+
next-text="Suivant"
|
|
111
|
+
/>
|
|
112
|
+
</template>
|
|
113
|
+
</VStepper>
|
|
114
|
+
`,
|
|
115
|
+
}),
|
|
116
|
+
args: {
|
|
117
|
+
color: 'primary',
|
|
118
|
+
},
|
|
119
|
+
parameters: {
|
|
120
|
+
docs: {
|
|
121
|
+
source: {
|
|
122
|
+
code: `<v-stepper v-model="step" color="primary">
|
|
123
|
+
<template #default="{ prev, next }">
|
|
124
|
+
<v-stepper-header>
|
|
125
|
+
<v-stepper-item title="Étape 1" :value="1" color="primary" />
|
|
126
|
+
<v-stepper-item title="Étape 2" :value="2" color="primary" />
|
|
127
|
+
<v-stepper-item title="Étape 3" :value="3" color="primary" />
|
|
128
|
+
</v-stepper-header>
|
|
129
|
+
|
|
130
|
+
<v-stepper-window>
|
|
131
|
+
<!-- contenu -->
|
|
132
|
+
</v-stepper-window>
|
|
133
|
+
|
|
134
|
+
<v-stepper-actions
|
|
135
|
+
@click:prev="prev"
|
|
136
|
+
@click:next="next"
|
|
137
|
+
prev-text="Précédent"
|
|
138
|
+
next-text="Suivant"
|
|
139
|
+
/>
|
|
140
|
+
</template>
|
|
141
|
+
</v-stepper>`,
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export const PrimaryAltLabels: Story = {
|
|
148
|
+
render: args => ({
|
|
149
|
+
components: {
|
|
150
|
+
VStepper,
|
|
151
|
+
VStepperHeader,
|
|
152
|
+
VStepperItem,
|
|
153
|
+
VStepperWindow,
|
|
154
|
+
VStepperWindowItem,
|
|
155
|
+
VStepperActions,
|
|
156
|
+
},
|
|
157
|
+
setup() {
|
|
158
|
+
const step = ref(2)
|
|
159
|
+
return { args, step }
|
|
160
|
+
},
|
|
161
|
+
template: `
|
|
162
|
+
<VStepper v-bind="args" v-model="step">
|
|
163
|
+
<template #default="{ prev, next }">
|
|
164
|
+
<VStepperHeader>
|
|
165
|
+
<VStepperItem title="Étape 1" subtitle="Description" :value="1" color="primary" />
|
|
166
|
+
<VStepperItem title="Étape 2" subtitle="Description" :value="2" color="primary" />
|
|
167
|
+
<VStepperItem title="Étape 3" subtitle="Description" :value="3" color="primary" />
|
|
168
|
+
</VStepperHeader>
|
|
169
|
+
|
|
170
|
+
<VStepperWindow>
|
|
171
|
+
<VStepperWindowItem :value="1">
|
|
172
|
+
<div style="padding: 24px;">
|
|
173
|
+
<h3>Contenu de l'étape 1</h3>
|
|
174
|
+
<p>Labels alternatifs affichés en dessous.</p>
|
|
175
|
+
</div>
|
|
176
|
+
</VStepperWindowItem>
|
|
177
|
+
|
|
178
|
+
<VStepperWindowItem :value="2">
|
|
179
|
+
<div style="padding: 24px;">
|
|
180
|
+
<h3>Contenu de l'étape 2</h3>
|
|
181
|
+
<p>Labels alternatifs affichés en dessous.</p>
|
|
182
|
+
</div>
|
|
183
|
+
</VStepperWindowItem>
|
|
184
|
+
|
|
185
|
+
<VStepperWindowItem :value="3">
|
|
186
|
+
<div style="padding: 24px;">
|
|
187
|
+
<h3>Contenu de l'étape 3</h3>
|
|
188
|
+
<p>Labels alternatifs affichés en dessous.</p>
|
|
189
|
+
</div>
|
|
190
|
+
</VStepperWindowItem>
|
|
191
|
+
</VStepperWindow>
|
|
192
|
+
|
|
193
|
+
<VStepperActions
|
|
194
|
+
@click:prev="prev"
|
|
195
|
+
@click:next="next"
|
|
196
|
+
prev-text="Précédent"
|
|
197
|
+
next-text="Suivant"
|
|
198
|
+
/>
|
|
199
|
+
</template>
|
|
200
|
+
</VStepper>
|
|
201
|
+
`,
|
|
202
|
+
}),
|
|
203
|
+
args: {
|
|
204
|
+
color: 'primary',
|
|
205
|
+
altLabels: true,
|
|
206
|
+
},
|
|
207
|
+
parameters: {
|
|
208
|
+
docs: {
|
|
209
|
+
source: {
|
|
210
|
+
code: `<v-stepper v-model="step" color="primary" alt-labels>
|
|
211
|
+
<template #default="{ prev, next }">
|
|
212
|
+
<!-- contenu -->
|
|
213
|
+
<v-stepper-actions
|
|
214
|
+
@click:prev="prev"
|
|
215
|
+
@click:next="next"
|
|
216
|
+
prev-text="Précédent"
|
|
217
|
+
next-text="Suivant"
|
|
218
|
+
/>
|
|
219
|
+
</template>
|
|
220
|
+
</v-stepper>`,
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
},
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export const PrimaryFlat: Story = {
|
|
227
|
+
render: args => ({
|
|
228
|
+
components: {
|
|
229
|
+
VStepper,
|
|
230
|
+
VStepperHeader,
|
|
231
|
+
VStepperItem,
|
|
232
|
+
VStepperWindow,
|
|
233
|
+
VStepperWindowItem,
|
|
234
|
+
VStepperActions,
|
|
235
|
+
},
|
|
236
|
+
setup() {
|
|
237
|
+
const step = ref(3)
|
|
238
|
+
return { args, step }
|
|
239
|
+
},
|
|
240
|
+
template: `
|
|
241
|
+
<VStepper v-bind="args" v-model="step">
|
|
242
|
+
<template #default="{ prev, next }">
|
|
243
|
+
<VStepperHeader>
|
|
244
|
+
<VStepperItem title="Étape 1" :value="1" color="primary" />
|
|
245
|
+
<VStepperItem title="Étape 2" :value="2" color="primary" />
|
|
246
|
+
<VStepperItem title="Étape 3" :value="3" color="primary" />
|
|
247
|
+
</VStepperHeader>
|
|
248
|
+
|
|
249
|
+
<VStepperWindow>
|
|
250
|
+
<VStepperWindowItem :value="1">
|
|
251
|
+
<div style="padding: 24px;">
|
|
252
|
+
<h3>Contenu de l'étape 1</h3>
|
|
253
|
+
<p>Stepper sans élévation (flat).</p>
|
|
254
|
+
</div>
|
|
255
|
+
</VStepperWindowItem>
|
|
256
|
+
|
|
257
|
+
<VStepperWindowItem :value="2">
|
|
258
|
+
<div style="padding: 24px;">
|
|
259
|
+
<h3>Contenu de l'étape 2</h3>
|
|
260
|
+
<p>Stepper sans élévation (flat).</p>
|
|
261
|
+
</div>
|
|
262
|
+
</VStepperWindowItem>
|
|
263
|
+
|
|
264
|
+
<VStepperWindowItem :value="3">
|
|
265
|
+
<div style="padding: 24px;">
|
|
266
|
+
<h3>Contenu de l'étape 3</h3>
|
|
267
|
+
<p>Stepper sans élévation (flat).</p>
|
|
268
|
+
</div>
|
|
269
|
+
</VStepperWindowItem>
|
|
270
|
+
</VStepperWindow>
|
|
271
|
+
|
|
272
|
+
<VStepperActions
|
|
273
|
+
@click:prev="prev"
|
|
274
|
+
@click:next="next"
|
|
275
|
+
prev-text="Précédent"
|
|
276
|
+
next-text="Suivant"
|
|
277
|
+
/>
|
|
278
|
+
</template>
|
|
279
|
+
</VStepper>
|
|
280
|
+
`,
|
|
281
|
+
}),
|
|
282
|
+
args: {
|
|
283
|
+
color: 'primary',
|
|
284
|
+
flat: true,
|
|
285
|
+
},
|
|
286
|
+
parameters: {
|
|
287
|
+
docs: {
|
|
288
|
+
source: {
|
|
289
|
+
code: `<v-stepper v-model="step" color="primary" flat>
|
|
290
|
+
<template #default="{ prev, next }">
|
|
291
|
+
<!-- contenu -->
|
|
292
|
+
<v-stepper-actions
|
|
293
|
+
@click:prev="prev"
|
|
294
|
+
@click:next="next"
|
|
295
|
+
prev-text="Précédent"
|
|
296
|
+
next-text="Suivant"
|
|
297
|
+
/>
|
|
298
|
+
</template>
|
|
299
|
+
</v-stepper>`,
|
|
300
|
+
},
|
|
301
|
+
},
|
|
302
|
+
},
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export const PrimaryDisabled: Story = {
|
|
306
|
+
render: args => ({
|
|
307
|
+
components: {
|
|
308
|
+
VStepper,
|
|
309
|
+
VStepperHeader,
|
|
310
|
+
VStepperItem,
|
|
311
|
+
VStepperWindow,
|
|
312
|
+
VStepperWindowItem,
|
|
313
|
+
VStepperActions,
|
|
314
|
+
},
|
|
315
|
+
setup() {
|
|
316
|
+
const step = ref(2)
|
|
317
|
+
return { args, step }
|
|
318
|
+
},
|
|
319
|
+
template: `
|
|
320
|
+
<VStepper v-bind="args" v-model="step">
|
|
321
|
+
<template #default="{ prev, next }">
|
|
322
|
+
<VStepperHeader>
|
|
323
|
+
<VStepperItem title="Étape 1" :value="1" color="primary" />
|
|
324
|
+
<VStepperItem title="Étape 2" :value="2" color="primary" />
|
|
325
|
+
<VStepperItem title="Étape 3" :value="3" color="primary" />
|
|
326
|
+
</VStepperHeader>
|
|
327
|
+
|
|
328
|
+
<VStepperWindow>
|
|
329
|
+
<VStepperWindowItem :value="1">
|
|
330
|
+
<div style="padding: 24px;">
|
|
331
|
+
<h3>Contenu de l'étape 1</h3>
|
|
332
|
+
<p>Stepper désactivé.</p>
|
|
333
|
+
</div>
|
|
334
|
+
</VStepperWindowItem>
|
|
335
|
+
|
|
336
|
+
<VStepperWindowItem :value="2">
|
|
337
|
+
<div style="padding: 24px;">
|
|
338
|
+
<h3>Contenu de l'étape 2</h3>
|
|
339
|
+
<p>Stepper désactivé - Toutes les interactions sont désactivées.</p>
|
|
340
|
+
</div>
|
|
341
|
+
</VStepperWindowItem>
|
|
342
|
+
|
|
343
|
+
<VStepperWindowItem :value="3">
|
|
344
|
+
<div style="padding: 24px;">
|
|
345
|
+
<h3>Contenu de l'étape 3</h3>
|
|
346
|
+
<p>Stepper désactivé.</p>
|
|
347
|
+
</div>
|
|
348
|
+
</VStepperWindowItem>
|
|
349
|
+
</VStepperWindow>
|
|
350
|
+
|
|
351
|
+
<VStepperActions
|
|
352
|
+
@click:prev="prev"
|
|
353
|
+
@click:next="next"
|
|
354
|
+
prev-text="Précédent"
|
|
355
|
+
next-text="Suivant"
|
|
356
|
+
/>
|
|
357
|
+
</template>
|
|
358
|
+
</VStepper>
|
|
359
|
+
`,
|
|
360
|
+
}),
|
|
361
|
+
args: {
|
|
362
|
+
color: 'primary',
|
|
363
|
+
disabled: true,
|
|
364
|
+
},
|
|
365
|
+
parameters: {
|
|
366
|
+
docs: {
|
|
367
|
+
source: {
|
|
368
|
+
code: `<v-stepper v-model="step" color="primary" disabled>
|
|
369
|
+
<template #default="{ prev, next }">
|
|
370
|
+
<!-- contenu -->
|
|
371
|
+
<v-stepper-actions
|
|
372
|
+
@click:prev="prev"
|
|
373
|
+
@click:next="next"
|
|
374
|
+
prev-text="Précédent"
|
|
375
|
+
next-text="Suivant"
|
|
376
|
+
/>
|
|
377
|
+
</template>
|
|
378
|
+
</v-stepper>`,
|
|
379
|
+
},
|
|
380
|
+
},
|
|
381
|
+
},
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
export const PrimaryWithIcons: Story = {
|
|
385
|
+
render: args => ({
|
|
386
|
+
components: {
|
|
387
|
+
VStepper,
|
|
388
|
+
VStepperHeader,
|
|
389
|
+
VStepperItem,
|
|
390
|
+
VStepperWindow,
|
|
391
|
+
VStepperWindowItem,
|
|
392
|
+
VStepperActions,
|
|
393
|
+
},
|
|
394
|
+
setup() {
|
|
395
|
+
const step = ref(2)
|
|
396
|
+
return { args, step }
|
|
397
|
+
},
|
|
398
|
+
template: `
|
|
399
|
+
<VStepper v-bind="args" v-model="step">
|
|
400
|
+
<template #default="{ prev, next }">
|
|
401
|
+
<VStepperHeader>
|
|
402
|
+
<VStepperItem title="Informations" :value="1" color="primary">
|
|
403
|
+
<template v-slot:icon>
|
|
404
|
+
<span style="font-size: 20px;">👤</span>
|
|
405
|
+
</template>
|
|
406
|
+
</VStepperItem>
|
|
407
|
+
<VStepperItem title="Adresse" :value="2" color="primary">
|
|
408
|
+
<template v-slot:icon>
|
|
409
|
+
<span style="font-size: 20px;">📍</span>
|
|
410
|
+
</template>
|
|
411
|
+
</VStepperItem>
|
|
412
|
+
<VStepperItem title="Confirmation" :value="3" color="primary">
|
|
413
|
+
<template v-slot:icon>
|
|
414
|
+
<span style="font-size: 20px;">✓</span>
|
|
415
|
+
</template>
|
|
416
|
+
</VStepperItem>
|
|
417
|
+
</VStepperHeader>
|
|
418
|
+
|
|
419
|
+
<VStepperWindow>
|
|
420
|
+
<VStepperWindowItem :value="1">
|
|
421
|
+
<div style="padding: 24px;">
|
|
422
|
+
<h3>Informations personnelles</h3>
|
|
423
|
+
<p>Saisissez vos informations personnelles.</p>
|
|
424
|
+
</div>
|
|
425
|
+
</VStepperWindowItem>
|
|
426
|
+
|
|
427
|
+
<VStepperWindowItem :value="2">
|
|
428
|
+
<div style="padding: 24px;">
|
|
429
|
+
<h3>Adresse</h3>
|
|
430
|
+
<p>Saisissez votre adresse.</p>
|
|
431
|
+
</div>
|
|
432
|
+
</VStepperWindowItem>
|
|
433
|
+
|
|
434
|
+
<VStepperWindowItem :value="3">
|
|
435
|
+
<div style="padding: 24px;">
|
|
436
|
+
<h3>Confirmation</h3>
|
|
437
|
+
<p>Vérifiez et confirmez vos informations.</p>
|
|
438
|
+
</div>
|
|
439
|
+
</VStepperWindowItem>
|
|
440
|
+
</VStepperWindow>
|
|
441
|
+
|
|
442
|
+
<VStepperActions
|
|
443
|
+
@click:prev="prev"
|
|
444
|
+
@click:next="next"
|
|
445
|
+
prev-text="Précédent"
|
|
446
|
+
next-text="Suivant"
|
|
447
|
+
/>
|
|
448
|
+
</template>
|
|
449
|
+
</VStepper>
|
|
450
|
+
`,
|
|
451
|
+
}),
|
|
452
|
+
args: {
|
|
453
|
+
color: 'primary',
|
|
454
|
+
},
|
|
455
|
+
parameters: {
|
|
456
|
+
docs: {
|
|
457
|
+
source: {
|
|
458
|
+
code: `<v-stepper v-model="step" color="primary">
|
|
459
|
+
<template #default="{ prev, next }">
|
|
460
|
+
<v-stepper-header>
|
|
461
|
+
<v-stepper-item title="Informations" :value="1" color="primary">
|
|
462
|
+
<template v-slot:icon>
|
|
463
|
+
<span style="font-size: 20px;">👤</span>
|
|
464
|
+
</template>
|
|
465
|
+
</v-stepper-item>
|
|
466
|
+
<!-- ... autres items avec icônes -->
|
|
467
|
+
</v-stepper-header>
|
|
468
|
+
<!-- Contenu et actions -->
|
|
469
|
+
<v-stepper-actions
|
|
470
|
+
@click:prev="prev"
|
|
471
|
+
@click:next="next"
|
|
472
|
+
prev-text="Précédent"
|
|
473
|
+
next-text="Suivant"
|
|
474
|
+
/>
|
|
475
|
+
</template>
|
|
476
|
+
</v-stepper>`,
|
|
477
|
+
},
|
|
478
|
+
},
|
|
479
|
+
},
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
export const PrimaryWithError: Story = {
|
|
483
|
+
render: args => ({
|
|
484
|
+
components: {
|
|
485
|
+
VStepper,
|
|
486
|
+
VStepperHeader,
|
|
487
|
+
VStepperItem,
|
|
488
|
+
VStepperWindow,
|
|
489
|
+
VStepperWindowItem,
|
|
490
|
+
VStepperActions,
|
|
491
|
+
},
|
|
492
|
+
setup() {
|
|
493
|
+
const step = ref(2)
|
|
494
|
+
return { args, step }
|
|
495
|
+
},
|
|
496
|
+
template: `
|
|
497
|
+
<VStepper v-bind="args" v-model="step">
|
|
498
|
+
<template #default="{ prev, next }">
|
|
499
|
+
<VStepperHeader>
|
|
500
|
+
<VStepperItem title="Étape 1" :value="1" color="primary" complete />
|
|
501
|
+
<VStepperItem title="Étape 2" :value="2" color="primary" error />
|
|
502
|
+
<VStepperItem title="Étape 3" :value="3" color="primary" />
|
|
503
|
+
</VStepperHeader>
|
|
504
|
+
|
|
505
|
+
<VStepperWindow>
|
|
506
|
+
<VStepperWindowItem :value="1">
|
|
507
|
+
<div style="padding: 24px;">
|
|
508
|
+
<h3>Contenu de l'étape 1</h3>
|
|
509
|
+
<p>Cette étape est complétée.</p>
|
|
510
|
+
</div>
|
|
511
|
+
</VStepperWindowItem>
|
|
512
|
+
|
|
513
|
+
<VStepperWindowItem :value="2">
|
|
514
|
+
<div style="padding: 24px;">
|
|
515
|
+
<h3>Contenu de l'étape 2</h3>
|
|
516
|
+
<p style="color: rgb(var(--v-theme-error));">Cette étape contient des erreurs.</p>
|
|
517
|
+
</div>
|
|
518
|
+
</VStepperWindowItem>
|
|
519
|
+
|
|
520
|
+
<VStepperWindowItem :value="3">
|
|
521
|
+
<div style="padding: 24px;">
|
|
522
|
+
<h3>Contenu de l'étape 3</h3>
|
|
523
|
+
<p>Ceci est le contenu de la troisième étape.</p>
|
|
524
|
+
</div>
|
|
525
|
+
</VStepperWindowItem>
|
|
526
|
+
</VStepperWindow>
|
|
527
|
+
|
|
528
|
+
<VStepperActions
|
|
529
|
+
@click:prev="prev"
|
|
530
|
+
@click:next="next"
|
|
531
|
+
prev-text="Précédent"
|
|
532
|
+
next-text="Suivant"
|
|
533
|
+
/>
|
|
534
|
+
</template>
|
|
535
|
+
</VStepper>
|
|
536
|
+
`,
|
|
537
|
+
}),
|
|
538
|
+
args: {
|
|
539
|
+
color: 'primary',
|
|
540
|
+
},
|
|
541
|
+
parameters: {
|
|
542
|
+
docs: {
|
|
543
|
+
source: {
|
|
544
|
+
code: `<v-stepper v-model="step" color="primary">
|
|
545
|
+
<template #default="{ prev, next }">
|
|
546
|
+
<v-stepper-header>
|
|
547
|
+
<v-stepper-item title="Étape 1" :value="1" color="primary" complete />
|
|
548
|
+
<v-stepper-item title="Étape 2" :value="2" color="primary" error />
|
|
549
|
+
<v-stepper-item title="Étape 3" :value="3" color="primary" />
|
|
550
|
+
</v-stepper-header>
|
|
551
|
+
<!-- Contenu et actions -->
|
|
552
|
+
<v-stepper-actions
|
|
553
|
+
@click:prev="prev"
|
|
554
|
+
@click:next="next"
|
|
555
|
+
prev-text="Précédent"
|
|
556
|
+
next-text="Suivant"
|
|
557
|
+
/>
|
|
558
|
+
</template>
|
|
559
|
+
</v-stepper>`,
|
|
560
|
+
},
|
|
561
|
+
},
|
|
562
|
+
},
|
|
563
|
+
}
|
|
@@ -46,6 +46,7 @@ export const apLightTheme = {
|
|
|
46
46
|
// Feedback
|
|
47
47
|
info: baseTokens.color.parma.darken40,
|
|
48
48
|
infoVariant: baseTokens.color.parma.lighten80,
|
|
49
|
+
infoVariant90: baseTokens.color.parma.lighten90,
|
|
49
50
|
onInfo: baseTokens.color.white.base,
|
|
50
51
|
onInfoVariant: baseTokens.color.parma.darken60,
|
|
51
52
|
error: baseTokens.color.red.darken20,
|
|
@@ -11,7 +11,7 @@ export const apSemanticTokens = {
|
|
|
11
11
|
accent: apColorsTokens.cyan.darken20,
|
|
12
12
|
accentContrasted: apColorsTokens.cyan.darken60,
|
|
13
13
|
accentAlt: apColorsTokens.grey.base,
|
|
14
|
-
info: apColorsTokens.
|
|
14
|
+
info: apColorsTokens.parma.lighten80,
|
|
15
15
|
infoSubdued: apColorsTokens.blue.lighten90,
|
|
16
16
|
infoContrasted: apColorsTokens.parma.darken40,
|
|
17
17
|
success: apColorsTokens.forestGreen.lighten80,
|
|
@@ -123,7 +123,7 @@ export const baseColors = {
|
|
|
123
123
|
lighten38: 'rgba(255, 255, 255, 0.38)',
|
|
124
124
|
lighten40: 'rgba(255, 255, 255, 0.40)',
|
|
125
125
|
lighten70: 'rgba(255, 255, 255, 0.70)',
|
|
126
|
-
lighten8: 'rgba(255, 255, 255, 0.
|
|
126
|
+
lighten8: 'rgba(255, 255, 255, 0.08)',
|
|
127
127
|
base: '#ffffff',
|
|
128
128
|
},
|
|
129
129
|
}
|
|
@@ -156,37 +156,37 @@ export const baseTokens = {
|
|
|
156
156
|
lighten80: '#DDDEDE',
|
|
157
157
|
lighten90: '#EEEEEE',
|
|
158
158
|
lighten97: '#FAFAFA',
|
|
159
|
-
alpha40: 'rgba(152,155,155,0.
|
|
159
|
+
alpha40: 'rgba(152,155,155,0.4)',
|
|
160
160
|
},
|
|
161
161
|
white: {
|
|
162
162
|
base: '#FFFFFF',
|
|
163
|
-
alpha70: 'rgba(255,255,255,0.
|
|
164
|
-
alpha40: 'rgba(255,255,255,0.
|
|
165
|
-
alpha38: 'rgba(255,255,255,0.
|
|
166
|
-
alpha20: 'rgba(255,255,255,0.
|
|
167
|
-
alpha08: 'rgba(255,255,255,0.
|
|
163
|
+
alpha70: 'rgba(255,255,255,0.7)',
|
|
164
|
+
alpha40: 'rgba(255,255,255,0.4)',
|
|
165
|
+
alpha38: 'rgba(255,255,255,0.38)',
|
|
166
|
+
alpha20: 'rgba(255,255,255,0.2)',
|
|
167
|
+
alpha08: 'rgba(255,255,255,0.08)',
|
|
168
168
|
alpha00: 'rgba(255,255,255,0)',
|
|
169
169
|
},
|
|
170
170
|
transparentBlue: {
|
|
171
|
-
alpha40: 'rgba(12,65,154,0.
|
|
172
|
-
alpha20: 'rgba(12,65,154,0.
|
|
173
|
-
alpha18: 'rgba(12,65,154,0.
|
|
174
|
-
alpha08: 'rgba(12,65,154,0.
|
|
171
|
+
alpha40: 'rgba(12,65,154,0.4)',
|
|
172
|
+
alpha20: 'rgba(12,65,154,0.2)',
|
|
173
|
+
alpha18: 'rgba(12,65,154,0.18)',
|
|
174
|
+
alpha08: 'rgba(12,65,154,0.08)',
|
|
175
175
|
alpha00: 'rgba(12,65,154,0)',
|
|
176
176
|
},
|
|
177
177
|
transparentCyan: {
|
|
178
178
|
alpha00: 'rgba(0,132,178,0)',
|
|
179
|
-
alpha08: 'rgba(0,132,178,0.
|
|
180
|
-
alpha18: 'rgba(0,132,178,0.
|
|
181
|
-
alpha20: 'rgba(0,132,178,0.
|
|
182
|
-
alpha40: 'rgba(0,132,178,0.
|
|
179
|
+
alpha08: 'rgba(0,132,178,0.08)',
|
|
180
|
+
alpha18: 'rgba(0,132,178,0.18)',
|
|
181
|
+
alpha20: 'rgba(0,132,178,0.2)',
|
|
182
|
+
alpha40: 'rgba(0,132,178,0.4)',
|
|
183
183
|
},
|
|
184
184
|
transparentBlack: {
|
|
185
185
|
alpha00: 'rgba(0,0,0,0)',
|
|
186
|
-
alpha08: 'rgba(0,0,0,0.
|
|
187
|
-
alpha18: 'rgba(0,0,0,0.
|
|
188
|
-
alpha20: 'rgba(0,0,0,0.
|
|
189
|
-
alpha40: 'rgba(0,0,0,0.
|
|
186
|
+
alpha08: 'rgba(0,0,0,0.08)',
|
|
187
|
+
alpha18: 'rgba(0,0,0,0.18)',
|
|
188
|
+
alpha20: 'rgba(0,0,0,0.2)',
|
|
189
|
+
alpha40: 'rgba(0,0,0,0.4)',
|
|
190
190
|
},
|
|
191
191
|
amber: {
|
|
192
192
|
darken80: '#502C01',
|
|
@@ -46,6 +46,7 @@ export const paLightTheme = {
|
|
|
46
46
|
// Feedback
|
|
47
47
|
info: baseTokens.color.blue.base,
|
|
48
48
|
infoVariant: baseTokens.color.blue.lighten80,
|
|
49
|
+
infoVariant90: baseTokens.color.blue.lighten90,
|
|
49
50
|
onInfo: baseTokens.color.white.base,
|
|
50
51
|
onInfoVariant: baseTokens.color.blue.darken20,
|
|
51
52
|
error: baseTokens.color.orange.darken20,
|
|
@@ -568,7 +568,7 @@
|
|
|
568
568
|
"hasA11yDisabledInStories": false,
|
|
569
569
|
"mdxStatus": "Complète",
|
|
570
570
|
"isFullyCompliant": true,
|
|
571
|
-
"storybookTitle": "Composants/
|
|
571
|
+
"storybookTitle": "Composants/Filtres/SearchListField",
|
|
572
572
|
"hasManualAudit": true
|
|
573
573
|
},
|
|
574
574
|
{
|