@dynect/base 0.16.0 → 0.18.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynect/base",
3
- "version": "0.16.0",
3
+ "version": "0.18.0",
4
4
  "description": "Reusable Nuxt base module — components, composables, utils, plugins and i18n from the Dynect design system.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1,6 +1,5 @@
1
1
  <script setup lang="ts">
2
2
  import { addDays, addMonths, addWeeks, eachDayOfInterval, endOfDay, endOfMonth, endOfWeek, formatDateTime, isSameDay, isWithinInterval, startOfDay, startOfMonth, startOfWeek, subDays } from '../../../utils/date';
3
- import { toUpperCase } from '../../../utils/function';
4
3
  import { computed, ref, shallowRef, watch } from 'vue';
5
4
  import { useKeyboardNavigation } from './composables/useKeyboardNavigation';
6
5
  import { useDragAndDropSystem } from './composables/useDragAndDrop';
@@ -17,6 +16,13 @@ import { useMonitoring } from './composables/useMonitoring';
17
16
  import { useAdvancedValidation } from './composables/useAdvancedValidation';
18
17
  import { PIXELS_PER_HOUR_CONFIG } from './composables/useCalendarUtils';
19
18
 
19
+ import BaseEventCalendarMonthView from './MonthView.vue';
20
+ import BaseEventCalendarWeekView from './WeekView.vue';
21
+ import BaseEventCalendarDayView from './DayView.vue';
22
+ import BaseEventCalendarAgendaView from './AgendaView.vue';
23
+ import BaseEventCalendarEventModal from './EventModal.vue';
24
+ import BaseEventCalendarDragDropVisualFeedback from './DragDropVisualFeedback.vue';
25
+
20
26
  const props = withDefaults(
21
27
  defineProps<{
22
28
  events?: CalendarEvent[];
@@ -254,7 +254,7 @@ onUnmounted(() => {
254
254
  <Popover
255
255
  :open="overflowPopupOpenForDateKey === formatDateTime(day.date, 'yyyy-MM-dd')"
256
256
  @update:open="
257
- (isOpen) => {
257
+ (isOpen: boolean) => {
258
258
  if (!isOpen) overflowPopupOpenForDateKey = null;
259
259
  }
260
260
  "
@@ -4,6 +4,7 @@ import type { CalendarEvent, ViewMode } from '../base/event-calendar/types';
4
4
 
5
5
  // Re-export types for convenience
6
6
  export type { CalendarEvent, ViewMode, EventColor, EventStatus, RecurringPattern } from '../base/event-calendar/types';
7
+ export { default as BaseEventCalendar } from '../base/event-calendar/EventCalendar.vue';
7
8
 
8
9
  // ── Props ────────────────────────────────────────────────────────────────────
9
10
  interface Props {
@@ -7,6 +7,7 @@
7
7
  <script setup lang="ts">
8
8
  import { computed, ref } from 'vue';
9
9
  import { cn } from '@/lib/utils';
10
+ import { provideGanttContext, getOffset, generateTimelineData, type GanttRange, type GanttFeature } from '../../../composables/useGantt';
10
11
 
11
12
  export interface GanttProps {
12
13
  zoom?: number;
@@ -52,7 +52,7 @@
52
52
 
53
53
  <script setup lang="ts">
54
54
  import { addDays, differenceInDays, formatDateTime } from '../../../utils/date';
55
- import { useGantt } from '../../../composables/useGantt';
55
+ import { useGantt, getOffset } from '../../../composables/useGantt';
56
56
  import { computed, onUnmounted, ref } from 'vue';
57
57
  import { cn } from '@/lib/utils';
58
58
 
@@ -24,7 +24,7 @@
24
24
 
25
25
  <script setup lang="ts">
26
26
  import { addDays, formatDateTime } from '../../../utils/date';
27
- import { useGantt } from '../../../composables/useGantt';
27
+ import { useGantt, getDifferenceIn, calculateInnerOffset } from '../../../composables/useGantt';
28
28
  import { computed, onUnmounted, ref } from 'vue';
29
29
  import { cn } from '@/lib/utils';
30
30
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  <script setup lang="ts">
10
10
  import { throttle } from '../../../utils/function';
11
- import { useGantt } from '../../../composables/useGantt';
11
+ import { useGantt, generateTimelineData, getOffset } from '../../../composables/useGantt';
12
12
  import { computed, onMounted, onUnmounted, ref } from 'vue';
13
13
  import { cn } from '@/lib/utils';
14
14
 
@@ -18,7 +18,7 @@
18
18
 
19
19
  <script setup lang="ts">
20
20
  import { formatDateTime } from '../../../utils/date';
21
- import { useGantt } from '../../../composables/useGantt';
21
+ import { useGantt, getDifferenceIn, calculateInnerOffset } from '../../../composables/useGantt';
22
22
  import { computed } from 'vue';
23
23
  import { cn } from '@/lib/utils';
24
24
 
@@ -12,6 +12,7 @@
12
12
  import { toRef } from 'vue';
13
13
  import { DnDProvider } from '@vue-dnd-kit/core';
14
14
  import { cn } from '~/lib/utils';
15
+ import { provideKanbanContext, type KanbanItemProps, type KanbanColumnProps } from '../../../composables/useKanban';
15
16
 
16
17
  export interface KanbanProps<T extends KanbanItemProps = KanbanItemProps, C extends KanbanColumnProps = KanbanColumnProps> {
17
18
  columns: C[];