@club-employes/utopia 4.307.0 → 4.309.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.
@@ -1,4 +1,4 @@
1
- export type ChipVariant = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
1
+ export type ChipVariant = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'subvention' | 'echeque';
2
2
  export type ChipSize = 'extra-small' | 'small' | 'medium' | 'large';
3
3
  export interface ChipProps {
4
4
  variant?: ChipVariant;
@@ -1,4 +1,4 @@
1
- import { LoadingBannerProps, LoadingBannerProgress } from './types';
1
+ import { LoadingBannerProps, LoadingBannerTone, LoadingBannerProgress } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare const _default: DefineComponent<LoadingBannerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4
4
  close: (id?: string | undefined) => any;
@@ -8,6 +8,9 @@ declare const _default: DefineComponent<LoadingBannerProps, {}, {}, {}, {}, Comp
8
8
  floating: boolean;
9
9
  duration: number;
10
10
  progressBar: "top" | "bottom" | false;
11
+ tone: LoadingBannerTone;
11
12
  loadingProgress: LoadingBannerProgress;
12
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
13
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
14
+ outcomeProgressRef: HTMLDivElement;
15
+ }, HTMLDivElement>;
13
16
  export default _default;
@@ -1,5 +1,5 @@
1
1
  export { default as LoadingBanner } from './LoadingBanner';
2
2
  export { LoadingBannerService, LoadingBannerServiceKey } from './loadingBannerService';
3
3
  export { useLoadingBanner } from './useLoadingBanner';
4
- export type { LoadingBannerProps, LoadingBannerOptions, LoadingBannerItem, LoadingBannerShowOptions, LoadingBannerProgress, LoadingBannerServiceOptions, LoadingBannerHandle, LoadingBannerPromiseOptions } from './types';
4
+ export type { LoadingBannerProps, LoadingBannerOptions, LoadingBannerItem, LoadingBannerShowOptions, LoadingBannerProgress, LoadingBannerTone, LoadingBannerServiceOptions, LoadingBannerHandle, LoadingBannerPromiseOptions } from './types';
5
5
  export type { LoadingBannerServiceApi } from './loadingBannerService';
@@ -1,8 +1,12 @@
1
1
  /** Mode d’animation de la barre du bandeau de chargement. */
2
2
  export type LoadingBannerProgress = 'loop' | 'fill';
