@propeller-commerce/propeller-v2-vue-ui 0.3.32 → 0.3.34

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.
@@ -62,6 +62,12 @@ export interface CartIconAndSidebarProps {
62
62
  * continueShopping, qty, total, checkoutButton, cartPageButton, closeLabel
63
63
  */
64
64
  labels?: Record<string, string>;
65
+ /**
66
+ * Labels forwarded to the inner CartItem rows (e.g. `qtyPrefix`). Without
67
+ * this the sidebar's line items fell back to English ("Qty:") even on a
68
+ * localized page. Keys match CartItem's label map.
69
+ */
70
+ cartItemLabels?: Record<string, string>;
65
71
  /** Logged-in user — used to determine purchaser role and authorization limit */
66
72
  user?: Contact | Customer;
67
73
  /** Active company ID — used to look up the user's PAC for this company */
@@ -18,6 +18,14 @@ export interface CartPaymethodsProps {
18
18
  formatPrice?: (price: number) => string;
19
19
  /** Labels for the component */
20
20
  labels?: Record<string, string>;
21
+ /**
22
+ * Localized display names for payment methods, keyed by the method **code**
23
+ * (lower-cased, e.g. `{ pickup: 'Bij afhalen', on_account: 'Op rekening' }`).
24
+ * The backend `method.name` is often an un-localized English string, so this
25
+ * map lets the host override it per locale. Lookup order:
26
+ * `paymethodLabels[code]` → `method.name` → `method.code`.
27
+ */
28
+ paymethodLabels?: Record<string, string>;
21
29
  }
22
30
  declare const _default: import('vue').DefineComponent<CartPaymethodsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CartPaymethodsProps> & Readonly<{}>, {
23
31
  showOnAccountForGuests: boolean;
@@ -18,6 +18,14 @@ export interface DeliveryDateProps {
18
18
  containerClass?: string;
19
19
  /** Pre-selected date from cart (e.g. cart.postageData.requestDate: "2026-04-17T00:00:00.000Z") */
20
20
  initialDate?: string;
21
+ /**
22
+ * Active language/locale (e.g. `'NL'`). Sets the `lang` attribute on the
23
+ * native `<input type="date">` so the browser renders its calendar chrome
24
+ * (month name, weekday headers, Today/Clear) in that locale. Resolved from
25
+ * `<PropellerProvider>` when omitted. Quick-pick tile text is localized
26
+ * separately via `labels` (day_N / month_N keys).
27
+ */
28
+ language?: string;
21
29
  }
22
30
  declare const _default: import('vue').DefineComponent<DeliveryDateProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DeliveryDateProps> & Readonly<{}>, {
23
31
  showUpcomingDays: number;
@@ -8,8 +8,17 @@ export interface PriceToggleProps {
8
8
  * (`pricesLabel`, `inclVat`, `exclVat`). Missing keys fall back to English. */
9
9
  labels?: Record<string, string>;
10
10
  /**
11
- * Initial state of the toggle.
12
- * Defaults to true (incl. VAT).
11
+ * Controlled mode: current on/off state (true = incl. VAT). When supplied,
12
+ * the toggle reflects THIS value (label + aria-checked) and tracks its
13
+ * changes, instead of owning local state. Pair with `inclExclVatSwitched`.
14
+ * Prefer this over `initialState` when the host persists the state (e.g. a
15
+ * cookie): `initialState` is read once and can't reflect the persisted mode
16
+ * on load, so the control would lie about the current mode.
17
+ */
18
+ value?: boolean;
19
+ /**
20
+ * Uncontrolled mode: initial state of the toggle. Ignored when `value` is
21
+ * supplied. Defaults to true (incl. VAT).
13
22
  */
14
23
  initialState?: boolean;
15
24
  /**
@@ -6,8 +6,15 @@ export interface SearchBarResult {
6
6
  name: string;
7
7
  /** SKU code */
8
8
  sku?: string;
9
- /** Price value */
9
+ /**
10
+ * Leading price value (kept for back-compat). Populated with the net or gross
11
+ * amount per the active toggle — see `priceNet`/`priceGross` for both values.
12
+ */
10
13
  price?: number;
14
+ /** Tax-inclusive price (SDK `price.net`). */
15
+ priceNet?: number;
16
+ /** Tax-exclusive price (SDK `price.gross`). */
17
+ priceGross?: number;
11
18
  /** Image URL */
12
19
  imageUrl?: string;
13
20
  /** URL path to navigate to */
@@ -44,6 +51,17 @@ export interface SearchBarProps {
44
51
  formatPrice?: (price: number) => string;
45
52
  /** Labels for the component */
46
53
  labels?: Record<string, string>;
54
+ /**
55
+ * When true, the tax-inclusive (net) price leads; false shows tax-exclusive
56
+ * (gross). SDK mapping: `price.net` = incl. VAT, `price.gross` = excl. VAT.
57
+ * Resolved from `<PropellerProvider>` when omitted; defaults to `false`.
58
+ */
59
+ includeTax?: boolean;
60
+ /**
61
+ * Labels for the incl./excl. price suffix. Keys: `inclTax`, `exclTax`.
62
+ * Falls back to English 'incl. VAT' / 'excl. VAT'.
63
+ */
64
+ priceLabels?: Record<string, string>;
47
65
  /** Additional class name for the container */
48
66
  containerClassName?: string;
49
67
  /** Tax zone used for price calculation. Defaults to 'NL'. */