@dynect/base 0.10.1 → 0.10.3

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 (33) hide show
  1. package/package.json +1 -1
  2. package/src/runtime/components/base/event-calendar/AgendaView.vue +2 -0
  3. package/src/runtime/components/base/event-calendar/DayEventsOverflowPopup.vue +1 -0
  4. package/src/runtime/components/base/event-calendar/DayView.vue +2 -0
  5. package/src/runtime/components/base/event-calendar/EventCalendar.vue +2 -0
  6. package/src/runtime/components/base/event-calendar/EventModal.vue +2 -0
  7. package/src/runtime/components/base/event-calendar/MonthView.vue +1 -0
  8. package/src/runtime/components/base/event-calendar/WeekView.vue +2 -0
  9. package/src/runtime/components/base/event-calendar/composables/useAdvancedValidation.ts +1 -0
  10. package/src/runtime/components/base/event-calendar/composables/useCalendarUtils.ts +1 -0
  11. package/src/runtime/components/base/event-calendar/composables/useCompatibility.ts +1 -0
  12. package/src/runtime/components/base/event-calendar/composables/useDragAndDrop.ts +1 -0
  13. package/src/runtime/components/base/event-calendar/composables/useEventFiltering.ts +1 -0
  14. package/src/runtime/components/base/event-calendar/composables/useEventStatus.ts +1 -0
  15. package/src/runtime/components/base/event-calendar/composables/useMultiDayLayout.ts +1 -0
  16. package/src/runtime/components/base/event-calendar/composables/useRecurringEvents.ts +1 -0
  17. package/src/runtime/components/base/event-calendar/composables/useTimezone.ts +2 -0
  18. package/src/runtime/components/base/org-chart/index.vue +2 -1
  19. package/src/runtime/components/base/toast/Toaster.vue +1 -1
  20. package/src/runtime/components/dynect/Autocomplete.vue +1 -0
  21. package/src/runtime/components/dynect/Dropzone.vue +1 -0
  22. package/src/runtime/components/dynect/Select.vue +1 -0
  23. package/src/runtime/components/dynect/SelectMultiple.vue +1 -0
  24. package/src/runtime/components/dynect/SwitchLanguage.vue +1 -0
  25. package/src/runtime/components/dynect/TagsInput.vue +1 -0
  26. package/src/runtime/components/dynect/Telephone.vue +2 -1
  27. package/src/runtime/components/ui/gantt/GanttCreateMarkerTrigger.vue +1 -0
  28. package/src/runtime/components/ui/gantt/GanttFeatureItem.vue +1 -0
  29. package/src/runtime/components/ui/gantt/GanttHeader.vue +1 -0
  30. package/src/runtime/components/ui/gantt/GanttMarker.vue +1 -0
  31. package/src/runtime/components/ui/gantt/GanttTimeline.vue +1 -0
  32. package/src/runtime/components/ui/gantt/GanttToday.vue +1 -0
  33. package/src/runtime/composables/useDropzone.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynect/base",
3
- "version": "0.10.1",
3
+ "version": "0.10.3",
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,6 @@
1
1
  <script setup lang="ts">
2
+ import { formatDateTime } from '../../../utils/date';
3
+ import { toLowerCase } from '../../../utils/function';
2
4
  import { computed } from 'vue';
3
5
  import type { CalendarEvent } from './types';
4
6
  import LocationDisplay from './LocationDisplay.vue';
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { formatDateTime } from '../../../utils/date';
2
3
  import { computed, ref } from 'vue';
3
4
  import type { CalendarEvent } from './types';
4
5
 
@@ -1,4 +1,6 @@
1
1
  <script setup lang="ts">
2
+ import { formatDateTime } from '../../../utils/date';
3
+ import { debounce, throttle } from '../../../utils/function';
2
4
  import { computed, ref } from 'vue';
3
5
  import type { CalendarEvent, DayColumnData, TimeSlot } from './types';
4
6
  import { useCalendarUtils } from './composables/useCalendarUtils';
@@ -1,4 +1,6 @@
1
1
  <script setup lang="ts">
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';
2
4
  import { computed, ref, shallowRef, watch } from 'vue';
3
5
  import { useKeyboardNavigation } from './composables/useKeyboardNavigation';
4
6
  import { useDragAndDropSystem } from './composables/useDragAndDrop';
@@ -1,4 +1,6 @@
1
1
  <script setup lang="ts">
2
+ import { addHours, getDay, getDayNameShort, isBefore, setHours } from '../../../utils/date';
3
+ import { convertDateTime, toLowerCase } from '../../../utils/function';
2
4
  import { Form, useForm } from 'vee-validate';
