fds-vue-core 6.2.1 → 6.2.2
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 +4 -3
- package/dist/fds-vue-core.cjs.js.map +1 -1
- package/dist/fds-vue-core.css +1 -1
- package/dist/fds-vue-core.es.js +4 -3
- package/dist/fds-vue-core.es.js.map +1 -1
- package/package.json +1 -1
- package/src/components/FdsWeekCalendar/WeekDay.vue +3 -3
- package/src/components/FdsWeekCalendar/types.ts +1 -0
package/package.json
CHANGED
|
@@ -19,11 +19,11 @@ const props = withDefaults(
|
|
|
19
19
|
)
|
|
20
20
|
|
|
21
21
|
const emit = defineEmits<{
|
|
22
|
-
(e: 'select-date', date: Date): void
|
|
22
|
+
(e: 'select-date', date: Date | null): void
|
|
23
23
|
}>()
|
|
24
24
|
|
|
25
25
|
const classes = computed(() => [
|
|
26
|
-
'box-border flex h-[64px] w-[
|
|
26
|
+
'box-border flex h-[64px] w-full max-w-[100px] flex-1 basis-0 flex-col items-center justify-center border-2 border-transparent px-1 py-1 transition-colors cursor-pointer',
|
|
27
27
|
props.disabled ? '' : 'hover:border-2 hover:border-blue-500 border-solid',
|
|
28
28
|
props.disabled ? '' : 'active:bg-blue_t-100 border-transparent',
|
|
29
29
|
props.disabled ? '' : 'focus:outline-none',
|
|
@@ -43,7 +43,7 @@ const weekdayLabelClasses = computed(() => [
|
|
|
43
43
|
|
|
44
44
|
const onClick = () => {
|
|
45
45
|
if (props.disabled) return
|
|
46
|
-
emit('select-date', props.date)
|
|
46
|
+
emit('select-date', props.selected ? null : props.date)
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
const weekdayLabel = computed(() => {
|
|
@@ -24,4 +24,5 @@ export interface FdsWeekCalendarProps extends /* @vue-ignore */ HTMLAttributes {
|
|
|
24
24
|
onDecrementWeek?: () => void
|
|
25
25
|
onIncrementWeek?: () => void
|
|
26
26
|
onSelectDate?: (date: string | null) => void
|
|
27
|
+
onChangeDateRange?: (dateRange: WeekDateRange, week?: Date) => void
|
|
27
28
|
}
|