@dynect/base 0.6.0 → 0.7.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.
Files changed (80) hide show
  1. package/package.json +1 -1
  2. package/src/runtime/components/base/event-calendar/AgendaView.vue +1 -0
  3. package/src/runtime/components/base/event-calendar/ColorManager.vue +1 -0
  4. package/src/runtime/components/base/event-calendar/DayEventsOverflowPopup.vue +1 -0
  5. package/src/runtime/components/base/event-calendar/DayView.vue +1 -0
  6. package/src/runtime/components/base/event-calendar/DragDropVisualFeedback.vue +1 -0
  7. package/src/runtime/components/base/event-calendar/EventCalendar.vue +1 -0
  8. package/src/runtime/components/base/event-calendar/EventModal.vue +2 -0
  9. package/src/runtime/components/base/event-calendar/EventResizeHandle.vue +1 -0
  10. package/src/runtime/components/base/event-calendar/ExternalCalendarSettings.vue +1 -0
  11. package/src/runtime/components/base/event-calendar/LocationDisplay.vue +1 -0
  12. package/src/runtime/components/base/event-calendar/MonthView.vue +1 -0
  13. package/src/runtime/components/base/event-calendar/WeekView.vue +1 -0
  14. package/src/runtime/components/base/event-calendar/composables/useAdvancedValidation.ts +1 -0
  15. package/src/runtime/components/base/event-calendar/composables/useColorManager.ts +1 -0
  16. package/src/runtime/components/base/event-calendar/composables/useCompatibility.ts +1 -0
  17. package/src/runtime/components/base/event-calendar/composables/useDragAndDrop.ts +1 -0
  18. package/src/runtime/components/base/event-calendar/composables/useEventFiltering.ts +1 -0
  19. package/src/runtime/components/base/event-calendar/composables/useEventStatus.ts +1 -0
  20. package/src/runtime/components/base/event-calendar/composables/useEventStore.ts +1 -0
  21. package/src/runtime/components/base/event-calendar/composables/useExternalCalendar.ts +1 -0
  22. package/src/runtime/components/base/event-calendar/composables/useKeyboardNavigation.ts +1 -0
  23. package/src/runtime/components/base/event-calendar/composables/useMonitoring.ts +1 -0
  24. package/src/runtime/components/base/event-calendar/composables/useMultiDayLayout.ts +1 -0
  25. package/src/runtime/components/base/event-calendar/composables/usePerformanceCache.ts +1 -0
  26. package/src/runtime/components/base/event-calendar/composables/useRecurringEvents.ts +1 -0
  27. package/src/runtime/components/base/event-calendar/composables/useSecurity.ts +1 -0
  28. package/src/runtime/components/base/event-calendar/composables/useTimezone.ts +1 -0
  29. package/src/runtime/components/base/org-chart/index.vue +1 -0
  30. package/src/runtime/components/base/signature/index.vue +2 -0
  31. package/src/runtime/components/base/toast/Toast.vue +1 -0
  32. package/src/runtime/components/base/toast/Toaster.vue +1 -0
  33. package/src/runtime/components/chart/Bar.vue +1 -0
  34. package/src/runtime/components/chart/Line.vue +1 -0
  35. package/src/runtime/components/chart/Pie.vue +1 -0
  36. package/src/runtime/components/chart/Radar.vue +1 -0
  37. package/src/runtime/components/dynect/Accordion.vue +1 -0
  38. package/src/runtime/components/dynect/Alert.vue +1 -0
  39. package/src/runtime/components/dynect/Autocomplete.vue +2 -0
  40. package/src/runtime/components/dynect/Badge.vue +1 -0
  41. package/src/runtime/components/dynect/Checkbox.vue +2 -0
  42. package/src/runtime/components/dynect/DatePicker.vue +2 -0
  43. package/src/runtime/components/dynect/DateRange.vue +2 -0
  44. package/src/runtime/components/dynect/Dropzone.vue +2 -0
  45. package/src/runtime/components/dynect/EventCalendar.vue +1 -0
  46. package/src/runtime/components/dynect/Filters.vue +1 -0
  47. package/src/runtime/components/dynect/Gantt.vue +1 -0
  48. package/src/runtime/components/dynect/Input.vue +2 -0
  49. package/src/runtime/components/dynect/Modal.vue +1 -0
  50. package/src/runtime/components/dynect/OtpInput.vue +2 -0
  51. package/src/runtime/components/dynect/Progress.vue +1 -0
  52. package/src/runtime/components/dynect/Radio.vue +2 -0
  53. package/src/runtime/components/dynect/Select.vue +2 -0
  54. package/src/runtime/components/dynect/SelectMultiple.vue +2 -0
  55. package/src/runtime/components/dynect/Sheet.vue +1 -0
  56. package/src/runtime/components/dynect/Signature.vue +2 -0
  57. package/src/runtime/components/dynect/SwitchColor.vue +1 -0
  58. package/src/runtime/components/dynect/Table.vue +2 -1
  59. package/src/runtime/components/dynect/TagsInput.vue +2 -0
  60. package/src/runtime/components/dynect/Telephone.vue +1 -0
  61. package/src/runtime/components/dynect/TextEditor.vue +1 -0
  62. package/src/runtime/components/dynect/Textarea.vue +2 -0
  63. package/src/runtime/components/dynect/TimePicker.vue +2 -0
  64. package/src/runtime/components/dynect/Timeline.vue +1 -0
  65. package/src/runtime/components/dynect/Toggle.vue +2 -0
  66. package/src/runtime/components/ui/carousel/Carousel.vue +1 -0
  67. package/src/runtime/components/ui/carousel/CarouselContent.vue +1 -0
  68. package/src/runtime/components/ui/gantt/Gantt.vue +1 -0
  69. package/src/runtime/components/ui/gantt/GanttFeatureItem.vue +1 -0
  70. package/src/runtime/components/ui/gantt/GanttMarker.vue +1 -0
  71. package/src/runtime/components/ui/gantt/GanttSidebar.vue +1 -0
  72. package/src/runtime/components/ui/gantt/GanttTimeline.vue +1 -0
  73. package/src/runtime/components/ui/gantt/GanttToday.vue +1 -0
  74. package/src/runtime/components/ui/inline-editable-input/InlineEditableInput.vue +1 -0
  75. package/src/runtime/components/ui/kanban/Kanban.vue +1 -0
  76. package/src/runtime/components/ui/kanban/KanbanBoard.vue +1 -0
  77. package/src/runtime/components/ui/kanban/KanbanCard.vue +1 -0
  78. package/src/runtime/components/ui/kanban/KanbanCards.vue +1 -0
  79. package/src/runtime/components/ui/resizable/ResizablePanel.vue +1 -0
  80. package/src/runtime/utils/function.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynect/base",
