@propeller-commerce/propeller-v2-vue-ui 0.3.32 → 0.3.33
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 +25 -0
- package/dist/components/DeliveryDate.vue.d.ts +8 -0
- package/dist/components/SearchBar.vue.d.ts +19 -1
- package/dist/index.cjs +153 -125
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +153 -125
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,31 @@ once it reaches 1.0. Until then (the `0.x` line) the public API may change
|
|
|
8
8
|
between minor versions; breaking changes are called out below and in
|
|
9
9
|
[MIGRATION.md](./MIGRATION.md).
|
|
10
10
|
|
|
11
|
+
## [0.3.33] - 2026-07-17
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- `SearchBar`: the autosuggest dropdown hardcoded `price.gross` (excl. VAT) and
|
|
16
|
+
ignored the Incl./Excl. toggle, under-quoting every product, and showed no
|
|
17
|
+
tax label. It now carries both net/gross, picks the leading price from
|
|
18
|
+
`includeTax` (resolved from `<PropellerProvider>`), and renders an
|
|
19
|
+
`incl./excl.` label — consistent with `ProductPrice`/PLP/PDP. New optional
|
|
20
|
+
props: `includeTax`, `priceLabels` (keys `inclTax`/`exclTax`).
|
|
21
|
+
- `CartIconAndSidebar`: the header mini-cart rendered line items excl. VAT
|
|
22
|
+
(`includeTax=false`) while the total used `totalNet` (incl. VAT) and bonus
|
|
23
|
+
items were pinned incl. — the lines never reconciled with the total and none
|
|
24
|
+
followed the toggle. All three now share one `useTax` basis (from
|
|
25
|
+
`includeTax`), so lines, total, and bonus items agree and respect the toggle.
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
|
|
29
|
+
- `DeliveryDate`: weekday/month names in the quick-pick tiles now resolve via
|
|
30
|
+
`labels` (keys `day_0`…`day_6`, `month_0`…`month_11`; English fallback) so
|
|
31
|
+
they localize with the active locale instead of hardcoded English. New
|
|
32
|
+
optional `language` prop (resolved from `<PropellerProvider>`) sets the
|
|
33
|
+
native date-input's `lang`, localizing the browser calendar chrome
|
|
34
|
+
(month name, weekday headers, Today/Clear).
|
|
35
|
+
|
|
11
36
|
## [0.3.32] - 2026-07-17
|
|
12
37
|
|
|
13
38
|
### Fixed
|
|
@@ -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;
|
|
@@ -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'. */
|