@dynect/base 0.14.0 → 0.17.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 +3 -3
- package/src/runtime/components/ui/gantt/Gantt.vue +1 -0
- package/src/runtime/components/ui/gantt/GanttFeatureItem.vue +1 -1
- package/src/runtime/components/ui/gantt/GanttMarker.vue +1 -1
- package/src/runtime/components/ui/gantt/GanttTimeline.vue +1 -1
- package/src/runtime/components/ui/gantt/GanttToday.vue +1 -1
- package/src/runtime/components/ui/kanban/Kanban.vue +1 -0
- package/src/runtime/utils/function.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynect/base",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.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",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@nuxt/fonts": "^0.14.0",
|
|
37
37
|
"@nuxt/icon": "^2.2.2",
|
|
38
38
|
"@nuxt/image": "^2.0.0",
|
|
39
|
-
"@nuxt/kit": "^
|
|
39
|
+
"@nuxt/kit": "^4.4.5",
|
|
40
40
|
"@nuxtjs/color-mode": "^4.0.0",
|
|
41
41
|
"@nuxtjs/i18n": "^10.3.0",
|
|
42
42
|
"@pinia/nuxt": "^0.11.3",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"shadcn-nuxt": "^2.6.2",
|
|
83
83
|
"signature_pad": "^5.1.3",
|
|
84
84
|
"@tailwindcss/vite": "^4.3.0",
|
|
85
|
-
"tailwind-merge": "^3.
|
|
85
|
+
"tailwind-merge": "^3.6.0",
|
|
86
86
|
"tailwindcss": "^4.3.0",
|
|
87
87
|
"tailwindcss-animate": "^1.0.7",
|
|
88
88
|
"tw-animate-css": "^1.4.0",
|
|
@@ -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[];
|