@club-employes/utopia 4.289.0 → 4.291.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.
@@ -3,6 +3,7 @@ type __VLS_Props = {
3
3
  formattedDraftDateDisplay: string;
4
4
  enableTime: boolean;
5
5
  language: string;
6
+ hideConfirmButton?: boolean;
6
7
  };
7
8
  declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
8
9
  clear: () => any;
@@ -27,4 +27,6 @@ export interface DatePickerProps {
27
27
  teleport?: boolean;
28
28
  language?: 'fr' | 'en';
29
29
  minuteStep?: number;
30
+ /** Masquer le bouton "Choisir la date" — la sélection se confirme automatiquement au clic */
31
+ hideConfirmButton?: boolean;
30
32
  }
@@ -7,5 +7,6 @@ declare const _default: DefineComponent<OptionSelectProps, {}, {}, {}, {}, Compo
7
7
  }>, {
8
8
  required: boolean;
9
9
  outOfStockLabel: string;
10
+ displayMode: "dropdown" | "button";
10
11
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
11
12
  export default _default;
@@ -7,7 +7,5 @@ declare const _default: DefineComponent<SingleOptionProps, {}, {}, {}, {}, Compo
7
7
  }>, {
8
8
  outOfStock: boolean;
9
9
  outOfStockLabel: string;
10
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
11
- optionTextRef: HTMLParagraphElement;
12
- }, HTMLDivElement>;
10
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
13
11
  export default _default;
@@ -11,6 +11,7 @@ export interface OptionSelectProps {
11
11
  /** Affiche l’astérisque « requis » à côté du label. */
12
12
  required?: boolean;
13
13
  tooltip?: string;
14
+ displayMode?: 'dropdown' | 'button';
14
15
  modelValue: string | number | null;
15
16
  options: SingleOptionProps[];
16
17
  outOfStockLabel?: string;
@@ -9,8 +9,10 @@ export interface ProductSummaryPrice {
9
9
  totalLabel: string;
10
10
  formattedPrice: string;
11
11
  formattedTotalPrice: string;
12
- formattedOldPriceLabel?: string;
13
- formattedOldPriceValue?: string;
12
+ formattedOldPrice?: {
13
+ label: string;
14
+ value: string;
15
+ }[];
14
16
  formattedTotalOldPriceValue?: string;
15
17
  formattedSavingInfo?: string;
16
18
  formattedSavingInfoTooltip?: PriceSummarySavingInfoTooltip;
@@ -111,6 +111,13 @@ export interface ColumnType {
111
111
  * - `undefined` : utilise le champ d'affichage de la colonne (field ou columnKey).
112
112
  */
113
113
  sortField?: string | string[] | ((item: string) => string | number | boolean | null | undefined);
114
+ /**
115
+ * Champ(s) utilisés pour la validation (recherche d'erreurs).
116
+ * - `string` : validation sur un seul champ.
117
+ * - `string[]` : validation sur plusieurs champs (ex. colonne "Identité" = firstName + lastName + email).
118
+ * - `undefined` : utilise le champ d'affichage de la colonne (field ou columnKey).
119
+ */
120
+ validationFields?: string | string[];
114
121
  /**
115
122
  * Champ(s) utilisés pour le filtre (backend / requestData.filters).
116
123
  * - `string` : filtre sur un seul champ.
@@ -1,11 +1,11 @@
1
1
  import { ColumnType, ErrorType, TableRowData } from '../types';
2
2
  /**
3
3
  * Récupère toutes les erreurs pertinentes pour une colonne donnée.
4
- * Pour les colonnes composites (TEXT_IMAGE, DATE_RANGE, etc.), inclut les erreurs des champs sous-jacents.
5
- * Utilise getValueByPath pour les champs imbéqués.
4
+ * Utilise un alignement strict : une erreur est affichée si son `field` correspond
5
+ * exactement au `field` ou au `columnKey` de la colonne.
6
6
  *
7
7
  * @param data - Les données de la ligne
8
8
  * @param column - La configuration de la colonne
9
- * @returns Liste des erreurs valides pour cette colonne
9
+ * @returns Liste des erreurs valides pour cette colonne (dé-doublonnées par code/message)
10
10
  */
11
11
  export declare function getColumnErrors(data: TableRowData<any>, column: ColumnType): ErrorType[];