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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fds-vue-core",
3
- "version": "6.2.1",
3
+ "version": "6.2.2",
4
4
  "description": "FDS Vue Core Component Library",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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-[calc(100%/7.5)] shrink-0 flex-col items-center justify-center border-transparent px-1 py-1 transition-colors cursor-pointer',
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
  }