@club-employes/utopia 4.359.0 → 4.361.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/atoms/DefaultImage/DefaultImage.d.ts +2 -2
- package/dist/components/atoms/DefaultImage/index.d.ts +1 -1
- package/dist/components/atoms/DefaultImage/types.d.ts +7 -1
- package/dist/components/atoms/index.d.ts +1 -1
- package/dist/components/molecules/ProductImage/types.d.ts +2 -1
- package/dist/components/molecules/Slider/SliderProps.d.ts +2 -1
- package/dist/components/organisms/DeliveryMethodSelector/types.d.ts +2 -1
- package/dist/components/organisms/ProductCard/ProductCard.d.ts +0 -1
- package/dist/components/organisms/ProductCard/types.d.ts +2 -1
- package/dist/components/organisms/Table/Table.d.ts +1 -0
- package/dist/components/organisms/Table/types.d.ts +16 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8112 -8100
- package/dist/utopia.css +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { DefaultImageProps } from './types';
|
|
1
|
+
import { ImageFits, DefaultImageProps } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare const _default: DefineComponent<DefaultImageProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<DefaultImageProps> & Readonly<{}>, {
|
|
4
4
|
loading: boolean;
|
|
5
5
|
radius: number;
|
|
6
|
-
fit:
|
|
6
|
+
fit: ImageFits;
|
|
7
7
|
aspectRatio: number;
|
|
8
8
|
hoverZoom: boolean;
|
|
9
9
|
inactive: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as DefaultImage } from './DefaultImage';
|
|
2
|
-
export type
|
|
2
|
+
export { ImageFits, type DefaultImageProps } from './types';
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export declare enum ImageFits {
|
|
2
|
+
COVER = "cover",
|
|
3
|
+
CONTAIN = "contain",
|
|
4
|
+
FILL = "fill",
|
|
5
|
+
LOGO = "logo"
|
|
6
|
+
}
|
|
1
7
|
export interface DefaultImageProps {
|
|
2
8
|
/**
|
|
3
9
|
* The image URL.
|
|
@@ -16,7 +22,7 @@ export interface DefaultImageProps {
|
|
|
16
22
|
* How the image should fit in the container.
|
|
17
23
|
* @default 'cover'
|
|
18
24
|
*/
|
|
19
|
-
fit?:
|
|
25
|
+
fit?: ImageFits;
|
|
20
26
|
/**
|
|
21
27
|
* Whether to enable hover zoom on the image.
|
|
22
28
|
* @default false
|
|
@@ -24,7 +24,7 @@ export type BadgeSize = 'small' | 'medium';
|
|
|
24
24
|
export type Currency = '€' | '£';
|
|
25
25
|
export { FavoriteToggle, type FavoriteToggleProps } from './FavoriteToggle';
|
|
26
26
|
export { CopyCode, type CopyCodeProps } from './CopyCode';
|
|
27
|
-
export { DefaultImage, type DefaultImageProps } from './DefaultImage';
|
|
27
|
+
export { DefaultImage, ImageFits, type DefaultImageProps } from './DefaultImage';
|
|
28
28
|
export { WelcomeUser, type WelcomeUserProps } from './WelcomeUser';
|
|
29
29
|
export { Icon3D, type Icon3DName, type Icon3DProps, type Icon3DResolution } from './Icon3D';
|
|
30
30
|
export { Separator, type SeparatorProps } from './Separator';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ImageFits } from '../../atoms/DefaultImage';
|
|
1
2
|
export interface DeliveryMethodProductRecap {
|
|
2
3
|
/** Product title, e.g. "Entrée adulte Disneyland". */
|
|
3
4
|
title?: string;
|
|
@@ -8,7 +9,7 @@ export interface DeliveryMethodProductRecap {
|
|
|
8
9
|
/** Thumbnail image src. Falls back to a placeholder when omitted. */
|
|
9
10
|
image?: string;
|
|
10
11
|
/** Object-fit value for the thumbnail image. */
|
|
11
|
-
imageFit?:
|
|
12
|
+
imageFit?: ImageFits;
|
|
12
13
|
}
|
|
13
14
|
/** A single selectable shipping/delivery method. */
|
|
14
15
|
export interface DeliveryMethod {
|
|
@@ -22,7 +22,6 @@ declare const _default: DefineComponent<ProductCardProps, {}, {}, {}, {}, Compon
|
|
|
22
22
|
outOfStockLabel: string;
|
|
23
23
|
imageUrl: string;
|
|
24
24
|
available: boolean;
|
|
25
|
-
containImage: boolean;
|
|
26
25
|
comingBackSoonLabel: string;
|
|
27
26
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
28
27
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ImageFits } from '../../atoms/DefaultImage';
|
|
1
2
|
export interface ProductCardProps {
|
|
2
3
|
id: string;
|
|
3
4
|
loading?: boolean;
|
|
@@ -18,7 +19,7 @@ export interface ProductCardProps {
|
|
|
18
19
|
subventionName?: string;
|
|
19
20
|
subventionTooltip?: string;
|
|
20
21
|
priceTagLabel?: string;
|
|
21
|
-
|
|
22
|
+
imageFit?: ImageFits;
|
|
22
23
|
comingBackSoonLabel?: string;
|
|
23
24
|
outOfStockLabel?: string;
|
|
24
25
|
}
|
|
@@ -52,6 +52,7 @@ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, Comp
|
|
|
52
52
|
resizableColumns: boolean;
|
|
53
53
|
columnResizeMode: "fit" | "expand";
|
|
54
54
|
reorderableColumns: boolean;
|
|
55
|
+
rowReorderable: boolean;
|
|
55
56
|
doSelection: boolean;
|
|
56
57
|
compareSelectionBy: "equals" | "deepEquals";
|
|
57
58
|
metaKeySelection: boolean;
|
|
@@ -158,6 +158,15 @@ export interface ColumnType {
|
|
|
158
158
|
* Si `false`, désactive la réorganisation même si `reorderableColumns` est `true` sur le tableau.
|
|
159
159
|
*/
|
|
160
160
|
reorderableColumn?: boolean;
|
|
161
|
+
/**
|
|
162
|
+
* Affiche le handle de glisser-déposer pour la réorganisation des lignes sur cette colonne.
|
|
163
|
+
* Utile uniquement lorsque `rowReorderable` est `true` sur le tableau et qu'on veut intégrer
|
|
164
|
+
* le handle dans une colonne existante plutôt que dans la colonne auto-générée.
|
|
165
|
+
* @default false
|
|
166
|
+
*/
|
|
167
|
+
rowReorder?: boolean;
|
|
168
|
+
/** Icône personnalisée pour le handle de réorganisation des lignes. */
|
|
169
|
+
rowReorderIcon?: string;
|
|
161
170
|
filterMatchModeOptions?: ColumnFilterMatchModeOptions[];
|
|
162
171
|
/**
|
|
163
172
|
* Délai de debounce (ms) pour les filtres de type input (TEXT, EMAIL, NUMBER).
|
|
@@ -212,8 +221,6 @@ export interface ColumnType {
|
|
|
212
221
|
maxConstraints?: number;
|
|
213
222
|
selectionMode?: 'single' | 'multiple';
|
|
214
223
|
expander?: boolean;
|
|
215
|
-
rowReorder?: boolean;
|
|
216
|
-
rowReorderIcon?: string;
|
|
217
224
|
colspan?: number;
|
|
218
225
|
rowspan?: number;
|
|
219
226
|
exportable?: boolean;
|
|
@@ -351,6 +358,13 @@ export interface TableProps<T = Record<string, any>> {
|
|
|
351
358
|
* @default true
|
|
352
359
|
*/
|
|
353
360
|
reorderableColumns?: boolean;
|
|
361
|
+
/**
|
|
362
|
+
* Autorise la réorganisation des lignes par glisser-déposer.
|
|
363
|
+
* Ajoute automatiquement une colonne avec le handle de déplacement en tête du tableau.
|
|
364
|
+
* Émet l'événement `row-reorder` avec `{ dragIndex, dropIndex, value }`.
|
|
365
|
+
* @default false
|
|
366
|
+
*/
|
|
367
|
+
rowReorderable?: boolean;
|
|
354
368
|
/**
|
|
355
369
|
* si c'est le mode de vérification des données CSV ou non.
|
|
356
370
|
* @default false
|
package/dist/index.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export type { SwitchProps } from './components/atoms/Switch/types';
|
|
|
26
26
|
export type { TextAreaProps } from './components/atoms/TextArea/types';
|
|
27
27
|
export type { TipsProps } from './components/atoms/Tips/types';
|
|
28
28
|
export type { CopyCodeProps } from './components/atoms/CopyCode/types';
|
|
29
|
-
export type
|
|
29
|
+
export { ImageFits, type DefaultImageProps } from './components/atoms/DefaultImage/types';
|
|
30
30
|
export type { WelcomeUserProps } from './components/atoms/WelcomeUser/types';
|
|
31
31
|
export type { Icon3DProps } from './components/atoms/Icon3D/types';
|
|
32
32
|
export type { SeparatorProps } from './components/atoms/Separator/types';
|