@club-employes/utopia 4.289.0 → 4.290.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/OptionSelect/OptionSelect.d.ts +1 -0
- package/dist/components/molecules/OptionSelect/SingleOption.d.ts +1 -3
- package/dist/components/molecules/OptionSelect/types.d.ts +1 -0
- package/dist/components/organisms/ProductSummary/types.d.ts +4 -2
- package/dist/components/organisms/Table/types.d.ts +7 -0
- package/dist/components/organisms/Table/utils/getColumnErrors.d.ts +3 -3
- package/dist/index.js +2504 -2533
- package/dist/utopia.css +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
13
|
-
|
|
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
|
-
*
|
|
5
|
-
*
|
|
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[];
|