@26lights/orcha 0.42.167 → 0.42.169
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 +8 -0
- package/dist/orcha.cjs.js +33 -32
- package/dist/orcha.css +1 -1
- package/dist/orcha.es.js +10722 -10342
- package/dist/orcha.umd.js +34 -33
- package/dist/src/components/AoBulkInsertModal.vue.d.ts +68 -0
- package/dist/src/components/AoPopoverMenu.vue.d.ts +39 -0
- package/dist/src/components/AoProjectPhase.vue.d.ts +3 -1
- package/dist/src/helpers.d.ts +6 -0
- package/dist/src/types/index.d.ts +23 -0
- package/dist/src/views/AoProjectOverviewMilestoneDetails.vue.d.ts +3 -1
- package/dist/src/views/AoProjectOverviewProject.vue.d.ts +7 -1
- package/package.json +1 -1
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
title: {
|
|
3
|
+
type: import("vue").PropType<string>;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
size: {
|
|
7
|
+
type: import("vue").PropType<"sm" | "md">;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
isLoading: {
|
|
11
|
+
type: import("vue").PropType<boolean>;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
placeholder: {
|
|
15
|
+
type: import("vue").PropType<string>;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
open: {
|
|
19
|
+
type: import("vue").PropType<boolean>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
hint: {
|
|
23
|
+
type: import("vue").PropType<string>;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
}>, {
|
|
27
|
+
parsedNames: import("vue").ComputedRef<string[]>;
|
|
28
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
|
+
'update:open': (value: boolean) => void;
|
|
30
|
+
submit: (names: string[]) => void;
|
|
31
|
+
close: () => void;
|
|
32
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
+
title: {
|
|
34
|
+
type: import("vue").PropType<string>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
size: {
|
|
38
|
+
type: import("vue").PropType<"sm" | "md">;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
isLoading: {
|
|
42
|
+
type: import("vue").PropType<boolean>;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
placeholder: {
|
|
46
|
+
type: import("vue").PropType<string>;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
open: {
|
|
50
|
+
type: import("vue").PropType<boolean>;
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
hint: {
|
|
54
|
+
type: import("vue").PropType<string>;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
}>> & Readonly<{
|
|
58
|
+
onClose?: (() => any) | undefined;
|
|
59
|
+
onSubmit?: ((names: string[]) => any) | undefined;
|
|
60
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
61
|
+
}>, {
|
|
62
|
+
size: "sm" | "md";
|
|
63
|
+
isLoading: boolean;
|
|
64
|
+
placeholder: string;
|
|
65
|
+
hint: string;
|
|
66
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
67
|
+
declare const _default: typeof __VLS_publicComponent;
|
|
68
|
+
export default _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
placement: {
|
|
3
|
+
type: import("vue").PropType<"bottom-end" | "bottom-start">;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
}>, {
|
|
7
|
+
open: () => Promise<void>;
|
|
8
|
+
close: () => void;
|
|
9
|
+
toggle: () => void;
|
|
10
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
open: () => void;
|
|
12
|
+
close: () => void;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
+
placement: {
|
|
15
|
+
type: import("vue").PropType<"bottom-end" | "bottom-start">;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
}>> & Readonly<{
|
|
19
|
+
onClose?: (() => any) | undefined;
|
|
20
|
+
onOpen?: (() => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
placement: "bottom-start" | "bottom-end";
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
24
|
+
declare function __VLS_template(): {
|
|
25
|
+
trigger?(_: {
|
|
26
|
+
open: () => Promise<void>;
|
|
27
|
+
toggle: () => void;
|
|
28
|
+
}): any;
|
|
29
|
+
menu?(_: {
|
|
30
|
+
close: () => void;
|
|
31
|
+
}): any;
|
|
32
|
+
};
|
|
33
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_publicComponent, ReturnType<typeof __VLS_template>>;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Phase, type Id, type AddMilestonePayload, type UpdatePhasePayload, type UpdateMilestonePayload, type ActivityStatus, type User, type TimeTracking } from '../types';
|
|
1
|
+
import { type Phase, type Id, type AddMilestonePayload, type BulkAddMilestonePayload, type UpdatePhasePayload, type UpdateMilestonePayload, type ActivityStatus, type User, type TimeTracking } from '../types';
|
|
2
2
|
declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
3
|
phase: {
|
|
4
4
|
type: import("vue").PropType<Phase>;
|
|
@@ -26,6 +26,7 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
|
|
|
26
26
|
};
|
|
27
27
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
28
|
addMilestone: (payload: AddMilestonePayload) => void;
|
|
29
|
+
bulkAddMilestone: (payload: BulkAddMilestonePayload) => void;
|
|
29
30
|
updateMilestone: (payload: UpdateMilestonePayload) => void;
|
|
30
31
|
archiveMilestone: (payload: {
|
|
31
32
|
id: Id;
|
|
@@ -81,6 +82,7 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
|
|
|
81
82
|
onUnarchiveMilestone?: ((payload: {
|
|
82
83
|
id: Id;
|
|
83
84
|
}) => any) | undefined;
|
|
85
|
+
onBulkAddMilestone?: ((payload: BulkAddMilestonePayload) => any) | undefined;
|
|
84
86
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
85
87
|
declare const _default: typeof __VLS_publicComponent;
|
|
86
88
|
export default _default;
|
package/dist/src/helpers.d.ts
CHANGED
|
@@ -24,6 +24,12 @@ export declare function generateRank<T extends Ordered>(items: T[], index: numbe
|
|
|
24
24
|
* Uses genPrev() on the first item to create a rank before it.
|
|
25
25
|
*/
|
|
26
26
|
export declare function generateRankAtBeginning<T extends Ordered>(items: T[]): string;
|
|
27
|
+
/**
|
|
28
|
+
* Generates ranks for multiple items to be appended at the END of a list.
|
|
29
|
+
* Uses genNext() chain starting after the last item.
|
|
30
|
+
* Returns an array of ranks in the order they should be inserted.
|
|
31
|
+
*/
|
|
32
|
+
export declare function generateRanksAtEnd<T extends Ordered>(items: T[], count: number): string[];
|
|
27
33
|
export declare function formatDate(value: string | null | undefined, pattern?: string): string;
|
|
28
34
|
export declare function isActivityClosed(activity: Activity, closedStatus: ActivityStatus): boolean;
|
|
29
35
|
export declare function isFullyDone(milestone: Milestone, closedStatus: ActivityStatus): boolean;
|
|
@@ -237,6 +237,29 @@ export interface AddPhasePayload {
|
|
|
237
237
|
projectId?: string;
|
|
238
238
|
deadline?: string;
|
|
239
239
|
}
|
|
240
|
+
export interface BulkAddPhasePayload {
|
|
241
|
+
projectId: Id;
|
|
242
|
+
phases: Array<{
|
|
243
|
+
name: string;
|
|
244
|
+
rank: string;
|
|
245
|
+
}>;
|
|
246
|
+
}
|
|
247
|
+
export interface BulkAddMilestonePayload {
|
|
248
|
+
phaseId: Id;
|
|
249
|
+
milestones: Array<{
|
|
250
|
+
name: string;
|
|
251
|
+
rank: string;
|
|
252
|
+
}>;
|
|
253
|
+
}
|
|
254
|
+
export interface BulkAddActivityPayload {
|
|
255
|
+
projectId: Id;
|
|
256
|
+
phaseId: Id;
|
|
257
|
+
milestoneId: Id;
|
|
258
|
+
activities: Array<{
|
|
259
|
+
name: string;
|
|
260
|
+
rank: string;
|
|
261
|
+
}>;
|
|
262
|
+
}
|
|
240
263
|
export interface AddMilestonePayload {
|
|
241
264
|
name: string;
|
|
242
265
|
rank: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ActivityStatus, type AddActivityPayload, type Id, type Phase, type StartTimerPayload, type UpdateActivityPayload, type UpdateMilestonePayload, type User, type TimeTracking } from '../types';
|
|
1
|
+
import { type ActivityStatus, type AddActivityPayload, type BulkAddActivityPayload, type Id, type Phase, type StartTimerPayload, type UpdateActivityPayload, type UpdateMilestonePayload, type User, type TimeTracking } from '../types';
|
|
2
2
|
declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
3
|
milestoneId: {
|
|
4
4
|
type: import("vue").PropType<string>;
|
|
@@ -32,6 +32,7 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
|
|
|
32
32
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
33
33
|
close: (e: Event) => void;
|
|
34
34
|
addActivity: (args_0: AddActivityPayload) => void;
|
|
35
|
+
bulkAddActivity: (payload: BulkAddActivityPayload) => void;
|
|
35
36
|
updateMilestone: (args_0: UpdateMilestonePayload) => void;
|
|
36
37
|
updateActivity: (args_0: UpdateActivityPayload) => void;
|
|
37
38
|
archiveActivity: (payload: {
|
|
@@ -83,6 +84,7 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
|
|
|
83
84
|
}) => any) | undefined;
|
|
84
85
|
onUpdateMilestone?: ((args_0: UpdateMilestonePayload) => any) | undefined;
|
|
85
86
|
onAddActivity?: ((args_0: AddActivityPayload) => any) | undefined;
|
|
87
|
+
onBulkAddActivity?: ((payload: BulkAddActivityPayload) => any) | undefined;
|
|
86
88
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
87
89
|
declare const _default: typeof __VLS_publicComponent;
|
|
88
90
|
export default _default;
|
|
@@ -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 Id, type Phase, type ApplyTemplatePayload, type UpdatePhasePayload, type UpdateMilestonePayload, type Subtask, type ActivityStatus, type ActivityDevStatus, type UpdateSubtaskFieldPayload, type Activity, type ActivityType, type SaveTemplatePayload, type TimeTracking, type Attachment, type Sprint } 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 BulkAddActivityPayload, type BulkAddMilestonePayload, type BulkAddPhasePayload, type Id, type Phase, type ApplyTemplatePayload, type UpdatePhasePayload, type UpdateMilestonePayload, type Subtask, type ActivityStatus, type ActivityDevStatus, type UpdateSubtaskFieldPayload, type Activity, type ActivityType, type SaveTemplatePayload, type TimeTracking, type Attachment, type Sprint } from '../types';
|
|
2
2
|
declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
3
|
project: {
|
|
4
4
|
type: import("vue").PropType<Project>;
|
|
@@ -67,6 +67,7 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
|
|
|
67
67
|
};
|
|
68
68
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
69
69
|
addPhase: (payload: AddPhasePayload) => void;
|
|
70
|
+
bulkAddPhase: (payload: BulkAddPhasePayload) => void;
|
|
70
71
|
updatePhase: (payload: UpdatePhasePayload) => void;
|
|
71
72
|
archivePhase: (payload: {
|
|
72
73
|
id: Id;
|
|
@@ -75,6 +76,7 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
|
|
|
75
76
|
id: Id;
|
|
76
77
|
}) => void;
|
|
77
78
|
addMilestone: (payload: AddMilestonePayload) => void;
|
|
79
|
+
bulkAddMilestone: (payload: BulkAddMilestonePayload) => void;
|
|
78
80
|
updateMilestone: (payload: UpdateMilestonePayload) => void;
|
|
79
81
|
archiveMilestone: (payload: {
|
|
80
82
|
id: Id;
|
|
@@ -83,6 +85,7 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
|
|
|
83
85
|
id: Id;
|
|
84
86
|
}) => void;
|
|
85
87
|
addActivity: (payload: AddActivityPayload) => void;
|
|
88
|
+
bulkAddActivity: (payload: BulkAddActivityPayload) => void;
|
|
86
89
|
'update:activity': (payload: UpdateActivityPayload) => void;
|
|
87
90
|
archiveActivity: (payload: {
|
|
88
91
|
id: Id;
|
|
@@ -207,6 +210,9 @@ declare const __VLS_publicComponent: import("vue").DefineComponent<import("vue")
|
|
|
207
210
|
onUnarchiveMilestone?: ((payload: {
|
|
208
211
|
id: Id;
|
|
209
212
|
}) => any) | undefined;
|
|
213
|
+
onBulkAddMilestone?: ((payload: BulkAddMilestonePayload) => any) | undefined;
|
|
214
|
+
onBulkAddPhase?: ((payload: BulkAddPhasePayload) => any) | undefined;
|
|
215
|
+
onBulkAddActivity?: ((payload: BulkAddActivityPayload) => any) | undefined;
|
|
210
216
|
onCopyPhaseToTemplate?: ((payload: {
|
|
211
217
|
id: Id;
|
|
212
218
|
}) => any) | undefined;
|