@26lights/orcha 0.42.32 → 0.42.34
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/dist/locales/en/translation.json +1 -0
- package/dist/orcha.cjs.js +2 -2
- package/dist/orcha.css +1 -1
- package/dist/orcha.es.js +5884 -5627
- package/dist/orcha.umd.js +3 -3
- package/dist/src/components/AoActivityDetails.vue.d.ts +7 -1
- package/dist/src/components/AoActivityDetailsComments.vue.d.ts +4 -0
- package/dist/src/components/AoCardFeed.vue.d.ts +9 -1
- package/dist/src/components/AoCardProjectItemMilestone.vue.d.ts +13 -1
- package/dist/src/components/AoCardProjectItemPhase.vue.d.ts +13 -1
- package/dist/src/components/AoComment.vue.d.ts +8 -0
- package/dist/src/components/AoCondensedCardProjectItemPhase.vue.d.ts +13 -1
- package/dist/src/components/AoListKanban.vue.d.ts +4 -1
- package/dist/src/components/AoMultiselect.vue.d.ts +2 -18
- package/dist/src/components/AoProjectPhase.vue.d.ts +13 -1
- package/dist/src/components/AoProjectPhases.vue.d.ts +13 -1
- package/dist/src/helpers.d.ts +32 -2
- package/dist/src/main.d.ts +2 -0
- package/dist/src/types/index.d.ts +17 -0
- package/dist/src/views/AoFeed.vue.d.ts +10 -1
- package/dist/src/views/AoProjectOverviewActivityDetails.vue.d.ts +7 -1
- package/dist/src/views/AoProjectOverviewMilestoneDetails.vue.d.ts +9 -1
- package/dist/src/views/AoProjectOverviewProject.vue.d.ts +7 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ActivityFeed, type Milestone, type UpdateSubtaskFieldPayload, type AddSubtaskPayload, type User, type AddFilesPayload, type RemoveFilePayload, type UpdateActivityPayload, type Activity, type Subtask, type ActivityStatus, type AddCommentPayload, type RemoveCommentPayload, type UpdateCommentPayload, type ActivityType, type Project } from '../types/index';
|
|
1
|
+
import { type ActivityFeed, type Milestone, type UpdateSubtaskFieldPayload, type AddSubtaskPayload, type User, type AddFilesPayload, type RemoveFilePayload, type UpdateActivityPayload, type Activity, type Subtask, type ActivityStatus, type AddCommentPayload, type RemoveCommentPayload, type UpdateCommentPayload, type ActivityType, type Project, type TimeTracking } from '../types/index';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
3
|
isEditable: {
|
|
4
4
|
type: import("vue").PropType<boolean | "only-own">;
|
|
@@ -48,6 +48,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
48
48
|
type: import("vue").PropType<Project[]>;
|
|
49
49
|
default: () => never[];
|
|
50
50
|
};
|
|
51
|
+
timeTrackingData: {
|
|
52
|
+
type: import("vue").PropType<Record<string, TimeTracking>>;
|
|
53
|
+
};
|
|
51
54
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
52
55
|
'update:activity': (payload: UpdateActivityPayload) => void;
|
|
53
56
|
close: (args_0: void) => void;
|
|
@@ -111,6 +114,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
111
114
|
type: import("vue").PropType<Project[]>;
|
|
112
115
|
default: () => never[];
|
|
113
116
|
};
|
|
117
|
+
timeTrackingData: {
|
|
118
|
+
type: import("vue").PropType<Record<string, TimeTracking>>;
|
|
119
|
+
};
|
|
114
120
|
}>> & {
|
|
115
121
|
onClose?: ((args_0?: void | undefined) => any) | undefined;
|
|
116
122
|
onUpdateComment?: ((payload: UpdateCommentPayload) => any) | undefined;
|
|
@@ -20,10 +20,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
createComment: (payload: {
|
|
21
21
|
authorId: string;
|
|
22
22
|
message: string;
|
|
23
|
+
mentionedUserIds: string[];
|
|
23
24
|
}) => void;
|
|
24
25
|
updateComment: (payload: {
|
|
25
26
|
id: string;
|
|
26
27
|
message: string;
|
|
28
|
+
mentionedUserIds: string[];
|
|
27
29
|
}) => void;
|
|
28
30
|
removeComment: (payload: {
|
|
29
31
|
id: string;
|
|
@@ -49,10 +51,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
51
|
onCreateComment?: ((payload: {
|
|
50
52
|
authorId: string;
|
|
51
53
|
message: string;
|
|
54
|
+
mentionedUserIds: string[];
|
|
52
55
|
}) => any) | undefined;
|
|
53
56
|
onUpdateComment?: ((payload: {
|
|
54
57
|
id: string;
|
|
55
58
|
message: string;
|
|
59
|
+
mentionedUserIds: string[];
|
|
56
60
|
}) => any) | undefined;
|
|
57
61
|
onRemoveComment?: ((payload: {
|
|
58
62
|
id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Subtask, type UpdateActivityPayload, type User } from '../types';
|
|
1
|
+
import { type StartTimerPayload, type Subtask, type UpdateActivityPayload, type User } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
3
|
id: {
|
|
4
4
|
type: import("vue").PropType<string>;
|
|
@@ -11,6 +11,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
11
11
|
projectName: {
|
|
12
12
|
type: import("vue").PropType<string>;
|
|
13
13
|
};
|
|
14
|
+
projectId: {
|
|
15
|
+
type: import("vue").PropType<string>;
|
|
16
|
+
};
|
|
14
17
|
projectColor: {
|
|
15
18
|
type: import("vue").PropType<string>;
|
|
16
19
|
};
|
|
@@ -59,6 +62,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
59
62
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
60
63
|
removeAssignee: (assigneeId: string) => void;
|
|
61
64
|
updateActivity: (payload: UpdateActivityPayload) => void;
|
|
65
|
+
startTimer: (payload: StartTimerPayload) => void;
|
|
62
66
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
63
67
|
id: {
|
|
64
68
|
type: import("vue").PropType<string>;
|
|
@@ -71,6 +75,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
71
75
|
projectName: {
|
|
72
76
|
type: import("vue").PropType<string>;
|
|
73
77
|
};
|
|
78
|
+
projectId: {
|
|
79
|
+
type: import("vue").PropType<string>;
|
|
80
|
+
};
|
|
74
81
|
projectColor: {
|
|
75
82
|
type: import("vue").PropType<string>;
|
|
76
83
|
};
|
|
@@ -119,6 +126,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
119
126
|
}>> & {
|
|
120
127
|
onRemoveAssignee?: ((assigneeId: string) => any) | undefined;
|
|
121
128
|
onUpdateActivity?: ((payload: UpdateActivityPayload) => any) | undefined;
|
|
129
|
+
onStartTimer?: ((payload: StartTimerPayload) => any) | undefined;
|
|
122
130
|
}, {}, {}>, {
|
|
123
131
|
secondary?(_: {}): any;
|
|
124
132
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Activity, ActivityStatus, UpdateMilestonePayload, type User } from '../types';
|
|
1
|
+
import { type Activity, ActivityStatus, UpdateMilestonePayload, type User, type TimeTracking } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
3
|
id: {
|
|
4
4
|
type: import("vue").PropType<string>;
|
|
@@ -41,6 +41,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
41
41
|
readonly: {
|
|
42
42
|
type: import("vue").PropType<boolean>;
|
|
43
43
|
};
|
|
44
|
+
timeTrackingData: {
|
|
45
|
+
type: import("vue").PropType<Record<string, TimeTracking>>;
|
|
46
|
+
};
|
|
47
|
+
estimationUnit: {
|
|
48
|
+
type: import("vue").PropType<string>;
|
|
49
|
+
};
|
|
44
50
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
51
|
updateMilestone: (payload: UpdateMilestonePayload) => void;
|
|
46
52
|
archiveMilestone: (payload: {
|
|
@@ -91,6 +97,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
91
97
|
readonly: {
|
|
92
98
|
type: import("vue").PropType<boolean>;
|
|
93
99
|
};
|
|
100
|
+
timeTrackingData: {
|
|
101
|
+
type: import("vue").PropType<Record<string, TimeTracking>>;
|
|
102
|
+
};
|
|
103
|
+
estimationUnit: {
|
|
104
|
+
type: import("vue").PropType<string>;
|
|
105
|
+
};
|
|
94
106
|
}>> & {
|
|
95
107
|
onUpdateMilestone?: ((payload: UpdateMilestonePayload) => any) | undefined;
|
|
96
108
|
onArchiveMilestone?: ((payload: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Milestone } from '../types';
|
|
1
|
+
import { type Milestone, type TimeTracking } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
3
|
id: {
|
|
4
4
|
type: import("vue").PropType<string>;
|
|
@@ -25,6 +25,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
25
25
|
color: {
|
|
26
26
|
type: import("vue").PropType<string>;
|
|
27
27
|
};
|
|
28
|
+
timeTrackingData: {
|
|
29
|
+
type: import("vue").PropType<Record<string, TimeTracking>>;
|
|
30
|
+
};
|
|
31
|
+
estimationUnit: {
|
|
32
|
+
type: import("vue").PropType<string>;
|
|
33
|
+
};
|
|
28
34
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
35
|
'update:title': (v: string) => void;
|
|
30
36
|
'update:deadline': (v: string) => void;
|
|
@@ -64,6 +70,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
64
70
|
color: {
|
|
65
71
|
type: import("vue").PropType<string>;
|
|
66
72
|
};
|
|
73
|
+
timeTrackingData: {
|
|
74
|
+
type: import("vue").PropType<Record<string, TimeTracking>>;
|
|
75
|
+
};
|
|
76
|
+
estimationUnit: {
|
|
77
|
+
type: import("vue").PropType<string>;
|
|
78
|
+
};
|
|
67
79
|
}>> & {
|
|
68
80
|
"onUpdate:title"?: ((v: string) => any) | undefined;
|
|
69
81
|
onUpdatePhase?: ((payload: {
|
|
@@ -17,6 +17,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
isEditable: {
|
|
18
18
|
type: import("vue").PropType<boolean>;
|
|
19
19
|
};
|
|
20
|
+
mentionableUsers: {
|
|
21
|
+
type: import("vue").PropType<User[]>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
20
24
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
25
|
edit: (value: string) => void;
|
|
22
26
|
remove: (args_0: void) => void;
|
|
@@ -38,6 +42,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
38
42
|
isEditable: {
|
|
39
43
|
type: import("vue").PropType<boolean>;
|
|
40
44
|
};
|
|
45
|
+
mentionableUsers: {
|
|
46
|
+
type: import("vue").PropType<User[]>;
|
|
47
|
+
required: true;
|
|
48
|
+
};
|
|
41
49
|
}>> & {
|
|
42
50
|
onRemove?: ((args_0?: void | undefined) => any) | undefined;
|
|
43
51
|
onEdit?: ((value: string) => any) | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Milestone } from '../types';
|
|
1
|
+
import { type Milestone, type TimeTracking } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
3
|
id: {
|
|
4
4
|
type: import("vue").PropType<string>;
|
|
@@ -25,6 +25,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
25
25
|
color: {
|
|
26
26
|
type: import("vue").PropType<string>;
|
|
27
27
|
};
|
|
28
|
+
timeTrackingData: {
|
|
29
|
+
type: import("vue").PropType<Record<string, TimeTracking>>;
|
|
30
|
+
};
|
|
31
|
+
estimationUnit: {
|
|
32
|
+
type: import("vue").PropType<string>;
|
|
33
|
+
};
|
|
28
34
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
35
|
'update:title': (v: string) => void;
|
|
30
36
|
'update:deadline': (v: string) => void;
|
|
@@ -64,6 +70,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
64
70
|
color: {
|
|
65
71
|
type: import("vue").PropType<string>;
|
|
66
72
|
};
|
|
73
|
+
timeTrackingData: {
|
|
74
|
+
type: import("vue").PropType<Record<string, TimeTracking>>;
|
|
75
|
+
};
|
|
76
|
+
estimationUnit: {
|
|
77
|
+
type: import("vue").PropType<string>;
|
|
78
|
+
};
|
|
67
79
|
}>> & {
|
|
68
80
|
"onUpdate:title"?: ((v: string) => any) | undefined;
|
|
69
81
|
onUpdatePhase?: ((payload: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Activity, type ActivityFeedStatus, type ActivityStatus, type ChangeFeedActivitiesPayload, type Id, type UpdateActivityPayload, User } from '../types';
|
|
1
|
+
import { type Activity, type ActivityFeedStatus, type ActivityStatus, type ChangeFeedActivitiesPayload, type Id, type StartTimerPayload, type UpdateActivityPayload, User } from '../types';
|
|
2
2
|
declare const _default: <T extends ActivityFeedStatus>(__VLS_props: {
|
|
3
3
|
list: Activity[];
|
|
4
4
|
status: ActivityStatus;
|
|
@@ -44,6 +44,7 @@ declare const _default: <T extends ActivityFeedStatus>(__VLS_props: {
|
|
|
44
44
|
id: Id;
|
|
45
45
|
}];
|
|
46
46
|
updateActivity: [input: UpdateActivityPayload];
|
|
47
|
+
startTimer: [payload: StartTimerPayload];
|
|
47
48
|
};
|
|
48
49
|
}, "slots" | "attrs" | "emit"> | undefined, __VLS_setup?: {
|
|
49
50
|
props: {
|
|
@@ -78,6 +79,7 @@ declare const _default: <T extends ActivityFeedStatus>(__VLS_props: {
|
|
|
78
79
|
id: Id;
|
|
79
80
|
}];
|
|
80
81
|
updateActivity: [input: UpdateActivityPayload];
|
|
82
|
+
startTimer: [payload: StartTimerPayload];
|
|
81
83
|
};
|
|
82
84
|
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
83
85
|
[key: string]: any;
|
|
@@ -115,6 +117,7 @@ declare const _default: <T extends ActivityFeedStatus>(__VLS_props: {
|
|
|
115
117
|
id: Id;
|
|
116
118
|
}];
|
|
117
119
|
updateActivity: [input: UpdateActivityPayload];
|
|
120
|
+
startTimer: [payload: StartTimerPayload];
|
|
118
121
|
};
|
|
119
122
|
} | undefined;
|
|
120
123
|
};
|
|
@@ -1,34 +1,18 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
-
modelValue: {
|
|
3
|
-
type: import("vue").PropType<string | string[] | null>;
|
|
4
|
-
};
|
|
5
2
|
detached: {
|
|
6
3
|
type: import("vue").PropType<boolean>;
|
|
7
4
|
};
|
|
8
5
|
appendTo: {
|
|
9
6
|
type: import("vue").PropType<string | HTMLElement>;
|
|
10
7
|
};
|
|
11
|
-
|
|
12
|
-
type: import("vue").PropType<boolean>;
|
|
13
|
-
};
|
|
14
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
-
"update:modelValue": (value: string | string[] | null) => void;
|
|
16
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
-
modelValue: {
|
|
18
|
-
type: import("vue").PropType<string | string[] | null>;
|
|
19
|
-
};
|
|
8
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
9
|
detached: {
|
|
21
10
|
type: import("vue").PropType<boolean>;
|
|
22
11
|
};
|
|
23
12
|
appendTo: {
|
|
24
13
|
type: import("vue").PropType<string | HTMLElement>;
|
|
25
14
|
};
|
|
26
|
-
|
|
27
|
-
type: import("vue").PropType<boolean>;
|
|
28
|
-
};
|
|
29
|
-
}>> & {
|
|
30
|
-
"onUpdate:modelValue"?: ((value: string | string[] | null) => any) | undefined;
|
|
31
|
-
}, {}, {}>, Partial<Record<NonNullable<string | number>, (_: any) => any>>>;
|
|
15
|
+
}>>, {}, {}>, Partial<Record<NonNullable<string | number>, (_: any) => any>>>;
|
|
32
16
|
export default _default;
|
|
33
17
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
34
18
|
new (): {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Phase, type AddMilestonePayload, type UpdatePhasePayload, type UpdateMilestonePayload, type ActivityStatus, type User } from '../types';
|
|
1
|
+
import { type Phase, type AddMilestonePayload, type UpdatePhasePayload, type UpdateMilestonePayload, type ActivityStatus, type User, type TimeTracking } from '../types';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
phase: {
|
|
4
4
|
type: import("vue").PropType<Phase>;
|
|
@@ -18,6 +18,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
readonly: {
|
|
19
19
|
type: import("vue").PropType<boolean>;
|
|
20
20
|
};
|
|
21
|
+
timeTrackingData: {
|
|
22
|
+
type: import("vue").PropType<Record<string, TimeTracking>>;
|
|
23
|
+
};
|
|
24
|
+
estimationUnit: {
|
|
25
|
+
type: import("vue").PropType<string>;
|
|
26
|
+
};
|
|
21
27
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
28
|
addMilestone: (payload: AddMilestonePayload) => void;
|
|
23
29
|
updateMilestone: (payload: UpdateMilestonePayload) => void;
|
|
@@ -53,6 +59,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
53
59
|
readonly: {
|
|
54
60
|
type: import("vue").PropType<boolean>;
|
|
55
61
|
};
|
|
62
|
+
timeTrackingData: {
|
|
63
|
+
type: import("vue").PropType<Record<string, TimeTracking>>;
|
|
64
|
+
};
|
|
65
|
+
estimationUnit: {
|
|
66
|
+
type: import("vue").PropType<string>;
|
|
67
|
+
};
|
|
56
68
|
}>> & {
|
|
57
69
|
onAddMilestone?: ((payload: AddMilestonePayload) => any) | undefined;
|
|
58
70
|
onUpdateMilestone?: ((payload: UpdateMilestonePayload) => any) | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ActivityStatus, type AddMilestonePayload, type AddPhasePayload, type Phase, type UpdateMilestonePayload, type UpdatePhasePayload, type User } from '../types';
|
|
1
|
+
import { type ActivityStatus, type AddMilestonePayload, type AddPhasePayload, type Phase, type UpdateMilestonePayload, type UpdatePhasePayload, type User, type TimeTracking } from '../types';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
phases: {
|
|
4
4
|
type: import("vue").PropType<Phase[]>;
|
|
@@ -18,6 +18,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
readonly: {
|
|
19
19
|
type: import("vue").PropType<boolean>;
|
|
20
20
|
};
|
|
21
|
+
timeTrackingData: {
|
|
22
|
+
type: import("vue").PropType<Record<string, TimeTracking>>;
|
|
23
|
+
};
|
|
24
|
+
estimationUnit: {
|
|
25
|
+
type: import("vue").PropType<string>;
|
|
26
|
+
};
|
|
21
27
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
28
|
addMilestone: (payload: AddMilestonePayload) => void;
|
|
23
29
|
updateMilestone: (payload: UpdateMilestonePayload) => void;
|
|
@@ -54,6 +60,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
60
|
readonly: {
|
|
55
61
|
type: import("vue").PropType<boolean>;
|
|
56
62
|
};
|
|
63
|
+
timeTrackingData: {
|
|
64
|
+
type: import("vue").PropType<Record<string, TimeTracking>>;
|
|
65
|
+
};
|
|
66
|
+
estimationUnit: {
|
|
67
|
+
type: import("vue").PropType<string>;
|
|
68
|
+
};
|
|
57
69
|
}>> & {
|
|
58
70
|
onAddMilestone?: ((payload: AddMilestonePayload) => any) | undefined;
|
|
59
71
|
onUpdateMilestone?: ((payload: UpdateMilestonePayload) => any) | undefined;
|
package/dist/src/helpers.d.ts
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
import { type Activity, type ActivityStatus, type Milestone, MilestoneStatus, Ordered, type Phase, User } from './types';
|
|
2
|
-
import { DraggableChangeEvent } from './types/utils';
|
|
1
|
+
import { type Activity, type ActivityStatus, type Milestone, type MilestoneStatus, type Ordered, type Phase, type User, type Id } from './types';
|
|
2
|
+
import { type DraggableChangeEvent } from './types/utils';
|
|
3
|
+
import { type Ref } from 'vue';
|
|
4
|
+
/**
|
|
5
|
+
* Formats minutes into a human-readable time format
|
|
6
|
+
* @param minutes - Time in minutes
|
|
7
|
+
* @param unit - string ('hours' or 'days')
|
|
8
|
+
* @returns Formatted string like "30m", "1h 15m", "4h", "1d 2h", etc.
|
|
9
|
+
*/
|
|
10
|
+
export declare function formatTimeSpent(minutes: number, unit?: string): string;
|
|
11
|
+
/**
|
|
12
|
+
* Gets the unit suffix for display ('h' for hours, 'd' for days)
|
|
13
|
+
* @param unit - string ('hours' or 'days')
|
|
14
|
+
* @returns Unit abbreviation
|
|
15
|
+
*/
|
|
16
|
+
export declare function getUnitSuffix(unit?: string): string;
|
|
3
17
|
export declare function sumPhaseActivitiesAmount(milestones: Milestone[]): number;
|
|
4
18
|
export declare function sumTemplateMilestonesAmount(phases: Phase[]): number;
|
|
5
19
|
export declare function sumTemplateActivitiesAmount(phases: Phase[]): number;
|
|
@@ -14,3 +28,19 @@ export declare function milestoneWithStatus(milestone: Milestone, closedStatus:
|
|
|
14
28
|
};
|
|
15
29
|
export declare const getUserName: (user: User | undefined | null) => string;
|
|
16
30
|
export declare function lightenColor(color: string, alpha?: number): string;
|
|
31
|
+
export declare function useMentions(textareaRef: Ref<HTMLTextAreaElement | null | undefined>, messageModel: Ref<string>, allUsers: Ref<User[]>): {
|
|
32
|
+
showMentionList: Ref<boolean>;
|
|
33
|
+
mentionListPosition: Ref<{
|
|
34
|
+
top: number;
|
|
35
|
+
left: number;
|
|
36
|
+
}>;
|
|
37
|
+
filteredUsers: import("vue").ComputedRef<{
|
|
38
|
+
id: string;
|
|
39
|
+
name: string;
|
|
40
|
+
}[]>;
|
|
41
|
+
mentionQuery: Ref<string>;
|
|
42
|
+
handleInput: (event: Event) => void;
|
|
43
|
+
handleKeydown: (event: KeyboardEvent) => void;
|
|
44
|
+
selectUserMention: (name: string) => void;
|
|
45
|
+
getMentionedUserIds: (message: string) => Id[];
|
|
46
|
+
};
|
package/dist/src/main.d.ts
CHANGED
|
@@ -9,5 +9,7 @@ export { default as AoInputField } from './components/AoInputField.vue';
|
|
|
9
9
|
export { default as AoCheckboxField } from './components/AoCheckboxField.vue';
|
|
10
10
|
export { default as AoMultiselect } from './components/AoMultiselect.vue';
|
|
11
11
|
export { default as AoAvatar } from './components/AoAvatar.vue';
|
|
12
|
+
export { default as AoColorPicker } from './components/AoColorPicker.vue';
|
|
13
|
+
export { default as AoTabBar } from './components/AoTabBar.vue';
|
|
12
14
|
export { default as AoCardFeed } from './components/AoCardFeed.vue';
|
|
13
15
|
export { default as AoProjectPhases } from './components/AoProjectPhases.vue';
|
|
@@ -273,6 +273,13 @@ export interface AddSubtaskPayload {
|
|
|
273
273
|
activityId: Id;
|
|
274
274
|
name: string;
|
|
275
275
|
}
|
|
276
|
+
export interface StartTimerPayload {
|
|
277
|
+
activityId: Id;
|
|
278
|
+
activityName: string;
|
|
279
|
+
project?: string;
|
|
280
|
+
projectId?: string;
|
|
281
|
+
activitySlug?: string;
|
|
282
|
+
}
|
|
276
283
|
export interface UpdateActivityPayload {
|
|
277
284
|
id: Id;
|
|
278
285
|
name?: string;
|
|
@@ -363,7 +370,12 @@ export type Project = {
|
|
|
363
370
|
name?: string;
|
|
364
371
|
phases?: Phase[];
|
|
365
372
|
architectureImage?: Image;
|
|
373
|
+
estimationUnit: EstimationUnit;
|
|
366
374
|
};
|
|
375
|
+
export declare enum EstimationUnit {
|
|
376
|
+
HOURS = "hours",
|
|
377
|
+
DAYS = "days"
|
|
378
|
+
}
|
|
367
379
|
export type Image = {
|
|
368
380
|
url: string;
|
|
369
381
|
name: string;
|
|
@@ -445,10 +457,12 @@ export type AddCommentPayload = {
|
|
|
445
457
|
activityId: Id;
|
|
446
458
|
authorId: Id;
|
|
447
459
|
message: string;
|
|
460
|
+
mentionedUserIds: Id[];
|
|
448
461
|
};
|
|
449
462
|
export type UpdateCommentPayload = {
|
|
450
463
|
id: Id;
|
|
451
464
|
message: string;
|
|
465
|
+
mentionedUserIds: Id[];
|
|
452
466
|
};
|
|
453
467
|
export type RemoveCommentPayload = {
|
|
454
468
|
id: Id;
|
|
@@ -462,3 +476,6 @@ export type SaveTemplatePayload = {
|
|
|
462
476
|
rank: Id;
|
|
463
477
|
phaseIds: Id[];
|
|
464
478
|
};
|
|
479
|
+
export type TimeTracking = {
|
|
480
|
+
timeSpent: number;
|
|
481
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { TimeTracking } from '../types';
|
|
2
|
+
import { type Activity, type ActivityStatus, type ActivityType, type AddActivityFeedPayload, type AddCommentPayload, type AddFilesPayload, type AddSubtaskPayload, type ChangeFeedActivitiesPayload, type FeedFilters, type Project, type RemoveCommentPayload, type RemoveFilePayload, type StartTimerPayload, type Subtask, type UpdateActivityPayload, type UpdateCommentPayload, type UpdateSubtaskFieldPayload, type User } from '../types';
|
|
2
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
4
|
filters: {
|
|
4
5
|
type: import("vue").PropType<FeedFilters>;
|
|
@@ -50,6 +51,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
50
51
|
projects: {
|
|
51
52
|
type: import("vue").PropType<Project[]>;
|
|
52
53
|
};
|
|
54
|
+
timeTrackingData: {
|
|
55
|
+
type: import("vue").PropType<Record<string, TimeTracking>>;
|
|
56
|
+
};
|
|
53
57
|
selectedActivity: {
|
|
54
58
|
type: import("vue").PropType<Activity>;
|
|
55
59
|
};
|
|
@@ -95,6 +99,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
95
99
|
updateComment: (payload: UpdateCommentPayload) => void;
|
|
96
100
|
removeComment: (payload: RemoveCommentPayload) => void;
|
|
97
101
|
toast: (message: string, type: "success" | "error") => void;
|
|
102
|
+
startTimer: (payload: StartTimerPayload) => void;
|
|
98
103
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
99
104
|
filters: {
|
|
100
105
|
type: import("vue").PropType<FeedFilters>;
|
|
@@ -146,6 +151,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
146
151
|
projects: {
|
|
147
152
|
type: import("vue").PropType<Project[]>;
|
|
148
153
|
};
|
|
154
|
+
timeTrackingData: {
|
|
155
|
+
type: import("vue").PropType<Record<string, TimeTracking>>;
|
|
156
|
+
};
|
|
149
157
|
selectedActivity: {
|
|
150
158
|
type: import("vue").PropType<Activity>;
|
|
151
159
|
};
|
|
@@ -164,6 +172,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
164
172
|
required: true;
|
|
165
173
|
};
|
|
166
174
|
}>> & {
|
|
175
|
+
onStartTimer?: ((payload: StartTimerPayload) => any) | undefined;
|
|
167
176
|
onSelectActivity?: ((activityId: string | null, activitySlug: string | null) => any) | undefined;
|
|
168
177
|
onArchiveActivity?: ((payload: {
|
|
169
178
|
id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Activity, type UpdateActivityPayload, type AddSubtaskPayload, type AddCommentPayload, type UpdateCommentPayload, type RemoveCommentPayload, type Subtask, type ActivityStatus, type Phase, type User, type ActivityType, type UpdateSubtaskFieldPayload, type AddFilesPayload, type RemoveFilePayload, type Project } from '../types';
|
|
1
|
+
import { type Activity, type UpdateActivityPayload, type AddSubtaskPayload, type AddCommentPayload, type UpdateCommentPayload, type RemoveCommentPayload, type Subtask, type ActivityStatus, type Phase, type User, type ActivityType, type UpdateSubtaskFieldPayload, type AddFilesPayload, type RemoveFilePayload, type Project, type TimeTracking } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
3
|
phaseId: {
|
|
4
4
|
type: import("vue").PropType<string>;
|
|
@@ -50,6 +50,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
50
50
|
type: import("vue").PropType<boolean>;
|
|
51
51
|
required: true;
|
|
52
52
|
};
|
|
53
|
+
timeTrackingData: {
|
|
54
|
+
type: import("vue").PropType<Record<string, TimeTracking>>;
|
|
55
|
+
};
|
|
53
56
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
54
57
|
'update:activity': (payload: UpdateActivityPayload) => void;
|
|
55
58
|
addSubtask: (payload: AddSubtaskPayload) => void;
|
|
@@ -113,6 +116,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
113
116
|
type: import("vue").PropType<boolean>;
|
|
114
117
|
required: true;
|
|
115
118
|
};
|
|
119
|
+
timeTrackingData: {
|
|
120
|
+
type: import("vue").PropType<Record<string, TimeTracking>>;
|
|
121
|
+
};
|
|
116
122
|
}>> & {
|
|
117
123
|
onUpdateComment?: ((payload: UpdateCommentPayload) => any) | undefined;
|
|
118
124
|
onRemoveComment?: ((payload: RemoveCommentPayload) => any) | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ActivityStatus, type AddActivityPayload, type Phase, type UpdateActivityPayload, type UpdateMilestonePayload, type User } from '../types';
|
|
1
|
+
import { type ActivityStatus, type AddActivityPayload, type Phase, type StartTimerPayload, type UpdateActivityPayload, type UpdateMilestonePayload, type User, type TimeTracking } from '../types';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
milestoneId: {
|
|
4
4
|
type: import("vue").PropType<string>;
|
|
@@ -26,6 +26,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
type: import("vue").PropType<ActivityStatus>;
|
|
27
27
|
required: true;
|
|
28
28
|
};
|
|
29
|
+
timeTrackingData: {
|
|
30
|
+
type: import("vue").PropType<Record<string, TimeTracking>>;
|
|
31
|
+
};
|
|
29
32
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
33
|
close: (e: Event) => void;
|
|
31
34
|
addActivity: (args_0: AddActivityPayload) => void;
|
|
@@ -37,6 +40,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
40
|
unarchiveActivity: (payload: {
|
|
38
41
|
id: string;
|
|
39
42
|
}) => void;
|
|
43
|
+
startTimer: (payload: StartTimerPayload) => void;
|
|
40
44
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
41
45
|
milestoneId: {
|
|
42
46
|
type: import("vue").PropType<string>;
|
|
@@ -64,9 +68,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
64
68
|
type: import("vue").PropType<ActivityStatus>;
|
|
65
69
|
required: true;
|
|
66
70
|
};
|
|
71
|
+
timeTrackingData: {
|
|
72
|
+
type: import("vue").PropType<Record<string, TimeTracking>>;
|
|
73
|
+
};
|
|
67
74
|
}>> & {
|
|
68
75
|
onClose?: ((e: Event) => any) | undefined;
|
|
69
76
|
onUpdateActivity?: ((args_0: UpdateActivityPayload) => any) | undefined;
|
|
77
|
+
onStartTimer?: ((payload: StartTimerPayload) => any) | undefined;
|
|
70
78
|
onArchiveActivity?: ((payload: {
|
|
71
79
|
id: string;
|
|
72
80
|
}) => any) | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Project, type User, type AddActivityPayload, type UpdateActivityPayload, type AddSubtaskPayload, type AddFilesPayload, type RemoveFilePayload, type AddCommentPayload, type UpdateCommentPayload, type RemoveCommentPayload, type AddPhasePayload, type AddMilestonePayload, type Phase, type ApplyTemplatePayload, type UpdatePhasePayload, type UpdateMilestonePayload, type Subtask, type ActivityStatus, type UpdateSubtaskFieldPayload, type Activity, type ActivityType, type SaveTemplatePayload } from '../types';
|
|
1
|
+
import { type Project, type User, type AddActivityPayload, type UpdateActivityPayload, type AddSubtaskPayload, type AddFilesPayload, type RemoveFilePayload, type AddCommentPayload, type UpdateCommentPayload, type RemoveCommentPayload, type AddPhasePayload, type AddMilestonePayload, type Phase, type ApplyTemplatePayload, type UpdatePhasePayload, type UpdateMilestonePayload, type Subtask, type ActivityStatus, type UpdateSubtaskFieldPayload, type Activity, type ActivityType, type SaveTemplatePayload, type TimeTracking } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
3
|
project: {
|
|
4
4
|
type: import("vue").PropType<Project>;
|
|
@@ -50,6 +50,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
50
50
|
type: import("vue").PropType<boolean>;
|
|
51
51
|
required: true;
|
|
52
52
|
};
|
|
53
|
+
timeTrackingData: {
|
|
54
|
+
type: import("vue").PropType<Record<string, TimeTracking>>;
|
|
55
|
+
};
|
|
53
56
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
54
57
|
addPhase: (payload: AddPhasePayload) => void;
|
|
55
58
|
updatePhase: (payload: UpdatePhasePayload) => void;
|
|
@@ -142,6 +145,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
142
145
|
type: import("vue").PropType<boolean>;
|
|
143
146
|
required: true;
|
|
144
147
|
};
|
|
148
|
+
timeTrackingData: {
|
|
149
|
+
type: import("vue").PropType<Record<string, TimeTracking>>;
|
|
150
|
+
};
|
|
145
151
|
}>> & {
|
|
146
152
|
onArchiveActivity?: ((payload: {
|
|
147
153
|
id: string;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "CC-BY-NC-ND-4.0",
|
|
6
6
|
"author": "26lights <dev@26lights.com> (https://www.26lights.com)",
|
|
7
|
-
"version": "0.42.
|
|
7
|
+
"version": "0.42.34",
|
|
8
8
|
"workspaces": [
|
|
9
9
|
"packages/*"
|
|
10
10
|
],
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"vuedraggable": "~4.1.0"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@26lights/orcha": "^0.
|
|
31
|
+
"@26lights/orcha": "^2.0.3",
|
|
32
32
|
"@floating-ui/dom": "^1.5.3",
|
|
33
33
|
"@vueform/multiselect": "^2.6.6",
|
|
34
34
|
"@vueuse/core": "^10.8.0",
|