mood-ui 0.13.1 → 0.14.0

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.
Files changed (114) hide show
  1. package/dist/components/data-display/calendar/AgendaView.vue_vue_type_script_setup_true_lang.mjs +6 -6
  2. package/dist/components/data-display/calendar/AgendaView.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  3. package/dist/components/data-display/calendar/Calendar.vue_vue_type_script_setup_true_lang.mjs +4 -4
  4. package/dist/components/data-display/calendar/Calendar.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  5. package/dist/components/data-display/calendar/DayView.vue_vue_type_script_setup_true_lang.mjs +7 -7
  6. package/dist/components/data-display/calendar/DayView.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  7. package/dist/components/data-display/calendar/MonthView.vue_vue_type_script_setup_true_lang.mjs +2 -2
  8. package/dist/components/data-display/calendar/MonthView.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  9. package/dist/components/data-display/calendar/Scheduler.vue_vue_type_script_setup_true_lang.mjs +7 -7
  10. package/dist/components/data-display/calendar/Scheduler.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  11. package/dist/components/data-display/calendar/WeekView.vue_vue_type_script_setup_true_lang.mjs +7 -7
  12. package/dist/components/data-display/calendar/WeekView.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  13. package/dist/components/data-display/date-picker/DateRangePicker.vue_vue_type_script_setup_true_lang.mjs +3 -3
  14. package/dist/components/data-display/date-picker/DateRangePicker.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  15. package/dist/components/data-display/date-picker/DateTimePicker.vue_vue_type_script_setup_true_lang.mjs +2 -2
  16. package/dist/components/data-display/date-picker/DateTimePicker.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  17. package/dist/components/feedback/Banner.vue_vue_type_script_setup_true_lang.mjs +4 -4
  18. package/dist/components/feedback/Banner.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  19. package/dist/components/feedback/Drawer.cjs.map +1 -1
  20. package/dist/components/feedback/Drawer.mjs.map +1 -1
  21. package/dist/components/feedback/Drawer.vue_vue_type_script_setup_true_lang.cjs +11 -7
  22. package/dist/components/feedback/Drawer.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  23. package/dist/components/feedback/Drawer.vue_vue_type_script_setup_true_lang.mjs +17 -13
  24. package/dist/components/feedback/Drawer.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  25. package/dist/components/feedback/Modal.cjs.map +1 -1
  26. package/dist/components/feedback/Modal.mjs.map +1 -1
  27. package/dist/components/feedback/Modal.vue_vue_type_script_setup_true_lang.cjs +10 -3
  28. package/dist/components/feedback/Modal.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  29. package/dist/components/feedback/Modal.vue_vue_type_script_setup_true_lang.mjs +16 -9
  30. package/dist/components/feedback/Modal.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  31. package/dist/components/feedback/Toast.cjs +1 -1
  32. package/dist/components/feedback/Toast.cjs.map +1 -1
  33. package/dist/components/feedback/Toast.mjs +1 -1
  34. package/dist/components/feedback/Toast.mjs.map +1 -1
  35. package/dist/components/feedback/Toast.vue_vue_type_script_setup_true_lang.cjs +4 -2
  36. package/dist/components/feedback/Toast.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  37. package/dist/components/feedback/Toast.vue_vue_type_script_setup_true_lang.mjs +5 -3
  38. package/dist/components/feedback/Toast.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  39. package/dist/components/feedback/ToastContainer.cjs +1 -1
  40. package/dist/components/feedback/ToastContainer.cjs.map +1 -1
  41. package/dist/components/feedback/ToastContainer.mjs +1 -1
  42. package/dist/components/feedback/ToastContainer.mjs.map +1 -1
  43. package/dist/components/feedback/ToastContainer.vue_vue_type_script_setup_true_lang.cjs +4 -2
  44. package/dist/components/feedback/ToastContainer.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  45. package/dist/components/feedback/ToastContainer.vue_vue_type_script_setup_true_lang.mjs +6 -4
  46. package/dist/components/feedback/ToastContainer.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  47. package/dist/components/feedback/dialog/DialogTrigger.cjs.map +1 -1
  48. package/dist/components/feedback/dialog/DialogTrigger.mjs.map +1 -1
  49. package/dist/components/feedback/dialog/DialogTrigger.vue_vue_type_script_setup_true_lang.cjs +10 -2
  50. package/dist/components/feedback/dialog/DialogTrigger.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  51. package/dist/components/feedback/dialog/DialogTrigger.vue_vue_type_script_setup_true_lang.mjs +10 -2
  52. package/dist/components/feedback/dialog/DialogTrigger.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  53. package/dist/components/feedback/sheet/SheetTrigger.cjs.map +1 -1
  54. package/dist/components/feedback/sheet/SheetTrigger.mjs.map +1 -1
  55. package/dist/components/feedback/sheet/SheetTrigger.vue_vue_type_script_setup_true_lang.cjs +10 -2
  56. package/dist/components/feedback/sheet/SheetTrigger.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  57. package/dist/components/feedback/sheet/SheetTrigger.vue_vue_type_script_setup_true_lang.mjs +10 -2
  58. package/dist/components/feedback/sheet/SheetTrigger.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  59. package/dist/components/forms/morph-select/MorphSelect.cjs.map +1 -1
  60. package/dist/components/forms/morph-select/MorphSelect.mjs.map +1 -1
  61. package/dist/components/forms/morph-select/MorphSelect.vue_vue_type_script_setup_true_lang.cjs +53 -6
  62. package/dist/components/forms/morph-select/MorphSelect.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  63. package/dist/components/forms/morph-select/MorphSelect.vue_vue_type_script_setup_true_lang.mjs +54 -7
  64. package/dist/components/forms/morph-select/MorphSelect.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  65. package/dist/components/forms/morph-select/MorphSelectContent.cjs.map +1 -1
  66. package/dist/components/forms/morph-select/MorphSelectContent.mjs.map +1 -1
  67. package/dist/components/forms/morph-select/MorphSelectContent.vue_vue_type_script_setup_true_lang.cjs +33 -8
  68. package/dist/components/forms/morph-select/MorphSelectContent.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  69. package/dist/components/forms/morph-select/MorphSelectContent.vue_vue_type_script_setup_true_lang.mjs +34 -9
  70. package/dist/components/forms/morph-select/MorphSelectContent.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  71. package/dist/components/forms/morph-select/MorphSelectContext.cjs.map +1 -1
  72. package/dist/components/forms/morph-select/MorphSelectContext.mjs.map +1 -1
  73. package/dist/components/forms/morph-select/MorphSelectTrigger.cjs.map +1 -1
  74. package/dist/components/forms/morph-select/MorphSelectTrigger.mjs.map +1 -1
  75. package/dist/components/forms/morph-select/MorphSelectTrigger.vue_vue_type_script_setup_true_lang.cjs +31 -14
  76. package/dist/components/forms/morph-select/MorphSelectTrigger.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  77. package/dist/components/forms/morph-select/MorphSelectTrigger.vue_vue_type_script_setup_true_lang.mjs +32 -15
  78. package/dist/components/forms/morph-select/MorphSelectTrigger.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  79. package/dist/components/layout/popover/PopoverTrigger.cjs.map +1 -1
  80. package/dist/components/layout/popover/PopoverTrigger.mjs.map +1 -1
  81. package/dist/components/layout/popover/PopoverTrigger.vue_vue_type_script_setup_true_lang.cjs +10 -2
  82. package/dist/components/layout/popover/PopoverTrigger.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  83. package/dist/components/layout/popover/PopoverTrigger.vue_vue_type_script_setup_true_lang.mjs +10 -2
  84. package/dist/components/layout/popover/PopoverTrigger.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  85. package/dist/components/navigation/menu/MenuTrigger.cjs.map +1 -1
  86. package/dist/components/navigation/menu/MenuTrigger.mjs.map +1 -1
  87. package/dist/components/navigation/menu/MenuTrigger.vue_vue_type_script_setup_true_lang.cjs +7 -0
  88. package/dist/components/navigation/menu/MenuTrigger.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  89. package/dist/components/navigation/menu/MenuTrigger.vue_vue_type_script_setup_true_lang.mjs +7 -0
  90. package/dist/components/navigation/menu/MenuTrigger.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  91. package/dist/config/ModoLocale.cjs +4 -0
  92. package/dist/config/ModoLocale.cjs.map +1 -1
  93. package/dist/config/ModoLocale.mjs +4 -0
  94. package/dist/config/ModoLocale.mjs.map +1 -1
  95. package/dist/config/locales/es.cjs +4 -0
  96. package/dist/config/locales/es.cjs.map +1 -1
  97. package/dist/config/locales/es.mjs +4 -0
  98. package/dist/config/locales/es.mjs.map +1 -1
  99. package/dist/mood-ui.css +35 -27
  100. package/dist/types/components/forms/morph-select/MorphSelect.vue.d.ts +8 -7
  101. package/dist/types/components/forms/morph-select/MorphSelectContext.d.ts +6 -1
  102. package/dist/types/components/forms/morph-select/MorphSelectTrigger.vue.d.ts +6 -3
  103. package/dist/types/components/forms/morph-select/index.d.ts +24 -18
  104. package/dist/types/config/ModoLocale.d.ts +6 -0
  105. package/dist/types/interfaces/feedback/Drawer.interface.d.ts +2 -0
  106. package/dist/types/interfaces/feedback/Modal.interface.d.ts +2 -0
  107. package/dist/types/interfaces/forms/ModeOrb.interface.d.ts +3 -3
  108. package/dist/types/interfaces/forms/MorphSelect.interface.d.ts +13 -5
  109. package/dist/types/utils/morph/morphHelpers.d.ts +6 -0
  110. package/dist/utils/morph/morphHelpers.cjs +16 -0
  111. package/dist/utils/morph/morphHelpers.cjs.map +1 -1
  112. package/dist/utils/morph/morphHelpers.mjs +16 -1
  113. package/dist/utils/morph/morphHelpers.mjs.map +1 -1
  114. package/package.json +1 -1
@@ -7,7 +7,7 @@ import CalendarHeader_default from "./CalendarHeader.mjs";
7
7
  import { toCssLength } from "../../../utils/cssLength.mjs";
8
8
  import { CALENDAR_TOOLTIP_SURFACE } from "../../../utils/calendarTooltip.mjs";
9
9
  import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, watch, withCtx } from "vue";
10
- import gsap from "gsap";
10
+ import gsap$1 from "gsap";
11
11
  //#region src/components/data-display/calendar/AgendaView.vue?vue&type=script&setup=true&lang.ts