3
+ /** `loading` : bandeau classique ; `success` / `error` : résultat (ex. après `promise()`), sans barre de progression. */
4
+ export type LoadingBannerTone = 'loading' | 'success' | 'error';
3
5
  export interface LoadingBannerOptions {
4
6
  title?: string;
5
7
  content: string;
8
+ /** Défaut : `loading`. */
9
+ tone?: LoadingBannerTone;
6
10
  /** Fermeture auto (ms). 0 = pas de fermeture auto (défaut). */
7
11
  duration?: number;
8
12
  floating?: boolean;
@@ -18,10 +18,28 @@ export interface AddressFormFieldConfig {
18
18
  state?: InputTextProps['state'];
19
19
  /** Motif de validation (Regex) */
20
20
  pattern?: string | RegExp;
21
- /** Messages d'erreur personnalisés */
21
+ /**
22
+ * Longueur (comme `minlength` / `maxlength` HTML). Pris en charge en validation pour les types
23
+ * texte, email, textarea, téléphone, pays, code postal. Peut aussi être passé via `componentProps`.
24
+ */
25
+ minlength?: number | string;
26
+ maxlength?: number | string;
27
+ /**
28
+ * Bornes et pas (comme `min` / `max` / `step` HTML) pour `type: 'number'`.
29
+ * Peuvent aussi être définis dans `componentProps`.
30
+ */
31
+ min?: number | string;
32
+ max?: number | string;
33
+ step?: number | string;
34
+ /** Messages d'erreur personnalisés pour la validation intégrée */
22
35
  validationMessages?: {
23
36
  required?: string;
24
37
  pattern?: string;
38
+ maxlength?: string;
39
+ minlength?: string;
40
+ max?: string;
41
+ min?: string;
42
+ step?: string;
25
43
  };
26
44
  /**
27
45
  * Props supplémentaires pour le composant atom/molecule (v-bind).
@@ -0,0 +1,10 @@
1
+ import { ProductRecapProps } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const _default: DefineComponent<ProductRecapProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4
+ delete: () => any;
5
+ "update:quantity": (value: number) => any;
6
+ }, string, PublicProps, Readonly<ProductRecapProps> & Readonly<{
7
+ onDelete?: (() => any) | undefined;
8
+ "onUpdate:quantity"?: ((value: number) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
10
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as ProductRecap } from './ProductRecap';
@@ -0,0 +1,33 @@
1
+ import { ChipVariant } from '../../atoms/Chip/types';
2
+ export interface ProductRecapImage {
3
+ url: string;
4
+ alt: string;
5
+ }
6
+ export interface ProductRecapChip {
7
+ label: string;
8
+ variant?: ChipVariant;
9
+ leftIcon?: string;
10
+ }
11
+ export interface ProductRecapPriceLine {
12
+ label: string;
13
+ value: string;
14
+ }
15
+ export interface ProductRecapPrice {
16
+ totalPrice: string;
17
+ isSubventioned: boolean;
18
+ isDiscounted: boolean;
19
+ unitPrice: string;
20
+ companyPrice?: ProductRecapPriceLine;
21
+ publicPrice?: ProductRecapPriceLine;
22
+ }
23
+ export interface ProductRecapProps {
24
+ image: ProductRecapImage;
25
+ tag: string;
26
+ title: string;
27
+ description: string;
28
+ chips?: ProductRecapChip[];
29
+ quantity: number;
30
+ minQuantity?: number;
31
+ maxQuantity?: number;
32
+ price: ProductRecapPrice;
33
+ }
@@ -28,3 +28,5 @@ export { CartPreview } from './CartPreview';
28
28
  export type { CartPreviewProps, CartPreviewItemProps, CartPreviewPrice, CartPreviewPriceLine } from './CartPreview';
29
29
  export { AddressForm } from './AddressForm';
30
30
  export type { AddressFormProps, AddressFormSchema, AddressFormRow, AddressFormFieldConfig, AddressFormFieldType, AddressFormSection } from './AddressForm';
31
+ export { ProductRecap } from './ProductRecap';
32
+ export type { ProductRecapProps } from './ProductRecap';
package/dist/index.d.ts CHANGED
@@ -60,7 +60,7 @@ export type { HeaderNotificationsProps } from './components/molecules/HeaderNoti
60
60
  export type { ContactBlocProps } from './components/molecules/ContactBloc/types';
61
61
  export type { ToastProps, ToastOptions, ToastItem } from './components/molecules/Toast/types';
62
62
  export { ToastService, ToastServiceKey, useToast } from './components/molecules/Toast';
63
- export type { LoadingBannerProps, LoadingBannerOptions, LoadingBannerItem, LoadingBannerShowOptions, LoadingBannerProgress, LoadingBannerServiceOptions, LoadingBannerHandle, LoadingBannerPromiseOptions } from './components/molecules/LoadingBanner/types';
63
+ export type { LoadingBannerProps, LoadingBannerOptions, LoadingBannerItem, LoadingBannerShowOptions, LoadingBannerProgress, LoadingBannerTone, LoadingBannerServiceOptions, LoadingBannerHandle, LoadingBannerPromiseOptions } from './components/molecules/LoadingBanner/types';
64
64
  export { LoadingBanner, LoadingBannerService, LoadingBannerServiceKey, useLoadingBanner } from './components/molecules/LoadingBanner';
65
65
  export type { LoadingBannerServiceApi } from './components/molecules/LoadingBanner';
66
66
  export type { ToastServiceApi, ToastServiceOptions } from './components/molecules/Toast';
@@ -91,6 +91,7 @@ export type { TransactionProps } from './components/organisms/Transaction/types'
91
91
  export type { CarousselProps } from './components/organisms/Caroussel/types';
92
92
  export type { MetricCardProps, MetricCardGroupProps } from './components/organisms';
93
93
  export type { InputSearchProps } from './components/organisms/InputSearch/types';
94
+ export type { ProductRecapProps } from './components/organisms/ProductRecap/types';
94
95
  export type { AddressFormProps, AddressFormSchema, AddressFormSection } from './components/organisms/AddressForm/types';
95
96
  export type { CartPreviewProps, CartPreviewItemProps, CartPreviewPrice, CartPreviewPriceLine } from './components/organisms/CartPreview/types';
96
97
  export { clubEmployesDark, clubEmployesLight } from './themes/club-employes';