@cnamts/synapse 0.0.12-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 +4913 -4021
- package/dist/design-system-v3.umd.cjs +1 -1
- package/dist/src/components/Amelipro/types/types.d.ts +30 -57
- package/dist/src/components/Customs/SyTextField/SyTextField.d.ts +2 -0
- package/dist/src/components/DatePicker/DatePicker.d.ts +36 -44
- package/dist/src/components/DatePicker/DateTextInput.d.ts +33 -36
- 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/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/NirField/NirField.d.ts +14 -2
- package/dist/src/components/NotificationBar/NotificationBar.d.ts +5 -5
- package/dist/src/components/PasswordField/PasswordField.d.ts +2 -0
- package/dist/src/components/PeriodField/PeriodField.d.ts +159 -157
- package/dist/src/components/PhoneField/PhoneField.d.ts +22 -1
- package/dist/src/components/UploadWorkflow/AccessibiliteItems.d.ts +29 -0
- package/dist/src/components/UploadWorkflow/constants/ExpertiseLevelEnum.d.ts +4 -0
- package/dist/src/components/Usages/Usages.d.ts +10 -0
- package/dist/src/components/index.d.ts +3 -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/useFilterable/useFilterable.d.ts +1 -1
- package/dist/src/composables/validation/useValidation.d.ts +1 -0
- 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/style.css +1 -1
- package/package.json +3 -1
- package/src/assets/_radius.scss +12 -6
- package/src/assets/settings.scss +8 -0
- 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/SySelect/SySelect.mdx +1 -1
- package/src/components/Customs/SySelect/SySelect.vue +19 -4
- package/src/components/Customs/SyTextField/SyTextField.mdx +2 -2
- package/src/components/Customs/SyTextField/SyTextField.stories.ts +239 -0
- package/src/components/Customs/SyTextField/SyTextField.vue +3 -0
- package/src/components/DatePicker/DatePicker.stories.ts +177 -5
- package/src/components/DatePicker/DatePicker.vue +148 -347
- package/src/components/DatePicker/DateTextInput.vue +91 -251
- package/src/components/DatePicker/tests/DatePicker.spec.ts +118 -48
- 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/FileUpload/FileUpload.stories.ts +9 -7
- 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/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/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/NirField/NirField.stories.ts +165 -0
- package/src/components/NirField/NirField.vue +6 -2
- package/src/components/NirField/tests/config.spec.ts +65 -0
- package/src/components/NotificationBar/NotificationBar.mdx +2 -2
- package/src/components/NotificationBar/NotificationBar.stories.ts +59 -11
- 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.stories.ts +191 -4
- package/src/components/PasswordField/PasswordField.vue +3 -0
- package/src/components/PeriodField/PeriodField.stories.ts +214 -118
- package/src/components/PeriodField/PeriodField.vue +195 -148
- package/src/components/PeriodField/tests/PeriodField.spec.ts +146 -0
- package/src/components/PhoneField/PhoneField.stories.ts +101 -0
- package/src/components/PhoneField/PhoneField.vue +73 -17
- 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.vue +2 -2
- package/src/components/UploadWorkflow/constants/ExpertiseLevelEnum.ts +4 -0
- package/src/components/Usages/tests/Usages.spec.ts +183 -0
- package/src/components/index.ts +3 -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/useFilterable/useFilterable.ts +5 -4
- package/src/composables/validation/useValidation.ts +15 -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/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/GuideDuDev/LesBreackingChanges.mdx +36 -0
- package/src/stories/GuideDuDev/UtiliserLesRules.mdx +2 -2
- 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/dist/src/components/Amelipro/types/languages.d.ts +0 -6
- 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/Amelipro/types/languages.d.ts +0 -6
- package/src/components/Amelipro/types/types.d.ts +0 -65
- package/src/components/Customs/SyTextField/tests/__snapshots__/SyTextField.spec.ts.snap +0 -58
- 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/NirField/tests/config.spec.d.ts} +0 -0
- /package/dist/src/{utils/rules/email/tests/email.spec.d.ts → components/Usages/tests/Usages.spec.d.ts} +0 -0
- /package/dist/src/{utils/rules/required/tests/index.spec.d.ts → composables/date/tests/useDateFormat.spec.d.ts} +0 -0
- /package/dist/src/{utils/rules/required/tests/rulesMessageHelper.spec.d.ts → composables/date/tests/useDateInitialization.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/components/NirField/{tests → examples}//342/200/257dataset/342/200/257.md" +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,4 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { ValidationRule } from '../../composables/validation/useValidation';
|
|
2
3
|
type DisplayFormat = 'code' | 'code-abbreviation' | 'code-country' | 'country' | 'abbreviation';
|
|
3
4
|
type Indicatif = {
|
|
4
5
|
code: string;
|
|
@@ -56,14 +57,29 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
56
57
|
type: BooleanConstructor;
|
|
57
58
|
default: boolean;
|
|
58
59
|
};
|
|
60
|
+
disableErrorHandling: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
59
64
|
}>, {
|
|
60
65
|
computedValue: import('vue').ComputedRef<string>;
|
|
61
66
|
dialCode: import('vue').Ref<string | Record<string, any>, string | Record<string, any>>;
|
|
62
67
|
phoneMask: import('vue').Ref<string, string>;
|
|
63
68
|
counter: import('vue').Ref<number, number>;
|
|
64
|
-
hasError: import('vue').
|
|
69
|
+
hasError: import('vue').ComputedRef<boolean>;
|
|
65
70
|
phoneNumber: import('vue').Ref<string, string>;
|
|
66
71
|
mergedDialCodes: import('vue').ComputedRef<Indicatif[]>;
|
|
72
|
+
validation: {
|
|
73
|
+
errors: import('vue').Ref<string[], string[]>;
|
|
74
|
+
warnings: import('vue').Ref<string[], string[]>;
|
|
75
|
+
successes: import('vue').Ref<string[], string[]>;
|
|
76
|
+
hasError: import('vue').ComputedRef<boolean>;
|
|
77
|
+
hasWarning: import('vue').ComputedRef<boolean>;
|
|
78
|
+
hasSuccess: import('vue').ComputedRef<boolean>;
|
|
79
|
+
validateField: (value: unknown, rules?: ValidationRule[], warningRules?: ValidationRule[], successRules?: ValidationRule[]) => import('../../composables/validation/useValidation').ValidationResult;
|
|
80
|
+
validateOnSubmit: () => Promise<boolean>;
|
|
81
|
+
clearValidation: () => void;
|
|
82
|
+
};
|
|
67
83
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
68
84
|
"update:modelValue": (...args: any[]) => void;
|
|
69
85
|
change: (...args: any[]) => void;
|
|
@@ -117,6 +133,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
117
133
|
type: BooleanConstructor;
|
|
118
134
|
default: boolean;
|
|
119
135
|
};
|
|
136
|
+
disableErrorHandling: {
|
|
137
|
+
type: BooleanConstructor;
|
|
138
|
+
default: boolean;
|
|
139
|
+
};
|
|
120
140
|
}>> & Readonly<{
|
|
121
141
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
122
142
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -126,6 +146,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
126
146
|
outlined: boolean;
|
|
127
147
|
modelValue: string;
|
|
128
148
|
displayAsterisk: boolean;
|
|
149
|
+
disableErrorHandling: boolean;
|
|
129
150
|
dialCodeModel: string | Record<string, any>;
|
|
130
151
|
outlinedIndicatif: boolean;
|
|
131
152
|
withCountryCode: boolean;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ExpertiseLevelEnum } from './constants/ExpertiseLevelEnum';
|
|
2
|
+
export declare const AccessibiliteItemsIndeterminate: {
|
|
3
|
+
title: string;
|
|
4
|
+
subtitle: string;
|
|
5
|
+
items: {
|
|
6
|
+
precision: string;
|
|
7
|
+
link: string;
|
|
8
|
+
solution: {
|
|
9
|
+
info1: string;
|
|
10
|
+
info2: string;
|
|
11
|
+
info3: string;
|
|
12
|
+
}[];
|
|
13
|
+
expertise: ExpertiseLevelEnum;
|
|
14
|
+
}[];
|
|
15
|
+
}[];
|
|
16
|
+
export declare const AccessibiliteItemsValidated: {
|
|
17
|
+
title: string;
|
|
18
|
+
subtitle: string;
|
|
19
|
+
items: {
|
|
20
|
+
precision: string;
|
|
21
|
+
link: string;
|
|
22
|
+
solution: {
|
|
23
|
+
info1: string;
|
|
24
|
+
info2: string;
|
|
25
|
+
info3: string;
|
|
26
|
+
}[];
|
|
27
|
+
expertise: ExpertiseLevelEnum;
|
|
28
|
+
}[];
|
|
29
|
+
}[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CustomizableOptions } from '../../composables/useCustomizableOptions';
|
|
2
|
+
type __VLS_Props = CustomizableOptions & {
|
|
3
|
+
items1?: string[];
|
|
4
|
+
items2?: string[];
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
items2: string[];
|
|
8
|
+
items1: string[];
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -5,6 +5,7 @@ export { useNotificationService } from '../services/NotificationService';
|
|
|
5
5
|
export { default as BackBtn } from './BackBtn/BackBtn';
|
|
6
6
|
export { default as BackToTopBtn } from './BackToTopBtn/BackToTopBtn';
|
|
7
7
|
export { default as ChipList } from './ChipList/ChipList';
|
|
8
|
+
export * from './ChipList/types';
|
|
8
9
|
export { default as CollapsibleList } from './CollapsibleList/CollapsibleList';
|
|
9
10
|
export { default as ContextualMenu } from './ContextualMenu/ContextualMenu';
|
|
10
11
|
export { default as CookieBanner } from './CookieBanner/CookieBanner';
|
|
@@ -56,10 +57,12 @@ export { default as PeriodField } from './PeriodField/PeriodField';
|
|
|
56
57
|
export { default as PhoneField } from './PhoneField/PhoneField';
|
|
57
58
|
export { default as RangeField } from './RangeField/RangeField';
|
|
58
59
|
export { default as RatingPicker } from './RatingPicker/RatingPicker';
|
|
60
|
+
export { default as SearchListField } from './SearchListField/SearchListField';
|
|
59
61
|
export { default as SelectBtnField } from './SelectBtnField/SelectBtnField';
|
|
60
62
|
export { default as SkipLink } from './SkipLink/SkipLink';
|
|
61
63
|
export { default as SocialMediaLinks } from './SocialMediaLinks/SocialMediaLinks';
|
|
62
64
|
export { default as SubHeader } from './SubHeader/SubHeader';
|
|
63
65
|
export { default as SyAlert } from './SyAlert/SyAlert';
|
|
66
|
+
export { default as TableToolbar } from './TableToolbar/TableToolbar';
|
|
64
67
|
export { default as UploadWorkflow } from './UploadWorkflow/UploadWorkflow';
|
|
65
68
|
export { default as UserMenuBtn } from './UserMenuBtn/UserMenuBtn';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Composable pour le formatage et le parsing des dates
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Parse une chaîne de caractères en objet Date selon un format spécifié
|
|
6
|
+
* @param dateString - La chaîne de caractères à parser
|
|
7
|
+
* @param format - Le format de la date (ex: 'DD/MM/YYYY')
|
|
8
|
+
* @returns Un objet Date ou null si la chaîne n'est pas valide
|
|
9
|
+
*/
|
|
10
|
+
export declare const parseDate: (dateString: string, format: string) => Date | null;
|
|
11
|
+
/**
|
|
12
|
+
* Formate une date selon un format spécifié
|
|
13
|
+
* @param date - La date à formater
|
|
14
|
+
* @param format - Le format de sortie (ex: 'DD/MM/YYYY')
|
|
15
|
+
* @returns La date formatée en chaîne de caractères
|
|
16
|
+
*/
|
|
17
|
+
export declare const formatDate: (date: Date, format: string) => string;
|
|
18
|
+
/**
|
|
19
|
+
* Hook composable pour le formatage et le parsing des dates
|
|
20
|
+
* @returns Fonctions de formatage et parsing de dates
|
|
21
|
+
*/
|
|
22
|
+
export declare function useDateFormat(): {
|
|
23
|
+
parseDate: (dateString: string, format: string) => Date | null;
|
|
24
|
+
formatDate: (date: Date, format: string) => string;
|
|
25
|
+
};
|
|
26
|
+
export default useDateFormat;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type DateValue = string | [string, string] | null;
|
|
2
|
+
export type DateInput = string | string[] | null | object;
|
|
3
|
+
/**
|
|
4
|
+
* Initialise les dates sélectionnées à partir d'une valeur d'entrée
|
|
5
|
+
* @param modelValue - La valeur d'entrée (peut être une chaîne, un tableau, null ou un objet)
|
|
6
|
+
* @param displayFormat - Le format d'affichage des dates
|
|
7
|
+
* @param returnFormat - Le format de retour des dates (optionnel)
|
|
8
|
+
* @returns Une date, un tableau de dates ou null
|
|
9
|
+
*/
|
|
10
|
+
export declare const initializeSelectedDates: (modelValue: DateInput | null, displayFormat: string, returnFormat?: string) => Date | Date[] | null;
|
|
11
|
+
/**
|
|
12
|
+
* Hook composable pour l'initialisation des dates
|
|
13
|
+
* @returns Fonction d'initialisation des dates
|
|
14
|
+
*/
|
|
15
|
+
export declare function useDateInitialization(): {
|
|
16
|
+
initializeSelectedDates: (modelValue: DateInput, displayFormat: string, returnFormat?: string) => Date | Date[] | null;
|
|
17
|
+
};
|
|
18
|
+
export default useDateInitialization;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Améliore l'accessibilité du DatePicker en ajoutant des attributs ARIA et des instructions pour les lecteurs d'écran
|
|
3
|
+
* @returns Une fonction pour mettre à jour l'accessibilité du DatePicker
|
|
4
|
+
*/
|
|
5
|
+
export declare function useDatePickerAccessibility(): {
|
|
6
|
+
updateAccessibility: () => Promise<void>;
|
|
7
|
+
};
|
|
8
|
+
export default useDatePickerAccessibility;
|
|
@@ -26,7 +26,7 @@ export default function useFilterable(model: Ref<FilterProp>, emits: any): {
|
|
|
26
26
|
removeChip: (filter: FilterItem, chip: ChipItem) => void;
|
|
27
27
|
resetFilter: (filter: FilterItem) => void;
|
|
28
28
|
resetAllFilters: () => void;
|
|
29
|
-
getChips: (
|
|
29
|
+
getChips: (filter: FilterItem) => ChipItem[];
|
|
30
30
|
getFilterCount: (filter: FilterItem) => number;
|
|
31
31
|
formatFilterName: (name: string) => string;
|
|
32
32
|
};
|
package/dist/src/main.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Matches DD/MM/YYYY with one of the DATE_SEPARATORS */
|
|
2
|
+
export declare const DATE_FORMAT_REGEX: RegExp;
|
|
3
|
+
export declare enum DateErrorCodes {
|
|
4
|
+
WRONG_FORMAT = "wrongFormat",
|
|
5
|
+
MONTH_NOT_MATCH = "monthNotMatch",
|
|
6
|
+
NOT_LEAP_YEAR = "notALeapYear"
|
|
7
|
+
}
|
|
8
|
+
/** Check if a date is valid */
|
|
9
|
+
export declare function isDateValid(date: string): string | true;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './doMatchPattern/index';
|
|
2
|
+
export * from './isDateValid/index';
|
|
3
|
+
export * from './isExactLength/index';
|
|
4
|
+
export * from './isMaxLength/index';
|
|
5
|
+
export * from './isMinLength/index';
|
|
6
|
+
export * from './isNotAfterDate/index';
|
|
7
|
+
export * from './isNotBeforeDate/index';
|
|
8
|
+
export * from './isNotBeforeToday/index';
|
|
9
|
+
export * from './isNotAfterToday/index';
|
|
10
|
+
export * from './isRequired/index';
|
|
11
|
+
export * from './isValidEmail/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ErrorMessages, ValidationRule } from '../types';
|
|
2
|
+
/** Check that the value is not after today (DD/MM/YYYY format) */
|
|
3
|
+
export declare function isNotAfterTodayFn(errorMessages?: ErrorMessages): ValidationRule;
|
|
4
|
+
export declare const isNotAfterToday: ValidationRule;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ErrorMessages, ValidationRule } from '../types';
|
|
2
|
+
/** Check that the value is not before today (DD/MM/YYYY format) */
|
|
3
|
+
export declare function isNotBeforeTodayFn(errorMessages?: ErrorMessages): ValidationRule;
|
|
4
|
+
export declare const isNotBeforeToday: ValidationRule;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|