@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.
- package/CHANGELOG.md +50 -0
- package/dist/{ProductVideos.vue_vue_type_script_setup_true_lang-cfRT3L_k.cjs → ProductVideos.vue_vue_type_script_setup_true_lang-7UMkFuC2.cjs} +10 -11
- package/dist/ProductVideos.vue_vue_type_script_setup_true_lang-7UMkFuC2.cjs.map +1 -0
- package/dist/{ProductVideos.vue_vue_type_script_setup_true_lang-BSXOpWBD.js → ProductVideos.vue_vue_type_script_setup_true_lang-BGWkb9cO.js} +10 -11
- package/dist/{ProductVideos.vue_vue_type_script_setup_true_lang-BSXOpWBD.js.map → ProductVideos.vue_vue_type_script_setup_true_lang-BGWkb9cO.js.map} +1 -1
- package/dist/components/CartIconAndSidebar.vue.d.ts +6 -0
- package/dist/components/CartPaymethods.vue.d.ts +8 -0
- package/dist/components/DeliveryDate.vue.d.ts +8 -0
- package/dist/components/PriceToggle.vue.d.ts +11 -2
- package/dist/components/SearchBar.vue.d.ts +19 -1
- package/dist/index.cjs +193 -142
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +194 -143
- package/dist/index.js.map +1 -1
- package/dist/pure.cjs +1 -1
- package/dist/pure.js +1 -1
- package/package.json +1 -1
- package/dist/ProductVideos.vue_vue_type_script_setup_true_lang-cfRT3L_k.cjs.map +0 -1
|
@@ -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
|
-
*
|
|
12
|
-
*
|
|
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
|
-
/**
|
|
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'. */
|