3
- "version": "0.6.0",
3
+ "version": "0.7.2",
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,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { computed } from 'vue';
2
3
  import type { CalendarEvent } from './types';
3
4
  import LocationDisplay from './LocationDisplay.vue';
4
5
  import { useColorManager } from './composables/useColorManager';
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { computed } from 'vue';
2
3
  import type { CalendarEvent, EventColor } from './types';
3
4
  import { useColorManager } from './composables/useColorManager';
4
5
 
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { computed, ref } from 'vue';
2
3
  import type { CalendarEvent } from './types';
3
4
 
4
5
  const props = defineProps<{
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { computed, ref } from 'vue';
2
3
  import type { CalendarEvent, DayColumnData, TimeSlot } from './types';
3
4
  import { useCalendarUtils } from './composables/useCalendarUtils';
4
5
  import LocationDisplay from './LocationDisplay.vue';
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { computed, onMounted, onUnmounted, ref } from 'vue';
2
3
  import type { CalendarEvent } from './types';
3
4
  import { useColorManager } from './composables/useColorManager';
4
5
 
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { computed, ref, shallowRef, watch } from 'vue';
2
3
  import { useKeyboardNavigation } from './composables/useKeyboardNavigation';
3
4
  import { useDragAndDropSystem } from './composables/useDragAndDrop';
4
5
  import { useCompatibility } from './composables/useCompatibility';
@@ -1,4 +1,6 @@
1
1
  <script setup lang="ts">
2
+ import { computed, reactive, ref, watch } from 'vue';
3
+ import { useId } from 'nuxt/app';
2
4
  import { onKeyStroke } from '@vueuse/core';
3
5
  import { toDate } from 'reka-ui/date';
4
6
  import { fromDate, CalendarDate, type DateValue, today, getLocalTimeZone } from '@internationalized/date';
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { computed, onUnmounted, ref } from 'vue';
2
3
  import type { CalendarEvent } from './types';
3
4
 
4
5
  interface ResizeHandleProps {
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { ref } from 'vue';
2
3
  import { useExternalCalendar, type ExternalCalendarConfig } from './composables/useExternalCalendar';
3
4
 
4
5
  const props = defineProps<{
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { computed } from 'vue';
2
3
  interface LocationDisplayProps {
3
4
  location?: string;
4
5
  showIcon?: boolean;
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { computed, onUnmounted, ref } from 'vue';
2
3
  import type { CalendarEvent, MonthViewDay } from './types';
3
4
  import DayEventsOverflowPopup from './DayEventsOverflowPopup.vue';
4
5
  import LocationDisplay from './LocationDisplay.vue';
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { computed, onMounted, ref } from 'vue';
2
3
  import type { CalendarEvent, DayColumnData, TimeSlot } from './types';
3
4
  import { useCalendarUtils } from './composables/useCalendarUtils';
4
5
  import LocationDisplay from './LocationDisplay.vue';
@@ -1,3 +1,4 @@
1
+ import { readonly, ref } from 'vue';
1
2
  import type { CalendarEvent, RecurringPattern } from '../types';
2
3
 
3
4
  interface ValidationRule<T = any> {
@@ -1,3 +1,4 @@
1
+ import { type Ref, computed, ref } from 'vue';
1
2
  import type { CalendarEvent, EventColor } from '../types';
2
3
 
3
4
  export interface ColorConfig {
@@ -1,3 +1,4 @@
1
+ import { readonly, ref } from 'vue';
1
2
  interface BrowserCapabilities {
2
3
  hasNativeUUID: boolean;
3
4
  hasResizeObserver: boolean;
@@ -1,3 +1,4 @@
1
+ import { computed, reactive, ref } from 'vue';
1
2
  import { makeDraggable, makeDroppable, type IDragEvent } from '@vue-dnd-kit/core';
2
3
  import type { CalendarEvent } from '../types';
3
4
  import { useCalendarUtils } from './useCalendarUtils';
@@ -1,3 +1,4 @@
1
+ import { type ComputedRef, computed } from 'vue';
1
2
  import type { CalendarEvent } from '../types';
2
3
 
3
4
  /**
@@ -1,3 +1,4 @@
1
+ import { type ComputedRef, computed } from 'vue';
1
2
  import type { CalendarEvent, EventStatus } from '../types';
2
3
 
3
4
  export function useEventStatus(events: ComputedRef<CalendarEvent[]>) {
@@ -1,3 +1,4 @@
1
+ import { computed, reactive, readonly, ref } from 'vue';
1
2
  import type { CalendarEvent } from '../types';
2
3
  import { usePerformanceCache } from './usePerformanceCache';
3
4
 
@@ -1,3 +1,4 @@
1
+ import { type ComputedRef, computed, readonly, ref } from 'vue';
1
2
  import type { CalendarEvent } from '../types';
2
3
 
3
4
  export interface ExternalCalendarProvider {
@@ -1,3 +1,4 @@
1
+ import { type Ref, ref } from 'vue';
1
2
  import { onKeyStroke } from '@vueuse/core';
2
3
  import type { ViewMode } from '../types';
3
4
 
@@ -1,3 +1,4 @@
1
+ import { onMounted, readonly, ref } from 'vue';
1
2
  interface PerformanceMetric {
2
3
  name: string;
3
4
  value: number;
@@ -1,3 +1,4 @@
1
+ import { type ComputedRef, computed } from 'vue';
1
2
  import type { CalendarEvent, MonthViewDay } from '../types';
2
3
 
3
4
  export interface LayoutEvent extends CalendarEvent {
@@ -1,3 +1,4 @@
1
+ import { computed, readonly, ref } from 'vue';
1
2
  interface CacheEntry<T> {
2
3
  value: T;
3
4
  timestamp: number;
@@ -1,3 +1,4 @@
1
+ import { type ComputedRef, computed } from 'vue';
1
2
  import type { CalendarEvent, RecurringPattern } from '../types';
2
3
 
3
4
  export function useRecurringEvents(events: ComputedRef<CalendarEvent[]>) {
@@ -1,3 +1,4 @@
1
+ import { readonly, ref } from 'vue';
1
2
  import type { CalendarEvent } from '../types';
2
3
 
3
4
  interface SecurityConfig {
@@ -1,3 +1,4 @@
1
+ import { type ComputedRef, computed, ref } from 'vue';
1
2
  import type { CalendarEvent } from '../types';
2
3
  import { getLocalTimeZone } from '@internationalized/date';
3
4
 
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { onBeforeUnmount, onMounted, ref, shallowRef, watch } from 'vue';
2
3
  import { OrgChart } from './main';
3
4
  import { SVG_ICONS, createIconSVG } from './svg-icons';
4
5
  import type { OrgChartNodeData, OrgChartNode } from './types';
@@ -5,6 +5,8 @@
5
5
  </template>
6
6
 
7
7
  <script setup lang="ts">
8
+ import { onMounted, reactive, watch } from 'vue';
9
+ import { useId } from 'nuxt/app';
8
10
  import SignaturePad from 'signature_pad';
9
11
 
10
12
  interface SigOption {
@@ -146,6 +146,7 @@
146
146
  </template>
147
147
 
148
148
  <script lang="ts" setup>
149
+ import { computed, nextTick, onBeforeUnmount, onMounted, ref, watch, watchEffect } from 'vue';
149
150
  import { cn } from '@/lib/utils';
150
151
  import { type HeightT, type ToastProps, type ToastT, isAction } from './types';
151
152
  import { useIsDocumentHidden, getDefaultSwipeDirections } from './hooks';
@@ -107,6 +107,7 @@
107
107
  <script lang="ts"></script>
108
108
 
109
109
  <script lang="ts" setup>
110
+ import { computed, nextTick, ref, watchEffect } from 'vue';
110
111
  import type { HeightT, Position, ToastT, ToastToDismiss, ToasterProps } from './types';
111
112
  import { ToastState } from './state';
112
113
  import Toast from './Toast.vue';
@@ -3,6 +3,7 @@
3
3
  </template>
4
4
 
5
5
  <script setup lang="ts">
6
+ import { computed, provide } from 'vue';
6
7
  import { use } from 'echarts/core';
7
8
  import { CanvasRenderer } from 'echarts/renderers';
8
9
  import { BarChart } from 'echarts/charts';
@@ -3,6 +3,7 @@
3
3
  </template>
4
4
 
5
5
  <script setup lang="ts">
6
+ import { computed, provide } from 'vue';
6
7
  import { use } from 'echarts/core';
7
8
  import { CanvasRenderer } from 'echarts/renderers';
8
9
  import { LineChart } from 'echarts/charts';
@@ -3,6 +3,7 @@
3
3
  </template>
4
4
 
5
5
  <script setup lang="ts">
6
+ import { computed, provide } from 'vue';
6
7
  import { use } from 'echarts/core';
7
8
  import { CanvasRenderer } from 'echarts/renderers';
8
9
  import { PieChart } from 'echarts/charts';
@@ -3,6 +3,7 @@
3
3
  </template>
4
4
 
5
5
  <script setup lang="ts">
6
+ import { computed, provide } from 'vue';
6
7
  import { use } from 'echarts/core';
7
8
  import { CanvasRenderer } from 'echarts/renderers';
8
9
  import { RadarChart } from 'echarts/charts';
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { computed } from 'vue';
2
3
  import type { HTMLAttributes } from 'vue';
3
4
  import { cva, type VariantProps } from 'class-variance-authority';
4
5
  import { cn } from '@/lib/utils';
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { computed, ref } from 'vue';
2
3
  import { cn } from '@/lib/utils';
3
4
 
4
5
  type AlertVariant = 'success' | 'danger' | 'warning' | 'info' | 'default';
@@ -1,4 +1,6 @@
1
1
  <script setup lang="ts">
2
+ import { computed, ref } from 'vue';
3
+ import { useId } from 'nuxt/app';
2
4
  import type { HTMLAttributes } from 'vue';
3
5
  import { cva } from 'class-variance-authority';
4
6
  import { cn } from '@/lib/utils';
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { computed } from 'vue';
2
3
  import type { HTMLAttributes } from 'vue';
3
4
  import { cva, type VariantProps } from 'class-variance-authority';
4
5
  import { cn } from '@/lib/utils';
@@ -41,6 +41,8 @@
41
41
  </template>
42
42
 
43
43
  <script setup lang="ts">
44
+ import { computed } from 'vue';
45
+ import { useId } from 'nuxt/app';
44
46
  import { cn } from '@/lib/utils';
45
47
 
46
48
  export interface AppCheckboxProps {
@@ -50,6 +50,8 @@
50
50
  </template>
51
51
 
52
52
  <script setup lang="ts">
53
+ import { computed, readonly, ref, watch } from 'vue';
54
+ import { useId } from 'nuxt/app';
53
55
  import type { DateValue } from '@internationalized/date';
54
56
  import { DateFormatter, getLocalTimeZone, parseDate, today } from '@internationalized/date';
55
57
  import { cn } from '@/lib/utils';
@@ -53,6 +53,8 @@
53
53
  </template>
54
54
 
55
55
  <script setup lang="ts">
56
+ import { computed, readonly, ref, watch } from 'vue';
57
+ import { useId } from 'nuxt/app';
56
58
  import type { DateValue } from '@internationalized/date';
57
59
  import { DateFormatter, getLocalTimeZone, today, parseDate } from '@internationalized/date';
58
60
  import { cn } from '@/lib/utils';
@@ -95,6 +95,8 @@
95
95
  </template>
96
96
 
97
97
  <script setup lang="ts">
98
+ import { computed, onMounted, onUnmounted, ref, watch } from 'vue';
99
+ import { useId } from 'nuxt/app';
98
100
  import type { HTMLAttributes } from 'vue';
99
101
 
100
102
  defineOptions({
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { computed } from 'vue';
2
3
  import type { CalendarEvent, ViewMode } from '@/components/base/event-calendar/types';
3
4
 
4
5
  // Re-export types for convenience
@@ -61,6 +61,7 @@
61
61
  </template>
62
62
 
63
63
  <script setup lang="ts">
64
+ import { ref, watch } from 'vue';
64
65
  export interface FilterOption {
65
66
  label: string;
66
67
  value: string;
@@ -89,6 +89,7 @@
89
89
  </template>
90
90
 
91
91
  <script setup lang="ts" generic="T extends DynectGanttFeature">
92
+ import { computed } from 'vue';
92
93
  import { cn } from '@/lib/utils';
93
94
  import type { GanttFeature, GanttRange } from '@/composables/useGantt';
94
95
 
@@ -1,4 +1,6 @@
1
1
  <script setup lang="ts">
2
+ import { computed, readonly } from 'vue';
3
+ import { useId } from 'nuxt/app';
2
4
  import type { HTMLAttributes } from 'vue';
3
5
  import { cva } from 'class-variance-authority';
4
6
  import { cn, inputSizeClasses } from '@/lib/utils';
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { computed } from 'vue';
2
3
  import { cn } from '@/lib/utils';
3
4
 
4
5
  interface DialogProps {
@@ -1,4 +1,6 @@
1
1
  <script setup lang="ts">
2
+ import { computed } from 'vue';
3
+ import { useId } from 'nuxt/app';
2
4
  import type { HTMLAttributes } from 'vue';
3
5
  import type { OTPInputEmits, OTPInputProps } from 'vue-input-otp';
4
6
  import { useForwardPropsEmits } from 'reka-ui';
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { computed } from 'vue';
2
3
  import type { HTMLAttributes } from 'vue';
3
4
  import { cva, type VariantProps } from 'class-variance-authority';
4
5
  import { cn } from '@/lib/utils';
@@ -37,6 +37,8 @@
37
37
  </template>
38
38
 
39
39
  <script setup lang="ts">
40
+ import { computed } from 'vue';
41
+ import { useId } from 'nuxt/app';
40
42
  import { cn } from '@/lib/utils';
41
43
 
42
44
  defineOptions({
@@ -1,4 +1,6 @@
1
1
  <script setup lang="ts">
2
+ import { computed, ref } from 'vue';
3
+ import { useId } from 'nuxt/app';
2
4
  import type { HTMLAttributes } from 'vue';
3
5
  import { cva } from 'class-variance-authority';
4
6
  import { cn, inputSizeClasses } from '@/lib/utils';
@@ -1,4 +1,6 @@
1
1
  <script setup lang="ts">
2
+ import { computed, ref } from 'vue';
3
+ import { useId } from 'nuxt/app';
2
4
  import type { HTMLAttributes } from 'vue';
3
5
  import { cva } from 'class-variance-authority';
4
6
  import { cn, inputSizeClasses } from '@/lib/utils';
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { computed } from 'vue';
2
3
  import { cn } from '@/lib/utils';
3
4
 
4
5
  interface SheetProps {
@@ -20,6 +20,8 @@
20
20
  </template>
21
21
 
22
22
  <script setup lang="ts">
23
+ import { computed, reactive, ref } from 'vue';
24
+ import { useId } from 'nuxt/app';
23
25
  interface BaseSignatureInstance {
24
26
  save: (format?: string) => string;
25
27
  clear: () => void;
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { computed } from 'vue';
2
3
  import { useColorMode } from '#imports';
3
4
  const colorMode: any = useColorMode();
4
5
  const isDark = computed(() => colorMode.value === 'dark');
@@ -1,4 +1,5 @@
1
- <script setup lang="ts" generic="TData extends Record<string, any>">
1
+ <script setup lang="ts" generic="TData extends Record<string, any>
2
+ import { computed, onMounted, ref, watch } from 'vue';">
2
3
  import { cn } from '@/lib/utils';
3
4
 
4
5
  // Column definition
@@ -101,6 +101,8 @@
101
101
  </template>
102
102
 
103
103
  <script setup lang="ts">
104
+ import { computed, readonly, ref, watch } from 'vue';
105
+ import { useId } from 'nuxt/app';
104
106
  import { onClickOutside } from '@vueuse/core';
105
107
  import { cva } from 'class-variance-authority';
106
108
  import { cn, inputSizeClasses } from '@/lib/utils';
@@ -107,6 +107,7 @@
107
107
  </template>
108
108
 
109
109
  <script setup lang="ts">
110
+ import { computed, nextTick, onMounted, reactive, readonly, ref, watch } from 'vue';
110
111
  import { parsePhoneNumberFromString, type CountryCode, type NumberFormat } from 'libphonenumber-js/max';
111
112
  import { cva } from 'class-variance-authority';
112
113
  import { useState, useId } from 'nuxt/app';
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { watch } from 'vue';
2
3
  import type { Content, Extensions } from '@tiptap/vue-3';
3
4
  import type { HTMLAttributes } from 'vue';
4
5
  import { cn } from '@/lib/utils';
@@ -1,4 +1,6 @@
1
1
  <script setup lang="ts">
2
+ import { computed, readonly } from 'vue';
3
+ import { useId } from 'nuxt/app';
2
4
  import type { HTMLAttributes } from 'vue';
3
5
  import { cva } from 'class-variance-authority';
4
6
  import { cn, inputSizeClasses } from '@/lib/utils';
@@ -87,6 +87,8 @@
87
87
  </template>
88
88
 
89
89
  <script setup lang="ts">
90
+ import { computed, readonly, ref, watch } from 'vue';
91
+ import { useId } from 'nuxt/app';
90
92
  import { cn } from '@/lib/utils';
91
93
 
92
94
  defineOptions({
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { computed } from 'vue';
2
3
  import type { HTMLAttributes } from 'vue';
3
4
  import { cva, type VariantProps } from 'class-variance-authority';
4
5
  import { cn } from '@/lib/utils';
@@ -60,6 +60,8 @@
60
60
  </template>
61
61
 
62
62
  <script setup lang="ts">
63
+ import { computed } from 'vue';
64
+ import { useId } from 'nuxt/app';
63
65
  import { cn } from '@/lib/utils';
64
66
 
65
67
  export interface ToggleProps {
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { ref } from 'vue';
2
3
  import type { CarouselEmits, CarouselProps, WithClassAsProps } from './interface';
3
4
  import { cn } from '@/lib/utils';
4
5
  import { useProvideCarousel } from './useCarousel';
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { ref } from 'vue';
2
3
  import type { WithClassAsProps } from './interface';
3
4
  import { cn } from '@/lib/utils';
4
5
  import { useCarousel } from './useCarousel';
@@ -5,6 +5,7 @@
5
5
  </template>
6
6
 
7
7
  <script setup lang="ts">
8
+ import { computed, ref } from 'vue';
8
9
  import { cn } from '@/lib/utils';
9
10
 
10
11
  export interface GanttProps {
@@ -51,6 +51,7 @@
51
51
  </template>
52
52
 
53
53
  <script setup lang="ts">
54
+ import { computed, onUnmounted, ref } from 'vue';
54
55
  import { cn } from '@/lib/utils';
55
56
 
56
57
  const props = defineProps({ id: { type: String, required: true }, startAt: { type: Date, required: true }, endAt: { type: Date, required: true }, class: { type: String, required: false }, status: { type: Object, required: false }, progress: { type: Number, required: false } });
@@ -23,6 +23,7 @@
23
23
  </template>
24
24
 
25
25
  <script setup lang="ts">
26
+ import { computed, onUnmounted, ref } from 'vue';
26
27
  import { cn } from '@/lib/utils';
27
28
 
28
29
  export interface GanttMarkerProps {
@@ -15,6 +15,7 @@
15
15
  </template>
16
16
 
17
17
  <script setup lang="ts">
18
+ import { onMounted, onUnmounted, ref } from 'vue';
18
19
  import { cn } from '@/lib/utils';
19
20
 
20
21
  export interface GanttSidebarProps {
@@ -7,6 +7,7 @@
7
7
  </template>
8
8
 
9
9
  <script setup lang="ts">
10
+ import { computed, onMounted, onUnmounted, ref } from 'vue';
10
11
  import { cn } from '@/lib/utils';
11
12
 
12
13
  export interface GanttTimelineProps {
@@ -17,6 +17,7 @@
17
17
  </template>
18
18
 
19
19
  <script setup lang="ts">
20
+ import { computed } from 'vue';
20
21
  import { cn } from '@/lib/utils';
21
22
 
22
23
  export interface GanttTodayProps {
@@ -18,6 +18,7 @@
18
18
  </template>
19
19
 
20
20
  <script setup lang="ts">
21
+ import { onMounted, ref, watch } from 'vue';
21
22
  import { cn } from '@/lib/utils';
22
23
 
23
24
  interface Props {
@@ -9,6 +9,7 @@
9
9
  </template>
10
10
 
11
11
  <script setup lang="ts" generic="T extends KanbanItemProps, C extends KanbanColumnProps">
12
+ import { toRef } from 'vue';
12
13
  import { DnDProvider } from '@vue-dnd-kit/core';
13
14
  import { cn } from '~/lib/utils';
14
15
 
@@ -6,6 +6,7 @@
6
6
  </template>
7
7
 
8
8
  <script setup lang="ts">
9
+ import { computed, ref } from 'vue';
9
10
  import { makeDroppable } from '@vue-dnd-kit/core';
10
11
  import { cn } from '@/lib/utils';
11
12
  import type { IDragEvent } from '@vue-dnd-kit/core';
@@ -9,6 +9,7 @@
9
9
  </template>
10
10
 
11
11
  <script setup lang="ts" generic="T extends KanbanItemProps">
12
+ import { computed, ref } from 'vue';
12
13
  import { makeDraggable } from '@vue-dnd-kit/core';
13
14
  import { cn } from '@/lib/utils';
14
15
  import type { IDragEvent } from '@vue-dnd-kit/core';
@@ -8,6 +8,7 @@
8
8
  </template>
9
9
 
10
10
  <script setup lang="ts" generic="T extends KanbanItemProps">
11
+ import { computed } from 'vue';
11
12
  import { cn } from '@/lib/utils';
12
13
 
13
14
  export interface KanbanCardsProps {
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { ref } from 'vue';
2
3
  import type { SplitterPanelEmits, SplitterPanelProps } from 'reka-ui';
3
4
  import { SplitterPanel, useForwardExpose, useForwardPropsEmits } from 'reka-ui';
4
5
 
@@ -1,5 +1,6 @@
1
1
  import country from '@/assets/files/country.json';
2
2
  import { isValidPhoneNumber, parsePhoneNumberFromString, type CountryCode } from 'libphonenumber-js/max';
3
+ import { useState } from 'nuxt/app';
3
4
 
4
5
  interface CountryData {
5
6
  name: string;