fds-vue-core 7.1.0 → 7.1.1

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.
@@ -14772,7 +14772,7 @@ const checkIfDateIsBeforeToday = (date) => {
14772
14772
  return isAfter(startOfToday, startOfDate);
14773
14773
  };
14774
14774
  const checkIfDateIsEnabled = (date, enabledDates) => enabledDates.some((enabledDate) => isSameDay(enabledDate, date));
14775
- const _hoisted_1$6 = ["disabled"];
14775
+ const _hoisted_1$6 = ["disabled", "aria-label"];
14776
14776
  const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
14777
14777
  __name: "WeekDay",
14778
14778
  props: {
@@ -14810,11 +14810,24 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
14810
14810
  const value = new Intl.DateTimeFormat(locale.value, { weekday: "short" }).format(props.date);
14811
14811
  return value.charAt(0).toUpperCase() + value.slice(1).replace(".", "");
14812
14812
  });
14813
+ const dateAriaLabel = vue.computed(() => {
14814
+ const spokenDate = new Intl.DateTimeFormat(locale.value, {
14815
+ day: "numeric",
14816
+ month: "long",
14817
+ weekday: "long"
14818
+ }).format(props.date);
14819
+ const normalizedDate = spokenDate.charAt(0).toUpperCase() + spokenDate.slice(1);
14820
+ if (props.isToday) {
14821
+ return `${t("FdsWeekCalendar.today")}. ${normalizedDate}.`;
14822
+ }
14823
+ return `${normalizedDate}.`;
14824
+ });
14813
14825
  return (_ctx, _cache) => {
14814
14826
  return vue.openBlock(), vue.createElementBlock("button", {
14815
14827
  type: "button",
14816
14828
  class: vue.normalizeClass(classes.value),
14817
14829
  disabled: __props.disabled,
14830
+ "aria-label": dateAriaLabel.value,
14818
14831
  onClick
14819
14832
  }, [
14820
14833
  vue.createElementVNode("span", {
@@ -15504,7 +15517,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
15504
15517
  }, [
15505
15518
  vue.createElementVNode("button", {
15506
15519
  type: "button",
15507
- class: vue.normalizeClass(["relative flex flex-col items-center", { "cursor-not-allowed": !canGoToStep(currentStepIndex.value, entry.index) }]),
15520
+ class: vue.normalizeClass(["relative flex flex-col items-center focus-visible:outline-2 focus-visible:outline-dashed focus-visible:outline-offset-4 focus-visible:outline-blue-500", { "cursor-not-allowed": !canGoToStep(currentStepIndex.value, entry.index) }]),
15508
15521
  onClick: ($event) => __props.disableStepJump ? null : goToStep(entry.index),
15509
15522
  disabled: !canGoToStep(currentStepIndex.value, entry.index)
15510
15523
  }, [