@26lights/orcha 0.3.2 → 0.4.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/dist/locales/en/translation.json +21 -1
- package/dist/orcha.cjs.js +1 -1
- package/dist/orcha.css +1 -1
- package/dist/orcha.es.js +2504 -2068
- package/dist/orcha.umd.js +2 -2
- package/dist/src/components/AoActivityDetails.vue.d.ts +15 -1
- package/dist/src/components/AoActivityDetailsComments.vue.d.ts +47 -0
- package/dist/src/components/AoActivityDetailsFiles.vue.d.ts +21 -0
- package/dist/src/components/AoActivitySubtasks.vue.d.ts +43 -0
- package/dist/src/components/AoButton.vue.d.ts +0 -3
- package/dist/src/components/AoCard.vue.d.ts +29 -0
- package/dist/src/components/AoCardFeed.vue.d.ts +94 -0
- package/dist/src/components/AoCardHoriz.vue.d.ts +9 -8
- package/dist/src/components/AoCardProjectItemMilestone.vue.d.ts +32 -0
- package/dist/src/components/AoCardProjectItemPhase.vue.d.ts +38 -0
- package/dist/src/components/AoCardTemplateItem.vue.d.ts +2 -0
- package/dist/src/components/AoComment.vue.d.ts +45 -0
- package/dist/src/components/AoProgress.vue.d.ts +19 -0
- package/dist/src/components/AoProjectPhase.vue.d.ts +23 -0
- package/dist/src/components/AoRuleLine.vue.d.ts +8 -8
- package/dist/src/components/AoTemplateDetailsActivities.vue.d.ts +4 -2
- package/dist/src/components/AoTemplateDetailsMilestones.vue.d.ts +6 -4
- package/dist/src/composables/useFeedStore.d.ts +11 -6
- package/dist/src/composables/useIsEditing.d.ts +8 -0
- package/dist/src/composables/useProjectOverviewStore.d.ts +17 -0
- package/dist/src/main.d.ts +1 -1
- package/dist/src/router/routes.d.ts +7 -1
- package/dist/src/types/index.d.ts +158 -36
- package/dist/src/views/AoProjectOverviewActivityDetails.vue.d.ts +61 -0
- package/dist/src/views/AoProjectOverviewMilestoneDetails.vue.d.ts +53 -0
- package/dist/src/views/AoProjectOverviewProject.vue.d.ts +51 -0
- package/dist/src/views/AoTemplateDetails.vue.d.ts +11 -7
- package/package.json +1 -1
|
@@ -3,33 +3,39 @@ import { type ActivityFeed, type Id } from '../types';
|
|
|
3
3
|
export declare function useFeedStore(): {
|
|
4
4
|
init: (activities: MaybeRef<ActivityFeed[]>) => void;
|
|
5
5
|
activities: import("vue").Ref<{
|
|
6
|
-
feedStatus: "done" | "future" | "this_month" | "this_week" | "today";
|
|
7
6
|
projectId?: string | undefined;
|
|
8
|
-
projectName?: string | undefined;
|
|
9
|
-
phaseId?: string | undefined;
|
|
10
7
|
milestoneId?: string | undefined;
|
|
8
|
+
phaseId?: string | undefined;
|
|
9
|
+
projectName?: string | undefined;
|
|
11
10
|
endDate?: string | undefined;
|
|
12
11
|
assignees?: string[] | undefined;
|
|
13
12
|
comments?: {
|
|
14
13
|
userId: string;
|
|
15
14
|
content: string;
|
|
16
15
|
createdAt: string;
|
|
16
|
+
editedAt?: string | undefined;
|
|
17
17
|
__typename: string;
|
|
18
18
|
id: string;
|
|
19
19
|
}[] | undefined;
|
|
20
20
|
attachments?: {
|
|
21
21
|
createdAt: string;
|
|
22
|
+
name: string;
|
|
23
|
+
size: number;
|
|
24
|
+
lastModified: number;
|
|
25
|
+
type: string;
|
|
22
26
|
url: string;
|
|
23
|
-
extension: string;
|
|
24
|
-
__typename: string;
|
|
25
27
|
id: string;
|
|
28
|
+
__typename: string;
|
|
26
29
|
}[] | undefined;
|
|
27
30
|
status?: import('../types').ActivityStatus | undefined;
|
|
31
|
+
feedStatus: "done" | "future" | "this_month" | "this_week" | "today";
|
|
32
|
+
id: string;
|
|
28
33
|
order: number;
|
|
29
34
|
name?: string | undefined;
|
|
30
35
|
subtasks?: {
|
|
31
36
|
name?: string | undefined;
|
|
32
37
|
status?: import('../types').ActivityStatus | undefined;
|
|
38
|
+
assignees?: string[] | undefined;
|
|
33
39
|
__typename: string;
|
|
34
40
|
id: string;
|
|
35
41
|
rank: string;
|
|
@@ -42,7 +48,6 @@ export declare function useFeedStore(): {
|
|
|
42
48
|
dependingMilestones?: string[] | undefined;
|
|
43
49
|
type?: string | undefined;
|
|
44
50
|
__typename: string;
|
|
45
|
-
id: string;
|
|
46
51
|
rank: string;
|
|
47
52
|
}[]>;
|
|
48
53
|
selectedActivity: import("vue").ComputedRef<ActivityFeed<import('../types').ActivityFeedStatus> | undefined>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
export default function useIsEditing(target: Ref<HTMLElement | null>): {
|
|
3
|
+
isEditing: Ref<boolean>;
|
|
4
|
+
setIsEditing: (v: boolean) => void;
|
|
5
|
+
toggleIsEditing: () => void;
|
|
6
|
+
onUpdate: (cb?: ((v: string) => void) | undefined) => (e: event) => void;
|
|
7
|
+
onDiscard: (cb?: () => void) => (e: Event) => void;
|
|
8
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type MaybeRef } from 'vue';
|
|
2
|
+
import { type User, type Id } from '../types';
|
|
3
|
+
type InitUseProjectOverviewStorePayload = {
|
|
4
|
+
users: MaybeRef<User[]>;
|
|
5
|
+
userId: MaybeRef<Id>;
|
|
6
|
+
};
|
|
7
|
+
export default function useProjectOverviewStore(): {
|
|
8
|
+
init: (initPayload: InitUseProjectOverviewStorePayload) => void;
|
|
9
|
+
users: import("vue").Ref<{
|
|
10
|
+
id: string;
|
|
11
|
+
firstName?: string | undefined;
|
|
12
|
+
lastName?: string | undefined;
|
|
13
|
+
picture?: string | undefined;
|
|
14
|
+
}[]>;
|
|
15
|
+
userId: import("vue").Ref<string>;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
package/dist/src/main.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as AoTemplates } from './views/AoTemplates.vue';
|
|
2
2
|
export { default as AoTemplatesList } from './views/AoTemplatesList.vue';
|
|
3
3
|
export { default as AoTemplateDetails } from './views/AoTemplateDetails.vue';
|
|
4
|
-
export { getTemplateRoutes, routeNames } from './router/routes';
|
|
4
|
+
export { getTemplateRoutes, templateRouteNames as routeNames } from './router/routes';
|
|
5
5
|
export * from './types';
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { type RouteRecordRaw } from 'vue-router';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const templateRouteNames: {
|
|
3
3
|
TEMPLATES: string;
|
|
4
4
|
TEMPLATE_DETAILS: string;
|
|
5
5
|
TEMPLATES_LIST: string;
|
|
6
6
|
};
|
|
7
7
|
export declare const getTemplateRoutes: (rootPath: string, baseRoute?: Partial<RouteRecordRaw>) => RouteRecordRaw[];
|
|
8
|
+
export declare const projectOverviewRoutes: {
|
|
9
|
+
project: string;
|
|
10
|
+
milestone: string;
|
|
11
|
+
activity: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const getProjectOverviewRoutes: (rootPath: string, baseRoute?: Partial<RouteRecordRaw>) => RouteRecordRaw[];
|
|
@@ -7,6 +7,9 @@ export interface Entity {
|
|
|
7
7
|
export interface Ordered {
|
|
8
8
|
rank: string;
|
|
9
9
|
}
|
|
10
|
+
export interface ActivityType extends Entity {
|
|
11
|
+
name: string;
|
|
12
|
+
}
|
|
10
13
|
export interface TemplateDetails extends Entity, Ordered {
|
|
11
14
|
name?: string;
|
|
12
15
|
phases: Phase[];
|
|
@@ -20,12 +23,34 @@ export interface Phase extends Entity, Ordered {
|
|
|
20
23
|
milestones: Milestone[];
|
|
21
24
|
order: number;
|
|
22
25
|
}
|
|
26
|
+
export interface PhaseProject {
|
|
27
|
+
id: Id;
|
|
28
|
+
name?: string;
|
|
29
|
+
milestones?: MilestoneProject[];
|
|
30
|
+
order: number;
|
|
31
|
+
}
|
|
32
|
+
export declare const milestoneStatus: {
|
|
33
|
+
readonly todo: "todo";
|
|
34
|
+
readonly done: "done";
|
|
35
|
+
readonly archived: "archived";
|
|
36
|
+
};
|
|
37
|
+
export type MilestoneStatusKeys = keyof typeof milestoneStatus;
|
|
38
|
+
export type MilestoneStatus = (typeof milestoneStatus)[ActivityStatusKeys];
|
|
23
39
|
export interface Milestone extends Entity, Ordered {
|
|
24
40
|
order: number;
|
|
25
41
|
name?: string;
|
|
26
42
|
activities: Activity[];
|
|
43
|
+
status?: MilestoneStatus;
|
|
44
|
+
}
|
|
45
|
+
export interface MilestoneProject extends Entity, Ordered {
|
|
46
|
+
id: Id;
|
|
47
|
+
order: number;
|
|
48
|
+
name?: string;
|
|
49
|
+
activities?: ActivityProject[];
|
|
50
|
+
status?: MilestoneStatus;
|
|
27
51
|
}
|
|
28
52
|
export interface ActivityBase extends Entity, Ordered {
|
|
53
|
+
id: Id;
|
|
29
54
|
order: number;
|
|
30
55
|
name?: string;
|
|
31
56
|
subtasks?: Subtask[];
|
|
@@ -36,6 +61,8 @@ export interface ActivityBase extends Entity, Ordered {
|
|
|
36
61
|
blocking?: Id[];
|
|
37
62
|
dependingMilestones?: Id[];
|
|
38
63
|
type?: string;
|
|
64
|
+
assignees?: Id[];
|
|
65
|
+
attachments?: Attachment[];
|
|
39
66
|
}
|
|
40
67
|
export declare const durationTypes: {
|
|
41
68
|
readonly months: "months";
|
|
@@ -49,33 +76,49 @@ export interface Activity extends ActivityBase {
|
|
|
49
76
|
durationType?: DurationTypes;
|
|
50
77
|
}
|
|
51
78
|
export interface ActivityProject extends ActivityBase {
|
|
52
|
-
projectId
|
|
79
|
+
projectId: Id;
|
|
53
80
|
projectName?: string;
|
|
54
|
-
|
|
81
|
+
milestoneId: Id;
|
|
82
|
+
phaseId: Id;
|
|
83
|
+
endDate?: string;
|
|
84
|
+
comments?: Comment[];
|
|
85
|
+
attachments?: Attachment[];
|
|
86
|
+
status?: ActivityStatus;
|
|
87
|
+
}
|
|
88
|
+
export interface ActivityFeed<K extends ActivityFeedStatus = ActivityFeedStatus> extends ActivityBase {
|
|
89
|
+
projectId: Id;
|
|
55
90
|
milestoneId?: Id;
|
|
91
|
+
phaseId?: Id;
|
|
92
|
+
projectName?: string;
|
|
56
93
|
endDate?: string;
|
|
57
94
|
assignees?: Id[];
|
|
58
95
|
comments?: Comment[];
|
|
59
96
|
attachments?: Attachment[];
|
|
60
97
|
status?: ActivityStatus;
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
export interface ActivityFeed<K extends ActivityFeedStatus = ActivityFeedStatus> extends ActivityProject {
|
|
98
|
+
projectId?: Id;
|
|
64
99
|
feedStatus: (typeof activityFeedStatus)[K];
|
|
65
100
|
}
|
|
66
101
|
export interface Subtask extends Entity, Ordered {
|
|
67
102
|
name?: string;
|
|
68
103
|
status?: ActivityStatus;
|
|
104
|
+
assignees?: Id[];
|
|
69
105
|
}
|
|
70
106
|
export interface Comment extends Entity {
|
|
71
107
|
userId: Id;
|
|
72
108
|
content: string;
|
|
73
109
|
createdAt: string;
|
|
110
|
+
editedAt?: string;
|
|
74
111
|
}
|
|
75
|
-
export interface
|
|
76
|
-
|
|
112
|
+
export interface FileLike extends Entity {
|
|
113
|
+
name: string;
|
|
114
|
+
size: number;
|
|
115
|
+
lastModified: number;
|
|
116
|
+
type: string;
|
|
77
117
|
url: string;
|
|
78
|
-
|
|
118
|
+
id: Id;
|
|
119
|
+
}
|
|
120
|
+
export interface Attachment extends FileLike {
|
|
121
|
+
createdAt: string;
|
|
79
122
|
}
|
|
80
123
|
export declare const activityStatus: {
|
|
81
124
|
readonly todo: "todo";
|
|
@@ -114,7 +157,7 @@ export type RuleDurationUnitKeys = keyof typeof ruleDurationUnits;
|
|
|
114
157
|
export type RuleDurationUnits = (typeof ruleDurationUnits)[RuleDurationUnitKeys];
|
|
115
158
|
export interface Rule {
|
|
116
159
|
id: Id;
|
|
117
|
-
|
|
160
|
+
itemType?: TemplateItemType;
|
|
118
161
|
subItemId?: Id;
|
|
119
162
|
comparator?: RuleComparator;
|
|
120
163
|
trigger?: RuleTriggerTypes;
|
|
@@ -134,14 +177,15 @@ export declare const templateItemType: {
|
|
|
134
177
|
readonly PHASES: "phases";
|
|
135
178
|
readonly MILESTONES: "milestones";
|
|
136
179
|
readonly ACTIVITIES: "activities";
|
|
180
|
+
readonly SUBTASKS: "subtasks";
|
|
137
181
|
};
|
|
138
|
-
export declare enum
|
|
182
|
+
export declare enum TemplateItemTypeEnum {
|
|
139
183
|
PHASES = "phases",
|
|
140
184
|
MILESTONES = "milestones",
|
|
141
185
|
ACTIVITIES = "activities"
|
|
142
186
|
}
|
|
143
|
-
export type
|
|
144
|
-
export type
|
|
187
|
+
export type TemplateItemTypeKeys = keyof typeof templateItemType;
|
|
188
|
+
export type TemplateItemType = (typeof templateItemType)[TemplateItemTypeKeys];
|
|
145
189
|
export interface UpdateTemplateDetailsPayload {
|
|
146
190
|
id: Id;
|
|
147
191
|
name?: string;
|
|
@@ -150,11 +194,12 @@ export interface UpdateTemplateDetailsPayload {
|
|
|
150
194
|
order?: number;
|
|
151
195
|
}
|
|
152
196
|
export interface AddItemPayload {
|
|
153
|
-
type:
|
|
197
|
+
type: TemplateItemType;
|
|
154
198
|
templateId: Id;
|
|
155
199
|
phaseId?: Id;
|
|
156
200
|
milestoneId?: Id;
|
|
157
|
-
|
|
201
|
+
activityId?: Id;
|
|
202
|
+
item: AddPhasePayload | AddMilestonePayload | AddActivityPayload | AddSubtaskPayload;
|
|
158
203
|
}
|
|
159
204
|
export interface AddPhasePayload {
|
|
160
205
|
name: string;
|
|
@@ -174,46 +219,63 @@ export interface UpdateMilestonePayload {
|
|
|
174
219
|
activities?: Activity[];
|
|
175
220
|
rules?: Rule[];
|
|
176
221
|
}
|
|
177
|
-
export interface UpdateItemPayload {
|
|
178
|
-
itemType:
|
|
222
|
+
export interface UpdateItemPayload<T extends TemplateItemType> {
|
|
223
|
+
itemType: T;
|
|
179
224
|
id: Id;
|
|
180
225
|
templateId: Id;
|
|
181
|
-
data:
|
|
182
|
-
}
|
|
183
|
-
export interface UpdateTemplatePayload {
|
|
184
|
-
name?: string;
|
|
185
|
-
rank?: Id;
|
|
226
|
+
data: UpdateItemPayloadDataTypes[T];
|
|
186
227
|
}
|
|
228
|
+
export type UpdateItemTemplatePayload = UpdateItemPayload<typeof templateItemType.TEMPLATES>;
|
|
229
|
+
export type UpdateItemActivityPayload = UpdateItemPayload<typeof templateItemType.ACTIVITIES>;
|
|
230
|
+
export type UpdateItemMilestonePayload = UpdateItemPayload<typeof templateItemType.MILESTONES>;
|
|
231
|
+
export type UpdateItemPhasePayload = UpdateItemPayload<typeof templateItemType.PHASES>;
|
|
187
232
|
export interface UpdatePhasePayload {
|
|
188
233
|
name?: string;
|
|
189
234
|
milestones?: Milestone[];
|
|
190
235
|
rules?: Rule[];
|
|
191
236
|
}
|
|
192
|
-
export interface UpdateMilestonePayload {
|
|
193
|
-
id: Id;
|
|
194
|
-
order: number;
|
|
195
|
-
phaseId: Id;
|
|
196
|
-
name?: string;
|
|
197
|
-
activities?: Activity[];
|
|
198
|
-
rules?: Rule[];
|
|
199
|
-
}
|
|
200
237
|
export type UpdateItemPayloadDataTypes = {
|
|
201
|
-
[
|
|
202
|
-
[
|
|
203
|
-
[
|
|
238
|
+
[TemplateItemTypeEnum.ACTIVITIES]: UpdateActivityPayload;
|
|
239
|
+
[TemplateItemTypeEnum.MILESTONES]: UpdateMilestonePayload;
|
|
240
|
+
[TemplateItemTypeEnum.PHASES]: UpdatePhasePayload;
|
|
204
241
|
};
|
|
205
|
-
export type UpdateItemPayloadData<T extends
|
|
242
|
+
export type UpdateItemPayloadData<T extends TemplateItemTypeEnum> = UpdateItemPayloadDataTypes[T];
|
|
206
243
|
export interface AddActivityPayload {
|
|
207
244
|
phaseId: Id;
|
|
208
245
|
milestoneId: Id;
|
|
209
246
|
name: string;
|
|
210
247
|
rank: Id;
|
|
211
248
|
}
|
|
249
|
+
export interface RemoveItemPayload {
|
|
250
|
+
type: TemplateItemType;
|
|
251
|
+
templateId: Id;
|
|
252
|
+
phaseId?: Id;
|
|
253
|
+
milestoneId?: Id;
|
|
254
|
+
activityId?: Id;
|
|
255
|
+
data: {
|
|
256
|
+
id: Id;
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
export interface RemoveMilestonePayload {
|
|
260
|
+
id: Id;
|
|
261
|
+
phaseId: Id;
|
|
262
|
+
}
|
|
263
|
+
export interface RemoveActivityPayload {
|
|
264
|
+
id: Id;
|
|
265
|
+
phaseId: Id;
|
|
266
|
+
milestoneId: Id;
|
|
267
|
+
}
|
|
268
|
+
export interface AddSubtaskPayload {
|
|
269
|
+
activityId: Id;
|
|
270
|
+
name: string;
|
|
271
|
+
rank: Id;
|
|
272
|
+
phaseId?: Id;
|
|
273
|
+
milestoneId?: Id;
|
|
274
|
+
}
|
|
212
275
|
export interface UpdateActivityPayload {
|
|
213
276
|
id: Id;
|
|
214
277
|
phaseId: Id;
|
|
215
278
|
milestoneId: Id;
|
|
216
|
-
order: number;
|
|
217
279
|
name?: string;
|
|
218
280
|
rules?: Rule[];
|
|
219
281
|
subtasks?: Subtask[];
|
|
@@ -239,6 +301,8 @@ export interface UpdateActivityFieldPayload {
|
|
|
239
301
|
type?: string;
|
|
240
302
|
status?: ActivityStatus;
|
|
241
303
|
endDate?: string;
|
|
304
|
+
assignees?: Id[];
|
|
305
|
+
attachments?: Attachment[];
|
|
242
306
|
}
|
|
243
307
|
export interface AddRulePayload {
|
|
244
308
|
templateId: Id;
|
|
@@ -307,6 +371,7 @@ export type AddFeedActivityPayload = {
|
|
|
307
371
|
export type Project = {
|
|
308
372
|
projectId: string;
|
|
309
373
|
projectName?: string;
|
|
374
|
+
phases?: Phase[];
|
|
310
375
|
};
|
|
311
376
|
export declare const feedFilters: {
|
|
312
377
|
readonly project: "project";
|
|
@@ -338,8 +403,65 @@ export type UdpateFeedActivityData = {
|
|
|
338
403
|
feedStatus: ActivityFeedStatus;
|
|
339
404
|
};
|
|
340
405
|
export type UpdateFeedActivityPayload = {
|
|
341
|
-
|
|
406
|
+
itemType: typeof templateItemType.ACTIVITIES;
|
|
342
407
|
id: Id;
|
|
343
|
-
projectId
|
|
408
|
+
projectId?: Id;
|
|
344
409
|
data: UdpateFeedActivityData;
|
|
345
410
|
};
|
|
411
|
+
export type UdpateProjectActivityData = {
|
|
412
|
+
id: Id;
|
|
413
|
+
phaseId: Id;
|
|
414
|
+
milestoneId: Id;
|
|
415
|
+
order: number;
|
|
416
|
+
name?: string;
|
|
417
|
+
rules?: Rule[];
|
|
418
|
+
subtasks?: Subtask[];
|
|
419
|
+
description?: string;
|
|
420
|
+
estimation?: number;
|
|
421
|
+
isImportant?: boolean;
|
|
422
|
+
dependingOn?: Id[];
|
|
423
|
+
blocking?: Id[];
|
|
424
|
+
dependingMilestones?: Id[];
|
|
425
|
+
type?: string;
|
|
426
|
+
};
|
|
427
|
+
export type UpdateProjectActivityPayload = {
|
|
428
|
+
itemType: typeof templateItemType.ACTIVITIES;
|
|
429
|
+
id: Id;
|
|
430
|
+
projectId: Id;
|
|
431
|
+
data: UdpateProjectActivityData;
|
|
432
|
+
};
|
|
433
|
+
export type UpdateSubtaskFieldPayload = {
|
|
434
|
+
id: Id;
|
|
435
|
+
name?: string;
|
|
436
|
+
assignees?: Id[];
|
|
437
|
+
status?: ActivityStatus;
|
|
438
|
+
};
|
|
439
|
+
export type MultiselectOption = {
|
|
440
|
+
label: string;
|
|
441
|
+
value: Id;
|
|
442
|
+
};
|
|
443
|
+
export type MultiselectOptionTagProps<T extends MultiselectOption = MultiselectOption> = {
|
|
444
|
+
option: T;
|
|
445
|
+
handleTagRemove: (option: T, e: Event) => void;
|
|
446
|
+
};
|
|
447
|
+
export type AddFilesPayload = {
|
|
448
|
+
activityId: Id;
|
|
449
|
+
files: File[];
|
|
450
|
+
};
|
|
451
|
+
export type RemoveFilePayload = {
|
|
452
|
+
activityId: Id;
|
|
453
|
+
file: Attachment;
|
|
454
|
+
};
|
|
455
|
+
export type AddCommentPayload = {
|
|
456
|
+
activityId: Id;
|
|
457
|
+
comment: string;
|
|
458
|
+
};
|
|
459
|
+
export type UpdateCommentPayload = {
|
|
460
|
+
activityId: Id;
|
|
461
|
+
id: Id;
|
|
462
|
+
content: string;
|
|
463
|
+
};
|
|
464
|
+
export type RemoveCommentPayload = {
|
|
465
|
+
activityId: Id;
|
|
466
|
+
id: Id;
|
|
467
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { type ActivityProject, type UpdateProjectActivityPayload, type AddSubtaskPayload, type AddCommentPayload, type UpdateCommentPayload, type RemoveCommentPayload } from '../types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
phaseId: {
|
|
4
|
+
type: import("vue").PropType<string>;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
milestoneId: {
|
|
8
|
+
type: import("vue").PropType<string>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
activityId: {
|
|
12
|
+
type: import("vue").PropType<string>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
activityTypes: {
|
|
16
|
+
type: import("vue").PropType<string[]>;
|
|
17
|
+
};
|
|
18
|
+
activities: {
|
|
19
|
+
type: import("vue").PropType<ActivityProject[]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
assigneesOptions: {
|
|
23
|
+
type: import("vue").PropType<Record<string, string>>;
|
|
24
|
+
};
|
|
25
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
+
'update:activity': (payload: UpdateProjectActivityPayload) => void;
|
|
27
|
+
addSubtask: (payload: AddSubtaskPayload) => void;
|
|
28
|
+
addComment: (payload: AddCommentPayload) => void;
|
|
29
|
+
updateComment: (payload: UpdateCommentPayload) => void;
|
|
30
|
+
removeComment: (payload: RemoveCommentPayload) => void;
|
|
31
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
|
+
phaseId: {
|
|
33
|
+
type: import("vue").PropType<string>;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
milestoneId: {
|
|
37
|
+
type: import("vue").PropType<string>;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
activityId: {
|
|
41
|
+
type: import("vue").PropType<string>;
|
|
42
|
+
required: true;
|
|
43
|
+
};
|
|
44
|
+
activityTypes: {
|
|
45
|
+
type: import("vue").PropType<string[]>;
|
|
46
|
+
};
|
|
47
|
+
activities: {
|
|
48
|
+
type: import("vue").PropType<ActivityProject[]>;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
assigneesOptions: {
|
|
52
|
+
type: import("vue").PropType<Record<string, string>>;
|
|
53
|
+
};
|
|
54
|
+
}>> & {
|
|
55
|
+
"onUpdate:activity"?: ((payload: UpdateProjectActivityPayload) => any) | undefined;
|
|
56
|
+
onAddSubtask?: ((payload: AddSubtaskPayload) => any) | undefined;
|
|
57
|
+
onUpdateComment?: ((payload: UpdateCommentPayload) => any) | undefined;
|
|
58
|
+
onRemoveComment?: ((payload: RemoveCommentPayload) => any) | undefined;
|
|
59
|
+
onAddComment?: ((payload: AddCommentPayload) => any) | undefined;
|
|
60
|
+
}, {}, {}>;
|
|
61
|
+
export default _default;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type MilestoneProject, type User, type AddActivityPayload } from '../types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
phaseId: {
|
|
4
|
+
type: import("vue").PropType<string>;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
milestoneId: {
|
|
8
|
+
type: import("vue").PropType<string>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
users: {
|
|
12
|
+
type: import("vue").PropType<User[]>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
milestones: {
|
|
16
|
+
type: import("vue").PropType<MilestoneProject[]>;
|
|
17
|
+
};
|
|
18
|
+
projectName: {
|
|
19
|
+
type: import("vue").PropType<string>;
|
|
20
|
+
};
|
|
21
|
+
phaseName: {
|
|
22
|
+
type: import("vue").PropType<string>;
|
|
23
|
+
};
|
|
24
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
close: (e: Event) => void;
|
|
26
|
+
addActivity: (args_0: AddActivityPayload) => void;
|
|
27
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
phaseId: {
|
|
29
|
+
type: import("vue").PropType<string>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
milestoneId: {
|
|
33
|
+
type: import("vue").PropType<string>;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
users: {
|
|
37
|
+
type: import("vue").PropType<User[]>;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
milestones: {
|
|
41
|
+
type: import("vue").PropType<MilestoneProject[]>;
|
|
42
|
+
};
|
|
43
|
+
projectName: {
|
|
44
|
+
type: import("vue").PropType<string>;
|
|
45
|
+
};
|
|
46
|
+
phaseName: {
|
|
47
|
+
type: import("vue").PropType<string>;
|
|
48
|
+
};
|
|
49
|
+
}>> & {
|
|
50
|
+
onClose?: ((e: Event) => any) | undefined;
|
|
51
|
+
onAddActivity?: ((args_0: AddActivityPayload) => any) | undefined;
|
|
52
|
+
}, {}, {}>;
|
|
53
|
+
export default _default;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type PhaseProject, type Project, type User, type AddActivityPayload, type UpdateProjectActivityPayload, type AddSubtaskPayload, type AddFilesPayload, type RemoveFilePayload, type AddCommentPayload, type UpdateCommentPayload, type RemoveCommentPayload } from '../types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
project: {
|
|
4
|
+
type: import("vue").PropType<Project>;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
phases: {
|
|
8
|
+
type: import("vue").PropType<PhaseProject[]>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
users: {
|
|
12
|
+
type: import("vue").PropType<User[]>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
addPhase: (args_0: void) => void;
|
|
17
|
+
addMilestone: (phaseId: string) => void;
|
|
18
|
+
addActivity: (payload: AddActivityPayload) => void;
|
|
19
|
+
'update:activity': (payload: UpdateProjectActivityPayload) => void;
|
|
20
|
+
addSubtask: (payload: AddSubtaskPayload) => void;
|
|
21
|
+
addFiles: (payload: AddFilesPayload) => void;
|
|
22
|
+
removeFile: (payload: RemoveFilePayload) => void;
|
|
23
|
+
addComment: (payload: AddCommentPayload) => void;
|
|
24
|
+
updateComment: (payload: UpdateCommentPayload) => void;
|
|
25
|
+
removeComment: (payload: RemoveCommentPayload) => void;
|
|
26
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
+
project: {
|
|
28
|
+
type: import("vue").PropType<Project>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
phases: {
|
|
32
|
+
type: import("vue").PropType<PhaseProject[]>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
users: {
|
|
36
|
+
type: import("vue").PropType<User[]>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
}>> & {
|
|
40
|
+
onRemoveFile?: ((payload: RemoveFilePayload) => any) | undefined;
|
|
41
|
+
"onUpdate:activity"?: ((payload: UpdateProjectActivityPayload) => any) | undefined;
|
|
42
|
+
onAddSubtask?: ((payload: AddSubtaskPayload) => any) | undefined;
|
|
43
|
+
onAddFiles?: ((payload: AddFilesPayload) => any) | undefined;
|
|
44
|
+
onUpdateComment?: ((payload: UpdateCommentPayload) => any) | undefined;
|
|
45
|
+
onRemoveComment?: ((payload: RemoveCommentPayload) => any) | undefined;
|
|
46
|
+
onAddActivity?: ((payload: AddActivityPayload) => any) | undefined;
|
|
47
|
+
onAddComment?: ((payload: AddCommentPayload) => any) | undefined;
|
|
48
|
+
onAddMilestone?: ((phaseId: string) => any) | undefined;
|
|
49
|
+
onAddPhase?: ((args_0?: void | undefined) => any) | undefined;
|
|
50
|
+
}, {}, {}>;
|
|
51
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type TemplateDetails, type
|
|
1
|
+
import { type TemplateDetails, type TemplateItemType, type AddItemPayload, type UpdateItemPayload, type AddRulePayload, type RemoveRulePayload, type ActivityType, type AddFilesPayload, type RemoveFilePayload, type RemoveItemPayload } from '../types';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
templateId: {
|
|
4
4
|
type: import("vue").PropType<string>;
|
|
@@ -17,14 +17,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
type: import("vue").PropType<string>;
|
|
18
18
|
};
|
|
19
19
|
activityTypes: {
|
|
20
|
-
type: import("vue").PropType<
|
|
20
|
+
type: import("vue").PropType<ActivityType[]>;
|
|
21
21
|
};
|
|
22
22
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
23
|
addItem: (payload: AddItemPayload) => void;
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
removeItem: (payload: RemoveItemPayload) => void;
|
|
25
|
+
updateItem: (payload: UpdateItemPayload<TemplateItemType>) => void;
|
|
26
26
|
addRule: (payload: AddRulePayload) => void;
|
|
27
27
|
removeRule: (payload: RemoveRulePayload) => void;
|
|
28
|
+
addFiles: (payload: AddFilesPayload) => void;
|
|
29
|
+
removeFile: (payload: RemoveFilePayload) => void;
|
|
28
30
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
31
|
templateId: {
|
|
30
32
|
type: import("vue").PropType<string>;
|
|
@@ -43,13 +45,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
43
45
|
type: import("vue").PropType<string>;
|
|
44
46
|
};
|
|
45
47
|
activityTypes: {
|
|
46
|
-
type: import("vue").PropType<
|
|
48
|
+
type: import("vue").PropType<ActivityType[]>;
|
|
47
49
|
};
|
|
48
50
|
}>> & {
|
|
51
|
+
onRemoveFile?: ((payload: RemoveFilePayload) => any) | undefined;
|
|
52
|
+
onAddFiles?: ((payload: AddFilesPayload) => any) | undefined;
|
|
49
53
|
onAddRule?: ((payload: AddRulePayload) => any) | undefined;
|
|
50
54
|
onRemoveRule?: ((payload: RemoveRulePayload) => any) | undefined;
|
|
51
|
-
onUpdateItem?: ((payload: UpdateItemPayload) => any) | undefined;
|
|
55
|
+
onUpdateItem?: ((payload: UpdateItemPayload<TemplateItemType>) => any) | undefined;
|
|
52
56
|
onAddItem?: ((payload: AddItemPayload) => any) | undefined;
|
|
53
|
-
|
|
57
|
+
onRemoveItem?: ((payload: RemoveItemPayload) => any) | undefined;
|
|
54
58
|
}, {}, {}>;
|
|
55
59
|
export default _default;
|