@club-employes/utopia 4.302.0 → 4.304.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/organisms/AddressForm/types.d.ts +24 -4
- package/dist/components/organisms/ImageEditor/locale-fr.d.ts +5 -0
- package/dist/components/organisms/ImageEditor/types.d.ts +1 -0
- package/dist/components/organisms/MyEditor/editorLabels.d.ts +3 -0
- package/dist/components/organisms/index.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11000 -10809
- package/dist/utopia.css +1 -1
- package/package.json +2 -1
|
@@ -34,18 +34,38 @@ export interface AddressFormFieldConfig {
|
|
|
34
34
|
export type AddressFormRow = AddressFormFieldConfig[];
|
|
35
35
|
/** Le schéma est une liste de lignes */
|
|
36
36
|
export type AddressFormSchema = AddressFormRow[];
|
|
37
|
+
/** Une sous-section du formulaire (un FormGroup : légende, description, icône, lignes de champs) */
|
|
38
|
+
export interface AddressFormSection {
|
|
39
|
+
/** Titre de la section */
|
|
40
|
+
legend?: string;
|
|
41
|
+
/** Texte d’aide sous la légende */
|
|
42
|
+
description?: string;
|
|
43
|
+
/** Icône affichée à côté de la légende (nom Icon) */
|
|
44
|
+
icon?: string;
|
|
45
|
+
/** Lignes de champs pour cette section (même structure que l’ancien `schema`) */
|
|
46
|
+
rows: AddressFormSchema;
|
|
47
|
+
}
|
|
37
48
|
export interface AddressFormProps {
|
|
38
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* Sections du formulaire. Toutes les sections partagent le même `v-model`.
|
|
51
|
+
* Si défini, `schema` est ignoré.
|
|
52
|
+
*/
|
|
53
|
+
sections?: AddressFormSection[];
|
|
54
|
+
/**
|
|
55
|
+
* Schéma plat (une seule section implicite).
|
|
56
|
+
* Utilisé seulement lorsque `sections` est absent ou vide.
|
|
57
|
+
*/
|
|
39
58
|
schema?: AddressFormSchema;
|
|
40
59
|
/** Modèle de données (Source de vérité unique) */
|
|
41
60
|
modelValue: Record<string, any>;
|
|
42
61
|
/** Taille globale des composants */
|
|
43
62
|
size?: InputTextProps['size'];
|
|
44
|
-
/**
|
|
63
|
+
/**
|
|
64
|
+
* Titre / description / icône pour la section implicite lorsque seul `schema` est utilisé
|
|
65
|
+
* (sans `sections`).
|
|
66
|
+
*/
|
|
45
67
|
legend?: string;
|
|
46
|
-
/** Description du groupe */
|
|
47
68
|
description?: string;
|
|
48
|
-
/** Icône du titre */
|
|
49
69
|
icon?: string;
|
|
50
70
|
/** Désactivé */
|
|
51
71
|
disabled?: boolean;
|
|
@@ -13,6 +13,7 @@ export interface ImageEditorIncludeUI {
|
|
|
13
13
|
initMenu?: ImageEditorMenuType;
|
|
14
14
|
uiSize?: ImageEditorUISize;
|
|
15
15
|
menuBarPosition?: ImageEditorMenuBarPosition;
|
|
16
|
+
locale?: Record<string, string>;
|
|
16
17
|
}
|
|
17
18
|
export type ImageEditorSelectionStyle = Record<string, unknown>;
|
|
18
19
|
export type ImageEditorFreeDrawing = Record<string, unknown>;
|
|
@@ -72,5 +72,8 @@ export interface EditorLabels {
|
|
|
72
72
|
imageModalTitle: string;
|
|
73
73
|
errorImageTooLarge: string;
|
|
74
74
|
errorVideoTooLarge: string;
|
|
75
|
+
imageEditorTitle: string;
|
|
76
|
+
imageEditorCancel: string;
|
|
77
|
+
imageEditorSave: string;
|
|
75
78
|
}
|
|
76
79
|
export declare const defaultEditorLabels: EditorLabels;
|
|
@@ -27,4 +27,4 @@ export type { CarousselProps } from './Caroussel';
|
|
|
27
27
|
export { CartPreview } from './CartPreview';
|
|
28
28
|
export type { CartPreviewProps, CartPreviewItemProps, CartPreviewPrice, CartPreviewPriceLine } from './CartPreview';
|
|
29
29
|
export { AddressForm } from './AddressForm';
|
|
30
|
-
export type { AddressFormProps, AddressFormSchema, AddressFormRow, AddressFormFieldConfig, AddressFormFieldType } from './AddressForm';
|
|
30
|
+
export type { AddressFormProps, AddressFormSchema, AddressFormRow, AddressFormFieldConfig, AddressFormFieldType, AddressFormSection } from './AddressForm';
|
package/dist/index.d.ts
CHANGED
|
@@ -88,7 +88,7 @@ export type { TransactionProps } from './components/organisms/Transaction/types'
|
|
|
88
88
|
export type { CarousselProps } from './components/organisms/Caroussel/types';
|
|
89
89
|
export type { MetricCardProps, MetricCardGroupProps } from './components/organisms';
|
|
90
90
|
export type { InputSearchProps } from './components/organisms/InputSearch/types';
|
|
91
|
-
export type { AddressFormProps, AddressFormSchema } from './components/organisms/AddressForm/types';
|
|
91
|
+
export type { AddressFormProps, AddressFormSchema, AddressFormSection } from './components/organisms/AddressForm/types';
|
|
92
92
|
export type { CartPreviewProps, CartPreviewItemProps, CartPreviewPrice, CartPreviewPriceLine } from './components/organisms/CartPreview/types';
|
|
93
93
|
export { clubEmployesDark, clubEmployesLight } from './themes/club-employes';
|
|
94
94
|
export { gifteoDark, gifteoLight } from './themes/gifteo';
|