@propeller-commerce/propeller-v2-vue-ui 0.3.30 → 0.3.32
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 +21 -0
- package/dist/index.cjs +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,27 @@ 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.32] - 2026-07-17
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- `DeliveryDate`: when `skipWeekends` is on and the cart's `initialDate`
|
|
16
|
+
(`postageData.requestDate`) is a weekend, it was adopted verbatim — landing
|
|
17
|
+
the selected date in the "Other date" tile (rendered LAST, out of sequence)
|
|
18
|
+
and replacing the "Other date…" entry point with that date's label. Now a
|
|
19
|
+
weekend `initialDate` snaps to the first valid weekday tile, so the selection
|
|
20
|
+
lands on the leading quick-pick and the "Other date…" tile is restored. A
|
|
21
|
+
weekday `initialDate` is still adopted as-is.
|
|
22
|
+
|
|
23
|
+
## [0.3.31] - 2026-07-16
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
|
|
27
|
+
- `ActionCode`: the panel title now resolves through the `labels` map
|
|
28
|
+
(`labels.title`) instead of only the `title` prop, so the "Action code"
|
|
29
|
+
heading is translatable like every other label. Falls back to `props.title`,
|
|
30
|
+
then `labels.title`, then `'Action code'`. Same fix as `CartSummary` in 0.3.30.
|
|
31
|
+
|
|
11
32
|
## [0.3.30] - 2026-07-16
|
|
12
33
|
|
|
13
34
|
### Fixed
|
package/dist/index.cjs
CHANGED
|
@@ -3774,7 +3774,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
|
|
|
3774
3774
|
isMounted.value = true;
|
|
3775
3775
|
});
|
|
3776
3776
|
const title = vue.computed(() => {
|
|
3777
|
-
return props.title || "Action code";
|
|
3777
|
+
return props.title || getLabel("title", "Action code");
|
|
3778
3778
|
});
|
|
3779
3779
|
const showRemoveCode = vue.computed(() => {
|
|
3780
3780
|
return props.showRemoveCode !== void 0 ? props.showRemoveCode : true;
|
|
@@ -9710,9 +9710,13 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
9710
9710
|
if (props.initialDate && !selectedDate.value) {
|
|
9711
9711
|
const dot = props.initialDate.lastIndexOf(".");
|
|
9712
9712
|
const normalized = dot !== -1 ? props.initialDate.substring(0, dot) + "Z" : props.initialDate;
|
|
9713
|
-
|
|
9713
|
+
const parsed = new Date(normalized);
|
|
9714
|
+
const isWeekend = !isNaN(parsed.getTime()) && (parsed.getDay() === 0 || parsed.getDay() === 6);
|
|
9715
|
+
const tiles = upcomingDates.value;
|
|
9716
|
+
const adopt = skipWeekends.value && isWeekend && tiles.length > 0 ? tiles[0] : normalized;
|
|
9717
|
+
selectedDate.value = adopt;
|
|
9714
9718
|
if (props.onDateSelect) {
|
|
9715
|
-
props.onDateSelect(
|
|
9719
|
+
props.onDateSelect(adopt);
|
|
9716
9720
|
}
|
|
9717
9721
|
}
|
|
9718
9722
|
},
|