@cnamts/synapse 0.0.14-alpha → 0.0.16-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/components/CookiesSelection/CookiesSelection.d.ts +26 -26
- package/dist/components/Customs/SyInputSelect/SyInputSelect.d.ts +2 -2
- package/dist/components/Customs/SySelect/SySelect.d.ts +24 -12
- package/dist/components/Customs/SySelect/locales.d.ts +3 -0
- package/dist/components/Customs/SyTextField/SyTextField.d.ts +1393 -3
- package/dist/components/DatePicker/DatePicker.d.ts +3532 -22
- package/dist/components/DatePicker/DateTextInput.d.ts +1408 -11
- package/dist/components/DialogBox/config.d.ts +1 -1
- package/dist/components/DownloadBtn/DownloadBtn.d.ts +2 -0
- package/dist/components/LangBtn/LangBtn.d.ts +467 -1
- package/dist/components/LangBtn/config.d.ts +1 -3
- package/dist/components/NirField/NirField.d.ts +2805 -15
- package/dist/components/PasswordField/PasswordField.d.ts +2 -2
- package/dist/components/PeriodField/PeriodField.d.ts +7345 -325
- package/dist/components/PhoneField/PhoneField.d.ts +3 -3
- package/dist/components/SelectBtnField/SelectBtnField.d.ts +1 -1
- package/dist/components/SkipLink/SkipLink.d.ts +3 -2
- package/dist/components/SyAlert/SyAlert.d.ts +72 -1
- package/dist/components/UploadWorkflow/UploadWorkflow.d.ts +26 -26
- package/dist/components/UserMenuBtn/UserMenuBtn.d.ts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/composables/date/useDateFormat.d.ts +2 -2
- package/dist/composables/date/useDateFormatDayjs.d.ts +23 -0
- package/dist/composables/date/useDateInitializationDayjs.d.ts +18 -0
- package/dist/design-system-v3.js +4314 -3987
- package/dist/design-system-v3.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/dist/vuetifyConfig.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/BackBtn/Accessibilite.stories.ts +4 -0
- package/src/components/BackBtn/BackBtn.vue +2 -1
- package/src/components/BackToTopBtn/Accessibilite.stories.ts +4 -0
- package/src/components/BackToTopBtn/BackToTopBtn.stories.ts +78 -21
- package/src/components/BackToTopBtn/BackToTopBtn.vue +15 -0
- package/src/components/BackToTopBtn/config.ts +2 -2
- package/src/components/BackToTopBtn/tests/__snapshots__/BackToTopBtn.spec.ts.snap +4 -4
- package/src/components/CopyBtn/Accessibilite.stories.ts +4 -0
- package/src/components/Customs/SyBtnSelect/SyBtnSelect.stories.ts +2 -2
- package/src/components/Customs/SyBtnSelect/SyBtnSelect.vue +0 -1
- package/src/components/Customs/SyInputSelect/SyInputSelect.stories.ts +3 -3
- package/src/components/Customs/SyInputSelect/SyInputSelect.vue +4 -4
- package/src/components/Customs/SySelect/SySelect.stories.ts +4 -0
- package/src/components/Customs/SySelect/SySelect.vue +75 -10
- package/src/components/Customs/SySelect/locales.ts +3 -0
- package/src/components/Customs/SySelect/tests/SySelect.spec.ts +24 -2
- package/src/components/Customs/SyTextField/Accessibilite.stories.ts +7 -0
- package/src/components/Customs/SyTextField/SyTextField.stories.ts +14 -1
- package/src/components/Customs/SyTextField/SyTextField.vue +85 -20
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.vue +795 -0
- package/src/components/DatePicker/DatePicker.stories.ts +432 -1
- package/src/components/DatePicker/DatePicker.vue +143 -76
- package/src/components/DatePicker/DatePickerValidation.mdx +338 -0
- package/src/components/DatePicker/DatePickerValidation.stories.ts +30 -0
- package/src/components/DatePicker/DateTextInput.vue +87 -135
- package/src/components/DatePicker/docExamples/DatePickerBidirectionalValidation.vue +282 -0
- package/src/components/DatePicker/docExamples/DatePickerValidationExamples.vue +535 -0
- package/src/components/DatePicker/tests/DatePicker.spec.ts +33 -32
- package/src/components/DatePicker/tests/DateTextInput.spec.ts +83 -35
- package/src/components/DialogBox/DialogBox.stories.ts +5 -2
- package/src/components/DialogBox/DialogBox.vue +1 -1
- package/src/components/DialogBox/config.ts +1 -1
- package/src/components/DownloadBtn/Accessibilite.stories.ts +4 -0
- package/src/components/DownloadBtn/DownloadBtn.stories.ts +17 -8
- package/src/components/DownloadBtn/DownloadBtn.vue +13 -6
- package/src/components/DownloadBtn/tests/__snapshots__/DownloadBtn.spec.ts.snap +0 -2
- package/src/components/FranceConnectBtn/Accessibilite.stories.ts +4 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuItem/HeaderMenuItem.vue +3 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderSubMenu/HeaderSubMenu.vue +3 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/menu.scss +19 -0
- package/src/components/HeaderBar/HeaderMenuBtn/HeaderMenuBtn.vue +12 -2
- package/src/components/LangBtn/Accessibilite.stories.ts +4 -0
- package/src/components/LangBtn/LangBtn.stories.ts +1 -4
- package/src/components/LangBtn/LangBtn.vue +68 -9
- package/src/components/LangBtn/config.ts +0 -1
- package/src/components/LangBtn/tests/LangBtn.spec.ts +30 -2
- package/src/components/PageContainer/Accessibilite.stories.ts +36 -23
- package/src/components/PaginatedTable/PaginatedTable.stories.ts +144 -18
- package/src/components/PasswordField/PasswordField.stories.ts +6 -6
- package/src/components/PasswordField/PasswordField.vue +3 -3
- package/src/components/PeriodField/PeriodField.vue +4 -4
- package/src/components/PhoneField/PhoneField.stories.ts +216 -24
- package/src/components/PhoneField/PhoneField.vue +32 -2
- package/src/components/PhoneField/tests/PhoneField.spec.ts +161 -14
- package/src/components/RatingPicker/NumberPicker/NumberPicker.vue +2 -1
- package/src/components/RatingPicker/RatingPicker.stories.ts +1 -1
- package/src/components/SkipLink/Accessibilite.stories.ts +8 -0
- package/src/components/SkipLink/SkipLink.vue +11 -9
- package/src/components/SkipLink/tests/__snapshots__/skipLink.spec.ts.snap +7 -4
- package/src/components/SkipLink/tests/skipLink.spec.ts +120 -6
- package/src/components/SyAlert/Accessibilite.stories.ts +4 -0
- package/src/components/SyAlert/SyAlert.mdx +3 -7
- package/src/components/SyAlert/SyAlert.stories.ts +19 -12
- package/src/components/SyAlert/SyAlert.vue +88 -51
- package/src/components/SyAlert/tests/SyAlert.spec.ts +20 -2
- package/src/components/SyAlert/tests/__snapshots__/SyAlert.spec.ts.snap +83 -75
- package/src/components/UserMenuBtn/UserMenuBtn.stories.ts +56 -0
- package/src/components/UserMenuBtn/UserMenuBtn.vue +4 -2
- package/src/components/UserMenuBtn/tests/UserMenuBtn.spec.ts +41 -0
- package/src/components/index.ts +2 -0
- package/src/composables/date/useDateFormat.ts +17 -1
- package/src/composables/date/useDateFormatDayjs.ts +84 -0
- package/src/composables/date/useDateInitializationDayjs.ts +133 -0
- package/src/composables/rules/useFieldValidation.ts +26 -3
- package/src/stories/Accessibilite/Avancement/Avancement.mdx +12 -0
- package/src/stories/Accessibilite/Avancement/Avancement.stories.ts +134 -0
- package/src/stories/Accessibilite/KitDePreAudit/Echantillonnage.mdx +1 -1
- package/src/stories/GuideDuDev/LesBreackingChanges.mdx +31 -2
- package/src/components/LangBtn/tests/Config.spec.ts +0 -24
|
@@ -65,7 +65,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
65
65
|
type: StringConstructor;
|
|
66
66
|
default: undefined;
|
|
67
67
|
};
|
|
68
|
-
|
|
68
|
+
readonly: {
|
|
69
69
|
type: BooleanConstructor;
|
|
70
70
|
default: boolean;
|
|
71
71
|
};
|
|
@@ -153,7 +153,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
153
153
|
type: StringConstructor;
|
|
154
154
|
default: undefined;
|
|
155
155
|
};
|
|
156
|
-
|
|
156
|
+
readonly: {
|
|
157
157
|
type: BooleanConstructor;
|
|
158
158
|
default: boolean;
|
|
159
159
|
};
|
|
@@ -169,7 +169,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
169
169
|
required: boolean;
|
|
170
170
|
outlined: boolean;
|
|
171
171
|
modelValue: string;
|
|
172
|
-
|
|
172
|
+
readonly: boolean;
|
|
173
173
|
bgColor: string;
|
|
174
174
|
disabled: boolean;
|
|
175
175
|
displayAsterisk: boolean;
|
|
@@ -24,8 +24,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
24
24
|
modelValue: SelectBtnValue;
|
|
25
25
|
label: string;
|
|
26
26
|
errorMessages: string[];
|
|
27
|
-
hint: string;
|
|
28
27
|
readonly: boolean;
|
|
28
|
+
hint: string;
|
|
29
29
|
multiple: boolean;
|
|
30
30
|
items: SelectBtnItem[];
|
|
31
31
|
inline: boolean;
|
|
@@ -6,8 +6,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
6
6
|
label: string;
|
|
7
7
|
target: string;
|
|
8
8
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
9
|
-
skipLinkSpan:
|
|
10
|
-
|
|
9
|
+
skipLinkSpan: HTMLDivElement;
|
|
10
|
+
skipLink: HTMLAnchorElement;
|
|
11
|
+
}, HTMLElement>, {
|
|
11
12
|
default?(_: {}): any;
|
|
12
13
|
}>;
|
|
13
14
|
export default _default;
|
|
@@ -20,7 +20,78 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
20
20
|
type: "error" | "warning" | "info" | "success";
|
|
21
21
|
variant: "outlined" | "tonal";
|
|
22
22
|
closable: boolean;
|
|
23
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
24
|
+
alertIcon: import('vue').CreateComponentPublicInstanceWithMixins<{
|
|
25
|
+
end: boolean;
|
|
26
|
+
start: boolean;
|
|
27
|
+
style: import('vue').StyleValue;
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
size: string | number;
|
|
30
|
+
tag: string | import('vuetify/lib/types.mjs').JSXComponent<any>;
|
|
31
|
+
} & {
|
|
32
|
+
color?: string | undefined;
|
|
33
|
+
opacity?: string | number | undefined;
|
|
34
|
+
class?: any;
|
|
35
|
+
theme?: string | undefined;
|
|
36
|
+
icon?: import('vuetify/lib/composables/icons.mjs').IconValue | undefined;
|
|
37
|
+
} & {
|
|
38
|
+
$children?: import('vue').VNodeChild | {
|
|
39
|
+
default?: (() => import('vue').VNodeChild) | undefined;
|
|
40
|
+
} | (() => import('vue').VNodeChild);
|
|
41
|
+
'v-slots'?: {
|
|
42
|
+
default?: false | (() => import('vue').VNodeChild) | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
} & {
|
|
45
|
+
"v-slot:default"?: false | (() => import('vue').VNodeChild) | undefined;
|
|
46
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, Record<string, any>, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, {
|
|
47
|
+
end: boolean;
|
|
48
|
+
start: boolean;
|
|
49
|
+
style: import('vue').StyleValue;
|
|
50
|
+
disabled: boolean;
|
|
51
|
+
size: string | number;
|
|
52
|
+
tag: string | import('vuetify/lib/types.mjs').JSXComponent<any>;
|
|
53
|
+
}, true, {}, import('vue').SlotsType<Partial<{
|
|
54
|
+
default: () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
}>[];
|
|
57
|
+
}>>, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
58
|
+
P: {};
|
|
59
|
+
B: {};
|
|
60
|
+
D: {};
|
|
61
|
+
C: {};
|
|
62
|
+
M: {};
|
|
63
|
+
Defaults: {};
|
|
64
|
+
}, {
|
|
65
|
+
end: boolean;
|
|
66
|
+
start: boolean;
|
|
67
|
+
style: import('vue').StyleValue;
|
|
68
|
+
disabled: boolean;
|
|
69
|
+
size: string | number;
|
|
70
|
+
tag: string | import('vuetify/lib/types.mjs').JSXComponent<any>;
|
|
71
|
+
} & {
|
|
72
|
+
color?: string | undefined;
|
|
73
|
+
opacity?: string | number | undefined;
|
|
74
|
+
class?: any;
|
|
75
|
+
theme?: string | undefined;
|
|
76
|
+
icon?: import('vuetify/lib/composables/icons.mjs').IconValue | undefined;
|
|
77
|
+
} & {
|
|
78
|
+
$children?: import('vue').VNodeChild | {
|
|
79
|
+
default?: (() => import('vue').VNodeChild) | undefined;
|
|
80
|
+
} | (() => import('vue').VNodeChild);
|
|
81
|
+
'v-slots'?: {
|
|
82
|
+
default?: false | (() => import('vue').VNodeChild) | undefined;
|
|
83
|
+
} | undefined;
|
|
84
|
+
} & {
|
|
85
|
+
"v-slot:default"?: false | (() => import('vue').VNodeChild) | undefined;
|
|
86
|
+
}, {}, {}, {}, {}, {
|
|
87
|
+
end: boolean;
|
|
88
|
+
start: boolean;
|
|
89
|
+
style: import('vue').StyleValue;
|
|
90
|
+
disabled: boolean;
|
|
91
|
+
size: string | number;
|
|
92
|
+
tag: string | import('vuetify/lib/types.mjs').JSXComponent<any>;
|
|
93
|
+
}> | null;
|
|
94
|
+
}, HTMLDivElement>, {
|
|
24
95
|
icon?(_: {}): any;
|
|
25
96
|
default?(_: {}): any;
|
|
26
97
|
}>;
|
|
@@ -193,8 +193,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
193
193
|
id: string | number;
|
|
194
194
|
errorMessages: string[];
|
|
195
195
|
}[]>;
|
|
196
|
-
isDisabled: import('vue').
|
|
197
|
-
isReadonly: import('vue').
|
|
196
|
+
isDisabled: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
197
|
+
isReadonly: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
198
198
|
isValidating: import('vue').ShallowRef<boolean, boolean>;
|
|
199
199
|
isValid: import('vue').Ref<boolean | null, boolean | null> & {
|
|
200
200
|
readonly externalValue: boolean | null;
|
|
@@ -234,8 +234,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
234
234
|
id: string | number;
|
|
235
235
|
errorMessages: string[];
|
|
236
236
|
}[]>;
|
|
237
|
-
isDisabled: import('vue').
|
|
238
|
-
isReadonly: import('vue').
|
|
237
|
+
isDisabled: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
238
|
+
isReadonly: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
239
239
|
isValidating: import('vue').ShallowRef<boolean, boolean>;
|
|
240
240
|
isValid: import('vue').Ref<boolean | null, boolean | null> & {
|
|
241
241
|
readonly externalValue: boolean | null;
|
|
@@ -276,8 +276,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
276
276
|
id: string | number;
|
|
277
277
|
errorMessages: string[];
|
|
278
278
|
}[]>;
|
|
279
|
-
isDisabled: import('vue').
|
|
280
|
-
isReadonly: import('vue').
|
|
279
|
+
isDisabled: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
280
|
+
isReadonly: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
281
281
|
isValidating: import('vue').ShallowRef<boolean, boolean>;
|
|
282
282
|
isValid: import('vue').Ref<boolean | null, boolean | null> & {
|
|
283
283
|
readonly externalValue: boolean | null;
|
|
@@ -319,8 +319,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
319
319
|
id: string | number;
|
|
320
320
|
errorMessages: string[];
|
|
321
321
|
}[]>;
|
|
322
|
-
isDisabled: import('vue').
|
|
323
|
-
isReadonly: import('vue').
|
|
322
|
+
isDisabled: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
323
|
+
isReadonly: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
324
324
|
isValidating: import('vue').ShallowRef<boolean, boolean>;
|
|
325
325
|
isValid: import('vue').Ref<boolean | null, boolean | null> & {
|
|
326
326
|
readonly externalValue: boolean | null;
|
|
@@ -363,8 +363,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
363
363
|
id: string | number;
|
|
364
364
|
errorMessages: string[];
|
|
365
365
|
}[]>;
|
|
366
|
-
isDisabled: import('vue').
|
|
367
|
-
isReadonly: import('vue').
|
|
366
|
+
isDisabled: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
367
|
+
isReadonly: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
368
368
|
isValidating: import('vue').ShallowRef<boolean, boolean>;
|
|
369
369
|
isValid: import('vue').Ref<boolean | null, boolean | null> & {
|
|
370
370
|
readonly externalValue: boolean | null;
|
|
@@ -404,8 +404,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
404
404
|
id: string | number;
|
|
405
405
|
errorMessages: string[];
|
|
406
406
|
}[]>;
|
|
407
|
-
isDisabled: import('vue').
|
|
408
|
-
isReadonly: import('vue').
|
|
407
|
+
isDisabled: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
408
|
+
isReadonly: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
409
409
|
isValidating: import('vue').ShallowRef<boolean, boolean>;
|
|
410
410
|
isValid: import('vue').Ref<boolean | null, boolean | null> & {
|
|
411
411
|
readonly externalValue: boolean | null;
|
|
@@ -456,8 +456,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
456
456
|
id: string | number;
|
|
457
457
|
errorMessages: string[];
|
|
458
458
|
}[]>;
|
|
459
|
-
isDisabled: import('vue').
|
|
460
|
-
isReadonly: import('vue').
|
|
459
|
+
isDisabled: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
460
|
+
isReadonly: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
461
461
|
isValidating: import('vue').ShallowRef<boolean, boolean>;
|
|
462
462
|
isValid: import('vue').Ref<boolean | null, boolean | null> & {
|
|
463
463
|
readonly externalValue: boolean | null;
|
|
@@ -517,8 +517,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
517
517
|
id: string | number;
|
|
518
518
|
errorMessages: string[];
|
|
519
519
|
}[]>;
|
|
520
|
-
isDisabled: import('vue').
|
|
521
|
-
isReadonly: import('vue').
|
|
520
|
+
isDisabled: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
521
|
+
isReadonly: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
522
522
|
isValidating: import('vue').ShallowRef<boolean, boolean>;
|
|
523
523
|
isValid: import('vue').Ref<boolean | null, boolean | null> & {
|
|
524
524
|
readonly externalValue: boolean | null;
|
|
@@ -558,8 +558,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
558
558
|
id: string | number;
|
|
559
559
|
errorMessages: string[];
|
|
560
560
|
}[]>;
|
|
561
|
-
isDisabled: import('vue').
|
|
562
|
-
isReadonly: import('vue').
|
|
561
|
+
isDisabled: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
562
|
+
isReadonly: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
563
563
|
isValidating: import('vue').ShallowRef<boolean, boolean>;
|
|
564
564
|
isValid: import('vue').Ref<boolean | null, boolean | null> & {
|
|
565
565
|
readonly externalValue: boolean | null;
|
|
@@ -600,8 +600,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
600
600
|
id: string | number;
|
|
601
601
|
errorMessages: string[];
|
|
602
602
|
}[]>;
|
|
603
|
-
isDisabled: import('vue').
|
|
604
|
-
isReadonly: import('vue').
|
|
603
|
+
isDisabled: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
604
|
+
isReadonly: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
605
605
|
isValidating: import('vue').ShallowRef<boolean, boolean>;
|
|
606
606
|
isValid: import('vue').Ref<boolean | null, boolean | null> & {
|
|
607
607
|
readonly externalValue: boolean | null;
|
|
@@ -643,8 +643,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
643
643
|
id: string | number;
|
|
644
644
|
errorMessages: string[];
|
|
645
645
|
}[]>;
|
|
646
|
-
isDisabled: import('vue').
|
|
647
|
-
isReadonly: import('vue').
|
|
646
|
+
isDisabled: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
647
|
+
isReadonly: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
648
648
|
isValidating: import('vue').ShallowRef<boolean, boolean>;
|
|
649
649
|
isValid: import('vue').Ref<boolean | null, boolean | null> & {
|
|
650
650
|
readonly externalValue: boolean | null;
|
|
@@ -687,8 +687,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
687
687
|
id: string | number;
|
|
688
688
|
errorMessages: string[];
|
|
689
689
|
}[]>;
|
|
690
|
-
isDisabled: import('vue').
|
|
691
|
-
isReadonly: import('vue').
|
|
690
|
+
isDisabled: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
691
|
+
isReadonly: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
692
692
|
isValidating: import('vue').ShallowRef<boolean, boolean>;
|
|
693
693
|
isValid: import('vue').Ref<boolean | null, boolean | null> & {
|
|
694
694
|
readonly externalValue: boolean | null;
|
|
@@ -728,8 +728,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
728
728
|
id: string | number;
|
|
729
729
|
errorMessages: string[];
|
|
730
730
|
}[]>;
|
|
731
|
-
isDisabled: import('vue').
|
|
732
|
-
isReadonly: import('vue').
|
|
731
|
+
isDisabled: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
732
|
+
isReadonly: Readonly<import('vue').Ref<boolean, boolean>>;
|
|
733
733
|
isValidating: import('vue').ShallowRef<boolean, boolean>;
|
|
734
734
|
isValid: import('vue').Ref<boolean | null, boolean | null> & {
|
|
735
735
|
readonly externalValue: boolean | null;
|
|
@@ -11,6 +11,7 @@ type __VLS_Props = CustomizableOptions & {
|
|
|
11
11
|
hideLogoutBtn?: boolean;
|
|
12
12
|
isMobileView?: boolean;
|
|
13
13
|
hideUserIcon?: boolean;
|
|
14
|
+
logoutText?: string;
|
|
14
15
|
};
|
|
15
16
|
type __VLS_PublicProps = {
|
|
16
17
|
modelValue?: MenuItem | null;
|
|
@@ -28,5 +29,6 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
28
29
|
additionalInformation: string;
|
|
29
30
|
fullName: string;
|
|
30
31
|
hideUserIcon: boolean;
|
|
32
|
+
logoutText: string;
|
|
31
33
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
32
34
|
export default _default;
|
|
@@ -3,6 +3,7 @@ export { useFieldValidation } from '../composables/rules/useFieldValidation';
|
|
|
3
3
|
export type { RuleOptions } from '../composables/rules/useFieldValidation';
|
|
4
4
|
export { useNotificationService } from '../services/NotificationService';
|
|
5
5
|
export { useValidation } from '../composables/validation/useValidation';
|
|
6
|
+
export { useDateFormat } from '../composables/date/useDateFormatDayjs';
|
|
6
7
|
export { default as BackBtn } from './BackBtn/BackBtn';
|
|
7
8
|
export { default as BackToTopBtn } from './BackToTopBtn/BackToTopBtn';
|
|
8
9
|
export { default as ChipList } from './ChipList/ChipList';
|
|
@@ -42,6 +43,7 @@ export { default as HeaderMenuBtn } from './HeaderBar/HeaderMenuBtn/HeaderMenuBt
|
|
|
42
43
|
export { default as HeaderLoading } from './HeaderLoading/HeaderLoading';
|
|
43
44
|
export { default as HeaderNavigationBar } from './HeaderNavigationBar/HeaderNavigationBar';
|
|
44
45
|
export { default as HeaderToolbar } from './HeaderToolbar/HeaderToolbar';
|
|
46
|
+
export { indicatifs } from './PhoneField/indicatifs';
|
|
45
47
|
export { default as LangBtn } from './LangBtn/LangBtn';
|
|
46
48
|
export { default as Logo } from './Logo/Logo';
|
|
47
49
|
export { default as LogoBrandSection } from './LogoBrandSection/LogoBrandSection';
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @param format - Le format de la date (ex: 'DD/MM/YYYY')
|
|
8
8
|
* @returns Un objet Date ou null si la chaîne n'est pas valide
|
|
9
9
|
*/
|
|
10
|
-
export declare const parseDate: (dateString: string, format: string) => Date | null;
|
|
10
|
+
export declare const parseDate: (dateString: string | Date | null, format: string) => Date | null;
|
|
11
11
|
/**
|
|
12
12
|
* Formate une date selon un format spécifié
|
|
13
13
|
* @param date - La date à formater
|
|
@@ -20,7 +20,7 @@ export declare const formatDate: (date: Date, format: string) => string;
|
|
|
20
20
|
* @returns Fonctions de formatage et parsing de dates
|
|
21
21
|
*/
|
|
22
22
|
export declare function useDateFormat(): {
|
|
23
|
-
parseDate: (dateString: string, format: string) => Date | null;
|
|
23
|
+
parseDate: (dateString: string | Date | null, format: string) => Date | null;
|
|
24
24
|
formatDate: (date: Date, format: string) => string;
|
|
25
25
|
};
|
|
26
26
|
export default useDateFormat;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parse une chaîne de caractères en objet Date selon un format spécifié
|
|
3
|
+
* @param dateString - La chaîne de caractères à parser
|
|
4
|
+
* @param format - Le format de la date (ex: 'DD/MM/YYYY')
|
|
5
|
+
* @returns Un objet Date ou null si la chaîne n'est pas valide
|
|
6
|
+
*/
|
|
7
|
+
export declare const parseDate: (dateString: string | Date | null, format: string) => Date | null;
|
|
8
|
+
/**
|
|
9
|
+
* Formate une date selon un format spécifié
|
|
10
|
+
* @param date - La date à formater
|
|
11
|
+
* @param format - Le format de sortie (ex: 'DD/MM/YYYY')
|
|
12
|
+
* @returns La date formatée en chaîne de caractères
|
|
13
|
+
*/
|
|
14
|
+
export declare const formatDate: (date: Date | null, format: string) => string;
|
|
15
|
+
/**
|
|
16
|
+
* Hook composable pour le formatage et le parsing des dates
|
|
17
|
+
* @returns Fonctions de formatage et parsing de dates
|
|
18
|
+
*/
|
|
19
|
+
export declare function useDateFormat(): {
|
|
20
|
+
parseDate: (dateString: string | Date | null, format: string) => Date | null;
|
|
21
|
+
formatDate: (date: Date | null, format: string) => string;
|
|
22
|
+
};
|
|
23
|
+
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;
|