@cnamts/synapse 1.0.20 → 1.0.21
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/{DateFilter-XURUmpMl.js → DateFilter-uN8OURoP.js} +1 -1
- package/dist/{NumberFilter-BZc0O8wV.js → NumberFilter-sm1dQNQi.js} +1 -1
- package/dist/{PeriodFilter-ZNdXcl3p.js → PeriodFilter-Cklsxnh9.js} +1 -1
- package/dist/{SelectFilter-DshYU5OK.js → SelectFilter-CWefj27Z.js} +1 -1
- package/dist/{TextFilter-D_c5dRPl.js → TextFilter-Ddyj885L.js} +1 -1
- package/dist/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.d.ts +160 -0
- package/dist/components/Customs/SyCheckBoxGroup/locales.d.ts +3 -0
- package/dist/components/Customs/SyCheckBoxGroup/types.d.ts +10 -0
- package/dist/components/Customs/SyCheckbox/SyCheckbox.d.ts +1545 -2
- package/dist/components/Customs/SyRadioGroup/SyRadioGroup.d.ts +1495 -2
- package/dist/components/DeclarationAccessibilityPage/DeclarationAccessibilityPage.d.ts +60 -0
- package/dist/components/ErrorPage/ErrorPage.d.ts +1 -12
- package/dist/components/ErrorPage/locales.d.ts +18 -3
- package/dist/components/FileUpload/FileUpload.d.ts +2 -0
- package/dist/components/MaintenancePage/locales.d.ts +18 -2
- package/dist/components/NotFoundPage/locales.d.ts +20 -4
- package/dist/components/StatusPage/StatusPage.d.ts +39 -0
- package/dist/components/UploadWorkflow/UploadWorkflow.d.ts +13 -3
- package/dist/components/index.d.ts +3 -0
- package/dist/design-system-v3.js +126 -123
- package/dist/design-system-v3.umd.cjs +163 -163
- package/dist/{main-CuI6xaPq.js → main-CWniLr0s.js} +15191 -14668
- package/dist/style.css +1 -1
- package/dist/utils/theme/index.d.ts +6 -0
- package/package.json +7 -4
- package/src/components/ContextualMenu/ContextualMenu.stories.ts +0 -3
- package/src/components/ContextualMenu/accessibilite/Accessibility.mdx +67 -11
- package/src/components/CookieBanner/CookieBanner.stories.ts +11 -20
- package/src/components/CookieBanner/CookieBanner.vue +20 -5
- package/src/components/CookieBanner/accessibilite/Accessibility.mdx +67 -11
- package/src/components/CookieBanner/tests/CookieBanner.spec.ts +48 -4
- package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.mdx +32 -0
- package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.stories.ts +856 -0
- package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.vue +334 -0
- package/src/components/Customs/SyCheckBoxGroup/accessibilite/Accessibility.mdx +243 -0
- package/src/components/Customs/SyCheckBoxGroup/locales.ts +3 -0
- package/src/components/Customs/SyCheckBoxGroup/tests/SyCheckBoxGroup.a11y.spec.ts +30 -0
- package/src/components/Customs/SyCheckBoxGroup/tests/SyCheckBoxGroup.spec.ts +152 -0
- package/src/components/Customs/SyCheckBoxGroup/types.ts +10 -0
- package/src/components/Customs/SyCheckbox/SyCheckbox.vue +16 -27
- package/src/components/Customs/SyCheckbox/accessibilite/Accessibility.mdx +1 -1
- package/src/components/Customs/SyForm/SyForm.a11y.spec.ts +1 -1
- package/src/components/Customs/SyRadioGroup/SyRadioGroup.vue +16 -43
- package/src/components/DatePicker/CalendarMode/DatePicker.vue +35 -11
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.stories.ts +43 -2
- package/src/components/DatePicker/DateTextInput/DateTextInput.vue +48 -21
- package/src/components/DatePicker/DateTextInput/NoCalendar.stories.ts +98 -0
- package/src/components/DeclarationAccessibilityPage/DeclarationAccessibilityPage.mdx +83 -0
- package/src/components/DeclarationAccessibilityPage/DeclarationAccessibilityPage.stories.ts +502 -0
- package/src/components/DeclarationAccessibilityPage/DeclarationAccessibilityPage.vue +428 -0
- package/src/components/DeclarationAccessibilityPage/accessibilite/Accessibility.mdx +75 -0
- package/src/components/DeclarationAccessibilityPage/tests/DeclarationAccessibilityPage.a11y.spec.ts +53 -0
- package/src/components/DeclarationAccessibilityPage/tests/DeclarationAccessibilityPage.spec.ts +59 -0
- package/src/components/DiacriticPicker/DiacriticPicker.vue +20 -1
- package/src/components/ErrorPage/ErrorPage.mdx +6 -16
- package/src/components/ErrorPage/ErrorPage.stories.ts +16 -87
- package/src/components/ErrorPage/ErrorPage.vue +38 -125
- package/src/components/ErrorPage/accessibilite/Accessibility.mdx +68 -6
- package/src/components/ErrorPage/assets/error-ap.svg +1774 -0
- package/src/components/ErrorPage/locales.ts +21 -3
- package/src/components/ErrorPage/tests/ErrorPage.a11y.spec.ts +5 -13
- package/src/components/ErrorPage/tests/ErrorPage.spec.ts +2 -41
- package/src/components/ErrorPage/tests/__snapshots__/ErrorPage.spec.ts.snap +8 -266
- package/src/components/FileUpload/FileUpload.vue +5 -0
- package/src/components/FooterBar/FooterBar.stories.ts +18 -14
- package/src/components/FooterBar/defaultSocialMediaLinks.ts +6 -4
- package/src/components/MaintenancePage/MaintenancePage.mdx +1 -1
- package/src/components/MaintenancePage/MaintenancePage.vue +15 -7
- package/src/components/MaintenancePage/accessibilite/Accessibility.mdx +61 -6
- package/src/components/MaintenancePage/assets/maintenance-ap.svg +1718 -0
- package/src/components/MaintenancePage/locales.ts +24 -3
- package/src/components/MaintenancePage/tests/MaintenancePage.a11y.spec.ts +75 -3
- package/src/components/MaintenancePage/tests/MaintenancePage.spec.ts +42 -2
- package/src/components/MaintenancePage/tests/__snapshots__/MaintenancePage.spec.ts.snap +3 -2
- package/src/components/NotFoundPage/NotFoundPage.mdx +1 -1
- package/src/components/NotFoundPage/NotFoundPage.stories.ts +3 -3
- package/src/components/NotFoundPage/NotFoundPage.vue +16 -11
- package/src/components/NotFoundPage/accessibilite/Accessibility.mdx +78 -6
- package/src/components/NotFoundPage/assets/not-found-ap.svg +2061 -0
- package/src/components/NotFoundPage/locales.ts +24 -4
- package/src/components/NotFoundPage/tests/NotFoundPage.a11y.spec.ts +168 -4
- package/src/components/NotFoundPage/tests/NotFoundPage.spec.ts +100 -12
- package/src/components/NotFoundPage/tests/__snapshots__/NotFoundPage.spec.ts.snap +2 -2
- package/src/components/NotificationBar/NotificationBar.mdx +2 -2
- package/src/components/NotificationBar/accessibilite/Accessibility.mdx +68 -8
- package/src/components/PageContainer/tests/PageContainer.a11y.spec.ts +14 -7
- package/src/components/PhoneField/PhoneField.stories.ts +46 -38
- package/src/components/SocialMediaLinks/DefaultSocialMediaLinks.ts +6 -4
- package/src/components/SocialMediaLinks/SocialMediaLinks.mdx +7 -5
- package/src/components/SocialMediaLinks/SocialMediaLinks.stories.ts +17 -13
- package/src/components/SocialMediaLinks/SocialMediaLinks.vue +9 -1
- package/src/components/SocialMediaLinks/accessibilite/Accessibility.mdx +63 -11
- package/src/components/SocialMediaLinks/tests/DefaultSocialMediaLinks.spec.ts +5 -5
- package/src/components/SocialMediaLinks/tests/SocialMediaLinks.a11y.spec.ts +59 -0
- package/src/components/SocialMediaLinks/tests/SocialMediaLinks.spec.ts +9 -7
- package/src/components/StatusPage/StatusPage.mdx +22 -0
- package/src/components/StatusPage/StatusPage.stories.ts +193 -0
- package/src/components/StatusPage/StatusPage.vue +145 -0
- package/src/components/StatusPage/accessibilite/Accessibility.mdx +81 -0
- package/src/components/StatusPage/tests/StatusPage.a11y.spec.ts +29 -0
- package/src/components/StatusPage/tests/StatusPage.spec.ts +50 -0
- package/src/components/StatusPage/tests/__snapshots__/StatusPage.spec.ts.snap +270 -0
- package/src/components/TableToolbar/TableToolbar.stories.ts +6 -6
- package/src/components/TableToolbar/TableToolbar.vue +1 -1
- package/src/components/TableToolbar/tests/__snapshots__/TableToolbar.spec.ts.snap +0 -5
- package/src/components/UploadWorkflow/UploadWorkflow.mdx +11 -1
- package/src/components/UploadWorkflow/UploadWorkflow.stories.ts +107 -3
- package/src/components/UploadWorkflow/UploadWorkflow.vue +35 -24
- package/src/components/UploadWorkflow/tests/UploadWorkflow.spec.ts +48 -0
- package/src/components/UploadWorkflow/tests/__snapshots__/UploadWorkflow.spec.ts.snap +9 -5
- package/src/components/UploadWorkflow/useFileList.ts +7 -0
- package/src/components/index.ts +3 -0
- package/src/composables/rules/tests/useFieldValidation.spec.ts +39 -3
- package/src/composables/rules/useFieldValidation.ts +24 -9
- package/src/stories/Accessibilite/KitDePreAudit/Preaudit.mdx +7 -0
- package/src/utils/theme/index.ts +19 -0
- package/src/utils/theme/tests/useThemeLocales.spec.ts +245 -0
- package/dist/components/MaintenancePage/index.d.ts +0 -2
- package/src/components/Customs/SyPagination/tests/SyPagination.a11y.spec.ts +0 -27
- package/src/components/Customs/SyTabs/tests/SyTabs.a11y.spec.ts +0 -51
- package/src/components/DataListItem/tests/DataListItem.a11y.spec.ts +0 -31
- package/src/components/DatePicker/CalendarMode/tests/DatePicker.a11y.spec.ts +0 -27
- package/src/components/DatePicker/ComplexDatePicker/tests/ComplexDatePicker.a11y.spec.ts +0 -26
- package/src/components/DatePicker/DateTextInput/tests/DateTextInput.a11y.spec.ts +0 -27
- package/src/components/DownloadBtn/tests/DownloadBtn.a11y.spec.ts +0 -26
- package/src/components/ExternalLinks/tests/ExternalLinks.a11y.spec.ts +0 -39
- package/src/components/HeaderNavigationBar/tests/HeaderNavigationBar.a11y.spec.ts +0 -45
- package/src/components/HeaderToolbar/tests/HeaderToolbar.a11y.spec.ts +0 -25
- package/src/components/LunarCalendar/tests/LunarCalendar.a11y.spec.ts +0 -31
- package/src/components/MaintenancePage/index.ts +0 -3
- package/src/components/PageContainer/Accessibilite/AccessibilityGuide.mdx +0 -0
- package/src/components/PaginatedTable/tests/PaginatedTable.a11y.spec.ts +0 -43
- package/src/components/PhoneField/tests/PhoneField.a11y.spec.ts +0 -34
- /package/src/components/NotFoundPage/assets/{not-found.svg → not-found-cnam.svg} +0 -0
- /package/src/components/PageContainer/{Accessibilite → accessibilite}/Accessibility.mdx +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as b, computed as D, openBlock as k, createBlock as p } from "vue";
|
|
2
|
-
import { D as C, u as F, _ as V } from "./main-
|
|
2
|
+
import { D as C, u as F, _ as V } from "./main-CWniLr0s.js";
|
|
3
3
|
const v = /* @__PURE__ */ b({
|
|
4
4
|
__name: "DateFilter",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as k, ref as h, watch as x, computed as T, openBlock as V, createElementBlock as F, createVNode as w } from "vue";
|
|
2
|
-
import { a as S, _ as D } from "./main-
|
|
2
|
+
import { a as S, _ as D } from "./main-CWniLr0s.js";
|
|
3
3
|
const E = { class: "number-filter-container" }, B = /* @__PURE__ */ k({
|
|
4
4
|
__name: "NumberFilter",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as b, computed as h, openBlock as p, createBlock as k } from "vue";
|
|
2
|
-
import { P as C, _ as F } from "./main-
|
|
2
|
+
import { P as C, _ as F } from "./main-CWniLr0s.js";
|
|
3
3
|
const V = /* @__PURE__ */ b({
|
|
4
4
|
__name: "PeriodFilter",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as C, computed as p, ref as F, openBlock as S, createElementBlock as A, createVNode as B } from "vue";
|
|
2
|
-
import { S as E, _ as D } from "./main-
|
|
2
|
+
import { S as E, _ as D } from "./main-CWniLr0s.js";
|
|
3
3
|
const n = {
|
|
4
4
|
defaultOption: "- choisir -",
|
|
5
5
|
emptyValue: "(vide)"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as C, ref as b, watch as k, computed as T, openBlock as x, createElementBlock as w, createVNode as F } from "vue";
|
|
2
|
-
import { a as V, _ as E } from "./main-
|
|
2
|
+
import { a as V, _ as E } from "./main-CWniLr0s.js";
|
|
3
3
|
const S = { class: "text-filter-container" }, B = /* @__PURE__ */ C({
|
|
4
4
|
__name: "TextFilter",
|
|
5
5
|
props: {
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { ValidationRule } from '../../../composables/validation/useValidation';
|
|
2
|
+
import { Option } from './types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
ariaLabel?: string;
|
|
5
|
+
ariaLabelledby?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
customRules?: ValidationRule[];
|
|
8
|
+
customSuccessRules?: ValidationRule[];
|
|
9
|
+
customWarningRules?: ValidationRule[];
|
|
10
|
+
density?: 'default' | 'comfortable' | 'compact';
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
disableErrorHandling?: boolean;
|
|
13
|
+
displayAsterisk?: boolean;
|
|
14
|
+
errorMessages?: string[] | null;
|
|
15
|
+
hideDetails?: boolean | 'auto';
|
|
16
|
+
id?: string;
|
|
17
|
+
isValidateOnBlur?: boolean;
|
|
18
|
+
label?: string;
|
|
19
|
+
modelValue?: (string | number) | (string | number)[] | null;
|
|
20
|
+
multiple?: boolean;
|
|
21
|
+
name?: string;
|
|
22
|
+
options?: Option[];
|
|
23
|
+
readonly?: boolean;
|
|
24
|
+
required?: boolean;
|
|
25
|
+
showSuccessMessages?: boolean;
|
|
26
|
+
successMessages?: string[] | null;
|
|
27
|
+
title?: string;
|
|
28
|
+
warningMessages?: string[] | null;
|
|
29
|
+
};
|
|
30
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
31
|
+
validation: {
|
|
32
|
+
errors: import('vue').Ref<string[], string[]>;
|
|
33
|
+
warnings: import('vue').Ref<string[], string[]>;
|
|
34
|
+
successes: import('vue').Ref<string[], string[]>;
|
|
35
|
+
hasError: import('vue').ComputedRef<boolean>;
|
|
36
|
+
hasWarning: import('vue').ComputedRef<boolean>;
|
|
37
|
+
hasSuccess: import('vue').ComputedRef<boolean>;
|
|
38
|
+
validateField: (value: unknown, rules?: ValidationRule[], warningRules?: ValidationRule[], successRules?: ValidationRule[]) => import('../../../composables/validation/useValidation').ValidationResult;
|
|
39
|
+
validateOnSubmit: () => Promise<boolean>;
|
|
40
|
+
clearValidation: () => void;
|
|
41
|
+
};
|
|
42
|
+
validateOnSubmit: () => boolean;
|
|
43
|
+
checkErrorOnBlur: () => void;
|
|
44
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
45
|
+
change: (...args: any[]) => void;
|
|
46
|
+
"update:modelValue": (...args: any[]) => void;
|
|
47
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
48
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
}>, {
|
|
51
|
+
ariaLabel: string;
|
|
52
|
+
label: string;
|
|
53
|
+
title: string;
|
|
54
|
+
color: string;
|
|
55
|
+
disabled: boolean;
|
|
56
|
+
density: "default" | "comfortable" | "compact";
|
|
57
|
+
readonly: boolean;
|
|
58
|
+
id: string;
|
|
59
|
+
name: string;
|
|
60
|
+
options: Option[];
|
|
61
|
+
modelValue: (string | number) | (string | number)[] | null;
|
|
62
|
+
multiple: boolean;
|
|
63
|
+
required: boolean;
|
|
64
|
+
errorMessages: string[] | null;
|
|
65
|
+
warningMessages: string[] | null;
|
|
66
|
+
successMessages: string[] | null;
|
|
67
|
+
displayAsterisk: boolean;
|
|
68
|
+
customRules: ValidationRule[];
|
|
69
|
+
customWarningRules: ValidationRule[];
|
|
70
|
+
customSuccessRules: ValidationRule[];
|
|
71
|
+
showSuccessMessages: boolean;
|
|
72
|
+
isValidateOnBlur: boolean;
|
|
73
|
+
disableErrorHandling: boolean;
|
|
74
|
+
hideDetails: boolean | "auto";
|
|
75
|
+
ariaLabelledby: string;
|
|
76
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
77
|
+
messagesRef: import('vue').CreateComponentPublicInstanceWithMixins<{
|
|
78
|
+
active: boolean;
|
|
79
|
+
transition: string | boolean | (import('vue').TransitionProps & {
|
|
80
|
+
component?: import('vue').Component;
|
|
81
|
+
}) | {
|
|
82
|
+
component: import('vue').Component;
|
|
83
|
+
leaveAbsolute: boolean;
|
|
84
|
+
group: boolean;
|
|
85
|
+
} | null;
|
|
86
|
+
style: import('vue').StyleValue;
|
|
87
|
+
messages: string | readonly string[];
|
|
88
|
+
} & {
|
|
89
|
+
color?: string | undefined;
|
|
90
|
+
class?: any;
|
|
91
|
+
} & {
|
|
92
|
+
$children?: {} | import('vue').VNodeChild | {
|
|
93
|
+
$stable?: boolean;
|
|
94
|
+
} | {
|
|
95
|
+
message?: ((arg: import('vuetify/lib/components/VMessages/VMessages.mjs').VMessageSlot) => import('vue').VNodeChild) | undefined;
|
|
96
|
+
};
|
|
97
|
+
'v-slots'?: {
|
|
98
|
+
message?: false | ((arg: import('vuetify/lib/components/VMessages/VMessages.mjs').VMessageSlot) => import('vue').VNodeChild) | undefined;
|
|
99
|
+
} | undefined;
|
|
100
|
+
} & {
|
|
101
|
+
"v-slot:message"?: false | ((arg: import('vuetify/lib/components/VMessages/VMessages.mjs').VMessageSlot) => import('vue').VNodeChild) | undefined;
|
|
102
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, Record<string, any>, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, {
|
|
103
|
+
active: boolean;
|
|
104
|
+
transition: string | boolean | (import('vue').TransitionProps & {
|
|
105
|
+
component?: import('vue').Component;
|
|
106
|
+
}) | {
|
|
107
|
+
component: import('vue').Component;
|
|
108
|
+
leaveAbsolute: boolean;
|
|
109
|
+
group: boolean;
|
|
110
|
+
} | null;
|
|
111
|
+
style: import('vue').StyleValue;
|
|
112
|
+
messages: string | readonly string[];
|
|
113
|
+
}, true, {}, import('vue').SlotsType<Partial<{
|
|
114
|
+
message: (arg: import('vuetify/lib/components/VMessages/VMessages.mjs').VMessageSlot) => import('vue').VNode[];
|
|
115
|
+
}>>, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
116
|
+
P: {};
|
|
117
|
+
B: {};
|
|
118
|
+
D: {};
|
|
119
|
+
C: {};
|
|
120
|
+
M: {};
|
|
121
|
+
Defaults: {};
|
|
122
|
+
}, {
|
|
123
|
+
active: boolean;
|
|
124
|
+
transition: string | boolean | (import('vue').TransitionProps & {
|
|
125
|
+
component?: import('vue').Component;
|
|
126
|
+
}) | {
|
|
127
|
+
component: import('vue').Component;
|
|
128
|
+
leaveAbsolute: boolean;
|
|
129
|
+
group: boolean;
|
|
130
|
+
} | null;
|
|
131
|
+
style: import('vue').StyleValue;
|
|
132
|
+
messages: string | readonly string[];
|
|
133
|
+
} & {
|
|
134
|
+
color?: string | undefined;
|
|
135
|
+
class?: any;
|
|
136
|
+
} & {
|
|
137
|
+
$children?: {} | import('vue').VNodeChild | {
|
|
138
|
+
$stable?: boolean;
|
|
139
|
+
} | {
|
|
140
|
+
message?: ((arg: import('vuetify/lib/components/VMessages/VMessages.mjs').VMessageSlot) => import('vue').VNodeChild) | undefined;
|
|
141
|
+
};
|
|
142
|
+
'v-slots'?: {
|
|
143
|
+
message?: false | ((arg: import('vuetify/lib/components/VMessages/VMessages.mjs').VMessageSlot) => import('vue').VNodeChild) | undefined;
|
|
144
|
+
} | undefined;
|
|
145
|
+
} & {
|
|
146
|
+
"v-slot:message"?: false | ((arg: import('vuetify/lib/components/VMessages/VMessages.mjs').VMessageSlot) => import('vue').VNodeChild) | undefined;
|
|
147
|
+
}, {}, {}, {}, {}, {
|
|
148
|
+
active: boolean;
|
|
149
|
+
transition: string | boolean | (import('vue').TransitionProps & {
|
|
150
|
+
component?: import('vue').Component;
|
|
151
|
+
}) | {
|
|
152
|
+
component: import('vue').Component;
|
|
153
|
+
leaveAbsolute: boolean;
|
|
154
|
+
group: boolean;
|
|
155
|
+
} | null;
|
|
156
|
+
style: import('vue').StyleValue;
|
|
157
|
+
messages: string | readonly string[];
|
|
158
|
+
}> | null;
|
|
159
|
+
}, HTMLFieldSetElement>;
|
|
160
|
+
export default _default;
|