@propeller-commerce/propeller-v2-vue-ui 0.3.31 → 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 CHANGED
@@ -8,6 +8,18 @@ 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
+
11
23
  ## [0.3.31] - 2026-07-16
12
24
 
13
25
  ### Fixed
package/dist/index.cjs CHANGED
@@ -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
- selectedDate.value = normalized;
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(normalized);
9719
+ props.onDateSelect(adopt);
9716
9720
  }
9717
9721
  }
9718
9722
  },