@26lights/orcha 0.42.228 → 0.42.230

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.
@@ -1,5 +1,9 @@
1
1
  import type { Activity } from '../types';
2
2
  declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ clickable: {
4
+ type: import("vue").PropType<boolean>;
5
+ default: boolean;
6
+ };
3
7
  activity: {
4
8
  type: import("vue").PropType<Activity>;
5
9
  required: true;
@@ -12,7 +16,13 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
12
16
  type: import("vue").PropType<boolean>;
13
17
  default: boolean;
14
18
  };
15
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
19
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ openActivity: (activityId: string) => void;
21
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
22
+ clickable: {
23
+ type: import("vue").PropType<boolean>;
24
+ default: boolean;
25
+ };
16
26
  activity: {
17
27
  type: import("vue").PropType<Activity>;
18
28
  required: true;
@@ -25,7 +35,10 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
25
35
  type: import("vue").PropType<boolean>;
26
36
  default: boolean;
27
37
  };
28
- }>> & Readonly<{}>, {
38
+ }>> & Readonly<{
39
+ onOpenActivity?: ((activityId: string) => any) | undefined;
40
+ }>, {
41
+ clickable: boolean;
29
42
  isDraggable: boolean;
30
43
  showMilestone: boolean;
31
44
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -14,6 +14,10 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
14
14
  sprintId?: string | null;
15
15
  milestoneId?: string | null;
16
16
  }) => void;
17
+ openActivity: (payload: {
18
+ activityId: string;
19
+ activityIds: string[];
20
+ }) => void;
17
21
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
18
22
  activities: {
19
23
  type: import("vue").PropType<Activity[]>;
@@ -24,6 +28,10 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
24
28
  default: boolean;
25
29
  };
