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.
- package/dist/fds-vue-core.cjs.js +13 -18
- package/dist/fds-vue-core.cjs.js.map +1 -1
- package/dist/fds-vue-core.es.js +13 -18
- package/dist/fds-vue-core.es.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/components/FdsWeekCalendar/FdsWeekCalendar.vue +12 -12
- package/src/components/Table/FdsTableHead/FdsTableHead.stories.ts +2 -4
- package/src/components/Table/FdsTableHead/FdsTableHead.vue +1 -7
- package/src/components/Table/FdsTableHead/types.ts +0 -1
package/dist/fds-vue-core.es.js
CHANGED
|
@@ -14925,6 +14925,16 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
14925
14925
|
const weekToRender = computed(() => getDaysInWeek(currentWeek.value));
|
|
14926
14926
|
const visibleWeekDays = computed(() => weekToRender.value.filter((day) => getISODay(day) <= 5));
|
|
14927
14927
|
const lastWeek = computed(() => getDaysOfLastWeek(subWeeks(currentWeek.value)));
|
|
14928
|
+
const onHandleSelectedDay = (weekDay) => {
|
|
14929
|
+
selectedDay.value = weekDay;
|
|
14930
|
+
emit("select-date", weekDay);
|
|
14931
|
+
};
|
|
14932
|
+
const onHandleSetCurrentWeek = (week) => {
|
|
14933
|
+
if (selectedDay.value && !isSameWeek(selectedDay.value, week, { weekStartsOn: 1 })) {
|
|
14934
|
+
onHandleSelectedDay(null);
|
|
14935
|
+
}
|
|
14936
|
+
currentWeek.value = week;
|
|
14937
|
+
};
|
|
14928
14938
|
const weekText = computed(
|
|
14929
14939
|
() => `${getOverlappingMonths(currentWeek.value, locale.value)} (${t("FdsWeekCalendar.week")} ${getISOWeek(currentWeek.value)})`
|
|
14930
14940
|
);
|
|
@@ -14998,16 +15008,6 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
14998
15008
|
},
|
|
14999
15009
|
{ immediate: true }
|
|
15000
15010
|
);
|
|
15001
|
-
const onHandleSelectedDay = (weekDay) => {
|
|
15002
|
-
selectedDay.value = weekDay;
|
|
15003
|
-
emit("select-date", weekDay);
|
|
15004
|
-
};
|
|
15005
|
-
const onHandleSetCurrentWeek = (week) => {
|
|
15006
|
-
if (selectedDay.value && !isSameWeek(selectedDay.value, week, { weekStartsOn: 1 })) {
|
|
15007
|
-
onHandleSelectedDay(null);
|
|
15008
|
-
}
|
|
15009
|
-
currentWeek.value = week;
|
|
15010
|
-
};
|
|
15011
15011
|
const navigateToWeek = (week) => {
|
|
15012
15012
|
const normalizedWeek = startOfISOWeek(week);
|
|
15013
15013
|
if (isSameWeek(normalizedWeek, currentWeek.value, { weekStartsOn: 1 })) return;
|
|
@@ -15908,8 +15908,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
15908
15908
|
heading: { default: void 0 },
|
|
15909
15909
|
align: { default: "left" },
|
|
15910
15910
|
icon: { default: void 0 },
|
|
15911
|
-
dataTestid: { default: void 0 }
|
|
15912
|
-
isSortActive: { type: Boolean, default: false }
|
|
15911
|
+
dataTestid: { default: void 0 }
|
|
15913
15912
|
},
|
|
15914
15913
|
emits: ["sort"],
|
|
15915
15914
|
setup(__props, { emit: __emit }) {
|
|
@@ -15921,10 +15920,6 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
15921
15920
|
props.align === "right" && "text-right justify-end",
|
|
15922
15921
|
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"
|
|
15923
15922
|
]);
|
|
15924
|
-
const iconClasses = computed(() => [
|
|
15925
|
-
"fill-blue-500 ml-1 transition-opacity",
|
|
15926
|
-
iconName.value && !props.isSortActive && "opacity-20"
|
|
15927
|
-
]);
|
|
15928
15923
|
const iconName = computed(() => props.icon);
|
|
15929
15924
|
const emit = __emit;
|
|
15930
15925
|
const handleSort = (ev) => {
|
|
@@ -15954,8 +15949,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
15954
15949
|
createVNode(_sfc_main$J, {
|
|
15955
15950
|
name: iconName.value,
|
|
15956
15951
|
size: "24px",
|
|
15957
|
-
class:
|
|
15958
|
-
}, null, 8, ["name"
|
|
15952
|
+
class: "fill-blue-500 ml-1"
|
|
15953
|
+
}, null, 8, ["name"])
|
|
15959
15954
|
], 42, _hoisted_1$1)) : (openBlock(), createElementBlock("div", {
|
|
15960
15955
|
key: 1,
|
|
15961
15956
|
class: normalizeClass(headerClasses.value)
|