fds-vue-core 7.1.2 → 7.1.4

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.
@@ -14927,6 +14927,16 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
14927
14927
  const weekToRender = vue.computed(() => getDaysInWeek(currentWeek.value));
14928
14928
  const visibleWeekDays = vue.computed(() => weekToRender.value.filter((day) => getISODay(day) <= 5));
14929
14929
  const lastWeek = vue.computed(() => getDaysOfLastWeek(subWeeks(currentWeek.value)));
14930
+ const onHandleSelectedDay = (weekDay) => {
14931
+ selectedDay.value = weekDay;
14932
+ emit("select-date", weekDay);
14933
+ };
14934
+ const onHandleSetCurrentWeek = (week) => {
14935
+ if (selectedDay.value && !isSameWeek(selectedDay.value, week, { weekStartsOn: 1 })) {
14936
+ onHandleSelectedDay(null);
14937
+ }
14938
+ currentWeek.value = week;
14939
+ };
14930
14940
  const weekText = vue.computed(
14931
14941
  () => `${getOverlappingMonths(currentWeek.value, locale.value)} (${t("FdsWeekCalendar.week")} ${getISOWeek(currentWeek.value)})`
14932
14942
  );
@@ -15000,16 +15010,6 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
15000
15010
  },
15001
15011
  { immediate: true }
15002
15012
  );
15003
- const onHandleSelectedDay = (weekDay) => {
15004
- selectedDay.value = weekDay;
15005
- emit("select-date", weekDay);
15006
- };
15007
- const onHandleSetCurrentWeek = (week) => {
15008
- if (selectedDay.value && !isSameWeek(selectedDay.value, week, { weekStartsOn: 1 })) {
15009
- onHandleSelectedDay(null);
15010
- }
15011
- currentWeek.value = week;
15012
- };
15013
15013
  const navigateToWeek = (week) => {
15014
15014
  const normalizedWeek = startOfISOWeek(week);
15015
15015
  if (isSameWeek(normalizedWeek, currentWeek.value, { weekStartsOn: 1 })) return;
@@ -15910,8 +15910,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
15910
15910
  heading: { default: void 0 },
15911
15911
  align: { default: "left" },
15912
15912
  icon: { default: void 0 },
15913
- dataTestid: { default: void 0 },
15914
- isSortActive: { type: Boolean, default: false }
15913
+ dataTestid: { default: void 0 }
15915
15914
  },
15916
15915
  emits: ["sort"],
15917
15916
  setup(__props, { emit: __emit }) {
@@ -15923,10 +15922,6 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
15923
15922
  props.align === "right" && "text-right justify-end",
15924
15923
  iconName.value && "text-blue-600! hover:bg-blue_t-200 cursor-pointer focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-offset-[-2px] focus-visible:outline-blue-500 active:bg-blue_t-300"
15925
15924
  ]);
15926
- const iconClasses = vue.computed(() => [
15927
- "fill-blue-500 ml-1 transition-opacity",
15928
- iconName.value && !props.isSortActive && "opacity-20"
15929
- ]);
15930
15925
  const iconName = vue.computed(() => props.icon);
15931
15926
  const emit = __emit;
15932
15927
  const handleSort = (ev) => {
@@ -15956,8 +15951,8 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
15956
15951
  vue.createVNode(_sfc_main$J, {
15957
15952
  name: iconName.value,
15958
15953
  size: "24px",
15959
- class: vue.normalizeClass(iconClasses.value)
15960
- }, null, 8, ["name", "class"])
15954
+ class: "fill-blue-500 ml-1"
15955
+ }, null, 8, ["name"])
15961
15956
  ], 42, _hoisted_1$1)) : (vue.openBlock(), vue.createElementBlock("div", {
15962
15957
  key: 1,
15963
15958
  class: vue.normalizeClass(headerClasses.value)