26
30
  }>> & Readonly<{
31
+ onOpenActivity?: ((payload: {
32
+ activityId: string;
33
+ activityIds: string[];
34
+ }) => any) | undefined;
27
35
  onActivityChange?: ((payload: {
28
36
  id: string;
29
37
  sprintId?: string | null;
@@ -25,6 +25,10 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
25
25
  sprintId?: string | null;
26
26
  milestoneId?: string | null;
27
27
  }) => void;
28
+ openActivity: (payload: {
29
+ activityId: string;
30
+ activityIds: string[];
31
+ }) => void;
28
32
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
29
33
  activities: {
30
34
  type: import("vue").PropType<Activity[]>;
@@ -46,6 +50,10 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
46
50
  required: true;
47
51
  };
48
52
  }>> & Readonly<{
53
+ onOpenActivity?: ((payload: {
54
+ activityId: string;
55
+ activityIds: string[];
56
+ }) => any) | undefined;
49
57
  onActivityChange?: ((payload: {
50
58
  id: string;
51
59
  sprintId?: string | null;
@@ -37,6 +37,10 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
37
37
  sprintId?: string | null;
38
38
  milestoneId?: string | null;
39
39
  }) => void;
40
+ openActivity: (payload: {
41
+ activityId: Id;
42
+ activityIds: Id[];
43
+ }) => void;
40
44
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
41
45
  activities: {
42
46
  type: import("vue").PropType<Activity[]>;
@@ -57,6 +61,10 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
57
61
  endDate: string;
58
62
  color?: string;
59
63
  }) => any) | undefined;
64
+ onOpenActivity?: ((payload: {
65
+ activityId: Id;
66
+ activityIds: Id[];
67
+ }) => any) | undefined;
60
68
  onActivityChange?: ((payload: {
61
69
  id: string;
62
70
  sprintId?: string | null;
@@ -1,17 +1,53 @@
1
- import type { Sprint, Activity, Id } from '../types';
1
+ import type { Sprint, Activity, Id, User, ActivityStatus, ActivityDevStatus, UpdateActivityPayload, AddSubtaskPayload, UpdateSubtaskFieldPayload, AddFilesPayload, RemoveFilePayload, AddCommentPayload, UpdateCommentPayload, RemoveCommentPayload, TimeTracking, Attachment, Subtask } from '../types';
2
2
  declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
3
  activities: {
4
4
  type: import("vue").PropType<Activity[]>;
5
5
  required: true;
6
6
  };
7
7
  isEditable: {
8
- type: import("vue").PropType<boolean>;
8
+ type: import("vue").PropType<boolean | "only-own">;
9
9
  default: boolean;
10
10
  };
11
+ users: {
12
+ type: import("vue").PropType<User[]>;
13
+ default: () => never[];
14
+ };
15
+ userId: {
16
+ type: import("vue").PropType<string>;
17
+ default: undefined;
18
+ };
19
+ isTaskCheckable: {
20
+ type: import("vue").PropType<(task: Subtask) => boolean>;
21
+ default: undefined;
22
+ };
23
+ statuses: {
24
+ type: import("vue").PropType<ActivityStatus[]>;
25
+ default: () => never[];
26
+ };
27
+ devStatuses: {
28
+ type: import("vue").PropType<ActivityDevStatus[]>;
29
+ default: () => never[];
30
+ };
11
31
  sprints: {
12
32
  type: import("vue").PropType<Sprint[]>;
13
33
  required: true;
14
34
  };
35
+ attachmentEnabled: {
36
+ type: import("vue").PropType<boolean>;
37
+ default: boolean;
38
+ };
39
+ timeTrackingData: {
40
+ type: import("vue").PropType<Record<string, TimeTracking>>;
41
+ default: () => {};
42
+ };
43
+ loadAttachmentPreview: {
44
+ type: import("vue").PropType<(attachment: Attachment) => Promise<Blob>>;
45
+ default: undefined;
46
+ };
47
+ selectedActivity: {
48
+ type: import("vue").PropType<Activity>;
49
+ default: undefined;
50
+ };
15
51
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
52
  updateSprint: (payload: {
17
53
  id: Id;
@@ -37,26 +73,88 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
37
73
  sprintId?: string | null;
38
74
  milestoneId?: string | null;
39
75
  }) => void;
76
+ selectActivity: (activityId: string | null) => void;
77
+ updateActivity: (payload: UpdateActivityPayload) => void;
78
+ addSubtask: (payload: AddSubtaskPayload) => void;
79
+ updateSubtask: (payload: UpdateSubtaskFieldPayload) => void;
80
+ deleteSubtask: (payload: {
81
+ id: Id;
82
+ }) => void;
83
+ addFiles: (payload: AddFilesPayload) => void;
84
+ removeFile: (payload: RemoveFilePayload) => void;
85
+ addComment: (payload: AddCommentPayload) => void;
86
+ updateComment: (payload: UpdateCommentPayload) => void;
87
+ removeComment: (payload: RemoveCommentPayload) => void;
88
+ fetchHistory: () => void;
40
89
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
41
90
  activities: {
42
91
  type: import("vue").PropType<Activity[]>;
43
92
  required: true;
44
93
  };
45
94
  isEditable: {
46
- type: import("vue").PropType<boolean>;
95
+ type: import("vue").PropType<boolean | "only-own">;
47
96
  default: boolean;
48
97
  };
98
+ users: {
99
+ type: import("vue").PropType<User[]>;
100
+ default: () => never[];
101
+ };
102
+ userId: {
103
+ type: import("vue").PropType<string>;
104
+ default: undefined;
105
+ };
106
+ isTaskCheckable: {
107
+ type: import("vue").PropType<(task: Subtask) => boolean>;
108
+ default: undefined;
109
+ };
110
+ statuses: {
111
+ type: import("vue").PropType<ActivityStatus[]>;
112
+ default: () => never[];
113
+ };
114
+ devStatuses: {
115
+ type: import("vue").PropType<ActivityDevStatus[]>;
116
+ default: () => never[];
117
+ };
49
118
  sprints: {
50
119
  type: import("vue").PropType<Sprint[]>;
51
120
  required: true;
52
121
  };
122
+ attachmentEnabled: {
123
+ type: import("vue").PropType<boolean>;
124
+ default: boolean;
125
+ };
126
+ timeTrackingData: {
127
+ type: import("vue").PropType<Record<string, TimeTracking>>;
128
+ default: () => {};
129
+ };
130
+ loadAttachmentPreview: {
131
+ type: import("vue").PropType<(attachment: Attachment) => Promise<Blob>>;
132
+ default: undefined;
133
+ };
134
+ selectedActivity: {
135
+ type: import("vue").PropType<Activity>;
136
+ default: undefined;
137
+ };
53
138
  }>> & Readonly<{
139
+ onUpdateActivity?: ((payload: UpdateActivityPayload) => any) | undefined;
140
+ onSelectActivity?: ((activityId: string | null) => any) | undefined;
141
+ onDeleteSubtask?: ((payload: {
142
+ id: Id;
143
+ }) => any) | undefined;
144
+ onRemoveFile?: ((payload: RemoveFilePayload) => any) | undefined;
145
+ onUpdateComment?: ((payload: UpdateCommentPayload) => any) | undefined;
146
+ onRemoveComment?: ((payload: RemoveCommentPayload) => any) | undefined;
147
+ onAddSubtask?: ((payload: AddSubtaskPayload) => any) | undefined;
148
+ onUpdateSubtask?: ((payload: UpdateSubtaskFieldPayload) => any) | undefined;
149
+ onAddFiles?: ((payload: AddFilesPayload) => any) | undefined;
150
+ onAddComment?: ((payload: AddCommentPayload) => any) | undefined;
54
151
  onCreateSprint?: ((payload: {
55
152
  label?: string;
56
153
  startDate: string;
57
154
  endDate: string;
58
155
  color?: string;
59
156
  }) => any) | undefined;
157
+ onFetchHistory?: (() => any) | undefined;
60
158
  onActivityChange?: ((payload: {
61
159
  id: string;
62
160
  sprintId?: string | null;
@@ -76,7 +174,16 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
76
174
  id: Id;
77
175
  }) => any) | undefined;
78
176
  }>, {
79
- isEditable: boolean;
177
+ isEditable: boolean | "only-own";
178
+ users: User[];
179
+ userId: Id;
180
+ isTaskCheckable: (task: Subtask) => boolean;
181
+ statuses: ActivityStatus[];
182
+ devStatuses: ActivityDevStatus[];
183
+ attachmentEnabled: boolean;
184
+ timeTrackingData: Record<Id, TimeTracking>;
185
+ loadAttachmentPreview: (attachment: Attachment) => Promise<Blob>;
186
+ selectedActivity: Activity;
80
187
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
81
188
  declare const _default: typeof __VLS_publicComponent;
82
189
  export default _default;
@@ -31,6 +31,10 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
31
31
  sprintId?: string | null;
32
32
  milestoneId?: string | null;
33
33
  }) => void;
34
+ openActivity: (payload: {
35
+ activityId: Id;
36
+ activityIds: Id[];
37
+ }) => void;
34
38
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
35
39
  activities: {
36
40
  type: import("vue").PropType<Activity[]>;
@@ -45,6 +49,10 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
45
49
  default: boolean;
46
50
  };
47
51
  }>> & Readonly<{
52
+ onOpenActivity?: ((payload: {
53
+ activityId: Id;
54
+ activityIds: Id[];
55
+ }) => any) | undefined;
48
56
  onActivityChange?: ((payload: {
49
57
  id: string;
50
58
  sprintId?: string | null;
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.228",
7
+ "version": "0.42.230",
8
8
  "workspaces": [
9
9
  "packages/*"
10
10
  ],