3
5
  import { computed, reactive, ref, watch } from 'vue';
4
6
  import { useId } from 'nuxt/app';
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { formatDateTime, isSameDay, startOfDay, subDays } from '../../../utils/date';
2
3
  import { computed, onUnmounted, ref } from 'vue';
3
4
  import type { CalendarEvent, MonthViewDay } from './types';
4
5
  import DayEventsOverflowPopup from './DayEventsOverflowPopup.vue';
@@ -1,4 +1,6 @@
1
1
  <script setup lang="ts">
2
+ import { formatDateTime } from '../../../utils/date';
3
+ import { debounce, throttle } from '../../../utils/function';
2
4
  import { computed, onMounted, ref } from 'vue';
3
5
  import type { CalendarEvent, DayColumnData, TimeSlot } from './types';
4
6
  import { useCalendarUtils } from './composables/useCalendarUtils';
@@ -1,3 +1,4 @@
1
+ import { toLowerCase } from '../../../../utils/function';
1
2
  import { readonly, ref } from 'vue';
2
3
  import type { CalendarEvent, RecurringPattern } from '../types';
3
4
 
@@ -1,3 +1,4 @@
1
+ import { differenceInMinutes, eachHourOfInterval, endOfDay, formatDateTime, setHours, setMinutes, startOfDay } from '../../../../utils/date';
1
2
  import type { CalendarEvent, TimeSlot } from '../types';
2
3
 
3
4
  export const PIXELS_PER_HOUR_CONFIG = 60; // Can be made configurable
@@ -1,3 +1,4 @@
1
+ import { toLowerCase } from '../../../../utils/function';
1
2
  import { readonly, ref } from 'vue';
