@club-employes/utopia 4.306.0 → 4.307.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.
@@ -23,10 +23,19 @@ export interface AddressFormFieldConfig {
23
23
  required?: string;
24
24
  pattern?: string;
25
25
  };
26
- /** Props supplémentaires pour le composant atom/molecule.
27
- * On utilise any pour permettre la flexibilité totale lors du v-bind dynamique.
26
+ /**
27
+ * Props supplémentaires pour le composant atom/molecule (v-bind).
28
+ * `disabled`, `readonly`, `hideCountryDropdown`, `size` et `countryFieldId` peuvent être
29
+ * soit une valeur statique, soit une fonction `(formData) => value` où `formData` est le
30
+ * même objet que le `v-model` du formulaire (réévaluation à chaque rendu).
28
31
  */
29
- componentProps?: any;
32
+ componentProps?: Record<string, unknown> & {
33
+ disabled?: boolean | ((formData: Record<string, unknown>) => boolean);
34
+ readonly?: boolean | ((formData: Record<string, unknown>) => boolean);
35
+ hideCountryDropdown?: boolean | ((formData: Record<string, unknown>) => boolean);
36
+ size?: InputTextProps['size'] | ((formData: Record<string, unknown>) => InputTextProps['size']);
37
+ countryFieldId?: string | ((formData: Record<string, unknown>) => string);
38
+ };
30
39
  /** Largeur flexible (flex-grow) */
31
40
  flex?: number;
32
41
  }