@club-employes/utopia 4.316.0 → 4.319.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.
|
@@ -6,5 +6,7 @@ declare const _default: DefineComponent<ProductRecapProps, {}, {}, {}, {}, Compo
|
|
|
6
6
|
}, string, PublicProps, Readonly<ProductRecapProps> & Readonly<{
|
|
7
7
|
onDelete?: (() => any) | undefined;
|
|
8
8
|
"onUpdate:quantity"?: ((value: number) => any) | undefined;
|
|
9
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
9
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
10
|
+
recapRef: HTMLDivElement;
|
|
11
|
+
}, HTMLDivElement>;
|
|
10
12
|
export default _default;
|
|
@@ -7,6 +7,7 @@ export interface ProductRecapChip {
|
|
|
7
7
|
label: string;
|
|
8
8
|
variant?: ChipVariant;
|
|
9
9
|
leftIcon?: string;
|
|
10
|
+
tooltip?: string[];
|
|
10
11
|
}
|
|
11
12
|
export interface ProductRecapPriceLine {
|
|
12
13
|
label: string;
|
|
@@ -30,4 +31,6 @@ export interface ProductRecapProps {
|
|
|
30
31
|
minQuantity?: number;
|
|
31
32
|
maxQuantity?: number;
|
|
32
33
|
price: ProductRecapPrice;
|
|
34
|
+
outOfStock?: boolean;
|
|
35
|
+
outOfStockLabel?: string;
|
|
33
36
|
}
|
|
@@ -548,6 +548,23 @@ export interface CellEditorProps {
|
|
|
548
548
|
time: string;
|
|
549
549
|
};
|
|
550
550
|
}
|
|
551
|
+
/**
|
|
552
|
+
* Icône optionnelle sur une ligne TEXT_IMAGE (titre, sous-titre ou texte d’appui).
|
|
553
|
+
* Si `format` est défini, il reçoit les mêmes valeurs brutes que le `format` du même bloc,
|
|
554
|
+
* dans l’ordre des clés (`key` string ou string[]) ; sinon `key` fournit un nom d’icône statique.
|
|
555
|
+
*/
|
|
556
|
+
export interface TextImageLineIcon {
|
|
557
|
+
key?: string;
|
|
558
|
+
size?: IconSize;
|
|
559
|
+
color?: string;
|
|
560
|
+
strokeWidth?: number;
|
|
561
|
+
position?: 'left' | 'right';
|
|
562
|
+
/**
|
|
563
|
+
* Un argument par entrée de `key` au même niveau (title / subtitle / supportingText).
|
|
564
|
+
* Retourner une chaîne vide ou `undefined` pour masquer l’icône.
|
|
565
|
+
*/
|
|
566
|
+
format?: (...values: (string | number | boolean | null | undefined)[]) => string | undefined;
|
|
567
|
+
}
|
|
551
568
|
export interface TextImageContentType {
|
|
552
569
|
image?: {
|
|
553
570
|
key: string;
|
|
@@ -570,13 +587,7 @@ export interface TextImageContentType {
|
|
|
570
587
|
* Ex. key: ['name', 'lastName'] → format(name, lastName) => `${name} Qte: (${String(lastName).toUpperCase()})`
|
|
571
588
|
*/
|
|
572
589
|
format?: (...values: (string | number | boolean | null | undefined)[]) => string | number | boolean | null | undefined;
|
|
573
|
-
icon?:
|
|
574
|
-
key?: string;
|
|
575
|
-
size?: IconSize;
|
|
576
|
-
color?: string;
|
|
577
|
-
strokeWidth?: number;
|
|
578
|
-
position?: 'left' | 'right';
|
|
579
|
-
};
|
|
590
|
+
icon?: TextImageLineIcon;
|
|
580
591
|
};
|
|
581
592
|
subtitle?: {
|
|
582
593
|
key?: string | string[];
|
|
@@ -589,13 +600,7 @@ export interface TextImageContentType {
|
|
|
589
600
|
tooltipWhenTruncated?: boolean;
|
|
590
601
|
/** Une valeur si key est string, plusieurs arguments si key est string[]. */
|
|
591
602
|
format?: (...values: (string | number | boolean | null | undefined)[]) => string | number | boolean | null | undefined;
|
|
592
|
-
icon?:
|
|
593
|
-
key?: string;
|
|
594
|
-
size?: IconSize;
|
|
595
|
-
color?: string;
|
|
596
|
-
strokeWidth?: number;
|
|
597
|
-
position?: 'left' | 'right';
|
|
598
|
-
};
|
|
603
|
+
icon?: TextImageLineIcon;
|
|
599
604
|
};
|
|
600
605
|
supportingText?: {
|
|
601
606
|
key?: string | string[];
|
|
@@ -608,13 +613,7 @@ export interface TextImageContentType {
|
|
|
608
613
|
tooltipWhenTruncated?: boolean;
|
|
609
614
|
/** Une valeur si key est string, plusieurs arguments si key est string[]. */
|
|
610
615
|
format?: (...values: (string | number | boolean | null | undefined)[]) => string | number | boolean | null | undefined;
|
|
611
|
-
icon?:
|
|
612
|
-
key?: string;
|
|
613
|
-
size?: IconSize;
|
|
614
|
-
color?: string;
|
|
615
|
-
strokeWidth?: number;
|
|
616
|
-
position?: 'left' | 'right';
|
|
617
|
-
};
|
|
616
|
+
icon?: TextImageLineIcon;
|
|
618
617
|
};
|
|
619
618
|
}
|
|
620
619
|
export interface TagContentType {
|