2
3
  interface BrowserCapabilities {
3
4
  hasNativeUUID: boolean;
@@ -1,3 +1,4 @@
1
+ import { endOfDay, setHours, setMinutes, startOfDay } from '../../../../utils/date';
1
2
  import { computed, reactive, ref } from 'vue';
2
3
  import { makeDraggable, makeDroppable, type IDragEvent } from '@vue-dnd-kit/core';
3
4
  import type { CalendarEvent } from '../types';
@@ -1,3 +1,4 @@
1
+ import { endOfDay, endOfMonth, isSameDay, isWithinInterval, startOfDay, startOfMonth } from '../../../../utils/date';
1
2
  import { type ComputedRef, computed } from 'vue';
2
3
  import type { CalendarEvent } from '../types';
3
4
 
@@ -1,3 +1,4 @@
1
+ import { endOfDay, isPast } from '../../../../utils/date';
1
2
  import { type ComputedRef, computed } from 'vue';
2
3
  import type { CalendarEvent, EventStatus } from '../types';
3
4
 
@@ -1,3 +1,4 @@
1
+ import { endOfDay, formatDateTime, isWithinInterval, startOfDay } from '../../../../utils/date';
1
2
  import { type ComputedRef, computed } from 'vue';
2
3
  import type { CalendarEvent, MonthViewDay } from '../types';
3
4
 
@@ -1,3 +1,4 @@
1
+ import { addDays, addMonths, addWeeks, addYears, formatDateTime, getDay, getDayNameShort, isAfter, isBefore, setDay } from '../../../../utils/date';
1
2
  import { type ComputedRef, computed } from 'vue';
2
3
  import type { CalendarEvent, RecurringPattern } from '../types';
3
4
 
@@ -1,3 +1,5 @@
1
+ import { TZDate, formatDateTime } from '../../../../utils/date';
2
+ import { getAllTimezones } from '../../../../utils/function';
1
3
  import { type ComputedRef, computed, ref } from 'vue';
2
4
  import type { CalendarEvent } from '../types';
3
5
  import { getLocalTimeZone } from '@internationalized/date';
@@ -1,5 +1,6 @@
1
1
  <script setup lang="ts">
2
- import { onBeforeUnmount, onMounted, ref, shallowRef, watch } from 'vue';
2
+ import { toLowerCase } from '../../../utils/function';
3
+ import { onBeforeUnmount, onMounted, ref, shallowRef, useSlots, watch } from 'vue';
3
4
  import { OrgChart } from './main';
4
5
  import { SVG_ICONS, createIconSVG } from './svg-icons';
5
6
  import type { OrgChartNodeData, OrgChartNode } from './types';
@@ -107,7 +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
+ import { computed, nextTick, ref, useAttrs, watchEffect } from 'vue';
111
111
  import type { HeightT, Position, ToastT, ToastToDismiss, ToasterProps } from './types';
112
112
  import { ToastState } from './state';
113
113
  import Toast from './Toast.vue';
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { toLowerCase } from '../../utils/function';
2
3
  import { useField } from 'vee-validate';
3
4
  import { computed, ref } from 'vue';
4
5
  import { useId } from 'nuxt/app';
@@ -95,6 +95,7 @@
95
95
  </template>
96
96
 
97
97
  <script setup lang="ts">
98
+ import { toLowerCase } from '../../utils/function';
98
99
  import { useDropzone } from '../../composables/useDropzone';
99
100
  import { useField } from 'vee-validate';
100
101
  import { computed, onMounted, onUnmounted, ref, watch } from 'vue';
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { toLowerCase } from '../../utils/function';
2
3
  import { Field, useField } from 'vee-validate';
3
4
  import { computed, ref } from 'vue';
4
5
  import { useId } from 'nuxt/app';
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { toLowerCase } from '../../utils/function';
2
3
  import { Field, useField } from 'vee-validate';
3
4
  import { computed, ref } from 'vue';
4
5
  import { useId } from 'nuxt/app';
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { toUpperCase } from '../../utils/function';
2
3
  import { useI18n } from 'vue-i18n';
3
4
  import { cn } from '@/lib/utils';
4
5
  const { locale, setLocale } = useI18n();
@@ -101,6 +101,7 @@
101
101
  </template>
102
102
 
103
103
  <script setup lang="ts">
104
+ import { toLowerCase } from '../../utils/function';
104
105
  import { Field, useField } from 'vee-validate';
105
106
  import { computed, readonly, ref, watch } from 'vue';
106
107
  import { useId } from 'nuxt/app';
@@ -107,8 +107,9 @@
107
107
  </template>
108
108
 
109
109
  <script setup lang="ts">
110
+ import { capitalizeFirstLetter, countryList, toLowerCase, toUpperCase } from '../../utils/function';
110
111
  import { useField } from 'vee-validate';
111
- import { computed, nextTick, onMounted, reactive, readonly, ref, watch } from 'vue';
112
+ import { computed, nextTick, onMounted, reactive, readonly, ref, useTemplateRef, watch } from 'vue';
112
113
  import { parsePhoneNumberFromString, type CountryCode, type NumberFormat } from 'libphonenumber-js/max';
113
114
  import { cva } from 'class-variance-authority';
114
115
  import { useState, useId } from 'nuxt/app';
@@ -3,6 +3,7 @@
3
3
  </template>
4
4
 
5
5
  <script setup lang="ts">
6
+ import { addDays, addMonths, addWeeks } from '../../../utils/date';
6
7
  import { useGantt } from '../../../composables/useGantt';
7
8
  export interface GanttCreateMarkerTriggerProps {
8
9
  onCreateMarker?: (date: Date) => void;
@@ -51,6 +51,7 @@
51
51
  </template>
52
52
 
53
53
  <script setup lang="ts">
54
+ import { addDays, differenceInDays, formatDateTime } from '../../../utils/date';
54
55
  import { useGantt } from '../../../composables/useGantt';
55
56
  import { computed, onUnmounted, ref } from 'vue';
56
57
  import { cn } from '@/lib/utils';
@@ -83,6 +83,7 @@
83
83
  </template>
84
84
 
85
85
  <script setup lang="ts">
86
+ import { getDay } from '../../../utils/date';
86
87
  import { useGantt } from '../../../composables/useGantt';
87
88
  import { cn } from '@/lib/utils';
88
89
 
@@ -23,6 +23,7 @@
23
23
  </template>
24
24
 
25
25
  <script setup lang="ts">
26
+ import { addDays, formatDateTime } from '../../../utils/date';
26
27
  import { useGantt } from '../../../composables/useGantt';
27
28
  import { computed, onUnmounted, ref } from 'vue';
28
29
  import { cn } from '@/lib/utils';
@@ -7,6 +7,7 @@
7
7
  </template>
8
8
 
9
9
  <script setup lang="ts">
10
+ import { throttle } from '../../../utils/function';
10
11
  import { useGantt } from '../../../composables/useGantt';
11
12
  import { computed, onMounted, onUnmounted, ref } from 'vue';
12
13
  import { cn } from '@/lib/utils';
@@ -17,6 +17,7 @@
17
17
  </template>
18
18
 
19
19
  <script setup lang="ts">
20
+ import { formatDateTime } from '../../../utils/date';
20
21
  import { useGantt } from '../../../composables/useGantt';
21
22
  import { computed } from 'vue';
22
23
  import { cn } from '@/lib/utils';
@@ -1,3 +1,4 @@
1
+ import { toLowerCase } from '../utils/function';
1
2
  import { ref, type Ref } from 'vue';
2
3
  import { useNuxtApp } from 'nuxt/app';
3
4