@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cnamts/synapse",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13-alpha",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "CNAM DS v3",
|
|
6
6
|
"type": "module",
|
|
@@ -105,8 +105,10 @@
|
|
|
105
105
|
"dependencies": {
|
|
106
106
|
"@emotion/css": "^11.13.5",
|
|
107
107
|
"@mdi/js": "^7.4.47",
|
|
108
|
+
"dayjs": "^1.11.13",
|
|
108
109
|
"deepmerge": "^4.3.1",
|
|
109
110
|
"iso-639-1": "^3.1.3",
|
|
111
|
+
"marked": "^15.0.7",
|
|
110
112
|
"maska": "^3.0.3",
|
|
111
113
|
"sass-embedded": "^1.83.0",
|
|
112
114
|
"sass-loader": "^16.0.3",
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
// Define theme elevation adjustments
|
|
2
|
+
$elevation-cnam: 2px;
|
|
3
|
+
$elevation-pa: 2px;
|
|
4
|
+
|
|
5
|
+
// Modify elevations to include $elevation-cnam and $elevation-pa dynamically
|
|
6
|
+
$cnam-elevation: (
|
|
7
|
+
0: none,
|
|
8
|
+
1: 0 1px calc(3px + #{$elevation-cnam}) rgb(0 0 0 / 12%),
|
|
9
|
+
2: 0 1px calc(5px + #{$elevation-cnam}) rgb(0 0 0 / 16%),
|
|
10
|
+
3: 0 1px calc(8px + #{$elevation-cnam}) rgb(0 0 0 / 24%),
|
|
11
|
+
4: 0 2px calc(4px + #{$elevation-cnam}) rgb(0 0 0 / 24%),
|
|
12
|
+
5: 0 2px calc(6px + #{$elevation-cnam}) rgb(0 0 0 / 28%),
|
|
13
|
+
6: 0 3px calc(6px + #{$elevation-cnam}) rgb(0 0 0 / 32%),
|
|
14
|
+
7: 0 3px calc(8px + #{$elevation-cnam}) rgb(0 0 0 / 36%),
|
|
15
|
+
8: 0 4px calc(8px + #{$elevation-cnam}) rgb(0 0 0 / 40%),
|
|
16
|
+
9: 0 4px calc(10px + #{$elevation-cnam}) rgb(0 0 0 / 44%),
|
|
17
|
+
10: 0 5px calc(10px + #{$elevation-cnam}) rgb(0 0 0 / 48%),
|
|
18
|
+
12: 0 6px calc(12px + #{$elevation-cnam}) rgb(0 0 0 / 52%),
|
|
19
|
+
14: 0 7px calc(14px + #{$elevation-cnam}) rgb(0 0 0 / 56%),
|
|
20
|
+
16: 0 8px calc(16px + #{$elevation-cnam}) rgb(0 0 0 / 60%),
|
|
21
|
+
18: 0 9px calc(18px + #{$elevation-cnam}) rgb(0 0 0 / 64%),
|
|
22
|
+
20: 0 10px calc(20px + #{$elevation-cnam}) rgb(0 0 0 / 68%),
|
|
23
|
+
24: 0 12px calc(24px + #{$elevation-cnam}) rgb(0 0 0 / 72%),
|
|
24
|
+
28: 0 14px calc(28px + #{$elevation-cnam}) rgb(0 0 0 / 76%),
|
|
25
|
+
32: 0 16px calc(32px + #{$elevation-cnam}) rgb(0 0 0 / 80%)
|
|
26
|
+
);
|
|
27
|
+
$pa-elevation: (
|
|
28
|
+
0: none,
|
|
29
|
+
1: 0 1px calc(3px + #{$elevation-pa}) rgb(0 0 0 / 10%),
|
|
30
|
+
2: 0 1px calc(5px + #{$elevation-pa}) rgb(0 0 0 / 14%),
|
|
31
|
+
3: 0 1px calc(8px + #{$elevation-pa}) rgb(0 0 0 / 20%),
|
|
32
|
+
4: 0 2px calc(4px + #{$elevation-pa}) rgb(0 0 0 / 20%),
|
|
33
|
+
5: 0 2px calc(6px + #{$elevation-pa}) rgb(0 0 0 / 24%),
|
|
34
|
+
6: 0 3px calc(6px + #{$elevation-pa}) rgb(0 0 0 / 28%),
|
|
35
|
+
7: 0 3px calc(8px + #{$elevation-pa}) rgb(0 0 0 / 32%),
|
|
36
|
+
8: 0 4px calc(8px + #{$elevation-pa}) rgb(0 0 0 / 36%),
|
|
37
|
+
9: 0 4px calc(10px + #{$elevation-pa}) rgb(0 0 0 / 40%),
|
|
38
|
+
10: 0 5px calc(10px + #{$elevation-pa}) rgb(0 0 0 / 44%),
|
|
39
|
+
12: 0 6px calc(12px + #{$elevation-pa}) rgb(0 0 0 / 48%),
|
|
40
|
+
14: 0 7px calc(14px + #{$elevation-pa}) rgb(0 0 0 / 52%),
|
|
41
|
+
16: 0 8px calc(16px + #{$elevation-pa}) rgb(0 0 0 / 56%),
|
|
42
|
+
18: 0 9px calc(18px + #{$elevation-pa}) rgb(0 0 0 / 60%),
|
|
43
|
+
20: 0 10px calc(20px + #{$elevation-pa}) rgb(0 0 0 / 64%),
|
|
44
|
+
24: 0 12px calc(24px + #{$elevation-pa}) rgb(0 0 0 / 68%),
|
|
45
|
+
28: 0 14px calc(28px + #{$elevation-pa}) rgb(0 0 0 / 72%),
|
|
46
|
+
32: 0 16px calc(32px + #{$elevation-pa}) rgb(0 0 0 / 76%)
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
// Define CSS variables globally
|
|
50
|
+
:root {
|
|
51
|
+
--elevation-cnam: #{$elevation-cnam};
|
|
52
|
+
--elevation-pa: #{$elevation-pa};
|
|
53
|
+
|
|
54
|
+
@each $key, $value in $cnam-elevation {
|
|
55
|
+
--elevation-#{$key}: #{$value};
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Apply theme-based CNAM
|
|
60
|
+
.theme-cnam {
|
|
61
|
+
@each $key, $value in $cnam-elevation {
|
|
62
|
+
--elevation-#{$key}: #{$value};
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Apply theme-based PA
|
|
67
|
+
.theme-pa {
|
|
68
|
+
@each $key, $value in $pa-elevation {
|
|
69
|
+
--elevation-#{$key}: #{$value};
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// Mixin to generate elevation classes dynamically
|
|
74
|
+
@mixin generate-elevation-classes($prefix) {
|
|
75
|
+
@each $key, $value in $cnam-elevation {
|
|
76
|
+
.#{$prefix}-#{$key} {
|
|
77
|
+
box-shadow: var(--elevation-#{$key}) !important;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// Generate elevation classes
|
|
83
|
+
@include generate-elevation-classes('elevation');
|
|
84
|
+
|
|
85
|
+
// Ex of additional classes for specific shadow
|
|
86
|
+
|
|
87
|
+
/* .v-btn {
|
|
88
|
+
box-shadow: var(--elevation-2) !important;
|
|
89
|
+
} */
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
// Define theme radius separately
|
|
2
|
+
$border-radius-cnam: 4px;
|
|
3
|
+
$border-radius-pa: 4px;
|
|
4
|
+
$cnam-radius: (
|
|
5
|
+
0: 0px,
|
|
6
|
+
'sm': calc($border-radius-cnam / 2),
|
|
7
|
+
'md': $border-radius-cnam,
|
|
8
|
+
'lg': calc($border-radius-cnam * 2),
|
|
9
|
+
'xl': calc($border-radius-cnam * 4),
|
|
10
|
+
'pill': 9999px,
|
|
11
|
+
'circle': 50%
|
|
12
|
+
);
|
|
13
|
+
$pa-radius: (
|
|
14
|
+
0: 0px,
|
|
15
|
+
'sm': calc($border-radius-pa / 2),
|
|
16
|
+
'md': $border-radius-pa,
|
|
17
|
+
'lg': calc($border-radius-pa * 2),
|
|
18
|
+
'xl': calc($border-radius-pa * 4),
|
|
19
|
+
'pill': 9999px,
|
|
20
|
+
'circle': 50%
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
// Define all possible radius keys to ensure consistent class generation
|
|
24
|
+
$radius-keys: (0, 'sm', 'md', 'lg', 'xl', 'pill', 'circle');
|
|
25
|
+
|
|
26
|
+
// ✅ Define CSS variables globally
|
|
27
|
+
:root {
|
|
28
|
+
@each $key, $value in $cnam-radius {
|
|
29
|
+
--radius-#{$key}: #{$value};
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// ✅ Apply theme-based cnam
|
|
34
|
+
.theme-cnam {
|
|
35
|
+
@each $key, $value in $cnam-radius {
|
|
36
|
+
--radius-#{$key}: #{$value};
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// ✅ Apply theme-based pa
|
|
41
|
+
.theme-pa {
|
|
42
|
+
@each $key, $value in $pa-radius {
|
|
43
|
+
--radius-#{$key}: #{$value};
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// ✅ Mixin to generate border-radius classes
|
|
48
|
+
@mixin generate-radius-classes($prefix) {
|
|
49
|
+
@each $key in $radius-keys {
|
|
50
|
+
.#{$prefix}-#{$key} {
|
|
51
|
+
border-radius: var(--radius-#{$key}) !important;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// ✅ Generate radius classes once, using CSS variables
|
|
57
|
+
@include generate-radius-classes('rounded');
|
|
58
|
+
|
|
59
|
+
// Additional classes for specific radius
|
|
60
|
+
.v-btn {
|
|
61
|
+
border-radius: var(--radius-md) !important;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.v-btn.rounded-md {
|
|
65
|
+
border-radius: var(--radius-md) !important;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.v-btn.rounded-sm {
|
|
69
|
+
border-radius: var(--radius-sm) !important;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.v-btn.rounded-lg {
|
|
73
|
+
border-radius: var(--radius-lg) !important;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.v-btn.rounded-xl {
|
|
77
|
+
border-radius: var(--radius-xl) !important;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.v-btn.rounded-pill {
|
|
81
|
+
border-radius: var(--radius-pill) !important;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.v-btn.rounded-circle {
|
|
85
|
+
border-radius: var(--radius-circle) !important;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.v-date-picker {
|
|
89
|
+
.v-btn {
|
|
90
|
+
border-radius: var(--radius-pill) !important;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
// Define base spacer values
|
|
2
|
+
$base-spacer-cnam: 4px;
|
|
3
|
+
$base-spacer-pa: 4px;
|
|
4
|
+
|
|
5
|
+
// Define theme spacers using base values
|
|
6
|
+
$cnam-spacers: (
|
|
7
|
+
0: 0px,
|
|
8
|
+
1: $base-spacer-cnam,
|
|
9
|
+
2: $base-spacer-cnam * 2,
|
|
10
|
+
3: $base-spacer-cnam * 3,
|
|
11
|
+
4: $base-spacer-cnam * 4,
|
|
12
|
+
5: $base-spacer-cnam * 5,
|
|
13
|
+
6: $base-spacer-cnam * 6,
|
|
14
|
+
7: $base-spacer-cnam * 7,
|
|
15
|
+
8: $base-spacer-cnam * 8,
|
|
16
|
+
9: $base-spacer-cnam * 9,
|
|
17
|
+
10: $base-spacer-cnam * 10,
|
|
18
|
+
11: $base-spacer-cnam * 11,
|
|
19
|
+
12: $base-spacer-cnam * 12,
|
|
20
|
+
13: $base-spacer-cnam * 13,
|
|
21
|
+
14: $base-spacer-cnam * 14,
|
|
22
|
+
15: $base-spacer-cnam * 15,
|
|
23
|
+
16: $base-spacer-cnam * 16,
|
|
24
|
+
17: $base-spacer-cnam * 17,
|
|
25
|
+
18: $base-spacer-cnam * 18,
|
|
26
|
+
19: $base-spacer-cnam * 19,
|
|
27
|
+
20: $base-spacer-cnam * 20,
|
|
28
|
+
24: $base-spacer-cnam * 24,
|
|
29
|
+
28: $base-spacer-cnam * 28,
|
|
30
|
+
32: $base-spacer-cnam * 32,
|
|
31
|
+
36: $base-spacer-cnam * 36,
|
|
32
|
+
40: $base-spacer-cnam * 40,
|
|
33
|
+
44: $base-spacer-cnam * 44,
|
|
34
|
+
48: $base-spacer-cnam * 48,
|
|
35
|
+
52: $base-spacer-cnam * 52,
|
|
36
|
+
56: $base-spacer-cnam * 56,
|
|
37
|
+
60: $base-spacer-cnam * 60,
|
|
38
|
+
64: $base-spacer-cnam * 64,
|
|
39
|
+
);
|
|
40
|
+
$pa-spacers: (
|
|
41
|
+
0: 0px,
|
|
42
|
+
1: $base-spacer-pa,
|
|
43
|
+
2: $base-spacer-pa * 2,
|
|
44
|
+
3: $base-spacer-pa * 3,
|
|
45
|
+
4: $base-spacer-pa * 4,
|
|
46
|
+
5: $base-spacer-pa * 5,
|
|
47
|
+
6: $base-spacer-pa * 6,
|
|
48
|
+
7: $base-spacer-pa * 7,
|
|
49
|
+
8: $base-spacer-pa * 8,
|
|
50
|
+
9: $base-spacer-pa * 9,
|
|
51
|
+
10: $base-spacer-pa * 10,
|
|
52
|
+
11: $base-spacer-pa * 11,
|
|
53
|
+
12: $base-spacer-pa * 12,
|
|
54
|
+
13: $base-spacer-pa * 13,
|
|
55
|
+
14: $base-spacer-pa * 14,
|
|
56
|
+
15: $base-spacer-pa * 15,
|
|
57
|
+
16: $base-spacer-pa * 16,
|
|
58
|
+
17: $base-spacer-pa * 17,
|
|
59
|
+
18: $base-spacer-pa * 18,
|
|
60
|
+
19: $base-spacer-pa * 19,
|
|
61
|
+
20: $base-spacer-pa * 20,
|
|
62
|
+
24: $base-spacer-pa * 24,
|
|
63
|
+
28: $base-spacer-pa * 28,
|
|
64
|
+
32: $base-spacer-pa * 32,
|
|
65
|
+
36: $base-spacer-pa * 36,
|
|
66
|
+
40: $base-spacer-pa * 40,
|
|
67
|
+
44: $base-spacer-pa * 44,
|
|
68
|
+
48: $base-spacer-pa * 48,
|
|
69
|
+
52: $base-spacer-pa * 52,
|
|
70
|
+
56: $base-spacer-pa * 56,
|
|
71
|
+
60: $base-spacer-pa * 60,
|
|
72
|
+
64: $base-spacer-pa * 64,
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
// Define CSS variables for spacers dynamically
|
|
76
|
+
:root {
|
|
77
|
+
@each $key, $value in $cnam-spacers {
|
|
78
|
+
--spacing-#{$key}: #{$value};
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// Apply theme-based spacing
|
|
83
|
+
.theme-cnam {
|
|
84
|
+
@each $key, $value in $cnam-spacers {
|
|
85
|
+
--spacing-#{$key}: #{$value};
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.theme-pa {
|
|
90
|
+
@each $key, $value in $pa-spacers {
|
|
91
|
+
--spacing-#{$key}: #{$value};
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// Mixin to generate padding and margin classes
|
|
96
|
+
@mixin generate-spacing-classes($property, $prefix) {
|
|
97
|
+
@for $i from 0 through 64 {
|
|
98
|
+
.#{$prefix}-#{$i} {
|
|
99
|
+
#{$property}: var(--spacing-#{$i}) !important;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// Apply spacing classes dynamically
|
|
105
|
+
@include generate-spacing-classes(padding, pa);
|
|
106
|
+
@include generate-spacing-classes(margin, ma);
|
|
107
|
+
|
|
108
|
+
// Mixin for X (left & right) and Y (top & bottom) spacing
|
|
109
|
+
@mixin generate-axis-spacing-classes($property, $prefix, $side1, $side2) {
|
|
110
|
+
@for $i from 0 through 64 {
|
|
111
|
+
.#{$prefix}-#{$i} {
|
|
112
|
+
#{$property}-#{$side1}: var(--spacing-#{$i}) !important;
|
|
113
|
+
#{$property}-#{$side2}: var(--spacing-#{$i}) !important;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// Generate px, py, mx, my spacing classes
|
|
119
|
+
@include generate-axis-spacing-classes(padding, px, left, right);
|
|
120
|
+
@include generate-axis-spacing-classes(padding, py, top, bottom);
|
|
121
|
+
@include generate-axis-spacing-classes(margin, mx, left, right);
|
|
122
|
+
@include generate-axis-spacing-classes(margin, my, top, bottom);
|
|
123
|
+
|
|
124
|
+
// Mixin for individual side spacing classes
|
|
125
|
+
@mixin generate-side-spacing-classes($property, $prefix, $side) {
|
|
126
|
+
@for $i from 0 through 64 {
|
|
127
|
+
.#{$prefix}-#{$i} {
|
|
128
|
+
#{$property}-#{$side}: var(--spacing-#{$i}) !important;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Generate individual side padding classes
|
|
134
|
+
@include generate-side-spacing-classes(padding, pt, top);
|
|
135
|
+
@include generate-side-spacing-classes(padding, pr, right);
|
|
136
|
+
@include generate-side-spacing-classes(padding, pb, bottom);
|
|
137
|
+
@include generate-side-spacing-classes(padding, pl, left);
|
|
138
|
+
|
|
139
|
+
// Generate individual side margin classes
|
|
140
|
+
@include generate-side-spacing-classes(margin, mt, top);
|
|
141
|
+
@include generate-side-spacing-classes(margin, mr, right);
|
|
142
|
+
@include generate-side-spacing-classes(margin, mb, bottom);
|
|
143
|
+
@include generate-side-spacing-classes(margin, ml, left);
|
|
144
|
+
|
|
145
|
+
// Additional classes for specific spacing
|
|
146
|
+
|
|
147
|
+
.v-btn {
|
|
148
|
+
padding: 0 var(--spacing-4) !important;
|
|
149
|
+
}
|
package/src/assets/settings.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@use '
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
@use 'fonts';
|
|
2
|
+
@use 'spacers';
|
|
3
|
+
@use 'radius';
|
|
4
4
|
|
|
5
5
|
.v-btn {
|
|
6
6
|
text-transform: inherit !important;
|
|
@@ -12,3 +12,15 @@
|
|
|
12
12
|
.v-btn.v-tab {
|
|
13
13
|
text-transform: uppercase !important;
|
|
14
14
|
}
|
|
15
|
+
|
|
16
|
+
.v-tooltip .v-overlay__content {
|
|
17
|
+
background-color: rgb(0 0 0 / 70%) !important;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.v-messages {
|
|
21
|
+
font-size: 14px !important;
|
|
22
|
+
|
|
23
|
+
.v-messages__message {
|
|
24
|
+
line-height: 16px !important;
|
|
25
|
+
}
|
|
26
|
+
}
|
package/src/assets/tokens.scss
CHANGED
|
@@ -419,35 +419,38 @@ $spacing-horizontal-xx-large: 56px;
|
|
|
419
419
|
$spacing-horizontal-xxx-large: 64px;
|
|
420
420
|
$spacing-horizontal-huge: 80px;
|
|
421
421
|
|
|
422
|
-
|
|
423
|
-
.
|
|
424
|
-
|
|
425
|
-
.elevation-
|
|
426
|
-
.elevation-
|
|
427
|
-
.elevation-
|
|
428
|
-
.elevation-
|
|
429
|
-
.elevation-
|
|
430
|
-
.elevation-
|
|
431
|
-
.elevation-
|
|
432
|
-
.elevation-
|
|
433
|
-
.elevation-
|
|
434
|
-
.elevation-
|
|
435
|
-
.elevation-
|
|
436
|
-
.elevation-
|
|
437
|
-
.elevation-
|
|
438
|
-
.elevation-
|
|
439
|
-
.elevation-
|
|
440
|
-
.elevation-
|
|
441
|
-
.elevation-
|
|
442
|
-
.elevation-
|
|
443
|
-
.elevation-
|
|
444
|
-
.elevation-
|
|
445
|
-
.elevation-
|
|
446
|
-
.elevation-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
422
|
+
.theme-cnam,
|
|
423
|
+
.theme-pa {
|
|
424
|
+
// Surcharger toutes les élévations pour utiliser uniquement l'élévation 02
|
|
425
|
+
.elevation-1,
|
|
426
|
+
.elevation-2,
|
|
427
|
+
.elevation-3,
|
|
428
|
+
.elevation-4,
|
|
429
|
+
.elevation-5,
|
|
430
|
+
.elevation-6,
|
|
431
|
+
.elevation-7,
|
|
432
|
+
.elevation-8,
|
|
433
|
+
.elevation-9,
|
|
434
|
+
.elevation-10,
|
|
435
|
+
.elevation-11,
|
|
436
|
+
.elevation-12,
|
|
437
|
+
.elevation-13,
|
|
438
|
+
.elevation-14,
|
|
439
|
+
.elevation-15,
|
|
440
|
+
.elevation-16,
|
|
441
|
+
.elevation-17,
|
|
442
|
+
.elevation-18,
|
|
443
|
+
.elevation-19,
|
|
444
|
+
.elevation-20,
|
|
445
|
+
.elevation-21,
|
|
446
|
+
.elevation-22,
|
|
447
|
+
.elevation-23,
|
|
448
|
+
.elevation-24 {
|
|
449
|
+
box-shadow:
|
|
450
|
+
0 3px 1px -2px rgb(0 0 0 / 20%),
|
|
451
|
+
0 2px 2px 0 rgb(0 0 0 / 14%),
|
|
452
|
+
0 1px 5px 0 rgb(0 0 0 / 12%) !important;
|
|
453
|
+
}
|
|
451
454
|
}
|
|
452
455
|
|
|
453
456
|
// global.scss
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface IndexedObject<T = string> {
|
|
2
|
+
[key: string]: T
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export interface Theme {
|
|
6
|
+
primary: string
|
|
7
|
+
secondary: string
|
|
8
|
+
info: string
|
|
9
|
+
warning: string
|
|
10
|
+
error: string
|
|
11
|
+
success: string
|
|
12
|
+
}
|
|
13
|
+
export interface Color {
|
|
14
|
+
darken1?: string
|
|
15
|
+
darken2?: string
|
|
16
|
+
darken3?: string
|
|
17
|
+
darken4?: string
|
|
18
|
+
darken5?: string
|
|
19
|
+
darken6?: string
|
|
20
|
+
base: string
|
|
21
|
+
lighten1?: string
|
|
22
|
+
lighten2?: string
|
|
23
|
+
lighten3?: string
|
|
24
|
+
lighten4?: string
|
|
25
|
+
lighten5?: string
|
|
26
|
+
lighten6?: string
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface Palette {
|
|
30
|
+
apBlue: Color
|
|
31
|
+
apGrey: Color
|
|
32
|
+
apWhite: Color
|
|
33
|
+
apBlack: Color
|
|
34
|
+
apYellow: Color
|
|
35
|
+
apGreen: Color
|
|
36
|
+
apRed: Color
|
|
37
|
+
apTurquoise: Color
|
|
38
|
+
apParme: Color
|
|
39
|
+
apPink: Color
|
|
40
|
+
}
|
|
@@ -116,9 +116,9 @@ export const Default: Story = {
|
|
|
116
116
|
{
|
|
117
117
|
name: 'Script',
|
|
118
118
|
code: `<script setup lang="ts">
|
|
119
|
-
import ChipList from '@cnamts/synapse'
|
|
119
|
+
import { ChipList, type ChipItem } from '@cnamts/synapse'
|
|
120
120
|
|
|
121
|
-
const items = [
|
|
121
|
+
const items: ChipItem[] = [
|
|
122
122
|
{
|
|
123
123
|
text: 'Email',
|
|
124
124
|
value: 'email',
|
|
@@ -205,9 +205,9 @@ export const Success: Story = {
|
|
|
205
205
|
{
|
|
206
206
|
name: 'Script',
|
|
207
207
|
code: `<script setup lang="ts">
|
|
208
|
-
import ChipList from '@cnamts/synapse'
|
|
208
|
+
import { ChipList, type ChipItem } from '@cnamts/synapse'
|
|
209
209
|
|
|
210
|
-
const items = [
|
|
210
|
+
const items: ChipItem[] = [
|
|
211
211
|
{
|
|
212
212
|
text: 'Email',
|
|
213
213
|
value: 'email',
|
|
@@ -298,9 +298,9 @@ export const Info: Story = {
|
|
|
298
298
|
{
|
|
299
299
|
name: 'Script',
|
|
300
300
|
code: `<script setup lang="ts">
|
|
301
|
-
import ChipList from '@cnamts/synapse'
|
|
301
|
+
import { ChipList, type ChipItem } from '@cnamts/synapse'
|
|
302
302
|
|
|
303
|
-
const items = [
|
|
303
|
+
const items: ChipItem[] = [
|
|
304
304
|
{
|
|
305
305
|
text: 'Email',
|
|
306
306
|
value: 'email',
|
|
@@ -391,9 +391,9 @@ export const Warning: Story = {
|
|
|
391
391
|
{
|
|
392
392
|
name: 'Script',
|
|
393
393
|
code: `<script setup lang="ts">
|
|
394
|
-
import ChipList from '@cnamts/synapse'
|
|
394
|
+
import { ChipList, type ChipItem } from '@cnamts/synapse'
|
|
395
395
|
|
|
396
|
-
const items = [
|
|
396
|
+
const items: ChipItem[] = [
|
|
397
397
|
{
|
|
398
398
|
text: 'Email',
|
|
399
399
|
value: 'email',
|
|
@@ -484,9 +484,9 @@ export const Error: Story = {
|
|
|
484
484
|
{
|
|
485
485
|
name: 'Script',
|
|
486
486
|
code: `<script setup lang="ts">
|
|
487
|
-
import ChipList from '@cnamts/synapse'
|
|
487
|
+
import { ChipList, type ChipItem } from '@cnamts/synapse'
|
|
488
488
|
|
|
489
|
-
const items = [
|
|
489
|
+
const items: ChipItem[] = [
|
|
490
490
|
{
|
|
491
491
|
text: 'Email',
|
|
492
492
|
value: 'email',
|
|
@@ -578,9 +578,9 @@ export const ReadOnly: Story = {
|
|
|
578
578
|
{
|
|
579
579
|
name: 'Script',
|
|
580
580
|
code: `<script setup lang="ts">
|
|
581
|
-
import ChipList from '@cnamts/synapse'
|
|
581
|
+
import { ChipList, type ChipItem } from '@cnamts/synapse'
|
|
582
582
|
|
|
583
|
-
const items = [
|
|
583
|
+
const items: ChipItem[] = [
|
|
584
584
|
{
|
|
585
585
|
text: 'Email',
|
|
586
586
|
value: 'email',
|
|
@@ -659,9 +659,9 @@ export const CustomResetText: Story = {
|
|
|
659
659
|
{
|
|
660
660
|
name: 'Script',
|
|
661
661
|
code: `<script setup lang="ts">
|
|
662
|
-
import ChipList from '@cnamts/synapse'
|
|
662
|
+
import { ChipList, type ChipItem } from '@cnamts/synapse'
|
|
663
663
|
|
|
664
|
-
const items = [
|
|
664
|
+
const items: ChipItem[] = [
|
|
665
665
|
{
|
|
666
666
|
text: 'Email',
|
|
667
667
|
value: 'email',
|
|
@@ -728,9 +728,9 @@ export const WithOverflow: Story = {
|
|
|
728
728
|
{
|
|
729
729
|
name: 'Script',
|
|
730
730
|
code: `<script setup lang="ts">
|
|
731
|
-
import ChipList from '@cnamts/synapse'
|
|
731
|
+
import { ChipList, type ChipItem } from '@cnamts/synapse'
|
|
732
732
|
|
|
733
|
-
const items = [
|
|
733
|
+
const items: ChipItem[] = [
|
|
734
734
|
{
|
|
735
735
|
text: 'Email',
|
|
736
736
|
value: 'email',
|
|
@@ -822,10 +822,9 @@ export const WithEvents: Story = {
|
|
|
822
822
|
{
|
|
823
823
|
name: 'Script',
|
|
824
824
|
code: `<script setup lang="ts">
|
|
825
|
-
import ChipList from '@cnamts/synapse'
|
|
826
|
-
import type { ChipItem } from '@cnamts/synapse/src/components/ChipList/types'
|
|
825
|
+
import { ChipList, type ChipItem } from '@cnamts/synapse'
|
|
827
826
|
|
|
828
|
-
const items = [
|
|
827
|
+
const items: ChipItem[] = [
|
|
829
828
|
{
|
|
830
829
|
text: 'Email',
|
|
831
830
|
value: 'email',
|
|
@@ -933,9 +932,9 @@ export const WithPrependStateIcon: Story = {
|
|
|
933
932
|
{
|
|
934
933
|
name: 'Script',
|
|
935
934
|
code: `<script setup lang="ts">
|
|
936
|
-
import ChipList from '@cnamts/synapse'
|
|
935
|
+
import { ChipList, type ChipItem } from '@cnamts/synapse'
|
|
937
936
|
|
|
938
|
-
const items = [
|
|
937
|
+
const items: ChipItem[] = [
|
|
939
938
|
{
|
|
940
939
|
text: 'Email',
|
|
941
940
|
value: 'email',
|
|
@@ -1011,9 +1010,9 @@ export const WithAppendStateIcon: Story = {
|
|
|
1011
1010
|
{
|
|
1012
1011
|
name: 'Script',
|
|
1013
1012
|
code: `<script setup lang="ts">
|
|
1014
|
-
import ChipList from '@cnamts/synapse'
|
|
1013
|
+
import { ChipList, type ChipItem } from '@cnamts/synapse'
|
|
1015
1014
|
|
|
1016
|
-
const items = [
|
|
1015
|
+
const items: ChipItem[] = [
|
|
1017
1016
|
{
|
|
1018
1017
|
text: 'Email',
|
|
1019
1018
|
value: 'email',
|
|
@@ -1090,10 +1089,10 @@ export const WithCustomIcon: Story = {
|
|
|
1090
1089
|
{
|
|
1091
1090
|
name: 'Script',
|
|
1092
1091
|
code: `<script setup lang="ts">
|
|
1093
|
-
import ChipList from '@cnamts/synapse'
|
|
1092
|
+
import { ChipList, type ChipItem } from '@cnamts/synapse'
|
|
1094
1093
|
import { mdiAccount } from '@mdi/js'
|
|
1095
1094
|
|
|
1096
|
-
const items = [
|
|
1095
|
+
const items: ChipItem[] = [
|
|
1097
1096
|
{
|
|
1098
1097
|
text: 'Email',
|
|
1099
1098
|
value: 'email',
|
|
@@ -1172,9 +1171,9 @@ export const Customization: Story = {
|
|
|
1172
1171
|
{
|
|
1173
1172
|
name: 'Script',
|
|
1174
1173
|
code: `<script setup lang="ts">
|
|
1175
|
-
import ChipList from '
|
|
1174
|
+
import { ChipList, type ChipItem } from '@cnamts/synapse'
|
|
1176
1175
|
|
|
1177
|
-
const items = [
|
|
1176
|
+
const items: ChipItem[] = [
|
|
1178
1177
|
{
|
|
1179
1178
|
text: 'Email',
|
|
1180
1179
|
value: 'email',
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
color="primary"
|
|
204
204
|
size="small"
|
|
205
205
|
data-test-id="reset-btn"
|
|
206
|
-
class="overflow-btn px-1 ml-
|
|
206
|
+
class="overflow-btn px-1 ml-1 my-1"
|
|
207
207
|
@click="emitResetEvent"
|
|
208
208
|
>
|
|
209
209
|
{{ resetButtonText }}
|
|
@@ -243,4 +243,8 @@
|
|
|
243
243
|
.overflow-btn :deep(.v-btn__overlay) {
|
|
244
244
|
display: none;
|
|
245
245
|
}
|
|
246
|
+
|
|
247
|
+
.remove-chip {
|
|
248
|
+
padding: 0 !important;
|
|
249
|
+
}
|
|
246
250
|
</style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import {
|
|
2
|
+
import { isRequired } from '@/utils/rules/isRequired'
|
|
3
3
|
import { mdiChevronDown, mdiChevronUp } from '@mdi/js'
|
|
4
4
|
import { computed, ref } from 'vue'
|
|
5
5
|
import CookiesTable from '../CookiesTable/CookiesTable.vue'
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
<VRadioGroup
|
|
71
71
|
v-if="type !== 'essentials'"
|
|
72
72
|
:model-value="parsedValue"
|
|
73
|
-
:rules="[
|
|
73
|
+
:rules="[isRequired]"
|
|
74
74
|
data-test-id="radio-group"
|
|
75
75
|
inline
|
|
76
76
|
:label="locales.fieldLabel(locales[type].title)"
|