@club-employes/utopia 4.346.0 → 4.348.0
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/molecules/DatePicker/CalendarGrid.d.ts +3 -16
- package/dist/components/molecules/DatePicker/CalendarHeader.d.ts +7 -27
- package/dist/components/molecules/DatePicker/types.d.ts +38 -0
- package/dist/components/molecules/index.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +7528 -7490
- package/dist/utopia.css +1 -1
- package/package.json +1 -1
|
@@ -1,23 +1,10 @@
|
|
|
1
|
+
import { CalendarGridProps } from './types';
|
|
1
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
|
|
3
|
-
date: Date;
|
|
4
|
-
isCurrentMonth: boolean;
|
|
5
|
-
}
|
|
6
|
-
type __VLS_Props = {
|
|
7
|
-
weekDays: string[];
|
|
8
|
-
calendarDays: CalendarDay[];
|
|
9
|
-
draftSelectedDate?: Date | null;
|
|
10
|
-
minDate?: Date | string;
|
|
11
|
-
maxDate?: Date | string;
|
|
12
|
-
dday?: boolean;
|
|
13
|
-
rangeStart?: Date | null;
|
|
14
|
-
rangeEnd?: Date | null;
|
|
15
|
-
};
|
|
16
|
-
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3
|
+
declare const _default: DefineComponent<CalendarGridProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
17
4
|
"select-date": (date: Date) => any;
|
|
18
5
|
"confirm-date": (date: Date) => any;
|
|
19
6
|
"hover-date": (date: Date) => any;
|
|
20
|
-
}, string, PublicProps, Readonly<
|
|
7
|
+
}, string, PublicProps, Readonly<CalendarGridProps> & Readonly<{
|
|
21
8
|
"onSelect-date"?: ((date: Date) => any) | undefined;
|
|
22
9
|
"onConfirm-date"?: ((date: Date) => any) | undefined;
|
|
23
10
|
"onHover-date"?: ((date: Date) => any) | undefined;
|
|
@@ -1,35 +1,15 @@
|
|
|
1
|
+
import { CalendarHeaderProps } from './types';
|
|
1
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
|
|
3
|
-
/** Nom du mois courant affiché dans le titre (ex : "Juin 2025"). */
|
|
4
|
-
currentMonthName: string;
|
|
5
|
-
/** Active ou désactive le bouton "précédent" (ex : contrainte minDate). */
|
|
6
|
-
canGoPrev: boolean;
|
|
7
|
-
/** Vue active : 'days' (grille de jours) ou 'years' (sélecteur d'années). */
|
|
8
|
-
currentView: 'days' | 'years';
|
|
9
|
-
/** Libellé de la plage d'années affiché en vue 'years' (ex : "2020 – 2031"). */
|
|
10
|
-
yearsRange?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Affiche ou masque la flèche de navigation "précédent".
|
|
13
|
-
* `false` → remplacé par un placeholder de même taille pour conserver l'alignement.
|
|
14
|
-
* Utile dans le panneau droit d'un DateRange (deux calendriers côte à côte).
|
|
15
|
-
* @default true
|
|
16
|
-
*/
|
|
17
|
-
showPrev?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Affiche ou masque la flèche de navigation "suivant".
|
|
20
|
-
* `false` → remplacé par un placeholder de même taille pour conserver l'alignement.
|
|
21
|
-
* Utile dans le panneau gauche d'un DateRange (deux calendriers côte à côte).
|
|
22
|
-
* @default true
|
|
23
|
-
*/
|
|
24
|
-
showNext?: boolean;
|
|
25
|
-
};
|
|
26
|
-
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3
|
+
declare const _default: DefineComponent<CalendarHeaderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
27
4
|
next: () => any;
|
|
28
5
|
prev: () => any;
|
|
29
6
|
"toggle-view": () => any;
|
|
30
|
-
}, string, PublicProps, Readonly<
|
|
7
|
+
}, string, PublicProps, Readonly<CalendarHeaderProps> & Readonly<{
|
|
31
8
|
onNext?: (() => any) | undefined;
|
|
32
9
|
onPrev?: (() => any) | undefined;
|
|
33
10
|
"onToggle-view"?: (() => any) | undefined;
|
|
34
|
-
}>, {
|
|
11
|
+
}>, {
|
|
12
|
+
showPrev: boolean;
|
|
13
|
+
showNext: boolean;
|
|
14
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
35
15
|
export default _default;
|
|
@@ -30,3 +30,41 @@ export interface DatePickerProps {
|
|
|
30
30
|
/** Masquer le bouton "Choisir la date" — la sélection se confirme automatiquement au clic */
|
|
31
31
|
hideConfirmButton?: boolean;
|
|
32
32
|
}
|
|
33
|
+
export interface CalendarHeaderProps {
|
|
34
|
+
/** Nom du mois courant affiché dans le titre (ex : "Juin 2025"). */
|
|
35
|
+
currentMonthName: string;
|
|
36
|
+
/** Active ou désactive le bouton "précédent" (ex : contrainte minDate). */
|
|
37
|
+
canGoPrev: boolean;
|
|
38
|
+
/** Vue active : 'days' (grille de jours) ou 'years' (sélecteur d'années). */
|
|
39
|
+
currentView: 'days' | 'years';
|
|
40
|
+
/** Libellé de la plage d'années affiché en vue 'years' (ex : "2020 – 2031"). */
|
|
41
|
+
yearsRange?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Affiche ou masque la flèche de navigation "précédent".
|
|
44
|
+
* `false` → remplacé par un placeholder de même taille pour conserver l'alignement.
|
|
45
|
+
* Utile dans le panneau droit d'un DateRange (deux calendriers côte à côte).
|
|
46
|
+
* @default true
|
|
47
|
+
*/
|
|
48
|
+
showPrev?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Affiche ou masque la flèche de navigation "suivant".
|
|
51
|
+
* `false` → remplacé par un placeholder de même taille pour conserver l'alignement.
|
|
52
|
+
* Utile dans le panneau gauche d'un DateRange (deux calendriers côte à côte).
|
|
53
|
+
* @default true
|
|
54
|
+
*/
|
|
55
|
+
showNext?: boolean;
|
|
56
|
+
}
|
|
57
|
+
export interface CalendarDay {
|
|
58
|
+
date: Date;
|
|
59
|
+
isCurrentMonth: boolean;
|
|
60
|
+
}
|
|
61
|
+
export interface CalendarGridProps {
|
|
62
|
+
weekDays: string[];
|
|
63
|
+
calendarDays: CalendarDay[];
|
|
64
|
+
draftSelectedDate?: Date | null;
|
|
65
|
+
minDate?: Date | string;
|
|
66
|
+
maxDate?: Date | string;
|
|
67
|
+
dday?: boolean;
|
|
68
|
+
rangeStart?: Date | null;
|
|
69
|
+
rangeEnd?: Date | null;
|
|
70
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { BottomSheet } from './BottomSheet';
|
|
2
2
|
export type { BottomSheetChangeReason, BottomSheetProps } from './BottomSheet/types';
|
|
3
3
|
export { DatePicker } from './DatePicker';
|
|
4
|
-
export type { DatePickerProps } from './DatePicker/types';
|
|
4
|
+
export type { DatePickerProps, CalendarDay, CalendarGridProps, CalendarHeaderProps } from './DatePicker/types';
|
|
5
5
|
export { DropDown } from './DropDown';
|
|
6
6
|
export { DropFilter } from './DropFilter';
|
|
7
7
|
export { FeedbackState } from './FeedbackState';
|
package/dist/index.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export type { Icon3DProps } from './components/atoms/Icon3D/types';
|
|
|
32
32
|
export type { SeparatorProps } from './components/atoms/Separator/types';
|
|
33
33
|
export type { BottomSheetChangeReason, BottomSheetProps } from './components/molecules/BottomSheet/types';
|
|
34
34
|
export type { CounterButtonsProps } from './components/molecules/CounterButtons/types';
|
|
35
|
-
export type { DatePickerProps } from './components/molecules/DatePicker/types';
|
|
35
|
+
export type { DatePickerProps, CalendarDay, CalendarGridProps, CalendarHeaderProps } from './components/molecules/DatePicker/types';
|
|
36
36
|
export type { DropDownOption, DropDownProps } from './components/molecules/DropDown/types';
|
|
37
37
|
export type { ErrorStateProps, FeedbackStateProps } from './components/molecules/FeedbackState/types';
|
|
38
38
|
export type { FilterChipProps } from './components/molecules/FilterChip/types';
|
|
@@ -74,7 +74,6 @@ export type { TromboItemProps } from './components/molecules/TromboItem/types';
|
|
|
74
74
|
export type { CountryDropDownProps } from './components/molecules/CountryDropDown/types';
|
|
75
75
|
export type { GrantSelectItemProps } from './components/molecules/GrantSelect/types';
|
|
76
76
|
export type { CartStepperProps, CartStepperStep } from './components/molecules/CartStepper/types';
|
|
77
|
-
export type { CartPreviewItemProps } from './components/molecules/CartPreviewItem/types';
|
|
78
77
|
export type { DateRangeProps, DateRangeValue, DateRangeTrigger } from './components/molecules/DateRange/types';
|
|
79
78
|
export { TromboItem, TromboItemEmptyState } from './components/molecules/TromboItem';
|
|
80
79
|
export type { AuthLayoutProps } from './components/layouts/AuthLayout/types';
|
|
@@ -99,7 +98,8 @@ export type { ProductRecapProps } from './components/organisms/ProductRecap/type
|
|
|
99
98
|
export type { OrderRecapProps, OrderRecapMessage } from './components/organisms/OrderRecap/types';
|
|
100
99
|
export type { SummaryMetricCardProps } from './components/organisms/SummaryMetricCard/types';
|
|
101
100
|
export type { AddressFormProps, AddressFormSchema, AddressFormSection } from './components/organisms/AddressForm/types';
|
|
102
|
-
export type { CartPreviewProps,
|
|
101
|
+
export type { CartPreviewProps, CartPreviewPrice, CartPreviewPriceLine } from './components/organisms/CartPreview/types';
|
|
102
|
+
export type { CartPreviewItemProps } from './components/molecules/CartPreviewItem/types';
|
|
103
103
|
export { clubEmployesDark, clubEmployesLight } from './themes/club-employes';
|
|
104
104
|
export { gifteoDark, gifteoLight } from './themes/gifteo';
|
|
105
105
|
export type { LoaderProps } from './components/templates/Loader/types';
|