12
12
  var _hoisted_1 = {
13
13
  key: 0,
@@ -252,7 +252,7 @@ var AgendaView_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ def
252
252
  if (animateScroll && target > 0) {
253
253
  scEl.scrollTop = 0;
254
254
  animateIn();
255
- gsap.to(scEl, {
255
+ gsap$1.to(scEl, {
256
256
  scrollTop: target,
257
257
  duration: .7,
258
258
  ease: "power3.inOut",
@@ -295,7 +295,7 @@ var AgendaView_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ def
295
295
  const scRect = scrollRef.value.getBoundingClientRect();
296
296
  const elRect = el.getBoundingClientRect();
297
297
  const target = scrollRef.value.scrollTop + (elRect.top - scRect.top) - 12;
298
- gsap.to(scrollRef.value, {
298
+ gsap$1.to(scrollRef.value, {
299
299
  scrollTop: target,
300
300
  duration: .6,
301
301
  ease: "power3.inOut"
@@ -322,7 +322,7 @@ var AgendaView_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ def
322
322
  if (!rootRef.value) return;
323
323
  const els = rootRef.value.querySelectorAll("[data-dkey]");
324
324
  if (!els.length) return;
325
- gsap.fromTo(els, {
325
+ gsap$1.fromTo(els, {
326
326
  opacity: 0,
327
327
  y: 8
328
328
  }, {
@@ -393,7 +393,7 @@ var AgendaView_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ def
393
393
  const scRect = scEl.getBoundingClientRect();
394
394
  const elRect = el.getBoundingClientRect();
395
395
  const target = scEl.scrollTop + (elRect.top - scRect.top) - 12;
396
- if (target > 0) gsap.to(scEl, {
396
+ if (target > 0) gsap$1.to(scEl, {
397
397
  scrollTop: target,
398
398
  duration: .9,
399
399
  ease: "power3.inOut",
@@ -413,7 +413,7 @@ var AgendaView_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ def
413
413
  const scRect = scrollRef.value.getBoundingClientRect();
414
414
  const elRect = el.getBoundingClientRect();
415
415
  const target = scrollRef.value.scrollTop + (elRect.top - scRect.top) - 12;
416
- gsap.to(scrollRef.value, {
416
+ gsap$1.to(scrollRef.value, {
417
417
  scrollTop: target,
418
418
  duration: .45,
419
419
  ease: "power3.inOut"
@@ -1 +1 @@
1
- {"version":3,"file":"AgendaView.vue_vue_type_script_setup_true_lang.mjs","names":["$slots"],"sources":["../../../../src/components/data-display/calendar/AgendaView.vue"],"sourcesContent":["<template> \n <div \n ref=\"rootRef\" \n tabindex=\"-1\" \n :class=\"['relative flex flex-col bg-card overflow-hidden focus:outline-none', containerRadiusClass, bordered ? 'border border-border' : '']\" \n :style=\"{ maxHeight: toCssLength(maxHeight) }\"\n @keydown=\"handleKeydown\" \n > \n <slot name=\"header\" :label=\"headerLabel\" :goToToday=\"handleToday\" :prev=\"handlePrev\" :next=\"handleNext\" :prevYear=\"handlePrevYear\" :nextYear=\"handleNextYear\"> \n <CalendarHeader \n :label=\"headerLabel\" \n :showHeader=\"showHeader\" \n :showYearJump=\"showYearNavigation\" \n :showTodayButton=\"showTodayButton\" \n :showMonthYearSelects=\"showMonthYearSelects\" \n :monthOptions=\"monthOptions\" \n :yearOptions=\"yearOptions\" \n v-model:selectedMonth=\"selectedMonth\" \n v-model:selectedYear=\"selectedYear\" \n :color=\"resolvedColor\" \n :focusRingColorClass=\"focusRingColorClass\" \n :todayTextClass=\"todayTextClass\" \n :todayRadiusClass=\"pillRadiusClass\" \n :dayNameCaseClass=\"dayNameCaseClass\" \n @prev=\"handlePrev\" \n @next=\"handleNext\" \n @prevYear=\"handlePrevYear\" \n @nextYear=\"handleNextYear\" \n @today=\"handleToday\" \n /> \n </slot> \n \n <div ref=\"scrollRef\" class=\"flex-1 overflow-y-auto\" @scroll=\"onScroll\"> \n <div v-if=\"!groups.length\" class=\"flex-1 flex items-center justify-center py-12 text-sm text-muted-foreground\"> \n <slot name=\"empty\">{{ emptyText ?? loc.agenda.empty }}</slot> \n </div> \n \n <template v-for=\"(g, gi) in groups\" :key=\"g.key\"> \n <div \n v-if=\"showMonthSeparator && g.showMonthHeader\" \n class=\"sticky top-0 z-20 bg-card/95 backdrop-blur px-4 py-2 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground border-b border-border\" \n > \n {{ g.monthLabel }} \n </div> \n \n <div \n :data-dkey=\"g.key\" \n :class=\"[ \n 'grid border-b border-border transition-colors', \n g.isToday ? 'bg-muted/40' : '', \n g.disabled ? 'opacity-60' : '', \n ]\" \n style=\"grid-template-columns: 5rem 1fr;\" \n > \n <div class=\"flex flex-col items-center justify-start py-4 border-r border-border\"> \n <slot name=\"day-header\" :date=\"g.date\" :isToday=\"g.isToday\" :events=\"g.events\"> \n <span :class=\"['text-[10px] font-medium tracking-wider text-muted-foreground', dayNameCaseClass]\">{{ g.weekdayLabel }}</span> \n <span \n :class=\"[ \n 'mt-1 inline-flex items-center justify-center text-base font-semibold w-9 h-9', \n pillRadiusClass, \n g.isToday ? [todayBgClass] : 'text-foreground', \n ]\" \n >{{ g.day }}</span> \n <span v-if=\"isHighlightedDate(g.date)\" :class=\"['mt-1 w-1 h-1 rounded-full', highlightDotClass]\"></span> \n </slot> \n </div> \n \n <div class=\"py-2 px-3\"> \n <div v-if=\"!g.events.length\" class=\"py-2 text-xs text-muted-foreground/60 italic\"> \n No events \n </div> \n <div v-else class=\"flex flex-col\"> \n <button \n v-for=\"ev in g.events\" \n :key=\"`${g.key}-${ev.id}`\" \n :data-eid=\"ev.id\" \n type=\"button\" \n @click=\"handleEventClick(ev, $event)\" \n @mouseenter=\"onEventEnter(ev, !!ev.allDay, $event)\" \n @mousemove=\"onEventMove\" \n @mouseleave=\"onEventLeave\" \n :class=\"['group flex items-start gap-3 py-2 px-2 -mx-2 cursor-pointer transition-colors hover:bg-muted/70 text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-ring', eventRadiusClass]\" \n > \n <span class=\"shrink-0 w-16 pt-0.5 text-[11px] font-medium text-muted-foreground tabular-nums\"> \n <template v-if=\"ev.allDay\">All day</template> \n <template v-else>{{ formatEventTime(ev.start) }}</template> \n </span> \n <span \n class=\"shrink-0 mt-1.5 w-2 h-2\" \n :style=\"ev.colorHex ? { backgroundColor: ev.colorHex } : undefined\" \n :class=\"[pillRadiusClass, !ev.colorHex ? dotColorClass(ev.color) : '']\" \n ></span> \n <span class=\"flex-1 min-w-0\"> \n <slot name=\"event\" :event=\"ev\"> \n <span class=\"block text-sm font-medium text-foreground truncate\">{{ ev.title }}</span> \n <span v-if=\"!ev.allDay && ev.end\" class=\"block text-[11px] text-muted-foreground\"> \n {{ formatEventTime(ev.start) }} – {{ formatEventTime(ev.end) }} \n </span> \n <span v-if=\"ev.description\" class=\"block text-xs text-muted-foreground truncate mt-0.5\">{{ ev.description }}</span> \n </slot> \n </span> \n <span v-if=\"ev.readonly\" class=\"shrink-0 mt-0.5 text-[9px] uppercase tracking-wider text-muted-foreground border border-border px-1 rounded\">Locked</span> \n </button> \n </div> \n </div> \n </div> \n <div v-if=\"gi === groups.length - 1\" class=\"h-1\"></div> \n </template> \n </div> \n \n <CalendarEventTooltip :state=\"hoverState\" :style=\"tooltipStyle\" :formatTime=\"formatEventTime\"> \n <!--\n A provided slot replaces the built-in card, so it gets the surface\n here; with no slot the fallback content keeps rendering its own.\n -->\n <template v-if=\"$slots['event-tooltip']\" #default=\"{ event, allDay }\">\n <div :class=\"CALENDAR_TOOLTIP_SURFACE\">\n <slot name=\"event-tooltip\" :event=\"event\" :allDay=\"allDay\" />\n </div>\n </template>\n </CalendarEventTooltip> \n </div> \n</template> \n \n<script setup lang=\"ts\"> \nimport { ref, computed, watch, nextTick, onMounted } from 'vue'; \nimport gsap from 'gsap'; \nimport { isSameDay, startOfDay } from '../../../composables/useCalendar'; \nimport { useCalendarTheme } from '../../../composables/useCalendarTheme'; \nimport { useModoLocale } from '../../../composables/useModoConfig'; \n \nconst loc = useModoLocale(); \nimport { useEventHover } from '../../../composables/useEventHover'; \nimport CalendarEventTooltip from './CalendarEventTooltip.vue'; \nimport CalendarHeader from './CalendarHeader.vue'; \nimport type { AgendaView } from '../../../interfaces/data-display/calendar/AgendaView.interface'; \nimport type { CalendarEvent } from '../../../interfaces/data-display/calendar/MonthView.interface'; \n \nimport { toCssLength } from '../../../utils/cssLength';\n\nimport { CALENDAR_TOOLTIP_SURFACE } from '../../../utils/calendarTooltip';\n\nconst props = withDefaults(defineProps<AgendaView>(), { \n modelValue: () => new Date(), \n events: () => [], \n locale: 'default', \n color: 'default', \n bordered: true, \n daysToShow: 30, \n daysBefore: 0, \n showEmptyDays: false, \n showHeader: true, \n showMonthSeparator: true, \n showYearNavigation: false, \n showMonthYearSelects: false, \n showTodayButton: true, \n dayNameFormat: 'short', \n dayNameCase: 'upper', \n format: '24h', \n readonly: false, \n highlightedDates: () => [], \n disabledDates: () => [], \n disabledWeekdays: () => [], \n // emptyText resolves against locale when not provided. \n loadMoreChunk: 30, \n enableKeyboardNavigation: true, \n}); \n \nconst emit = defineEmits<{ \n 'update:modelValue': [date: Date]; \n 'event-click': [event: CalendarEvent, nativeEvent: MouseEvent]; \n 'day-click': [date: Date, events: CalendarEvent[], nativeEvent: MouseEvent]; \n 'create-event': [date: Date, allDay: boolean, nativeEvent: MouseEvent | KeyboardEvent]; \n 'load-more': [direction: 'forward' | 'backward']; \n}>(); \n \nconst firstOfMonth = (d: Date) => new Date(d.getFullYear(), d.getMonth(), 1); \nconst daysInMonth = (d: Date) => new Date(d.getFullYear(), d.getMonth() + 1, 0).getDate(); \n \nconst anchorDate = ref(firstOfMonth(new Date(props.modelValue))); \nconst daysForwardShown = ref(Math.max(props.daysToShow, daysInMonth(anchorDate.value))); \n \nwatch(() => props.modelValue, (v) => { \n if (!v) return; \n const f = firstOfMonth(new Date(v)); \n if (f.getTime() === anchorDate.value.getTime()) return; \n anchorDate.value = f; \n daysForwardShown.value = Math.max(props.daysToShow, daysInMonth(f)); \n}); \nwatch(() => props.daysToShow, (n) => { daysForwardShown.value = Math.max(n, daysInMonth(anchorDate.value)); }); \n \nconst rootRef = ref<HTMLElement | null>(null); \nconst scrollRef = ref<HTMLElement | null>(null); \nconst today = new Date(); \n \nconst { hoverState, onEventEnter, onEventMove, onEventLeave, tooltipStyle } = useEventHover<CalendarEvent>(); \n \nconst formatEventTime = (d: Date) => { \n const locale = props.locale === 'default' ? undefined : props.locale; \n return d.toLocaleTimeString(locale, { hour: '2-digit', minute: '2-digit', hour12: props.format === '12h' }); \n}; \n \nconst isHighlightedDate = (d: Date) => props.highlightedDates.some(h => isSameDay(h, d)); \nconst isDisabledDate = (d: Date) => props.disabledDates.some(x => isSameDay(x, d)); \nconst isDisabledWeekday = (d: Date) => props.disabledWeekdays.includes(d.getDay()); \nconst isDayDisabled = (d: Date) => { \n if (props.minDate && startOfDay(d) < startOfDay(props.minDate)) return true; \n if (props.maxDate && startOfDay(d) > startOfDay(props.maxDate)) return true; \n return isDisabledDate(d) || isDisabledWeekday(d); \n}; \n \ninterface DayGroup { \n key: string; \n date: Date; \n day: number; \n weekdayLabel: string; \n monthLabel: string; \n showMonthHeader: boolean; \n isToday: boolean; \n disabled: boolean; \n events: CalendarEvent[]; \n} \n \nconst rangeDates = computed<Date[]>(() => { \n const anchor = anchorDate.value; \n const list: Date[] = []; \n for (let i = 0; i < daysForwardShown.value; i++) { \n const d = new Date(anchor); \n d.setDate(d.getDate() + i); \n const sod = startOfDay(d); \n if (props.minDate && sod < startOfDay(props.minDate)) continue; \n if (props.maxDate && sod > startOfDay(props.maxDate)) continue; \n list.push(sod); \n } \n return list; \n}); \n \nconst eventsByDay = computed<Map<string, CalendarEvent[]>>(() => { \n const map = new Map<string, CalendarEvent[]>(); \n for (const ev of props.events) { \n const s = startOfDay(ev.start); \n const e = startOfDay(ev.end ?? ev.start); \n const d = new Date(s); \n while (d.getTime() <= e.getTime()) { \n const k = d.toDateString(); \n if (!map.has(k)) map.set(k, []); \n map.get(k)!.push(ev); \n d.setDate(d.getDate() + 1); \n } \n } \n for (const list of map.values()) { \n list.sort((a, b) => { \n if (a.allDay && !b.allDay) return -1; \n if (!a.allDay && b.allDay) return 1; \n return a.start.getTime() - b.start.getTime(); \n }); \n } \n return map; \n}); \n \nconst isoKey = (d: Date) => `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, '0')}-${String(d.getDate()).padStart(2, '0')}`; \nconst parseIsoKey = (s: string): Date | null => { \n const m = s.match(/^(\\d{4})-(\\d{2})-(\\d{2})$/); \n if (!m) return null; \n return new Date(parseInt(m[1]), parseInt(m[2]) - 1, parseInt(m[3])); \n}; \n \nconst groups = computed<DayGroup[]>(() => { \n const locale = props.locale === 'default' ? undefined : props.locale; \n const result: DayGroup[] = []; \n let lastMonthKey = ''; \n for (const date of rangeDates.value) { \n const key = isoKey(date); \n const evts = eventsByDay.value.get(date.toDateString()) ?? []; \n if (!props.showEmptyDays && !evts.length) continue; \n const monthKey = `${date.getFullYear()}-${date.getMonth()}`; \n const showMonthHeader = monthKey !== lastMonthKey; \n lastMonthKey = monthKey; \n result.push({ \n key, \n date, \n day: date.getDate(), \n weekdayLabel: date.toLocaleDateString(locale, { weekday: props.dayNameFormat }), \n monthLabel: date.toLocaleDateString(locale, { month: 'long', year: 'numeric' }), \n showMonthHeader, \n isToday: isSameDay(date, today), \n disabled: isDayDisabled(date), \n events: evts, \n }); \n } \n return result; \n}); \n \nconst headerLabel = computed(() => { \n const locale = props.locale === 'default' ? undefined : props.locale; \n const d = visibleDate.value ?? anchorDate.value; \n return d.toLocaleDateString(locale, { month: 'long', year: 'numeric' }); \n}); \n \nconst handleEventClick = (ev: CalendarEvent, e: MouseEvent) => { \n emit('event-click', ev, e); \n}; \n \nconst afterNavigate = (scrollTarget?: Date, animateScroll = false) => { \n nextTick(() => { \n if (!scrollRef.value || !rootRef.value) { animateIn(); return; } \n const scEl = scrollRef.value; \n let target = 0; \n if (scrollTarget) { \n const key = isoKey(startOfDay(scrollTarget)); \n const el = rootRef.value.querySelector<HTMLElement>(`[data-dkey=\"${key}\"]`); \n if (el) { \n const scRect = scEl.getBoundingClientRect(); \n const elRect = el.getBoundingClientRect(); \n target = scEl.scrollTop + (elRect.top - scRect.top) - 12; \n } \n } \n if (animateScroll && target > 0) { \n scEl.scrollTop = 0; \n animateIn(); \n gsap.to(scEl, { scrollTop: target, duration: 0.7, ease: 'power3.inOut', delay: 0.15 }); \n } else { \n scEl.scrollTop = target; \n animateIn(); \n } \n visibleDate.value = anchorDate.value; \n }); \n}; \nconst handlePrev = () => { \n const d = new Date(anchorDate.value); \n d.setMonth(d.getMonth() - 1); \n anchorDate.value = firstOfMonth(d); \n daysForwardShown.value = Math.max(props.daysToShow, daysInMonth(anchorDate.value)); \n emit('update:modelValue', anchorDate.value); \n afterNavigate(); \n}; \nconst handleNext = () => { \n const d = new Date(anchorDate.value); \n d.setMonth(d.getMonth() + 1); \n anchorDate.value = firstOfMonth(d); \n daysForwardShown.value = Math.max(props.daysToShow, daysInMonth(anchorDate.value)); \n emit('update:modelValue', anchorDate.value); \n afterNavigate(); \n}; \nconst handleToday = () => { \n const n = new Date(); \n const wasCurrentMonth = firstOfMonth(n).getTime() === anchorDate.value.getTime(); \n anchorDate.value = firstOfMonth(n); \n daysForwardShown.value = Math.max(props.daysToShow, daysInMonth(anchorDate.value)); \n emit('update:modelValue', anchorDate.value); \n afterNavigate(n, !wasCurrentMonth); \n if (wasCurrentMonth && scrollRef.value && rootRef.value) { \n nextTick(() => { \n const key = isoKey(startOfDay(n)); \n const el = rootRef.value!.querySelector<HTMLElement>(`[data-dkey=\"${key}\"]`); \n if (!el) return; \n const scRect = scrollRef.value!.getBoundingClientRect(); \n const elRect = el.getBoundingClientRect(); \n const target = scrollRef.value!.scrollTop + (elRect.top - scRect.top) - 12; \n gsap.to(scrollRef.value!, { scrollTop: target, duration: 0.6, ease: 'power3.inOut' }); \n }); \n } \n}; \nconst handlePrevYear = () => { \n const d = new Date(anchorDate.value); \n d.setFullYear(d.getFullYear() - 1); \n anchorDate.value = firstOfMonth(d); \n daysForwardShown.value = Math.max(props.daysToShow, daysInMonth(anchorDate.value)); \n emit('update:modelValue', anchorDate.value); \n afterNavigate(); \n}; \nconst handleNextYear = () => { \n const d = new Date(anchorDate.value); \n d.setFullYear(d.getFullYear() + 1); \n anchorDate.value = firstOfMonth(d); \n daysForwardShown.value = Math.max(props.daysToShow, daysInMonth(anchorDate.value)); \n emit('update:modelValue', anchorDate.value); \n afterNavigate(); \n}; \n \nconst animateIn = () => { \n if (!rootRef.value) return; \n const els = rootRef.value.querySelectorAll<HTMLElement>('[data-dkey]'); \n if (!els.length) return; \n gsap.fromTo( \n els, \n { opacity: 0, y: 8 }, \n { opacity: 1, y: 0, duration: 0.35, ease: 'power2.out', stagger: { amount: 0.2 } } \n ); \n}; \n \nlet loadingMore = false; \nconst visibleDate = ref<Date | null>(null); \nconst canExtend = () => { \n if (!props.maxDate) return true; \n const last = rangeDates.value[rangeDates.value.length - 1]; \n return !(last && startOfDay(last) >= startOfDay(props.maxDate)); \n}; \nconst onScroll = () => { \n if (!scrollRef.value) return; \n const el = scrollRef.value; \n if (rootRef.value) { \n const scRect = el.getBoundingClientRect(); \n const headers = rootRef.value.querySelectorAll<HTMLElement>('[data-dkey]'); \n let pick: Date | null = null; \n for (const h of headers) { \n const r = h.getBoundingClientRect(); \n if (r.bottom > scRect.top + 8) { \n const k = h.getAttribute('data-dkey'); \n if (k) pick = parseIsoKey(k); \n break; \n } \n } \n if (pick) visibleDate.value = pick; \n } \n if (loadingMore) return; \n const remaining = el.scrollHeight - (el.scrollTop + el.clientHeight); \n if (remaining < 120) { \n if (!canExtend()) return; \n loadingMore = true; \n daysForwardShown.value += props.loadMoreChunk; \n emit('load-more', 'forward'); \n setTimeout(() => { loadingMore = false; }, 120); \n } \n}; \n \nconst handleKeydown = (e: KeyboardEvent) => { \n if (!props.enableKeyboardNavigation) return; \n const target = e.target as HTMLElement; \n if (target.tagName === 'SELECT' || target.tagName === 'INPUT') return; \n if (e.key === 'ArrowLeft' || e.key === 'PageUp') { e.preventDefault(); handlePrev(); } \n else if (e.key === 'ArrowRight' || e.key === 'PageDown') { e.preventDefault(); handleNext(); } \n else if (e.key.toLowerCase() === 't') { e.preventDefault(); handleToday(); } \n}; \n \nonMounted(() => { \n nextTick(() => { \n visibleDate.value = anchorDate.value; \n animateIn(); \n if (scrollRef.value && rootRef.value) { \n const todayMonth = firstOfMonth(today); \n if (todayMonth.getTime() === anchorDate.value.getTime()) { \n const key = isoKey(startOfDay(today)); \n const el = rootRef.value.querySelector<HTMLElement>(`[data-dkey=\"${key}\"]`); \n if (el) { \n const scEl = scrollRef.value; \n const scRect = scEl.getBoundingClientRect(); \n const elRect = el.getBoundingClientRect(); \n const target = scEl.scrollTop + (elRect.top - scRect.top) - 12; \n if (target > 0) { \n gsap.to(scEl, { scrollTop: target, duration: 0.9, ease: 'power3.inOut', delay: 0.25 }); \n } \n } \n } \n } \n }); \n}); \n \ndefineExpose({ \n scrollToDate(date: Date) { \n nextTick(() => { \n if (!scrollRef.value || !rootRef.value) return; \n const key = isoKey(startOfDay(date)); \n const el = rootRef.value.querySelector<HTMLElement>(`[data-dkey=\"${key}\"]`); \n if (!el) return; \n const scRect = scrollRef.value.getBoundingClientRect(); \n const elRect = el.getBoundingClientRect(); \n const target = scrollRef.value.scrollTop + (elRect.top - scRect.top) - 12; \n gsap.to(scrollRef.value, { scrollTop: target, duration: 0.45, ease: 'power3.inOut' }); \n }); \n }, \n}); \n \nconst { todayTextClass, dayNameCaseClass, focusRingColorClass, highlightDotClass, containerRadiusClass, eventRadiusClass, pillRadiusClass, todayBgClass, resolvedColor } = useCalendarTheme({ \n color: () => props.color, \n radius: () => props.radius, \n dayNameCase: () => props.dayNameCase, \n}); \n \nconst DOT_THEMED: Record<string, string> = { \n default: 'bg-muted-foreground', \n primary: 'bg-primary', \n danger: 'bg-destructive', \n success: 'bg-success', \n warning: 'bg-warning', \n}; \nconst DOT_SEMANTIC: Record<string, string> = { \n info: 'bg-info', \n purple: 'bg-purple', \n pink: 'bg-pink', \n}; \nconst dotColorClass = (c?: CalendarEvent['color']) => { \n if (!c) return DOT_THEMED.default; \n return DOT_THEMED[c] ?? DOT_SEMANTIC[c] ?? DOT_THEMED.default; \n}; \n \nconst localeValue = computed(() => (props.locale === 'default' ? undefined : props.locale)); \n \nconst monthOptions = computed(() => { \n const base = new Date(2024, 0, 1); \n return Array.from({ length: 12 }, (_, i) => { \n const d = new Date(base); \n d.setMonth(i); \n return d.toLocaleString(localeValue.value, { month: 'long' }); \n }); \n}); \n \nconst yearOptions = computed(() => { \n const min = props.minDate?.getFullYear() ?? anchorDate.value.getFullYear() - 10; \n const max = props.maxDate?.getFullYear() ?? anchorDate.value.getFullYear() + 10; \n const list: number[] = []; \n for (let y = min; y <= max; y++) list.push(y); \n return list; \n}); \n \nconst selectedMonth = computed({ \n get: () => anchorDate.value.getMonth(), \n set: (mm: number) => { \n const d = new Date(anchorDate.value); \n d.setDate(1); \n d.setMonth(mm); \n anchorDate.value = firstOfMonth(d); \n daysForwardShown.value = Math.max(props.daysToShow, daysInMonth(anchorDate.value)); \n emit('update:modelValue', anchorDate.value); \n afterNavigate(); \n }, \n}); \n \nconst selectedYear = computed({ \n get: () => anchorDate.value.getFullYear(), \n set: (yy: number) => { \n const d = new Date(anchorDate.value); \n d.setFullYear(yy); \n anchorDate.value = firstOfMonth(d); \n daysForwardShown.value = Math.max(props.daysToShow, daysInMonth(anchorDate.value)); \n emit('update:modelValue', anchorDate.value); \n afterNavigate(); \n }, \n}); \n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoIA,MAAM,MAAM,eAAe;EAW3B,MA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gBAAlB,GAAG,MAAK,EAAA,EAAA;UAC/D,GAAG,UAAU,GAAG,OAAA,WAAA,EAA7B,mBAEO,QAFP,aAEO,gBADA,gBAAgB,GAAG,MAAK,CAAA,GAAI,QAAG,gBAAG,gBAAgB,GAAG,IAAG,CAAA,EAAA,EAAA,IAAA,mBAAA,IAAA,KAAA;SAEnD,GAAG,eAAA,WAAA,EAAf,mBAAmH,QAAnH,aAAmH,gBAAxB,GAAG,YAAW,EAAA,EAAA,IAAA,mBAAA,IAAA,KAAA;;QAGrG,GAAG,YAAA,WAAA,EAAf,mBAA0J,QAA1J,aAA6I,SAAM,IAAA,mBAAA,IAAA,KAAA;;;MAKxJ,OAAO,OAAA,MAAO,SAAM,KAAA,WAAA,EAA/B,mBAAuD,OAAvD,YAAuD,IAAA,mBAAA,IAAA,KAAA;;;IAI/D,YAUuB,8BAAA;KAVA,OAAO,MAAA,WAAU;KAAG,OAAK,eAAE,MAAA,aAAY,CAAA;KAAG,YAAY;8BAKzDA,KAAAA,OAAM,mBAAA;WAAoB;kBAGhC,EAH2C,OAAO,aAAM,CAC9D,mBAEM,OAAA,EAFA,OAAK,eAAE,MAAA,yBAAwB,CAAA,EAAA,EAAA,CACjC,WAA6D,KAAA,QAAA,iBAAA;MAA1B;MAAgB"}
1
+ {"version":3,"file":"AgendaView.vue_vue_type_script_setup_true_lang.mjs","names":["$slots"],"sources":["../../../../src/components/data-display/calendar/AgendaView.vue"],"sourcesContent":["<template> \n <div \n ref=\"rootRef\" \n tabindex=\"-1\" \n :class=\"['relative flex flex-col bg-card overflow-hidden focus:outline-none', containerRadiusClass, bordered ? 'border border-border' : '']\" \n :style=\"{ maxHeight: toCssLength(maxHeight) }\"\n @keydown=\"handleKeydown\" \n > \n <slot name=\"header\" :label=\"headerLabel\" :goToToday=\"handleToday\" :prev=\"handlePrev\" :next=\"handleNext\" :prevYear=\"handlePrevYear\" :nextYear=\"handleNextYear\"> \n <CalendarHeader \n :label=\"headerLabel\" \n :showHeader=\"showHeader\" \n :showYearJump=\"showYearNavigation\" \n :showTodayButton=\"showTodayButton\" \n :showMonthYearSelects=\"showMonthYearSelects\" \n :monthOptions=\"monthOptions\" \n :yearOptions=\"yearOptions\" \n v-model:selectedMonth=\"selectedMonth\" \n v-model:selectedYear=\"selectedYear\" \n :color=\"resolvedColor\" \n :focusRingColorClass=\"focusRingColorClass\" \n :todayTextClass=\"todayTextClass\" \n :todayRadiusClass=\"pillRadiusClass\" \n :dayNameCaseClass=\"dayNameCaseClass\" \n @prev=\"handlePrev\" \n @next=\"handleNext\" \n @prevYear=\"handlePrevYear\" \n @nextYear=\"handleNextYear\" \n @today=\"handleToday\" \n /> \n </slot> \n \n <div ref=\"scrollRef\" class=\"flex-1 overflow-y-auto\" @scroll=\"onScroll\"> \n <div v-if=\"!groups.length\" class=\"flex-1 flex items-center justify-center py-12 text-sm text-muted-foreground\"> \n <slot name=\"empty\">{{ emptyText ?? loc.agenda.empty }}</slot> \n </div> \n \n <template v-for=\"(g, gi) in groups\" :key=\"g.key\"> \n <div \n v-if=\"showMonthSeparator && g.showMonthHeader\" \n class=\"sticky top-0 z-20 bg-card/95 backdrop-blur px-4 py-2 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground border-b border-border\" \n > \n {{ g.monthLabel }} \n </div> \n \n <div \n :data-dkey=\"g.key\" \n :class=\"[ \n 'grid border-b border-border transition-colors', \n g.isToday ? 'bg-muted/40' : '', \n g.disabled ? 'opacity-60' : '', \n ]\" \n style=\"grid-template-columns: 5rem 1fr;\" \n > \n <div class=\"flex flex-col items-center justify-start py-4 border-r border-border\"> \n <slot name=\"day-header\" :date=\"g.date\" :isToday=\"g.isToday\" :events=\"g.events\"> \n <span :class=\"['text-[10px] font-medium tracking-wider text-muted-foreground', dayNameCaseClass]\">{{ g.weekdayLabel }}</span> \n <span \n :class=\"[ \n 'mt-1 inline-flex items-center justify-center text-base font-semibold w-9 h-9', \n pillRadiusClass, \n g.isToday ? [todayBgClass] : 'text-foreground', \n ]\" \n >{{ g.day }}</span> \n <span v-if=\"isHighlightedDate(g.date)\" :class=\"['mt-1 w-1 h-1 rounded-full', highlightDotClass]\"></span> \n </slot> \n </div> \n \n <div class=\"py-2 px-3\"> \n <div v-if=\"!g.events.length\" class=\"py-2 text-xs text-muted-foreground/60 italic\"> \n No events \n </div> \n <div v-else class=\"flex flex-col\"> \n <button \n v-for=\"ev in g.events\" \n :key=\"`${g.key}-${ev.id}`\" \n :data-eid=\"ev.id\" \n type=\"button\" \n @click=\"handleEventClick(ev, $event)\" \n @mouseenter=\"onEventEnter(ev, !!ev.allDay, $event)\" \n @mousemove=\"onEventMove\" \n @mouseleave=\"onEventLeave\" \n :class=\"['group flex items-start gap-3 py-2 px-2 -mx-2 cursor-pointer transition-colors hover:bg-muted/70 text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-ring', eventRadiusClass]\" \n > \n <span class=\"shrink-0 w-16 pt-0.5 text-[11px] font-medium text-muted-foreground tabular-nums\"> \n <template v-if=\"ev.allDay\">All day</template> \n <template v-else>{{ formatEventTime(ev.start) }}</template> \n </span> \n <span \n class=\"shrink-0 mt-1.5 w-2 h-2\" \n :style=\"ev.colorHex ? { backgroundColor: ev.colorHex } : undefined\" \n :class=\"[pillRadiusClass, !ev.colorHex ? dotColorClass(ev.color) : '']\" \n ></span> \n <span class=\"flex-1 min-w-0\"> \n <slot name=\"event\" :event=\"ev\"> \n <span class=\"block text-sm font-medium text-foreground truncate\">{{ ev.title }}</span> \n <span v-if=\"!ev.allDay && ev.end\" class=\"block text-[11px] text-muted-foreground\"> \n {{ formatEventTime(ev.start) }} – {{ formatEventTime(ev.end) }} \n </span> \n <span v-if=\"ev.description\" class=\"block text-xs text-muted-foreground truncate mt-0.5\">{{ ev.description }}</span> \n </slot> \n </span> \n <span v-if=\"ev.readonly\" class=\"shrink-0 mt-0.5 text-[9px] uppercase tracking-wider text-muted-foreground border border-border px-1 rounded\">Locked</span> \n </button> \n </div> \n </div> \n </div> \n <div v-if=\"gi === groups.length - 1\" class=\"h-1\"></div> \n </template> \n </div> \n \n <CalendarEventTooltip :state=\"hoverState\" :style=\"tooltipStyle\" :formatTime=\"formatEventTime\"> \n <!--\n A provided slot replaces the built-in card, so it gets the surface\n here; with no slot the fallback content keeps rendering its own.\n -->\n <template v-if=\"$slots['event-tooltip']\" #default=\"{ event, allDay }\">\n <div :class=\"CALENDAR_TOOLTIP_SURFACE\">\n <slot name=\"event-tooltip\" :event=\"event\" :allDay=\"allDay\" />\n </div>\n </template>\n </CalendarEventTooltip> \n </div> \n</template> \n \n<script setup lang=\"ts\"> \nimport { ref, computed, watch, nextTick, onMounted } from 'vue'; \nimport gsap from 'gsap'; \nimport { isSameDay, startOfDay } from '../../../composables/useCalendar'; \nimport { useCalendarTheme } from '../../../composables/useCalendarTheme'; \nimport { useModoLocale } from '../../../composables/useModoConfig'; \n \nconst loc = useModoLocale(); \nimport { useEventHover } from '../../../composables/useEventHover'; \nimport CalendarEventTooltip from './CalendarEventTooltip.vue'; \nimport CalendarHeader from './CalendarHeader.vue'; \nimport type { AgendaView } from '../../../interfaces/data-display/calendar/AgendaView.interface'; \nimport type { CalendarEvent } from '../../../interfaces/data-display/calendar/MonthView.interface'; \n \nimport { toCssLength } from '../../../utils/cssLength';\n\nimport { CALENDAR_TOOLTIP_SURFACE } from '../../../utils/calendarTooltip';\n\nconst props = withDefaults(defineProps<AgendaView>(), { \n modelValue: () => new Date(), \n events: () => [], \n locale: 'default', \n color: 'default', \n bordered: true, \n daysToShow: 30, \n daysBefore: 0, \n showEmptyDays: false, \n showHeader: true, \n showMonthSeparator: true, \n showYearNavigation: false, \n showMonthYearSelects: false, \n showTodayButton: true, \n dayNameFormat: 'short', \n dayNameCase: 'upper', \n format: '24h', \n readonly: false, \n highlightedDates: () => [], \n disabledDates: () => [], \n disabledWeekdays: () => [], \n // emptyText resolves against locale when not provided. \n loadMoreChunk: 30, \n enableKeyboardNavigation: true, \n}); \n \nconst emit = defineEmits<{ \n 'update:modelValue': [date: Date]; \n 'event-click': [event: CalendarEvent, nativeEvent: MouseEvent]; \n 'day-click': [date: Date, events: CalendarEvent[], nativeEvent: MouseEvent]; \n 'create-event': [date: Date, allDay: boolean, nativeEvent: MouseEvent | KeyboardEvent]; \n 'load-more': [direction: 'forward' | 'backward']; \n}>(); \n \nconst firstOfMonth = (d: Date) => new Date(d.getFullYear(), d.getMonth(), 1); \nconst daysInMonth = (d: Date) => new Date(d.getFullYear(), d.getMonth() + 1, 0).getDate(); \n \nconst anchorDate = ref(firstOfMonth(new Date(props.modelValue))); \nconst daysForwardShown = ref(Math.max(props.daysToShow, daysInMonth(anchorDate.value))); \n \nwatch(() => props.modelValue, (v) => { \n if (!v) return; \n const f = firstOfMonth(new Date(v)); \n if (f.getTime() === anchorDate.value.getTime()) return; \n anchorDate.value = f; \n daysForwardShown.value = Math.max(props.daysToShow, daysInMonth(f)); \n}); \nwatch(() => props.daysToShow, (n) => { daysForwardShown.value = Math.max(n, daysInMonth(anchorDate.value)); }); \n \nconst rootRef = ref<HTMLElement | null>(null); \nconst scrollRef = ref<HTMLElement | null>(null); \nconst today = new Date(); \n \nconst { hoverState, onEventEnter, onEventMove, onEventLeave, tooltipStyle } = useEventHover<CalendarEvent>(); \n \nconst formatEventTime = (d: Date) => { \n const locale = props.locale === 'default' ? undefined : props.locale; \n return d.toLocaleTimeString(locale, { hour: '2-digit', minute: '2-digit', hour12: props.format === '12h' }); \n}; \n \nconst isHighlightedDate = (d: Date) => props.highlightedDates.some(h => isSameDay(h, d)); \nconst isDisabledDate = (d: Date) => props.disabledDates.some(x => isSameDay(x, d)); \nconst isDisabledWeekday = (d: Date) => props.disabledWeekdays.includes(d.getDay()); \nconst isDayDisabled = (d: Date) => { \n if (props.minDate && startOfDay(d) < startOfDay(props.minDate)) return true; \n if (props.maxDate && startOfDay(d) > startOfDay(props.maxDate)) return true; \n return isDisabledDate(d) || isDisabledWeekday(d); \n}; \n \ninterface DayGroup { \n key: string; \n date: Date; \n day: number; \n weekdayLabel: string; \n monthLabel: string; \n showMonthHeader: boolean; \n isToday: boolean; \n disabled: boolean; \n events: CalendarEvent[]; \n} \n \nconst rangeDates = computed<Date[]>(() => { \n const anchor = anchorDate.value; \n const list: Date[] = []; \n for (let i = 0; i < daysForwardShown.value; i++) { \n const d = new Date(anchor); \n d.setDate(d.getDate() + i); \n const sod = startOfDay(d); \n if (props.minDate && sod < startOfDay(props.minDate)) continue; \n if (props.maxDate && sod > startOfDay(props.maxDate)) continue; \n list.push(sod); \n } \n return list; \n}); \n \nconst eventsByDay = computed<Map<string, CalendarEvent[]>>(() => { \n const map = new Map<string, CalendarEvent[]>(); \n for (const ev of props.events) { \n const s = startOfDay(ev.start); \n const e = startOfDay(ev.end ?? ev.start); \n const d = new Date(s); \n while (d.getTime() <= e.getTime()) { \n const k = d.toDateString(); \n if (!map.has(k)) map.set(k, []); \n map.get(k)!.push(ev); \n d.setDate(d.getDate() + 1); \n } \n } \n for (const list of map.values()) { \n list.sort((a, b) => { \n if (a.allDay && !b.allDay) return -1; \n if (!a.allDay && b.allDay) return 1; \n return a.start.getTime() - b.start.getTime(); \n }); \n } \n return map; \n}); \n \nconst isoKey = (d: Date) => `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, '0')}-${String(d.getDate()).padStart(2, '0')}`; \nconst parseIsoKey = (s: string): Date | null => { \n const m = s.match(/^(\\d{4})-(\\d{2})-(\\d{2})$/); \n if (!m) return null; \n return new Date(parseInt(m[1]), parseInt(m[2]) - 1, parseInt(m[3])); \n}; \n \nconst groups = computed<DayGroup[]>(() => { \n const locale = props.locale === 'default' ? undefined : props.locale; \n const result: DayGroup[] = []; \n let lastMonthKey = ''; \n for (const date of rangeDates.value) { \n const key = isoKey(date); \n const evts = eventsByDay.value.get(date.toDateString()) ?? []; \n if (!props.showEmptyDays && !evts.length) continue; \n const monthKey = `${date.getFullYear()}-${date.getMonth()}`; \n const showMonthHeader = monthKey !== lastMonthKey; \n lastMonthKey = monthKey; \n result.push({ \n key, \n date, \n day: date.getDate(), \n weekdayLabel: date.toLocaleDateString(locale, { weekday: props.dayNameFormat }), \n monthLabel: date.toLocaleDateString(locale, { month: 'long', year: 'numeric' }), \n showMonthHeader, \n isToday: isSameDay(date, today), \n disabled: isDayDisabled(date), \n events: evts, \n }); \n } \n return result; \n}); \n \nconst headerLabel = computed(() => { \n const locale = props.locale === 'default' ? undefined : props.locale; \n const d = visibleDate.value ?? anchorDate.value; \n return d.toLocaleDateString(locale, { month: 'long', year: 'numeric' }); \n}); \n \nconst handleEventClick = (ev: CalendarEvent, e: MouseEvent) => { \n emit('event-click', ev, e); \n}; \n \nconst afterNavigate = (scrollTarget?: Date, animateScroll = false) => { \n nextTick(() => { \n if (!scrollRef.value || !rootRef.value) { animateIn(); return; } \n const scEl = scrollRef.value; \n let target = 0; \n if (scrollTarget) { \n const key = isoKey(startOfDay(scrollTarget)); \n const el = rootRef.value.querySelector<HTMLElement>(`[data-dkey=\"${key}\"]`); \n if (el) { \n const scRect = scEl.getBoundingClientRect(); \n const elRect = el.getBoundingClientRect(); \n target = scEl.scrollTop + (elRect.top - scRect.top) - 12; \n } \n } \n if (animateScroll && target > 0) { \n scEl.scrollTop = 0; \n animateIn(); \n gsap.to(scEl, { scrollTop: target, duration: 0.7, ease: 'power3.inOut', delay: 0.15 }); \n } else { \n scEl.scrollTop = target; \n animateIn(); \n } \n visibleDate.value = anchorDate.value; \n }); \n}; \nconst handlePrev = () => { \n const d = new Date(anchorDate.value); \n d.setMonth(d.getMonth() - 1); \n anchorDate.value = firstOfMonth(d); \n daysForwardShown.value = Math.max(props.daysToShow, daysInMonth(anchorDate.value)); \n emit('update:modelValue', anchorDate.value); \n afterNavigate(); \n}; \nconst handleNext = () => { \n const d = new Date(anchorDate.value); \n d.setMonth(d.getMonth() + 1); \n anchorDate.value = firstOfMonth(d); \n daysForwardShown.value = Math.max(props.daysToShow, daysInMonth(anchorDate.value)); \n emit('update:modelValue', anchorDate.value); \n afterNavigate(); \n}; \nconst handleToday = () => { \n const n = new Date(); \n const wasCurrentMonth = firstOfMonth(n).getTime() === anchorDate.value.getTime(); \n anchorDate.value = firstOfMonth(n); \n daysForwardShown.value = Math.max(props.daysToShow, daysInMonth(anchorDate.value)); \n emit('update:modelValue', anchorDate.value); \n afterNavigate(n, !wasCurrentMonth); \n if (wasCurrentMonth && scrollRef.value && rootRef.value) { \n nextTick(() => { \n const key = isoKey(startOfDay(n)); \n const el = rootRef.value!.querySelector<HTMLElement>(`[data-dkey=\"${key}\"]`); \n if (!el) return; \n const scRect = scrollRef.value!.getBoundingClientRect(); \n const elRect = el.getBoundingClientRect(); \n const target = scrollRef.value!.scrollTop + (elRect.top - scRect.top) - 12; \n gsap.to(scrollRef.value!, { scrollTop: target, duration: 0.6, ease: 'power3.inOut' }); \n }); \n } \n}; \nconst handlePrevYear = () => { \n const d = new Date(anchorDate.value); \n d.setFullYear(d.getFullYear() - 1); \n anchorDate.value = firstOfMonth(d); \n daysForwardShown.value = Math.max(props.daysToShow, daysInMonth(anchorDate.value)); \n emit('update:modelValue', anchorDate.value); \n afterNavigate(); \n}; \nconst handleNextYear = () => { \n const d = new Date(anchorDate.value); \n d.setFullYear(d.getFullYear() + 1); \n anchorDate.value = firstOfMonth(d); \n daysForwardShown.value = Math.max(props.daysToShow, daysInMonth(anchorDate.value)); \n emit('update:modelValue', anchorDate.value); \n afterNavigate(); \n}; \n \nconst animateIn = () => { \n if (!rootRef.value) return; \n const els = rootRef.value.querySelectorAll<HTMLElement>('[data-dkey]'); \n if (!els.length) return; \n gsap.fromTo( \n els, \n { opacity: 0, y: 8 }, \n { opacity: 1, y: 0, duration: 0.35, ease: 'power2.out', stagger: { amount: 0.2 } } \n ); \n}; \n \nlet loadingMore = false; \nconst visibleDate = ref<Date | null>(null); \nconst canExtend = () => { \n if (!props.maxDate) return true; \n const last = rangeDates.value[rangeDates.value.length - 1]; \n return !(last && startOfDay(last) >= startOfDay(props.maxDate)); \n}; \nconst onScroll = () => { \n if (!scrollRef.value) return; \n const el = scrollRef.value; \n if (rootRef.value) { \n const scRect = el.getBoundingClientRect(); \n const headers = rootRef.value.querySelectorAll<HTMLElement>('[data-dkey]'); \n let pick: Date | null = null; \n for (const h of headers) { \n const r = h.getBoundingClientRect(); \n if (r.bottom > scRect.top + 8) { \n const k = h.getAttribute('data-dkey'); \n if (k) pick = parseIsoKey(k); \n break; \n } \n } \n if (pick) visibleDate.value = pick; \n } \n if (loadingMore) return; \n const remaining = el.scrollHeight - (el.scrollTop + el.clientHeight); \n if (remaining < 120) { \n if (!canExtend()) return; \n loadingMore = true; \n daysForwardShown.value += props.loadMoreChunk; \n emit('load-more', 'forward'); \n setTimeout(() => { loadingMore = false; }, 120); \n } \n}; \n \nconst handleKeydown = (e: KeyboardEvent) => { \n if (!props.enableKeyboardNavigation) return; \n const target = e.target as HTMLElement; \n if (target.tagName === 'SELECT' || target.tagName === 'INPUT') return; \n if (e.key === 'ArrowLeft' || e.key === 'PageUp') { e.preventDefault(); handlePrev(); } \n else if (e.key === 'ArrowRight' || e.key === 'PageDown') { e.preventDefault(); handleNext(); } \n else if (e.key.toLowerCase() === 't') { e.preventDefault(); handleToday(); } \n}; \n \nonMounted(() => { \n nextTick(() => { \n visibleDate.value = anchorDate.value; \n animateIn(); \n if (scrollRef.value && rootRef.value) { \n const todayMonth = firstOfMonth(today); \n if (todayMonth.getTime() === anchorDate.value.getTime()) { \n const key = isoKey(startOfDay(today)); \n const el = rootRef.value.querySelector<HTMLElement>(`[data-dkey=\"${key}\"]`); \n if (el) { \n const scEl = scrollRef.value; \n const scRect = scEl.getBoundingClientRect(); \n const elRect = el.getBoundingClientRect(); \n const target = scEl.scrollTop + (elRect.top - scRect.top) - 12; \n if (target > 0) { \n gsap.to(scEl, { scrollTop: target, duration: 0.9, ease: 'power3.inOut', delay: 0.25 }); \n } \n } \n } \n } \n }); \n}); \n \ndefineExpose({ \n scrollToDate(date: Date) { \n nextTick(() => { \n if (!scrollRef.value || !rootRef.value) return; \n const key = isoKey(startOfDay(date)); \n const el = rootRef.value.querySelector<HTMLElement>(`[data-dkey=\"${key}\"]`); \n if (!el) return; \n const scRect = scrollRef.value.getBoundingClientRect(); \n const elRect = el.getBoundingClientRect(); \n const target = scrollRef.value.scrollTop + (elRect.top - scRect.top) - 12; \n gsap.to(scrollRef.value, { scrollTop: target, duration: 0.45, ease: 'power3.inOut' }); \n }); \n }, \n}); \n \nconst { todayTextClass, dayNameCaseClass, focusRingColorClass, highlightDotClass, containerRadiusClass, eventRadiusClass, pillRadiusClass, todayBgClass, resolvedColor } = useCalendarTheme({ \n color: () => props.color, \n radius: () => props.radius, \n dayNameCase: () => props.dayNameCase, \n}); \n \nconst DOT_THEMED: Record<string, string> = { \n default: 'bg-muted-foreground', \n primary: 'bg-primary', \n danger: 'bg-destructive', \n success: 'bg-success', \n warning: 'bg-warning', \n}; \nconst DOT_SEMANTIC: Record<string, string> = { \n info: 'bg-info', \n purple: 'bg-purple', \n pink: 'bg-pink', \n}; \nconst dotColorClass = (c?: CalendarEvent['color']) => { \n if (!c) return DOT_THEMED.default; \n return DOT_THEMED[c] ?? DOT_SEMANTIC[c] ?? DOT_THEMED.default; \n}; \n \nconst localeValue = computed(() => (props.locale === 'default' ? undefined : props.locale)); \n \nconst monthOptions = computed(() => { \n const base = new Date(2024, 0, 1); \n return Array.from({ length: 12 }, (_, i) => { \n const d = new Date(base); \n d.setMonth(i); \n return d.toLocaleString(localeValue.value, { month: 'long' }); \n }); \n}); \n \nconst yearOptions = computed(() => { \n const min = props.minDate?.getFullYear() ?? anchorDate.value.getFullYear() - 10; \n const max = props.maxDate?.getFullYear() ?? anchorDate.value.getFullYear() + 10; \n const list: number[] = []; \n for (let y = min; y <= max; y++) list.push(y); \n return list; \n}); \n \nconst selectedMonth = computed({ \n get: () => anchorDate.value.getMonth(), \n set: (mm: number) => { \n const d = new Date(anchorDate.value); \n d.setDate(1); \n d.setMonth(mm); \n anchorDate.value = firstOfMonth(d); \n daysForwardShown.value = Math.max(props.daysToShow, daysInMonth(anchorDate.value)); \n emit('update:modelValue', anchorDate.value); \n afterNavigate(); \n }, \n}); \n \nconst selectedYear = computed({ \n get: () => anchorDate.value.getFullYear(), \n set: (yy: number) => { \n const d = new Date(anchorDate.value); \n d.setFullYear(yy); \n anchorDate.value = firstOfMonth(d); \n daysForwardShown.value = Math.max(props.daysToShow, daysInMonth(anchorDate.value)); \n emit('update:modelValue', anchorDate.value); \n afterNavigate(); \n }, \n}); \n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoIA,MAAM,MAAM,eAAe;EAW3B,MAAM,QAAQ;EA0Bd,MAAM,OAAO;EAQb,MAAM,gBAAgB,MAAY,IAAI,KAAK,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,EAAE;EAC5E,MAAM,eAAe,MAAY,IAAI,KAAK,EAAE,aAAa,EAAE,EAAE,UAAU,GAAG,GAAG,EAAE,CAAC,SAAS;EAEzF,MAAM,aAAa,IAAI,aAAa,IAAI,KAAK,MAAM,WAAW,CAAC,CAAC;EAChE,MAAM,mBAAmB,IAAI,KAAK,IAAI,MAAM,YAAY,YAAY,WAAW,MAAM,CAAC,CAAC;EAEvF,YAAY,MAAM,aAAa,MAAM;GACjC,IAAI,CAAC,GAAG;GACR,MAAM,IAAI,aAAa,IAAI,KAAK,EAAE,CAAC;GACnC,IAAI,EAAE,SAAS,KAAK,WAAW,MAAM,SAAS,EAAE;GAChD,WAAW,QAAQ;GACnB,iBAAiB,QAAQ,KAAK,IAAI,MAAM,YAAY,YAAY,EAAE,CAAC;IACrE;EACF,YAAY,MAAM,aAAa,MAAM;GAAE,iBAAiB,QAAQ,KAAK,IAAI,GAAG,YAAY,WAAW,MAAM,CAAC;IAAI;EAE9G,MAAM,UAAU,IAAwB,KAAK;EAC7C,MAAM,YAAY,IA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D,KAAA,QAAA,iBAAA;MAA1B;MAAgB"}
@@ -4,7 +4,7 @@ import Button_default from "../../forms/Button.mjs";
4
4
  import { useCalendarKeyboard } from "../../../composables/useCalendarKeyboard.mjs";
5
5
  import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, nextTick, normalizeClass, openBlock, ref, renderList, toDisplayString, toRef, unref } from "vue";
6
6
  import { ChevronDoubleLeftIcon, ChevronDoubleRightIcon, ChevronLeftIcon, ChevronRightIcon } from "@heroicons/vue/24/outline";
7
- import gsap from "gsap";
7
+ import gsap$1 from "gsap";
8
8
  //#region src/components/data-display/calendar/Calendar.vue?vue&type=script&setup=true&lang.ts
9
9
  var _hoisted_1 = ["aria-label"];
10
10
  var _hoisted_2 = {
@@ -94,7 +94,7 @@ var Calendar_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defin
94
94
  isAnimating.value = true;
95
95
  const from = direction === "left" ? -20 : 20;
96
96
  const to = direction === "left" ? 20 : -20;
97
- gsap.to(gridRef.value, {
97
+ gsap$1.to(gridRef.value, {
98
98
  x: to,
99
99
  opacity: 0,
100
100
  duration: .15,
@@ -111,7 +111,7 @@ var Calendar_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defin
111
111
  resolve();
112
112
  return;
113
113
  }
114
- gsap.fromTo(gridRef.value, {
114
+ gsap$1.fromTo(gridRef.value, {
115
115
  x: from,
116
116
  opacity: 0
117
117
  }, {
@@ -144,7 +144,7 @@ var Calendar_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defin
144
144
  nextTick(() => {
145
145
  const todayEl = gridRef.value?.querySelector("[aria-current=\"date\"]");
146
146
  if (!todayEl) return;
147
- gsap.fromTo(todayEl, { scale: 1 }, {
147
+ gsap$1.fromTo(todayEl, { scale: 1 }, {
148
148
  scale: 1.15,
149
149
  duration: .18,
150
150
  ease: "power2.out",
@@ -1 +1 @@
1
- {"version":3,"file":"Calendar.vue_vue_type_script_setup_true_lang.mjs","names":[],"sources":["../../../../src/components/data-display/calendar/Calendar.vue"],"sourcesContent":["<template> \n <div \n ref=\"rootRef\" \n :class=\"['inline-flex flex-col select-none w-fit self-start', variant === 'outline' ? 'bg-card border border-border' : variant === 'filled' ? 'bg-card shadow-md' : '', containerRadiusClass]\" \n tabindex=\"0\" \n role=\"application\" \n :aria-label=\"`Calendar, ${monthLabel} ${currentYear}`\" \n @focus=\"ensureFocusedDay\" \n > \n <div v-if=\"showHeader\" class=\"flex items-center justify-between px-2 py-3\"> \n <div class=\"flex items-center gap-0.5\"> \n <Button \n variant=\"text\" \n size=\"small\" \n radius=\"medium\" \n :icon=\"ChevronDoubleLeftIcon\" \n :ariaLabel=\"loc.calendar.prevYear\" \n class=\"text-muted-foreground\" \n @click=\"handlePrevYear\" \n /> \n <Button \n variant=\"text\" \n size=\"small\" \n radius=\"medium\" \n :icon=\"ChevronLeftIcon\" \n :ariaLabel=\"loc.calendar.prevMonth\" \n class=\"text-muted-foreground\" \n @click=\"handlePrevMonth\" \n /> \n </div> \n \n <div class=\"flex items-center gap-2\"> \n <span class=\"text-sm font-semibold text-foreground select-none\"> \n {{ monthLabel }} {{ currentYear }} \n </span> \n <button \n type=\"button\" \n class=\"px-2 py-0.5 text-xs font-medium border border-border hover:bg-muted transition-colors cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-1\" \n :class=\"[focusRingColorClass, todayButtonColorClass, pillRadiusClass]\" \n :aria-label=\"loc.calendar.today\" \n @click=\"handleToday\" \n > \n Today \n </button> \n </div> \n \n <div class=\"flex items-center gap-0.5\"> \n <Button \n variant=\"text\" \n size=\"small\" \n radius=\"medium\" \n :icon=\"ChevronRightIcon\" \n :ariaLabel=\"loc.calendar.nextMonth\" \n class=\"text-muted-foreground\" \n @click=\"handleNextMonth\" \n /> \n <Button \n variant=\"text\" \n size=\"small\" \n radius=\"medium\" \n :icon=\"ChevronDoubleRightIcon\" \n :ariaLabel=\"loc.calendar.nextYear\" \n class=\"text-muted-foreground\" \n @click=\"handleNextYear\" \n /> \n </div> \n </div> \n \n <div class=\"grid grid-cols-7 px-2\"> \n <div \n v-for=\"day in weekDayLabels\" \n :key=\"day\" \n class=\"text-center text-xs font-medium text-muted-foreground py-2\" \n > \n {{ day }} \n </div> \n </div> \n \n <div class=\"overflow-hidden px-2 pb-2\"> \n <div ref=\"gridRef\" class=\"grid grid-cols-7\"> \n <template v-for=\"(day, i) in calendarDays\" :key=\"day.date.getTime()\"> \n <div \n v-if=\"day.isOutside && !showOutsideDays\" \n class=\"w-9 h-9\" \n aria-hidden=\"true\" \n /> \n <button \n v-else \n type=\"button\" \n :disabled=\"day.disabled\" \n :tabindex=\"isFocusedDay(day) ? 0 : -1\" \n :data-day-index=\"i\" \n :aria-label=\"day.date.toLocaleDateString(locale === 'default' ? undefined : locale)\" \n :aria-selected=\"day.isSelected\" \n :aria-current=\"day.isToday ? 'date' : undefined\" \n @click=\"!day.disabled && selectDate(day.date)\" \n :class=\"[ \n 'relative w-9 h-9 text-sm flex items-center justify-center transition-colors cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-1', \n dayRadiusClass, \n focusRingColorClass, \n day.disabled \n ? 'text-muted-foreground/60 cursor-not-allowed' \n : day.isSelected \n ? selectedClasses \n : day.isToday \n ? todayClasses \n : day.isOutside \n ? 'text-muted-foreground/40 hover:bg-muted' \n : 'text-foreground/80 hover:bg-muted', \n ]\" \n > \n {{ day.day }} \n </button> \n </template> \n </div> \n </div> \n </div> \n</template> \n \n<script setup lang=\"ts\"> \nimport { ref, computed, toRef, nextTick } from 'vue'; \nimport { ChevronLeftIcon, ChevronRightIcon, ChevronDoubleLeftIcon, ChevronDoubleRightIcon } from '@heroicons/vue/24/outline'; \nimport Button from '../../forms/Button.vue'; \nimport gsap from 'gsap'; \nimport { useResolvedColor, useResolvedRadius, useModoLocale } from '../../../composables/useModoConfig'; \nimport type { Calendar } from '../../../interfaces/data-display/calendar/Calendar.interface'; \nimport { useCalendar, isSameDay, type CalendarDay } from '../../../composables/useCalendar'; \nimport { useCalendarKeyboard } from '../../../composables/useCalendarKeyboard'; \n \nconst loc = useModoLocale(); \n \nconst props = withDefaults(defineProps<Calendar>(), { \n modelValue: null, \n locale: 'default', \n firstDayOfWeek: 0, \n color: 'default', \n variant: 'outline', \n showOutsideDays: true, \n showHeader: true, \n fixedWeeks: true, \n}); \n \nconst emit = defineEmits<{ \n 'update:modelValue': [date: Date]; \n 'monthChange': [payload: { month: number; year: number }]; \n}>(); \n \nconst rootRef = ref<HTMLElement | null>(null); \nconst gridRef = ref<HTMLElement | null>(null); \nconst focusedDate = ref<Date>(props.modelValue ?? new Date()); \nconst isAnimating = ref(false); \n \nconst { \n currentMonth, \n currentYear, \n monthLabel, \n weekDayLabels, \n calendarDays, \n prevMonth, \n nextMonth, \n prevYear, \n nextYear, \n goToToday, \n goToDate, \n} = useCalendar({ \n modelValue: toRef(props, 'modelValue'), \n month: toRef(props, 'month'), \n year: toRef(props, 'year'), \n locale: toRef(props, 'locale'), \n firstDayOfWeek: toRef(props, 'firstDayOfWeek'), \n minDate: toRef(props, 'minDate'), \n maxDate: toRef(props, 'maxDate'), \n disabledDates: toRef(props, 'disabledDates'), \n showOutsideDays: toRef(props, 'showOutsideDays'), \n fixedWeeks: toRef(props, 'fixedWeeks'), \n}); \n \nconst animateMonthChange = (direction: 'left' | 'right', action: () => void): Promise<void> => { \n return new Promise((resolve) => { \n if (!gridRef.value || isAnimating.value) { \n action(); \n emit('monthChange', { month: currentMonth.value, year: currentYear.value }); \n resolve(); \n return; \n } \n isAnimating.value = true; \n const from = direction === 'left' ? -20 : 20; \n const to = direction === 'left' ? 20 : -20; \n \n gsap.to(gridRef.value, { \n x: to, \n opacity: 0, \n duration: 0.15, \n ease: 'power2.in', \n onComplete: () => { \n action(); \n emit('monthChange', { month: currentMonth.value, year: currentYear.value }); \n nextTick(() => { \n if (!gridRef.value) { \n isAnimating.value = false; \n resolve(); \n return; \n } \n gsap.fromTo( \n gridRef.value, \n { x: from, opacity: 0 }, \n { \n x: 0, \n opacity: 1, \n duration: 0.2, \n ease: 'power2.out', \n onComplete: () => { \n isAnimating.value = false; \n resolve(); \n }, \n } \n ); \n }); \n }, \n }); \n }); \n}; \n \nconst handlePrevMonth = () => animateMonthChange('right', prevMonth); \nconst handleNextMonth = () => animateMonthChange('left', nextMonth); \nconst handlePrevYear = () => animateMonthChange('right', prevYear); \nconst handleNextYear = () => animateMonthChange('left', nextYear); \n \nconst handleToday = () => { \n const now = goToToday(); \n focusedDate.value = now; \n emit('update:modelValue', now); \n emit('monthChange', { month: currentMonth.value, year: currentYear.value }); \n \n // Pulse the today cell so the visual feedback matches the intent of \n // the \"today\" action. Happens after the DOM has re-rendered with the \n // new month, and is a no-op under prefers-reduced-motion (handled by \n // the global @media override in style.css). \n nextTick(() => { \n const todayEl = gridRef.value?.querySelector<HTMLElement>('[aria-current=\"date\"]'); \n if (!todayEl) return; \n gsap.fromTo( \n todayEl, \n { scale: 1 }, \n { \n scale: 1.15, \n duration: 0.18, \n ease: 'power2.out', \n yoyo: true, \n repeat: 1, \n } \n ); \n }); \n}; \n \nconst selectDate = (date: Date) => { \n focusedDate.value = date; \n emit('update:modelValue', date); \n}; \n \nconst isFocusedDay = (day: CalendarDay) => isSameDay(day.date, focusedDate.value); \n \nconst ensureFocusedDay = () => { \n const d = focusedDate.value; \n if (d.getMonth() !== currentMonth.value || d.getFullYear() !== currentYear.value) { \n focusedDate.value = new Date(currentYear.value, currentMonth.value, 1); \n } \n nextTick(() => focusDayElement()); \n}; \n \nconst focusDayElement = () => { \n const el = gridRef.value?.querySelector<HTMLButtonElement>('button[tabindex=\"0\"]'); \n el?.focus(); \n}; \n \nconst moveFocus = (deltaDays: number) => { \n const next = new Date(focusedDate.value); \n next.setDate(next.getDate() + deltaDays); \n focusedDate.value = next; \n const outOfMonth = next.getMonth() !== currentMonth.value || next.getFullYear() !== currentYear.value; \n if (outOfMonth) { \n const direction = deltaDays > 0 ? 'left' : 'right'; \n animateMonthChange(direction, () => goToDate(next)).then(() => focusDayElement()); \n } else { \n nextTick(() => focusDayElement()); \n } \n}; \n \nuseCalendarKeyboard(rootRef, { \n onArrowLeft: () => moveFocus(-1), \n onArrowRight: () => moveFocus(1), \n onArrowUp: () => moveFocus(-7), \n onArrowDown: () => moveFocus(7), \n onEnter: () => selectDate(focusedDate.value), \n onPageUp: handlePrevMonth, \n onPageDown: handleNextMonth, \n onShiftPageUp: handlePrevYear, \n onShiftPageDown: handleNextYear, \n onHome: () => { \n const dow = focusedDate.value.getDay(); \n const delta = -((dow - props.firstDayOfWeek + 7) % 7); \n moveFocus(delta); \n }, \n onEnd: () => { \n const dow = focusedDate.value.getDay(); \n const delta = 6 - ((dow - props.firstDayOfWeek + 7) % 7); \n moveFocus(delta); \n }, \n onToday: handleToday, \n}); \n \nconst resolvedColor = useResolvedColor(() => props.color); \nconst resolvedRadius = useResolvedRadius(() => props.radius); \n \nconst selectedClasses = computed(() => { \n const map: Record<string, string> = { \n default: 'bg-foreground text-background hover:bg-foreground/90', \n primary: 'bg-primary text-primary-foreground hover:bg-primary-hover', \n danger: 'bg-destructive text-destructive-foreground hover:bg-destructive-hover', \n success: 'bg-success text-success-foreground hover:bg-success-hover', \n warning: 'bg-warning text-warning-foreground hover:bg-warning-hover', \n }; \n return map[resolvedColor.value] ?? map.default; \n}); \n \nconst todayClasses = computed(() => { \n const map: Record<string, string> = { \n default: 'text-foreground font-semibold hover:bg-muted', \n primary: 'text-primary font-semibold hover:bg-primary-subtle', \n danger: 'text-destructive font-semibold hover:bg-destructive-subtle', \n success: 'text-success font-semibold hover:bg-success-subtle', \n warning: 'text-warning font-semibold hover:bg-warning-subtle', \n }; \n return map[resolvedColor.value] ?? map.default; \n}); \n \nconst focusRingColorClass = computed(() => { \n const map: Record<string, string> = { \n default: 'focus-visible:ring-ring', \n primary: 'focus-visible:ring-primary', \n danger: 'focus-visible:ring-destructive', \n success: 'focus-visible:ring-success', \n warning: 'focus-visible:ring-warning', \n }; \n return map[resolvedColor.value] ?? map.default; \n}); \n \nconst todayButtonColorClass = computed(() => { \n const map: Record<string, string> = { \n default: 'text-foreground', \n primary: 'text-primary', \n danger: 'text-destructive', \n success: 'text-success', \n warning: 'text-warning', \n }; \n return map[resolvedColor.value] ?? map.default; \n}); \n \nconst containerRadiusClass = computed(() => { \n const map: Record<string, string> = { \n none: 'rounded-none', \n small: 'rounded-sm', \n medium: 'rounded-md', \n large: 'rounded-lg', \n full: 'rounded-xl', \n }; \n return map[resolvedRadius.value] ?? map.full; \n}); \n \nconst dayRadiusClass = computed(() => { \n const map: Record<string, string> = { \n none: 'rounded-none', \n small: 'rounded-sm', \n medium: 'rounded-md', \n large: 'rounded-lg', \n full: 'rounded-full', \n }; \n return map[resolvedRadius.value] ?? map.full; \n}); \n \nconst pillRadiusClass = computed(() => { \n const map: Record<string, string> = { \n none: 'rounded-none', \n small: 'rounded-sm', \n medium: 'rounded-md', \n large: 'rounded-full', \n full: 'rounded-full', \n }; \n return map[resolvedRadius.value] ?? map.full; \n}); \n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiIA,MAAM,MAAM,eAAe;EAE3B,MAAM,QAAQ;EAWd,MAAM,OAAO;EAKb,MAAM,UAAU,IAAwB,KAAK;EAC7C,MAAM,UAAU,IAAwB,KAAK;EAC7C,MAAM,cAAc,IAAU,MAAM,8BAAc,IAAI,MAAM,CAAC;EAC7D,MAAM,cAAc,IAAI,MAAM;EAE9B,MAAM,EACF,cACA,aACA,YACA,eACA,cACA,WACA,WACA,UACA,UACA,WACA,aACA,YAAY;GACZ,YAAY,MAAM,OAAO,aAAa;GACtC,OAAO,MAAM,OAAO,QAAQ;GAC5B,MAAM,MAAM,OAAO,OAAO;GAC1B,QAAQ,MAAM,OAAO,SAAS;GAC9B,gBAAgB,MAAM,OAAO,iBAAiB;GAC9C,SAAS,MAAM,OAAO,UAAU;GAChC,SAAS,MAA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APF,mBAMM,UAAA,MAAA,WALY,MAAA,cAAa,GAApB,QAAG;yBADd,mBAMM,OAAA;MAJD,KAAK;MACN,OAAM;wBAEH,IAAG,EAAA,EAAA;;IAId,mBAqCM,OArCN,YAqCM,CApCF,mBAmCM,OAAA;cAnCG;KAAJ,KAAI;KAAU,OAAM;0BACrB,mBAiCW,UAAA,MAAA,WAjCkB,MAAA,aAAY,GAAvB,KAAK,MAAC;6DAAyB,IAAI,KAAK,SAAO,EAAA,EAAA,CAEnD,IAAI,aAAS,CAAK,QAAA,mBAAA,WAAA,EAD5B,mBAIE,OAJF,YAIE,KAAA,WAAA,EACF,mBA0BS,UAAA;;MAxBL,MAAK;MACJ,UAAU,IAAI;MACd,UAAU,aAAa,IAAG,GAAA,IAAA;MAC1B,kBAAgB;MAChB,cAAY,IAAI,KAAK,mBAAmB,QAAA,WAAM,YAAiB,KAAA,IAAY,QAAA,OAAM;MACjF,iBAAe,IAAI;MACnB,gBAAc,IAAI,UAAO,SAAY,KAAA;MACrC,UAAK,WAAA,CAAG,IAAI,YAAY,WAAW,IAAI,KAAI;MAC3C,OAAK,eAAA;;OAAgO,eAAA;OAA6C,oBAAA;OAAkD,IAAI,WAAA,gDAA6H,IAAI,aAAkD,gBAAA,QAAuD,IAAI,UAAmD,aAAA,QAAwD,IAAI,YAAA,4CAAA;;wBAenqB,IAAI,IAAG,EAAA,IAAA,YAAA,EAAA,EAAA,GAAA"}
1
+ {"version":3,"file":"Calendar.vue_vue_type_script_setup_true_lang.mjs","names":[],"sources":["../../../../src/components/data-display/calendar/Calendar.vue"],"sourcesContent":["<template> \n <div \n ref=\"rootRef\" \n :class=\"['inline-flex flex-col select-none w-fit self-start', variant === 'outline' ? 'bg-card border border-border' : variant === 'filled' ? 'bg-card shadow-md' : '', containerRadiusClass]\" \n tabindex=\"0\" \n role=\"application\" \n :aria-label=\"`Calendar, ${monthLabel} ${currentYear}`\" \n @focus=\"ensureFocusedDay\" \n > \n <div v-if=\"showHeader\" class=\"flex items-center justify-between px-2 py-3\"> \n <div class=\"flex items-center gap-0.5\"> \n <Button \n variant=\"text\" \n size=\"small\" \n radius=\"medium\" \n :icon=\"ChevronDoubleLeftIcon\" \n :ariaLabel=\"loc.calendar.prevYear\" \n class=\"text-muted-foreground\" \n @click=\"handlePrevYear\" \n /> \n <Button \n variant=\"text\" \n size=\"small\" \n radius=\"medium\" \n :icon=\"ChevronLeftIcon\" \n :ariaLabel=\"loc.calendar.prevMonth\" \n class=\"text-muted-foreground\" \n @click=\"handlePrevMonth\" \n /> \n </div> \n \n <div class=\"flex items-center gap-2\"> \n <span class=\"text-sm font-semibold text-foreground select-none\"> \n {{ monthLabel }} {{ currentYear }} \n </span> \n <button \n type=\"button\" \n class=\"px-2 py-0.5 text-xs font-medium border border-border hover:bg-muted transition-colors cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-1\" \n :class=\"[focusRingColorClass, todayButtonColorClass, pillRadiusClass]\" \n :aria-label=\"loc.calendar.today\" \n @click=\"handleToday\" \n > \n Today \n </button> \n </div> \n \n <div class=\"flex items-center gap-0.5\"> \n <Button \n variant=\"text\" \n size=\"small\" \n radius=\"medium\" \n :icon=\"ChevronRightIcon\" \n :ariaLabel=\"loc.calendar.nextMonth\" \n class=\"text-muted-foreground\" \n @click=\"handleNextMonth\" \n /> \n <Button \n variant=\"text\" \n size=\"small\" \n radius=\"medium\" \n :icon=\"ChevronDoubleRightIcon\" \n :ariaLabel=\"loc.calendar.nextYear\" \n class=\"text-muted-foreground\" \n @click=\"handleNextYear\" \n /> \n </div> \n </div> \n \n <div class=\"grid grid-cols-7 px-2\"> \n <div \n v-for=\"day in weekDayLabels\" \n :key=\"day\" \n class=\"text-center text-xs font-medium text-muted-foreground py-2\" \n > \n {{ day }} \n </div> \n </div> \n \n <div class=\"overflow-hidden px-2 pb-2\"> \n <div ref=\"gridRef\" class=\"grid grid-cols-7\"> \n <template v-for=\"(day, i) in calendarDays\" :key=\"day.date.getTime()\"> \n <div \n v-if=\"day.isOutside && !showOutsideDays\" \n class=\"w-9 h-9\" \n aria-hidden=\"true\" \n /> \n <button \n v-else \n type=\"button\" \n :disabled=\"day.disabled\" \n :tabindex=\"isFocusedDay(day) ? 0 : -1\" \n :data-day-index=\"i\" \n :aria-label=\"day.date.toLocaleDateString(locale === 'default' ? undefined : locale)\" \n :aria-selected=\"day.isSelected\" \n :aria-current=\"day.isToday ? 'date' : undefined\" \n @click=\"!day.disabled && selectDate(day.date)\" \n :class=\"[ \n 'relative w-9 h-9 text-sm flex items-center justify-center transition-colors cursor-pointer focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-1', \n dayRadiusClass, \n focusRingColorClass, \n day.disabled \n ? 'text-muted-foreground/60 cursor-not-allowed' \n : day.isSelected \n ? selectedClasses \n : day.isToday \n ? todayClasses \n : day.isOutside \n ? 'text-muted-foreground/40 hover:bg-muted' \n : 'text-foreground/80 hover:bg-muted', \n ]\" \n > \n {{ day.day }} \n </button> \n </template> \n </div> \n </div> \n </div> \n</template> \n \n<script setup lang=\"ts\"> \nimport { ref, computed, toRef, nextTick } from 'vue'; \nimport { ChevronLeftIcon, ChevronRightIcon, ChevronDoubleLeftIcon, ChevronDoubleRightIcon } from '@heroicons/vue/24/outline'; \nimport Button from '../../forms/Button.vue'; \nimport gsap from 'gsap'; \nimport { useResolvedColor, useResolvedRadius, useModoLocale } from '../../../composables/useModoConfig'; \nimport type { Calendar } from '../../../interfaces/data-display/calendar/Calendar.interface'; \nimport { useCalendar, isSameDay, type CalendarDay } from '../../../composables/useCalendar'; \nimport { useCalendarKeyboard } from '../../../composables/useCalendarKeyboard'; \n \nconst loc = useModoLocale(); \n \nconst props = withDefaults(defineProps<Calendar>(), { \n modelValue: null, \n locale: 'default', \n firstDayOfWeek: 0, \n color: 'default', \n variant: 'outline', \n showOutsideDays: true, \n showHeader: true, \n fixedWeeks: true, \n}); \n \nconst emit = defineEmits<{ \n 'update:modelValue': [date: Date]; \n 'monthChange': [payload: { month: number; year: number }]; \n}>(); \n \nconst rootRef = ref<HTMLElement | null>(null); \nconst gridRef = ref<HTMLElement | null>(null); \nconst focusedDate = ref<Date>(props.modelValue ?? new Date()); \nconst isAnimating = ref(false); \n \nconst { \n currentMonth, \n currentYear, \n monthLabel, \n weekDayLabels, \n calendarDays, \n prevMonth, \n nextMonth, \n prevYear, \n nextYear, \n goToToday, \n goToDate, \n} = useCalendar({ \n modelValue: toRef(props, 'modelValue'), \n month: toRef(props, 'month'), \n year: toRef(props, 'year'), \n locale: toRef(props, 'locale'), \n firstDayOfWeek: toRef(props, 'firstDayOfWeek'), \n minDate: toRef(props, 'minDate'), \n maxDate: toRef(props, 'maxDate'), \n disabledDates: toRef(props, 'disabledDates'), \n showOutsideDays: toRef(props, 'showOutsideDays'), \n fixedWeeks: toRef(props, 'fixedWeeks'), \n}); \n \nconst animateMonthChange = (direction: 'left' | 'right', action: () => void): Promise<void> => { \n return new Promise((resolve) => { \n if (!gridRef.value || isAnimating.value) { \n action(); \n emit('monthChange', { month: currentMonth.value, year: currentYear.value }); \n resolve(); \n return; \n } \n isAnimating.value = true; \n const from = direction === 'left' ? -20 : 20; \n const to = direction === 'left' ? 20 : -20; \n \n gsap.to(gridRef.value, { \n x: to, \n opacity: 0, \n duration: 0.15, \n ease: 'power2.in', \n onComplete: () => { \n action(); \n emit('monthChange', { month: currentMonth.value, year: currentYear.value }); \n nextTick(() => { \n if (!gridRef.value) { \n isAnimating.value = false; \n resolve(); \n return; \n } \n gsap.fromTo( \n gridRef.value, \n { x: from, opacity: 0 }, \n { \n x: 0, \n opacity: 1, \n duration: 0.2, \n ease: 'power2.out', \n onComplete: () => { \n isAnimating.value = false; \n resolve(); \n }, \n } \n ); \n }); \n }, \n }); \n }); \n}; \n \nconst handlePrevMonth = () => animateMonthChange('right', prevMonth); \nconst handleNextMonth = () => animateMonthChange('left', nextMonth); \nconst handlePrevYear = () => animateMonthChange('right', prevYear); \nconst handleNextYear = () => animateMonthChange('left', nextYear); \n \nconst handleToday = () => { \n const now = goToToday(); \n focusedDate.value = now; \n emit('update:modelValue', now); \n emit('monthChange', { month: currentMonth.value, year: currentYear.value }); \n \n // Pulse the today cell so the visual feedback matches the intent of \n // the \"today\" action. Happens after the DOM has re-rendered with the \n // new month, and is a no-op under prefers-reduced-motion (handled by \n // the global @media override in style.css). \n nextTick(() => { \n const todayEl = gridRef.value?.querySelector<HTMLElement>('[aria-current=\"date\"]'); \n if (!todayEl) return; \n gsap.fromTo( \n todayEl, \n { scale: 1 }, \n { \n scale: 1.15, \n duration: 0.18, \n ease: 'power2.out', \n yoyo: true, \n repeat: 1, \n } \n ); \n }); \n}; \n \nconst selectDate = (date: Date) => { \n focusedDate.value = date; \n emit('update:modelValue', date); \n}; \n \nconst isFocusedDay = (day: CalendarDay) => isSameDay(day.date, focusedDate.value); \n \nconst ensureFocusedDay = () => { \n const d = focusedDate.value; \n if (d.getMonth() !== currentMonth.value || d.getFullYear() !== currentYear.value) { \n focusedDate.value = new Date(currentYear.value, currentMonth.value, 1); \n } \n nextTick(() => focusDayElement()); \n}; \n \nconst focusDayElement = () => { \n const el = gridRef.value?.querySelector<HTMLButtonElement>('button[tabindex=\"0\"]'); \n el?.focus(); \n}; \n \nconst moveFocus = (deltaDays: number) => { \n const next = new Date(focusedDate.value); \n next.setDate(next.getDate() + deltaDays); \n focusedDate.value = next; \n const outOfMonth = next.getMonth() !== currentMonth.value || next.getFullYear() !== currentYear.value; \n if (outOfMonth) { \n const direction = deltaDays > 0 ? 'left' : 'right'; \n animateMonthChange(direction, () => goToDate(next)).then(() => focusDayElement()); \n } else { \n nextTick(() => focusDayElement()); \n } \n}; \n \nuseCalendarKeyboard(rootRef, { \n onArrowLeft: () => moveFocus(-1), \n onArrowRight: () => moveFocus(1), \n onArrowUp: () => moveFocus(-7), \n onArrowDown: () => moveFocus(7), \n onEnter: () => selectDate(focusedDate.value), \n onPageUp: handlePrevMonth, \n onPageDown: handleNextMonth, \n onShiftPageUp: handlePrevYear, \n onShiftPageDown: handleNextYear, \n onHome: () => { \n const dow = focusedDate.value.getDay(); \n const delta = -((dow - props.firstDayOfWeek + 7) % 7); \n moveFocus(delta); \n }, \n onEnd: () => { \n const dow = focusedDate.value.getDay(); \n const delta = 6 - ((dow - props.firstDayOfWeek + 7) % 7); \n moveFocus(delta); \n }, \n onToday: handleToday, \n}); \n \nconst resolvedColor = useResolvedColor(() => props.color); \nconst resolvedRadius = useResolvedRadius(() => props.radius); \n \nconst selectedClasses = computed(() => { \n const map: Record<string, string> = { \n default: 'bg-foreground text-background hover:bg-foreground/90', \n primary: 'bg-primary text-primary-foreground hover:bg-primary-hover', \n danger: 'bg-destructive text-destructive-foreground hover:bg-destructive-hover', \n success: 'bg-success text-success-foreground hover:bg-success-hover', \n warning: 'bg-warning text-warning-foreground hover:bg-warning-hover', \n }; \n return map[resolvedColor.value] ?? map.default; \n}); \n \nconst todayClasses = computed(() => { \n const map: Record<string, string> = { \n default: 'text-foreground font-semibold hover:bg-muted', \n primary: 'text-primary font-semibold hover:bg-primary-subtle', \n danger: 'text-destructive font-semibold hover:bg-destructive-subtle', \n success: 'text-success font-semibold hover:bg-success-subtle', \n warning: 'text-warning font-semibold hover:bg-warning-subtle', \n }; \n return map[resolvedColor.value] ?? map.default; \n}); \n \nconst focusRingColorClass = computed(() => { \n const map: Record<string, string> = { \n default: 'focus-visible:ring-ring', \n primary: 'focus-visible:ring-primary', \n danger: 'focus-visible:ring-destructive', \n success: 'focus-visible:ring-success', \n warning: 'focus-visible:ring-warning', \n }; \n return map[resolvedColor.value] ?? map.default; \n}); \n \nconst todayButtonColorClass = computed(() => { \n const map: Record<string, string> = { \n default: 'text-foreground', \n primary: 'text-primary', \n danger: 'text-destructive', \n success: 'text-success', \n warning: 'text-warning', \n }; \n return map[resolvedColor.value] ?? map.default; \n}); \n \nconst containerRadiusClass = computed(() => { \n const map: Record<string, string> = { \n none: 'rounded-none', \n small: 'rounded-sm', \n medium: 'rounded-md', \n large: 'rounded-lg', \n full: 'rounded-xl', \n }; \n return map[resolvedRadius.value] ?? map.full; \n}); \n \nconst dayRadiusClass = computed(() => { \n const map: Record<string, string> = { \n none: 'rounded-none', \n small: 'rounded-sm', \n medium: 'rounded-md', \n large: 'rounded-lg', \n full: 'rounded-full', \n }; \n return map[resolvedRadius.value] ?? map.full; \n}); \n \nconst pillRadiusClass = computed(() => { \n const map: Record<string, string> = { \n none: 'rounded-none', \n small: 'rounded-sm', \n medium: 'rounded-md', \n large: 'rounded-full', \n full: 'rounded-full', \n }; \n return map[resolvedRadius.value] ?? map.full; \n}); \n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiIA,MAAM,MAAM,eAAe;EAE3B,MAAM,QAAQ;EAWd,MAAM,OAAO;EAKb,MAAM,UAAU,IAAwB,KAAK;EAC7C,MAAM,UAAU,IAAwB,KAAK;EAC7C,MAAM,cAAc,IAAU,MAAM,8BAAc,IAAI,MAAM,CAAC;EAC7D,MAAM,cAAc,IAAI,MAAM;EAE9B,MAAM,EACF,cACA,aACA,YACA,eACA,cACA,WACA,WACA,UACA,UACA,WACA,aACA,YAAY;GACZ,YAAY,MAAM,OAAO,aAAa;GACtC,OAAO,MAAM,OAAO,QAAQ;GAC5B,MAAM,MAAM,OAAO,OAAO;GAC1B,QAAQ,MAAM,OAAO,SAAS;GAC9B,gBAAgB,MAAM,OAAO,iBAAiB;GAC9C,SAAS,MAAM,OAAO,UAAU;GAChC,SAAS,MAAM,OAAO,UAAU;GAChC,eAAe,MAAM,OAAO,gBAAgB;GAC5C,iBAAiB,MAAM,OAAO,kBAAkB;GAChD,YAAY,MAAM,OAAO,aAAa;GACzC,CAAC;EAEF,MAAM,sBAAsB,WAA6B,WAAsC;GAC3F,OAAO,IAAI,SAAS,YAAY;IAC5B,IAAI,CAAC,QAAQ,SAAS,YAAY,OAAO;KACrC,QAAQ;KACR,KAAK,eAAe;MAAE,OAAO,aAAa;MAAO,MA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O,EAAA,EAAA,CAEnD,IAAI,aAAS,CAAK,QAAA,mBAAA,WAAA,EAD5B,mBAIE,OAJF,YAIE,KAAA,WAAA,EACF,mBA0BS,UAAA;;MAxBL,MAAK;MACJ,UAAU,IAAI;MACd,UAAU,aAAa,IAAG,GAAA,IAAA;MAC1B,kBAAgB;MAChB,cAAY,IAAI,KAAK,mBAAmB,QAAA,WAAM,YAAiB,KAAA,IAAY,QAAA,OAAM;MACjF,iBAAe,IAAI;MACnB,gBAAc,IAAI,UAAO,SAAY,KAAA;MACrC,UAAK,WAAA,CAAG,IAAI,YAAY,WAAW,IAAI,KAAI;MAC3C,OAAK,eAAA;;OAAgO,eAAA;OAA6C,oBAAA;OAAkD,IAAI,WAAA,gDAA6H,IAAI,aAAkD,gBAAA,QAAuD,IAAI,UAAmD,aAAA,QAAwD,IAAI,YAAA,4CAAA;;wBAenqB,IAAI,IAAG,EAAA,IAAA,YAAA,EAAA,EAAA,GAAA"}
@@ -10,7 +10,7 @@ import { CALENDAR_TOOLTIP_SURFACE } from "../../../utils/calendarTooltip.mjs";
10
10
  import { useCurrentTimeLine } from "../../../composables/useCurrentTimeLine.mjs";
11
11
  import { MS_MIN, useTimeGrid } from "../../../composables/useTimeGrid.mjs";
12
12
  import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, onMounted, onUnmounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, watch, withCtx, withModifiers } from "vue";
13
- import gsap from "gsap";
13
+ import gsap$1 from "gsap";
14
14
  //#region src/components/data-display/calendar/DayView.vue?vue&type=script&setup=true&lang.ts
15
15
  var _hoisted_1 = [
16
16
  "data-eid",
@@ -177,7 +177,7 @@ var DayView_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
177
177
  nextTick(() => {
178
178
  if (!rootRef.value) return;
179
179
  const els = rootRef.value.querySelectorAll("[data-eid]");
180
- if (els.length) gsap.fromTo(els, {
180
+ if (els.length) gsap$1.fromTo(els, {
181
181
  opacity: 0,
182
182
  y: 6,
183
183
  scale: .96
@@ -425,7 +425,7 @@ var DayView_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
425
425
  top = Math.max(0, Math.min(min, windowMinutes.value)) * pxPerMin;
426
426
  }
427
427
  const target = Math.max(0, top - scrollRef.value.clientHeight / 3);
428
- gsap.to(scrollRef.value, {
428
+ gsap$1.to(scrollRef.value, {
429
429
  scrollTop: target,
430
430
  duration: .55,
431
431
  ease: "power3.inOut"
@@ -434,7 +434,7 @@ var DayView_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
434
434
  };
435
435
  const animate = (dir) => {
436
436
  if (!scrollRef.value) return;
437
- gsap.fromTo(scrollRef.value, {
437
+ gsap$1.fromTo(scrollRef.value, {
438
438
  opacity: 0,
439
439
  x: 24 * dir
440
440
  }, {
@@ -446,7 +446,7 @@ var DayView_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
446
446
  nextTick(() => {
447
447
  if (!scrollRef.value) return;
448
448
  const els = scrollRef.value.querySelectorAll("[data-eid]");
449
- if (els.length) gsap.fromTo(els, {
449
+ if (els.length) gsap$1.fromTo(els, {
450
450
  opacity: 0,
451
451
  y: 6,
452
452
  scale: .96
@@ -468,7 +468,7 @@ var DayView_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
468
468
  nextTick(() => {
469
469
  const els = findEventEls(id);
470
470
  if (!els.length) return;
471
- gsap.fromTo(els, {
471
+ gsap$1.fromTo(els, {
472
472
  scale: .4,
473
473
  opacity: 0
474
474
  }, {
@@ -488,7 +488,7 @@ var DayView_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
488
488
  const newH = el.offsetHeight;
489
489
  if (newH <= 0 || oldHeightPx <= 0 || newH === oldHeightPx) return;
490
490
  const fromScale = oldHeightPx / newH;
491
- gsap.fromTo(el, { scaleY: fromScale }, {
491
+ gsap$1.fromTo(el, { scaleY: fromScale }, {
492
492
  scaleY: 1,
493
493
  duration: .32,
494
494
  ease: "power3.out",