@club-employes/utopia 4.213.0 → 4.214.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.
@@ -1,6 +1,7 @@
1
1
  import { 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
+ loading: boolean;
4
5
  radius: number;
5
6
  fit: "cover" | "contain" | "fill";
6
7
  aspectRatio: number;
@@ -27,4 +27,9 @@ export interface DefaultImageProps {
27
27
  * @default 12
28
28
  */
29
29
  radius?: number;
30
+ /**
31
+ * Whether to force the loading state.
32
+ * @default false
33
+ */
34
+ loading?: boolean;
30
35
  }
@@ -19,6 +19,7 @@ declare const _default: DefineComponent<CartPreviewProps, {}, {}, {}, {}, Compon
19
19
  emptyDescription: string;
20
20
  toastLabel: string;
21
21
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
22
+ cartPreviewRef: HTMLDivElement;
22
23
  progressRef: HTMLDivElement;
23
24
  }, any>;
24
25
  export default _default;
@@ -4,5 +4,7 @@ declare const _default: DefineComponent<CartPreviewItemProps, {}, {}, {}, {}, Co
4
4
  remove: (id: string) => any;
5
5
  }, string, PublicProps, Readonly<CartPreviewItemProps> & Readonly<{
6
6
  onRemove?: ((id: string) => any) | undefined;
7
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
7
+ }>, {
8
+ loading: boolean;
9
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
8
10
  export default _default;
@@ -1,10 +1,11 @@
1
1
  export interface CartPreviewItemProps {
2
- id: string;
3
- image: string;
4
- label: string;
2
+ id?: string;
3
+ loading?: boolean;
4
+ image?: string;
5
+ label?: string;
5
6
  description?: string;
6
7
  oldPrice?: string;
7
- price: string;
8
+ price?: string;
8
9
  }
9
10
  export interface CartPreviewPriceLine {
10
11
  label: string;
@@ -15,14 +16,19 @@ export interface CartPreviewPrice {
15
16
  lines: CartPreviewPriceLine[];
16
17
  totalLabel: string;
17
18
  totalValue: string;
19
+ mobileLabel?: string;
20
+ mobileValue?: string;
21
+ mobileColor?: string;
18
22
  }
19
23
  export interface CartPreviewProps {
20
24
  open: boolean;
21
25
  top?: number;
22
26
  right?: number;
23
27
  title?: string;
28
+ loading?: boolean;
24
29
  sideTitle?: string;
25
30
  items: CartPreviewItemProps[];
31
+ lastItemId?: string;
26
32
  price?: CartPreviewPrice;
27
33
  buttonLabel?: string;
28
34
  disclaimer?: string;
@@ -20,6 +20,7 @@ declare const _default: DefineComponent<ProductSummaryProps, {}, {}, {}, {}, Com
20
20
  outOfStock: boolean;
21
21
  outOfStockChipLabel: string;
22
22
  outOfStockDescription: string;
23
+ displayTotalPrice: boolean;
23
24
  additionalInfo: ProductSummaryAdditionalInfo[];
24
25
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
25
26
  tipsContentRef: HTMLDivElement;
@@ -8,8 +8,10 @@ export interface ProductSummaryPrice {
8
8
  label: string;
9
9
  totalLabel: string;
10
10
  formattedPrice: string;
11
+ formattedTotalPrice: string;
11
12
  formattedOldPriceLabel: string;
12
13
  formattedOldPriceValue: string;
14
+ formattedTotalOldPriceValue: string;
13
15
  formattedSavingInfo: string;
14
16
  formattedSavingInfoTooltip: PriceSummarySavingInfoTooltip;
15
17
  }
@@ -78,6 +80,7 @@ export interface ProductSummaryProps {
78
80
  codeTooltipLabel?: string;
79
81
  subvention?: ProductSummarySubvention;
80
82
  price?: ProductSummaryPrice;
83
+ displayTotalPrice?: boolean;
81
84
  quantity?: ProductSummaryQuantity;
82
85
  button?: ProductSummaryButton;
83
86
  secondaryButton?: ProductSummaryButton;