@cnamts/synapse 0.0.11-alpha → 0.0.13-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/design-system-v3.js +5394 -3813
- package/dist/design-system-v3.umd.cjs +1 -1
- package/dist/src/components/Amelipro/types/types.d.ts +38 -0
- package/dist/src/components/CookieBanner/CookieBanner.d.ts +1 -1
- package/dist/src/components/Customs/SyInputSelect/SyInputSelect.d.ts +2 -0
- package/dist/src/components/Customs/SyTextField/SyTextField.d.ts +31 -23
- package/dist/src/components/Customs/SyTextField/types.d.ts +1 -0
- package/dist/src/components/DatePicker/DatePicker.d.ts +105 -102
- package/dist/src/components/DatePicker/DateTextInput.d.ts +82 -74
- package/dist/src/components/ErrorPage/ErrorPage.d.ts +1 -1
- package/dist/src/components/FileList/FileList.d.ts +1 -0
- package/dist/src/components/FileList/UploadItem/UploadItem.d.ts +1 -1
- package/dist/src/components/FilterInline/AccessibiliteItems.d.ts +30 -0
- package/dist/src/components/FilterInline/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/FilterSideBar/AccessibiliteItems.d.ts +29 -0
- package/dist/src/components/FilterSideBar/FilterSideBar.d.ts +31 -0
- package/dist/src/components/FilterSideBar/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/FilterSideBar/locales.d.ts +7 -0
- package/dist/src/components/LangBtn/LangBtn.d.ts +2 -2
- package/dist/src/components/NirField/NirField.d.ts +952 -0
- package/dist/src/components/NotificationBar/NotificationBar.d.ts +6 -6
- package/dist/src/components/PasswordField/PasswordField.d.ts +42 -8
- package/dist/src/components/PeriodField/PeriodField.d.ts +259 -235
- package/dist/src/components/PhoneField/PhoneField.d.ts +33 -3
- package/dist/src/components/RatingPicker/EmotionPicker/EmotionPicker.d.ts +1 -1
- package/dist/src/components/RatingPicker/NumberPicker/NumberPicker.d.ts +1 -1
- package/dist/src/components/RatingPicker/StarsPicker/StarsPicker.d.ts +1 -1
- package/dist/src/components/UploadWorkflow/AccessibiliteItems.d.ts +29 -0
- package/dist/src/components/UploadWorkflow/config.d.ts +29 -0
- package/dist/src/components/UploadWorkflow/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/UploadWorkflow/locales.d.ts +7 -0
- package/dist/src/components/UploadWorkflow/types.d.ts +19 -0
- package/dist/src/components/UploadWorkflow/useFileList.d.ts +10 -0
- package/dist/src/components/UploadWorkflow/useFileUploadJourney.d.ts +9 -0
- package/dist/src/components/Usages/Usages.d.ts +10 -0
- package/dist/src/components/index.d.ts +5 -0
- package/dist/src/composables/date/tests/useDateFormat.spec.d.ts +1 -0
- package/dist/src/composables/date/tests/useDateInitialization.spec.d.ts +1 -0
- package/dist/src/composables/date/tests/useDatePickerAccessibility.spec.d.ts +1 -0
- package/dist/src/composables/date/useDateFormat.d.ts +26 -0
- package/dist/src/composables/date/useDateInitialization.d.ts +18 -0
- package/dist/src/composables/date/useDatePickerAccessibility.d.ts +8 -0
- package/dist/src/composables/rules/useFieldValidation.d.ts +1 -0
- package/dist/src/composables/useFilterable/useFilterable.d.ts +1 -1
- package/dist/src/composables/validation/tests/useValidation.spec.d.ts +1 -0
- package/dist/src/composables/validation/useValidation.d.ts +40 -0
- package/dist/src/designTokens/index.d.ts +3 -1
- package/dist/src/main.d.ts +1 -0
- package/dist/src/utils/formatDate/index.d.ts +3 -0
- package/dist/src/utils/formatDate/tests/formatDate.spec.d.ts +1 -0
- package/dist/src/utils/functions/validation/isDateAfter/index.d.ts +2 -0
- package/dist/src/utils/functions/validation/isDateAfter/tests/isDateAfter.spec.d.ts +1 -0
- package/dist/src/utils/functions/validation/isDateBefore/index.d.ts +2 -0
- package/dist/src/utils/functions/validation/isDateBefore/tests/isDateBefore.spec.d.ts +1 -0
- package/dist/src/utils/functions/validation/isDateInRange/index.d.ts +3 -0
- package/dist/src/utils/functions/validation/isDateInRange/tests/isDateInRange.spec.d.ts +1 -0
- package/dist/src/utils/functions/validation/isDateValid/index.d.ts +9 -0
- package/dist/src/utils/functions/validation/isDateValid/tests/isDateValid.spec.d.ts +1 -0
- package/dist/src/utils/functions/validation/isEmailValid/tests/isEmailValid.spec.d.ts +1 -0
- package/dist/src/utils/functions/validation/isWeekend/index.d.ts +3 -0
- package/dist/src/utils/functions/validation/isWeekend/tests/isWeekend.spec.d.ts +1 -0
- package/dist/src/utils/parseDate/index.d.ts +3 -0
- package/dist/src/utils/parseDate/tests/parseDate.spec.d.ts +1 -0
- package/dist/src/utils/rules/doMatchPattern/index.d.ts +3 -0
- package/dist/src/utils/rules/doMatchPattern/tests/matchPattern.spec.d.ts +1 -0
- package/dist/src/utils/rules/index.d.ts +11 -0
- package/dist/src/utils/rules/isDateValid/index.d.ts +4 -0
- package/dist/src/utils/rules/isDateValid/tests/isDateValid.spec.d.ts +1 -0
- package/dist/src/utils/rules/isExactLength/index.d.ts +3 -0
- package/dist/src/utils/rules/isExactLength/locales.d.ts +2 -0
- package/dist/src/utils/rules/isExactLength/tests/exactLength.spec.d.ts +1 -0
- package/dist/src/utils/rules/isMaxLength/index.d.ts +3 -0
- package/dist/src/utils/rules/isMaxLength/locales.d.ts +2 -0
- package/dist/src/utils/rules/isMaxLength/tests/isMaxLength.spec.d.ts +1 -0
- package/dist/src/utils/rules/isMinLength/index.d.ts +3 -0
- package/dist/src/utils/rules/isMinLength/locales.d.ts +2 -0
- package/dist/src/utils/rules/isMinLength/tests/isMinLength.spec.d.ts +1 -0
- package/dist/src/utils/rules/isNotAfterDate/index.d.ts +3 -0
- package/dist/src/utils/rules/isNotAfterDate/tests/isNotAfterDate.spec.d.ts +1 -0
- package/dist/src/utils/rules/isNotAfterToday/index.d.ts +4 -0
- package/dist/src/utils/rules/isNotAfterToday/locales.d.ts +2 -0
- package/dist/src/utils/rules/isNotAfterToday/tests/isNotAfterToday.spec.d.ts +1 -0
- package/dist/src/utils/rules/isNotBeforeDate/index.d.ts +3 -0
- package/dist/src/utils/rules/isNotBeforeDate/locales.d.ts +2 -0
- package/dist/src/utils/rules/isNotBeforeDate/tests/IsNotBeforeDate.spec.d.ts +1 -0
- package/dist/src/utils/rules/isNotBeforeToday/index.d.ts +4 -0
- package/dist/src/utils/rules/isNotBeforeToday/locales.d.ts +2 -0
- package/dist/src/utils/rules/isNotBeforeToday/tests/notBeforeToday.spec.d.ts +1 -0
- package/dist/src/utils/rules/isRequired/index.d.ts +4 -0
- package/dist/src/utils/rules/isRequired/locales.d.ts +2 -0
- package/dist/src/utils/rules/isRequired/tests/isRequred.spec.d.ts +1 -0
- package/dist/src/utils/rules/isValidEmail/index.d.ts +4 -0
- package/dist/src/utils/rules/isValidEmail/locales.d.ts +2 -0
- package/dist/src/utils/rules/isValidEmail/tests/isValidEmail.spec.d.ts +1 -0
- package/dist/src/vuetifyConfig.d.ts +81 -0
- package/dist/style.css +1 -1
- package/package.json +3 -1
- package/src/assets/_elevations.scss +89 -0
- package/src/assets/_fonts.scss +6 -0
- package/src/assets/_radius.scss +92 -0
- package/src/assets/_spacers.scss +149 -0
- package/src/assets/settings.scss +15 -3
- package/src/assets/tokens.scss +32 -29
- package/src/components/Amelipro/types/types.ts +40 -0
- package/src/components/ChipList/ChipList.stories.ts +26 -27
- package/src/components/ChipList/ChipList.vue +5 -1
- package/src/components/ChipList/config.ts +1 -0
- package/src/components/CookiesSelection/CookiesInformation/CookiesInformation.vue +2 -2
- package/src/components/Customs/SyBtnSelect/SyBtnSelect.mdx +1 -1
- package/src/components/Customs/SyInputSelect/SyInputSelect.mdx +1 -1
- package/src/components/Customs/SyInputSelect/SyInputSelect.stories.ts +65 -0
- package/src/components/Customs/SyInputSelect/SyInputSelect.vue +13 -3
- package/src/components/Customs/SySelect/SySelect.mdx +1 -1
- package/src/components/Customs/SySelect/SySelect.stories.ts +88 -5
- package/src/components/Customs/SySelect/SySelect.vue +55 -14
- package/src/components/Customs/SySelect/tests/SySelect.spec.ts +135 -2
- package/src/components/Customs/SyTextField/SyTextField.mdx +2 -2
- package/src/components/Customs/SyTextField/SyTextField.stories.ts +809 -79
- package/src/components/Customs/SyTextField/SyTextField.vue +135 -104
- package/src/components/Customs/SyTextField/tests/SyTextField.spec.ts +190 -38
- package/src/components/Customs/SyTextField/types.d.ts +1 -0
- package/src/components/DatePicker/DatePicker.stories.ts +177 -5
- package/src/components/DatePicker/DatePicker.vue +302 -233
- package/src/components/DatePicker/DateTextInput.vue +101 -246
- package/src/components/DatePicker/tests/DatePicker.spec.ts +123 -60
- package/src/components/DatePicker/tests/DateTextInput.spec.ts +202 -6
- package/src/components/FileList/Accessibilite.stories.ts +1 -1
- package/src/components/FileList/AccessibiliteItems.ts +22 -0
- package/src/components/FileList/FileList.vue +2 -1
- package/src/components/FileList/UploadItem/UploadItem.vue +10 -0
- package/src/components/FileUpload/FileUpload.stories.ts +93 -7
- package/src/components/FileUpload/FileUpload.vue +1 -0
- package/src/components/FileUpload/tests/FileUpload.spec.ts +4 -4
- package/src/components/FilterInline/Accessibilite.mdx +14 -0
- package/src/components/FilterInline/Accessibilite.stories.ts +216 -0
- package/src/components/FilterInline/AccessibiliteItems.ts +132 -0
- package/src/components/FilterInline/FilterInline.mdx +180 -34
- package/src/components/FilterInline/FilterInline.stories.ts +363 -6
- package/src/components/FilterInline/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/FilterSideBar/Accessibilite.mdx +14 -0
- package/src/components/FilterSideBar/Accessibilite.stories.ts +216 -0
- package/src/components/FilterSideBar/AccessibiliteItems.ts +153 -0
- package/src/components/FilterSideBar/FilterSideBar.mdx +237 -0
- package/src/components/FilterSideBar/FilterSideBar.stories.ts +798 -0
- package/src/components/FilterSideBar/FilterSideBar.vue +193 -0
- package/src/components/FilterSideBar/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/FilterSideBar/locales.ts +8 -0
- package/src/components/FilterSideBar/tests/FilterSideBar.spec.ts +305 -0
- package/src/components/FilterSideBar/tests/__snapshots__/FilterSideBar.spec.ts.snap +39 -0
- package/src/components/HeaderBar/Usages.mdx +1 -1
- package/src/components/NirField/NirField.stories.ts +738 -29
- package/src/components/NirField/NirField.vue +401 -359
- package/src/components/NirField/examples//342/200/257dataset/342/200/257.md +12 -0
- package/src/components/NirField/tests/NirField.spec.ts +88 -52
- package/src/components/NirField/tests/config.spec.ts +65 -0
- package/src/components/NotificationBar/Accessibilite.stories.ts +4 -0
- package/src/components/NotificationBar/NotificationBar.mdx +2 -2
- package/src/components/NotificationBar/NotificationBar.stories.ts +66 -13
- package/src/components/NotificationBar/NotificationBar.vue +42 -114
- package/src/components/NotificationBar/tests/NotificationBar.spec.ts +28 -33
- package/src/components/NotificationBar/tests/__snapshots__/NotificationBar.spec.ts.snap +1 -1
- package/src/components/PaginatedTable/PaginatedTable.vue +6 -10
- package/src/components/PaginatedTable/tests/__snapshots__/PaginatedTable.spec.ts.snap +4 -4
- package/src/components/PasswordField/PasswordField.mdx +129 -47
- package/src/components/PasswordField/PasswordField.stories.ts +1111 -120
- package/src/components/PasswordField/PasswordField.vue +212 -99
- package/src/components/PasswordField/tests/PasswordField.spec.ts +138 -9
- package/src/components/PeriodField/PeriodField.stories.ts +214 -118
- package/src/components/PeriodField/PeriodField.vue +238 -190
- package/src/components/PeriodField/tests/PeriodField.spec.ts +146 -0
- package/src/components/PhoneField/PhoneField.stories.ts +170 -0
- package/src/components/PhoneField/PhoneField.vue +76 -17
- package/src/components/PhoneField/indicatifs.ts +1 -1
- package/src/components/PhoneField/tests/PhoneField.spec.ts +40 -0
- package/src/components/RatingPicker/RatingPicker.stories.ts +7 -7
- package/src/components/SearchListField/SearchListField.stories.ts +1 -1
- package/src/components/UploadWorkflow/Accessibilite.mdx +14 -0
- package/src/components/UploadWorkflow/Accessibilite.stories.ts +216 -0
- package/src/components/UploadWorkflow/AccessibiliteItems.ts +192 -0
- package/src/components/UploadWorkflow/UploadWorkflow.mdx +75 -0
- package/src/components/UploadWorkflow/UploadWorkflow.stories.ts +943 -0
- package/src/components/UploadWorkflow/UploadWorkflow.vue +230 -0
- package/src/components/UploadWorkflow/config.ts +29 -0
- package/src/components/UploadWorkflow/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/UploadWorkflow/locales.ts +8 -0
- package/src/components/UploadWorkflow/tests/UploadWorkflow.spec.ts +257 -0
- package/src/components/UploadWorkflow/tests/__snapshots__/UploadWorkflow.spec.ts.snap +54 -0
- package/src/components/UploadWorkflow/types.ts +21 -0
- package/src/components/UploadWorkflow/useFileList.ts +84 -0
- package/src/components/UploadWorkflow/useFileUploadJourney.ts +18 -0
- package/src/components/Usages/tests/Usages.spec.ts +183 -0
- package/src/components/index.ts +5 -0
- package/src/composables/date/tests/useDateFormat.spec.ts +67 -0
- package/src/composables/date/tests/useDateInitialization.spec.ts +89 -0
- package/src/composables/date/tests/useDatePickerAccessibility.spec.ts +102 -0
- package/src/composables/date/useDateFormat.ts +94 -0
- package/src/composables/date/useDateInitialization.ts +92 -0
- package/src/composables/date/useDatePickerAccessibility.ts +78 -0
- package/src/composables/rules/tests/useFieldValidation.spec.ts +385 -4
- package/src/composables/rules/useFieldValidation.ts +5 -2
- package/src/composables/useFilterable/useFilterable.ts +5 -4
- package/src/composables/validation/tests/useValidation.spec.ts +154 -0
- package/src/composables/validation/useValidation.ts +180 -0
- package/src/designTokens/index.ts +4 -0
- package/src/main.ts +1 -0
- package/src/stories/Accessibilite/Aculturation/AuditDesignSystem.mdx +28 -0
- package/src/stories/Accessibilite/Aculturation/SensibilisationAccessibilite.mdx +2 -2
- package/src/stories/Accessibilite/Audit/RGAA.mdx +6 -6
- package/src/stories/Accessibilite/Introduction.mdx +2 -1
- package/src/stories/Accessibilite/KitDePreAudit/Echantillonnage.mdx +1 -1
- package/src/stories/Accessibilite/KitDePreAudit/Introduction.mdx +1 -1
- package/src/stories/Accessibilite/KitDePreAudit/Outils/Introduction.mdx +8 -11
- package/src/stories/Accessibilite/KitDePreAudit/Outils/LecteursDEcran.mdx +77 -0
- package/src/stories/Accessibilite/KitDePreAudit/Outils/Tanaguru.mdx +9 -3
- package/src/stories/Accessibilite/KitDePreAudit/Preaudit.mdx +2 -2
- package/src/stories/Demarrer/Accueil.mdx +1 -1
- package/src/stories/Demarrer/Introduction.stories.ts +3 -3
- package/src/stories/Demarrer/Releases.mdx +8 -0
- package/src/stories/Demarrer/Releases.stories.ts +66 -0
- package/src/stories/DesignTokens/Conteneurs.stories.ts +3 -3
- package/src/stories/DesignTokens/ThemePA.mdx +4 -30
- package/src/stories/GuideDuDev/LesBreackingChanges.mdx +36 -0
- package/src/stories/GuideDuDev/UtiliserLesRules.mdx +321 -78
- package/src/stories/GuideDuDev/moduleDeNotification.mdx +1 -1
- package/src/utils/formatDate/index.ts +6 -0
- package/src/utils/formatDate/tests/formatDate.spec.ts +18 -0
- package/src/utils/functions/validation/isDateAfter/index.ts +9 -0
- package/src/utils/functions/validation/isDateAfter/tests/isDateAfter.spec.ts +18 -0
- package/src/utils/functions/validation/isDateBefore/index.ts +9 -0
- package/src/utils/functions/validation/isDateBefore/tests/isDateBefore.spec.ts +23 -0
- package/src/utils/functions/validation/isDateInRange/index.ts +22 -0
- package/src/utils/functions/validation/isDateInRange/tests/isDateInRange.spec.ts +28 -0
- package/src/utils/functions/validation/isDateValid/index.ts +67 -0
- package/src/utils/functions/validation/isDateValid/tests/isDateValid.spec.ts +46 -0
- package/src/utils/functions/validation/isEmailValid/index.ts +9 -0
- package/src/utils/functions/validation/isWeekend/index.ts +10 -0
- package/src/utils/functions/validation/isWeekend/tests/isWeekend.spec.ts +16 -0
- package/src/utils/parseDate/index.ts +29 -0
- package/src/utils/parseDate/tests/parseDate.spec.ts +52 -0
- package/src/utils/rules/Rules.mdx +16 -0
- package/src/utils/rules/doMatchPattern/DoMachPattern.mdx +66 -0
- package/src/utils/rules/doMatchPattern/DoMatchPattern.stories.ts +106 -0
- package/src/utils/rules/doMatchPattern/index.ts +28 -0
- package/src/utils/rules/doMatchPattern/locales.ts +5 -0
- package/src/utils/rules/doMatchPattern/tests/matchPattern.spec.ts +38 -0
- package/src/utils/rules/index.ts +11 -0
- package/src/utils/rules/isDateValid/IsDateValid.mdx +87 -0
- package/src/utils/rules/isDateValid/IsDateValid.stories.ts +113 -0
- package/src/utils/rules/isDateValid/index.ts +32 -0
- package/src/utils/rules/isDateValid/locales.ts +10 -0
- package/src/utils/rules/isDateValid/tests/isDateValid.spec.ts +27 -0
- package/src/utils/rules/isExactLength/IsExactLenght.mdx +68 -0
- package/src/utils/rules/isExactLength/IsExactLength.stories.ts +151 -0
- package/src/utils/rules/{exactLength → isExactLength}/index.ts +2 -4
- package/src/utils/rules/isExactLength/tests/exactLength.spec.ts +48 -0
- package/src/utils/rules/isMaxLength/IsMaxLength.mdx +68 -0
- package/src/utils/rules/isMaxLength/IsMaxLength.stories.ts +152 -0
- package/src/utils/rules/isMaxLength/index.ts +30 -0
- package/src/utils/rules/isMaxLength/locales.ts +6 -0
- package/src/utils/rules/isMaxLength/tests/isMaxLength.spec.ts +42 -0
- package/src/utils/rules/isMinLength/IsMinLength.mdx +68 -0
- package/src/utils/rules/isMinLength/IsMinLength.stories.ts +152 -0
- package/src/utils/rules/isMinLength/index.ts +30 -0
- package/src/utils/rules/isMinLength/locales.ts +6 -0
- package/src/utils/rules/isMinLength/tests/isMinLength.spec.ts +42 -0
- package/src/utils/rules/isNotAfterDate/IsNotAfterDate.mdx +68 -0
- package/src/utils/rules/isNotAfterDate/IsNotAfterDate.stories.ts +109 -0
- package/src/utils/rules/isNotAfterDate/index.ts +25 -0
- package/src/utils/rules/isNotAfterDate/locales.ts +6 -0
- package/src/utils/rules/isNotAfterDate/tests/isNotAfterDate.spec.ts +25 -0
- package/src/utils/rules/isNotAfterToday/IsNotAfterToday.mdx +83 -0
- package/src/utils/rules/isNotAfterToday/IsNotAfterToday.stories.ts +110 -0
- package/src/utils/rules/isNotAfterToday/index.ts +28 -0
- package/src/utils/rules/isNotAfterToday/locales.ts +5 -0
- package/src/utils/rules/isNotAfterToday/tests/isNotAfterToday.spec.ts +30 -0
- package/src/utils/rules/isNotBeforeDate/IsNotBeforeDate.mdx +68 -0
- package/src/utils/rules/isNotBeforeDate/IsNotBeforeDate.stories.ts +114 -0
- package/src/utils/rules/isNotBeforeDate/index.ts +25 -0
- package/src/utils/rules/isNotBeforeDate/locales.ts +6 -0
- package/src/utils/rules/isNotBeforeDate/tests/IsNotBeforeDate.spec.ts +25 -0
- package/src/utils/rules/isNotBeforeToday/IsNotBeforeToday.mdx +83 -0
- package/src/utils/rules/isNotBeforeToday/IsNotBeforeToday.stories.ts +110 -0
- package/src/utils/rules/isNotBeforeToday/index.ts +28 -0
- package/src/utils/rules/isNotBeforeToday/locales.ts +5 -0
- package/src/utils/rules/isNotBeforeToday/tests/notBeforeToday.spec.ts +36 -0
- package/src/utils/rules/isRequired/IsRequired.mdx +81 -0
- package/src/utils/rules/isRequired/IsRequired.stories.ts +101 -0
- package/src/utils/rules/{required → isRequired}/index.ts +3 -3
- package/src/utils/rules/{required/tests/index.spec.ts → isRequired/tests/isRequred.spec.ts} +9 -9
- package/src/utils/rules/isValidEmail/IsValidEmail.mdx +81 -0
- package/src/utils/rules/isValidEmail/IsValidEmail.stories.ts +101 -0
- package/src/utils/rules/{email → isValidEmail}/index.ts +3 -5
- package/src/utils/rules/{email/tests/email.spec.ts → isValidEmail/tests/isValidEmail.spec.ts} +5 -5
- package/src/vuetifyConfig.ts +61 -0
- package/dist/src/utils/rules/email/index.d.ts +0 -4
- package/dist/src/utils/rules/exactLength/index.d.ts +0 -4
- package/dist/src/utils/rules/required/index.d.ts +0 -4
- package/dist/src/utils/rules/required/ruleMessageHelper.d.ts +0 -3
- package/src/components/Customs/SyTextField/tests/__snapshots__/SyTextField.spec.ts.snap +0 -58
- package/src/composables/useFilterable/__snapshots__/useFilterable.spec.ts.snap +0 -3
- package/src/utils/functions/isEmailValid/index.ts +0 -8
- package/src/utils/rules/required/ruleMessageHelper.ts +0 -14
- package/src/utils/rules/required/tests/rulesMessageHelper.spec.ts +0 -22
- /package/dist/src/{utils/functions/isEmailValid/tests/isEmailValid.spec.d.ts → components/FilterSideBar/tests/FilterSideBar.spec.d.ts} +0 -0
- /package/dist/src/{utils/rules/email/tests/email.spec.d.ts → components/NirField/tests/config.spec.d.ts} +0 -0
- /package/dist/src/{utils/rules/required/tests/index.spec.d.ts → components/UploadWorkflow/tests/UploadWorkflow.spec.d.ts} +0 -0
- /package/dist/src/{utils/rules/required/tests/rulesMessageHelper.spec.d.ts → components/Usages/tests/Usages.spec.d.ts} +0 -0
- /package/dist/src/utils/functions/{isEmailValid → validation/isEmailValid}/index.d.ts +0 -0
- /package/dist/src/utils/rules/{exactLength → doMatchPattern}/locales.d.ts +0 -0
- /package/dist/src/utils/rules/{email → isDateValid}/locales.d.ts +0 -0
- /package/dist/src/utils/rules/{required → isNotAfterDate}/locales.d.ts +0 -0
- /package/src/utils/functions/{isEmailValid → validation/isEmailValid}/tests/isEmailValid.spec.ts +0 -0
- /package/src/utils/rules/{exactLength → isExactLength}/locales.ts +0 -0
- /package/src/utils/rules/{required → isRequired}/locales.ts +0 -0
- /package/src/utils/rules/{email → isValidEmail}/locales.ts +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Controls, Canvas, Meta, Source } from '@storybook/blocks';
|
|
2
2
|
import * as FilterInlineStories from './FilterInline.stories.ts';
|
|
3
|
+
import * as FilterSideBarStories from '@/components/FilterSideBar/FilterSideBar.stories.ts';
|
|
3
4
|
|
|
4
5
|
<Meta of={FilterInlineStories} />
|
|
5
6
|
|
|
@@ -28,14 +29,6 @@ Vous pouvez modifier le formatage des puces en utilisant la propriété `chipFor
|
|
|
28
29
|
import { VSelect } from 'vuetify/components'
|
|
29
30
|
|
|
30
31
|
const filters = [
|
|
31
|
-
{
|
|
32
|
-
name: 'updated-at',
|
|
33
|
-
title: 'Mise à jour',
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
name: 'folder',
|
|
37
|
-
title: 'Type de dossier',
|
|
38
|
-
},
|
|
39
32
|
{
|
|
40
33
|
name: 'range-slider',
|
|
41
34
|
title: 'Intervalle',
|
|
@@ -47,35 +40,10 @@ Vous pouvez modifier le formatage des puces en utilisant la propriété `chipFor
|
|
|
47
40
|
],
|
|
48
41
|
},
|
|
49
42
|
]
|
|
50
|
-
|
|
51
|
-
const folderTypes = [
|
|
52
|
-
'AT',
|
|
53
|
-
'MP',
|
|
54
|
-
'Autre',
|
|
55
|
-
]
|
|
56
43
|
</script>
|
|
57
44
|
|
|
58
45
|
<template>
|
|
59
46
|
<FiltersInline v-model="filters">
|
|
60
|
-
<template #updated-at="{ props }">
|
|
61
|
-
<DatePicker
|
|
62
|
-
v-bind="props"
|
|
63
|
-
label="Date de mise à jour"
|
|
64
|
-
variant="outlined"
|
|
65
|
-
/>
|
|
66
|
-
</template>
|
|
67
|
-
|
|
68
|
-
<template #folder="{ props }">
|
|
69
|
-
<VSelect
|
|
70
|
-
v-bind="props"
|
|
71
|
-
:items="folderTypes"
|
|
72
|
-
label="Type de dossier"
|
|
73
|
-
multiple
|
|
74
|
-
variant="outlined"
|
|
75
|
-
hide-details
|
|
76
|
-
/>
|
|
77
|
-
</template>
|
|
78
|
-
|
|
79
47
|
<template #range-slider="{ props }">
|
|
80
48
|
<RangeField
|
|
81
49
|
v-bind="props"
|
|
@@ -88,4 +56,182 @@ Vous pouvez modifier le formatage des puces en utilisant la propriété `chipFor
|
|
|
88
56
|
</template>
|
|
89
57
|
`
|
|
90
58
|
}}
|
|
91
|
-
/>
|
|
59
|
+
/>
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
## Combinaison de composants filtres
|
|
63
|
+
|
|
64
|
+
Vous pouvez utiliser plusieurs composants de filtres pour un seul et même filtre afin de pouvoir modifier un filtre à différents endroits sur une page.
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
<Canvas
|
|
68
|
+
of={FilterInlineStories.FilterCombination}
|
|
69
|
+
source={{
|
|
70
|
+
language: 'html',
|
|
71
|
+
format: 'dedent',
|
|
72
|
+
code: `
|
|
73
|
+
<script lang="ts" setup>
|
|
74
|
+
import { ref } from 'vue'
|
|
75
|
+
import { FilterSideBar, filterInline, SearchListField, PeriodField } from '@cnamts/synapse'
|
|
76
|
+
import { VDivider, VSelect, VTextField } from 'vuetify/components'
|
|
77
|
+
|
|
78
|
+
const filters = ref([
|
|
79
|
+
{
|
|
80
|
+
name: 'name',
|
|
81
|
+
title: 'Identité',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'folder',
|
|
85
|
+
title: 'Type de dossier',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: 'period',
|
|
89
|
+
title: 'Période',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: 'profession',
|
|
93
|
+
title: 'Profession',
|
|
94
|
+
},
|
|
95
|
+
])
|
|
96
|
+
|
|
97
|
+
const folderTypes = [
|
|
98
|
+
{
|
|
99
|
+
title: 'AT',
|
|
100
|
+
value: 'at',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
title: 'MP',
|
|
104
|
+
value: 'mp',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
title: 'Autre',
|
|
108
|
+
value: 'other',
|
|
109
|
+
},
|
|
110
|
+
]
|
|
111
|
+
|
|
112
|
+
const professionList = [
|
|
113
|
+
{
|
|
114
|
+
label: 'Chirurgien-dentiste',
|
|
115
|
+
value: 'chirurgien-dentiste',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
label: 'Infirmier',
|
|
119
|
+
value: 'infirmier',
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
label: 'Orthophoniste',
|
|
123
|
+
value: 'orthophoniste',
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
label: 'Orthoptiste',
|
|
127
|
+
value: 'orthoptiste',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
label: 'Pédicure-podologue',
|
|
131
|
+
value: 'pedicure-podologue',
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
label: 'Pharmacien',
|
|
135
|
+
value: 'pharmacien',
|
|
136
|
+
},
|
|
137
|
+
]
|
|
138
|
+
|
|
139
|
+
</script>
|
|
140
|
+
|
|
141
|
+
<template>
|
|
142
|
+
<div>
|
|
143
|
+
<FilterSideBar
|
|
144
|
+
v-model="filters"
|
|
145
|
+
>
|
|
146
|
+
<template #name="{ props }">
|
|
147
|
+
<VTextField
|
|
148
|
+
v-bind="props"
|
|
149
|
+
label="Nom"
|
|
150
|
+
variant="outlined"
|
|
151
|
+
hide-details
|
|
152
|
+
color="primary"
|
|
153
|
+
/>
|
|
154
|
+
</template>
|
|
155
|
+
|
|
156
|
+
<template #folder="{ props }">
|
|
157
|
+
<p class="text-secondary mb-4">
|
|
158
|
+
Vous pouvez filtrer entre les dossiers de type <b>Arrêt de Travail (AT)</b> et <b>Maladie Professionnelle (MP)</b> ou <b>Autre</b>.
|
|
159
|
+
</p>
|
|
160
|
+
|
|
161
|
+
<VSelect
|
|
162
|
+
v-bind="props"
|
|
163
|
+
:items="folderTypes"
|
|
164
|
+
label="Type de dossier"
|
|
165
|
+
multiple
|
|
166
|
+
variant="outlined"
|
|
167
|
+
return-object
|
|
168
|
+
hide-details
|
|
169
|
+
color="primary"
|
|
170
|
+
/>
|
|
171
|
+
</template>
|
|
172
|
+
|
|
173
|
+
<template #period="{ props }">
|
|
174
|
+
<PeriodField
|
|
175
|
+
v-bind="props"
|
|
176
|
+
variant="outlined"
|
|
177
|
+
/>
|
|
178
|
+
</template>
|
|
179
|
+
|
|
180
|
+
<template #profession="{ props }">
|
|
181
|
+
<SearchListField
|
|
182
|
+
v-bind="props"
|
|
183
|
+
:items="professionList"
|
|
184
|
+
/>
|
|
185
|
+
</template>
|
|
186
|
+
</FilterSideBar>
|
|
187
|
+
<VDivider class="my-4" />
|
|
188
|
+
<FilterInline
|
|
189
|
+
v-model="filters"
|
|
190
|
+
>
|
|
191
|
+
<template #name="{ props }">
|
|
192
|
+
<VTextField
|
|
193
|
+
v-bind="props"
|
|
194
|
+
label="Nom"
|
|
195
|
+
variant="outlined"
|
|
196
|
+
hide-details
|
|
197
|
+
color="primary"
|
|
198
|
+
/>
|
|
199
|
+
</template>
|
|
200
|
+
|
|
201
|
+
<template #folder="{ props }">
|
|
202
|
+
<p class="text-secondary mb-4">
|
|
203
|
+
Vous pouvez filtrer entre les dossiers de type <b>Arrêt de Travail (AT)</b> et <b>Maladie Professionnelle (MP)</b> ou <b>Autre</b>.
|
|
204
|
+
</p>
|
|
205
|
+
|
|
206
|
+
<VSelect
|
|
207
|
+
v-bind="props"
|
|
208
|
+
:items="folderTypes"
|
|
209
|
+
label="Type de dossier"
|
|
210
|
+
multiple
|
|
211
|
+
variant="outlined"
|
|
212
|
+
return-object
|
|
213
|
+
hide-details
|
|
214
|
+
color="primary"
|
|
215
|
+
/>
|
|
216
|
+
</template>
|
|
217
|
+
|
|
218
|
+
<template #period="{ props }">
|
|
219
|
+
<PeriodField
|
|
220
|
+
v-bind="props"
|
|
221
|
+
variant="outlined"
|
|
222
|
+
/>
|
|
223
|
+
</template>
|
|
224
|
+
|
|
225
|
+
<template #profession="{ props }">
|
|
226
|
+
<SearchListField
|
|
227
|
+
v-bind="props"
|
|
228
|
+
:items="professionList"
|
|
229
|
+
color="primary"
|
|
230
|
+
/>
|
|
231
|
+
</template>
|
|
232
|
+
</FilterInline>
|
|
233
|
+
</div>
|
|
234
|
+
</template>
|
|
235
|
+
`
|
|
236
|
+
}}
|
|
237
|
+
/>
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { fn } from '@storybook/test'
|
|
2
2
|
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
3
|
-
import {
|
|
3
|
+
import { ref } from 'vue'
|
|
4
|
+
import { VDivider, VSelect, VTextField } from 'vuetify/components'
|
|
5
|
+
import FilterSideBar from '../FilterSideBar/FilterSideBar.vue'
|
|
4
6
|
import PeriodField from '../PeriodField/PeriodField.vue'
|
|
7
|
+
import RangeField from '../RangeField/RangeField.vue'
|
|
5
8
|
import SearchListField from '../SearchListField/SearchListField.vue'
|
|
6
9
|
import FilterInline from './FilterInline.vue'
|
|
7
|
-
import RangeField from '../RangeField/RangeField.vue'
|
|
8
10
|
|
|
9
11
|
const meta = {
|
|
10
12
|
title: 'Composants/Filtres/FilterInline',
|
|
@@ -258,10 +260,11 @@ export const Default: Story = {
|
|
|
258
260
|
{
|
|
259
261
|
name: 'Script',
|
|
260
262
|
code: `
|
|
263
|
+
import { ref } from 'vue'
|
|
261
264
|
import { FilterInline, PeriodField, SearchListField } from '@cnamts/synapse'
|
|
262
265
|
import { VTextField, VSelect } from 'vuetify/components'
|
|
263
266
|
|
|
264
|
-
const filters = [
|
|
267
|
+
const filters = ref([
|
|
265
268
|
{
|
|
266
269
|
name: 'name',
|
|
267
270
|
title: 'Identité',
|
|
@@ -278,7 +281,7 @@ const filters = [
|
|
|
278
281
|
name: 'profession',
|
|
279
282
|
title: 'Profession',
|
|
280
283
|
},
|
|
281
|
-
]
|
|
284
|
+
])
|
|
282
285
|
|
|
283
286
|
const folderTypes = [
|
|
284
287
|
{ title: 'Arrêt de Travail (AT)', value: 'AT' },
|
|
@@ -378,10 +381,11 @@ export const ChipFormat: Story = {
|
|
|
378
381
|
{
|
|
379
382
|
name: 'Script',
|
|
380
383
|
code: `
|
|
384
|
+
import { ref } from 'vue'
|
|
381
385
|
import { FilterInline, RangeField } from '@cnamts/synapse'
|
|
382
386
|
import { VSelect } from 'vuetify/components'
|
|
383
387
|
|
|
384
|
-
const filters = [
|
|
388
|
+
const filters = ref([
|
|
385
389
|
{
|
|
386
390
|
name: 'range-slider',
|
|
387
391
|
title: 'Intervalle',
|
|
@@ -392,7 +396,7 @@ const filters = [
|
|
|
392
396
|
},
|
|
393
397
|
],
|
|
394
398
|
},
|
|
395
|
-
]
|
|
399
|
+
])
|
|
396
400
|
|
|
397
401
|
const folderTypes = [
|
|
398
402
|
'AT',
|
|
@@ -404,3 +408,356 @@ const folderTypes = [
|
|
|
404
408
|
],
|
|
405
409
|
},
|
|
406
410
|
}
|
|
411
|
+
|
|
412
|
+
export const FilterCombination: Story = {
|
|
413
|
+
args: {
|
|
414
|
+
'onUpdate:modelValue': fn(),
|
|
415
|
+
},
|
|
416
|
+
decorators: [
|
|
417
|
+
() => ({
|
|
418
|
+
template: `
|
|
419
|
+
<VApp style="height: 500px; overflow-y: hidden;">
|
|
420
|
+
<div class="pa-4">
|
|
421
|
+
<story />
|
|
422
|
+
</div>
|
|
423
|
+
</VApp>
|
|
424
|
+
`,
|
|
425
|
+
}),
|
|
426
|
+
],
|
|
427
|
+
render: args => ({
|
|
428
|
+
components: { FilterSideBar, FilterInline, VTextField, VSelect, PeriodField, SearchListField, VDivider },
|
|
429
|
+
setup() {
|
|
430
|
+
const filters = ref([
|
|
431
|
+
{
|
|
432
|
+
name: 'name',
|
|
433
|
+
title: 'Identité',
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
name: 'folder',
|
|
437
|
+
title: 'Type de dossier',
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
name: 'period',
|
|
441
|
+
title: 'Période',
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
name: 'profession',
|
|
445
|
+
title: 'Profession',
|
|
446
|
+
},
|
|
447
|
+
])
|
|
448
|
+
|
|
449
|
+
const folderTypes = [
|
|
450
|
+
{
|
|
451
|
+
title: 'AT',
|
|
452
|
+
value: 'at',
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
title: 'MP',
|
|
456
|
+
value: 'mp',
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
title: 'Autre',
|
|
460
|
+
value: 'other',
|
|
461
|
+
},
|
|
462
|
+
]
|
|
463
|
+
|
|
464
|
+
const professionList = [
|
|
465
|
+
{
|
|
466
|
+
label: 'Chirurgien-dentiste',
|
|
467
|
+
value: 'chirurgien-dentiste',
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
label: 'Infirmier',
|
|
471
|
+
value: 'infirmier',
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
label: 'Orthophoniste',
|
|
475
|
+
value: 'orthophoniste',
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
label: 'Orthoptiste',
|
|
479
|
+
value: 'orthoptiste',
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
label: 'Pédicure-podologue',
|
|
483
|
+
value: 'pedicure-podologue',
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
label: 'Pharmacien',
|
|
487
|
+
value: 'pharmacien',
|
|
488
|
+
},
|
|
489
|
+
]
|
|
490
|
+
|
|
491
|
+
return { args, filters, folderTypes, professionList }
|
|
492
|
+
},
|
|
493
|
+
template: `
|
|
494
|
+
<div>
|
|
495
|
+
<FilterSideBar
|
|
496
|
+
v-model="filters"
|
|
497
|
+
v-bind="args"
|
|
498
|
+
>
|
|
499
|
+
<template #name="{ props }">
|
|
500
|
+
<VTextField
|
|
501
|
+
v-bind="props"
|
|
502
|
+
label="Nom"
|
|
503
|
+
variant="outlined"
|
|
504
|
+
hide-details
|
|
505
|
+
color="primary"
|
|
506
|
+
/>
|
|
507
|
+
</template>
|
|
508
|
+
|
|
509
|
+
<template #folder="{ props }">
|
|
510
|
+
<p class="text-secondary mb-4">
|
|
511
|
+
Vous pouvez filtrer entre les dossiers de type <b>Arrêt de Travail (AT)</b> et <b>Maladie Professionnelle (MP)</b> ou <b>Autre</b>.
|
|
512
|
+
</p>
|
|
513
|
+
|
|
514
|
+
<VSelect
|
|
515
|
+
v-bind="props"
|
|
516
|
+
:items="folderTypes"
|
|
517
|
+
label="Type de dossier"
|
|
518
|
+
multiple
|
|
519
|
+
variant="outlined"
|
|
520
|
+
return-object
|
|
521
|
+
hide-details
|
|
522
|
+
color="primary"
|
|
523
|
+
/>
|
|
524
|
+
</template>
|
|
525
|
+
|
|
526
|
+
<template #period="{ props }">
|
|
527
|
+
<PeriodField
|
|
528
|
+
v-bind="props"
|
|
529
|
+
variant="outlined"
|
|
530
|
+
/>
|
|
531
|
+
</template>
|
|
532
|
+
|
|
533
|
+
<template #profession="{ props }">
|
|
534
|
+
<SearchListField
|
|
535
|
+
v-bind="props"
|
|
536
|
+
:items="professionList"
|
|
537
|
+
/>
|
|
538
|
+
</template>
|
|
539
|
+
</FilterSideBar>
|
|
540
|
+
<VDivider class="my-4" />
|
|
541
|
+
<FilterInline
|
|
542
|
+
v-model="filters"
|
|
543
|
+
v-bind="args"
|
|
544
|
+
>
|
|
545
|
+
<template #name="{ props }">
|
|
546
|
+
<VTextField
|
|
547
|
+
v-bind="props"
|
|
548
|
+
label="Nom"
|
|
549
|
+
variant="outlined"
|
|
550
|
+
hide-details
|
|
551
|
+
color="primary"
|
|
552
|
+
/>
|
|
553
|
+
</template>
|
|
554
|
+
|
|
555
|
+
<template #folder="{ props }">
|
|
556
|
+
<p class="text-secondary mb-4">
|
|
557
|
+
Vous pouvez filtrer entre les dossiers de type <b>Arrêt de Travail (AT)</b> et <b>Maladie Professionnelle (MP)</b> ou <b>Autre</b>.
|
|
558
|
+
</p>
|
|
559
|
+
|
|
560
|
+
<VSelect
|
|
561
|
+
v-bind="props"
|
|
562
|
+
:items="folderTypes"
|
|
563
|
+
label="Type de dossier"
|
|
564
|
+
multiple
|
|
565
|
+
variant="outlined"
|
|
566
|
+
return-object
|
|
567
|
+
hide-details
|
|
568
|
+
color="primary"
|
|
569
|
+
/>
|
|
570
|
+
</template>
|
|
571
|
+
|
|
572
|
+
<template #period="{ props }">
|
|
573
|
+
<PeriodField
|
|
574
|
+
v-bind="props"
|
|
575
|
+
variant="outlined"
|
|
576
|
+
/>
|
|
577
|
+
</template>
|
|
578
|
+
|
|
579
|
+
<template #profession="{ props }">
|
|
580
|
+
<SearchListField
|
|
581
|
+
v-bind="props"
|
|
582
|
+
:items="professionList"
|
|
583
|
+
color="primary"
|
|
584
|
+
/>
|
|
585
|
+
</template>
|
|
586
|
+
</FilterInline>
|
|
587
|
+
</div>
|
|
588
|
+
`,
|
|
589
|
+
}),
|
|
590
|
+
parameters: {
|
|
591
|
+
layout: 'fullscreen',
|
|
592
|
+
sourceCode: [
|
|
593
|
+
{
|
|
594
|
+
name: 'Template',
|
|
595
|
+
code: `
|
|
596
|
+
<div>
|
|
597
|
+
<FilterSideBar
|
|
598
|
+
v-model="filters"
|
|
599
|
+
>
|
|
600
|
+
<template #name="{ props }">
|
|
601
|
+
<VTextField
|
|
602
|
+
v-bind="props"
|
|
603
|
+
label="Nom"
|
|
604
|
+
variant="outlined"
|
|
605
|
+
hide-details
|
|
606
|
+
color="primary"
|
|
607
|
+
/>
|
|
608
|
+
</template>
|
|
609
|
+
|
|
610
|
+
<template #folder="{ props }">
|
|
611
|
+
<p class="text-secondary mb-4">
|
|
612
|
+
Vous pouvez filtrer entre les dossiers de type <b>Arrêt de Travail (AT)</b> et <b>Maladie Professionnelle (MP)</b> ou <b>Autre</b>.
|
|
613
|
+
</p>
|
|
614
|
+
|
|
615
|
+
<VSelect
|
|
616
|
+
v-bind="props"
|
|
617
|
+
:items="folderTypes"
|
|
618
|
+
label="Type de dossier"
|
|
619
|
+
multiple
|
|
620
|
+
variant="outlined"
|
|
621
|
+
return-object
|
|
622
|
+
hide-details
|
|
623
|
+
color="primary"
|
|
624
|
+
/>
|
|
625
|
+
</template>
|
|
626
|
+
|
|
627
|
+
<template #period="{ props }">
|
|
628
|
+
<PeriodField
|
|
629
|
+
v-bind="props"
|
|
630
|
+
variant="outlined"
|
|
631
|
+
/>
|
|
632
|
+
</template>
|
|
633
|
+
|
|
634
|
+
<template #profession="{ props }">
|
|
635
|
+
<SearchListField
|
|
636
|
+
v-bind="props"
|
|
637
|
+
:items="professionList"
|
|
638
|
+
/>
|
|
639
|
+
</template>
|
|
640
|
+
</FilterSideBar>
|
|
641
|
+
<VDivider class="my-4" />
|
|
642
|
+
<FilterInline
|
|
643
|
+
v-model="filters"
|
|
644
|
+
>
|
|
645
|
+
<template #name="{ props }">
|
|
646
|
+
<VTextField
|
|
647
|
+
v-bind="props"
|
|
648
|
+
label="Nom"
|
|
649
|
+
variant="outlined"
|
|
650
|
+
hide-details
|
|
651
|
+
color="primary"
|
|
652
|
+
/>
|
|
653
|
+
</template>
|
|
654
|
+
|
|
655
|
+
<template #folder="{ props }">
|
|
656
|
+
<p class="text-secondary mb-4">
|
|
657
|
+
Vous pouvez filtrer entre les dossiers de type <b>Arrêt de Travail (AT)</b> et <b>Maladie Professionnelle (MP)</b> ou <b>Autre</b>.
|
|
658
|
+
</p>
|
|
659
|
+
|
|
660
|
+
<VSelect
|
|
661
|
+
v-bind="props"
|
|
662
|
+
:items="folderTypes"
|
|
663
|
+
label="Type de dossier"
|
|
664
|
+
multiple
|
|
665
|
+
variant="outlined"
|
|
666
|
+
return-object
|
|
667
|
+
hide-details
|
|
668
|
+
color="primary"
|
|
669
|
+
/>
|
|
670
|
+
</template>
|
|
671
|
+
|
|
672
|
+
<template #period="{ props }">
|
|
673
|
+
<PeriodField
|
|
674
|
+
v-bind="props"
|
|
675
|
+
variant="outlined"
|
|
676
|
+
/>
|
|
677
|
+
</template>
|
|
678
|
+
|
|
679
|
+
<template #profession="{ props }">
|
|
680
|
+
<SearchListField
|
|
681
|
+
v-bind="props"
|
|
682
|
+
:items="professionList"
|
|
683
|
+
color="primary"
|
|
684
|
+
/>
|
|
685
|
+
</template>
|
|
686
|
+
</FilterInline>
|
|
687
|
+
</div>
|
|
688
|
+
`,
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
name: 'Script',
|
|
692
|
+
code: `
|
|
693
|
+
<script setup lang="ts">
|
|
694
|
+
import { ref } from 'vue'
|
|
695
|
+
import { FilterSideBar, filterInline, SearchListField, PeriodField } from '@cnamts/synapse'
|
|
696
|
+
import { VDivider, VSelect, VTextField } from 'vuetify/components'
|
|
697
|
+
|
|
698
|
+
const filters = ref([
|
|
699
|
+
{
|
|
700
|
+
name: 'name',
|
|
701
|
+
title: 'Identité',
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
name: 'folder',
|
|
705
|
+
title: 'Type de dossier',
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
name: 'period',
|
|
709
|
+
title: 'Période',
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
name: 'profession',
|
|
713
|
+
title: 'Profession',
|
|
714
|
+
},
|
|
715
|
+
])
|
|
716
|
+
|
|
717
|
+
const folderTypes = [
|
|
718
|
+
{
|
|
719
|
+
title: 'AT',
|
|
720
|
+
value: 'at',
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
title: 'MP',
|
|
724
|
+
value: 'mp',
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
title: 'Autre',
|
|
728
|
+
value: 'other',
|
|
729
|
+
},
|
|
730
|
+
]
|
|
731
|
+
|
|
732
|
+
const professionList = [
|
|
733
|
+
{
|
|
734
|
+
label: 'Chirurgien-dentiste',
|
|
735
|
+
value: 'chirurgien-dentiste',
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
label: 'Infirmier',
|
|
739
|
+
value: 'infirmier',
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
label: 'Orthophoniste',
|
|
743
|
+
value: 'orthophoniste',
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
label: 'Orthoptiste',
|
|
747
|
+
value: 'orthoptiste',
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
label: 'Pédicure-podologue',
|
|
751
|
+
value: 'pedicure-podologue',
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
label: 'Pharmacien',
|
|
755
|
+
value: 'pharmacien',
|
|
756
|
+
},
|
|
757
|
+
]
|
|
758
|
+
|
|
759
|
+
</script>`,
|
|
760
|
+
},
|
|
761
|
+
],
|
|
762
|
+
},
|
|
763
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Meta, Story } from '@storybook/addon-docs';
|
|
2
|
+
import * as AccessStories from './Accessibilite.stories.ts';
|
|
3
|
+
|
|
4
|
+
<Meta of={AccessStories} />
|
|
5
|
+
|
|
6
|
+
Accessibilité
|
|
7
|
+
=============
|
|
8
|
+
<Story of={AccessStories.Legende} />
|
|
9
|
+
<br />
|
|
10
|
+
|
|
11
|
+
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
<Story of={AccessStories.AccessibilitePanel} />
|
|
14
|
+
<br />
|