@26lights/orcha 0.2.8 → 0.2.10
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 +6 -1
- package/dist/orcha.cjs.js +1 -1
- package/dist/orcha.es.js +4268 -2730
- package/dist/orcha.umd.js +2 -2
- package/dist/src/components/AoActivityDetails.vue.d.ts +20 -7
- package/dist/src/composables/useSearchField.d.ts +4 -0
- package/dist/src/types/index.d.ts +18 -2
- package/package.json +2 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type Activity, type UpdateActivityFieldPayload, type Milestone } from '../types/index';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<{
|
|
1
|
+
import { type Activity, type ActivityBase, type ActivityFeed, type UpdateActivityFieldPayload, type Milestone } from '../types/index';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
3
|
activity: {
|
|
4
|
-
type: import("vue").PropType<
|
|
4
|
+
type: import("vue").PropType<ActivityBase>;
|
|
5
5
|
required: true;
|
|
6
6
|
};
|
|
7
7
|
activityTypes: {
|
|
@@ -15,18 +15,21 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
type: import("vue").PropType<string>;
|
|
16
16
|
};
|
|
17
17
|
templateActivities: {
|
|
18
|
-
type: import("vue").PropType<Activity[]>;
|
|
18
|
+
type: import("vue").PropType<(Activity | ActivityFeed<import('../types/index').ActivityFeedStatus>)[]>;
|
|
19
19
|
required: true;
|
|
20
20
|
};
|
|
21
21
|
templateMilestones: {
|
|
22
22
|
type: import("vue").PropType<Milestone[]>;
|
|
23
23
|
};
|
|
24
|
+
isTemplate: {
|
|
25
|
+
type: import("vue").PropType<boolean>;
|
|
26
|
+
};
|
|
24
27
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
28
|
'update:activity': (payload: UpdateActivityFieldPayload) => void;
|
|
26
29
|
close: (args_0: void) => void;
|
|
27
30
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
31
|
activity: {
|
|
29
|
-
type: import("vue").PropType<
|
|
32
|
+
type: import("vue").PropType<ActivityBase>;
|
|
30
33
|
required: true;
|
|
31
34
|
};
|
|
32
35
|
activityTypes: {
|
|
@@ -40,14 +43,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
43
|
type: import("vue").PropType<string>;
|
|
41
44
|
};
|
|
42
45
|
templateActivities: {
|
|
43
|
-
type: import("vue").PropType<Activity[]>;
|
|
46
|
+
type: import("vue").PropType<(Activity | ActivityFeed<import('../types/index').ActivityFeedStatus>)[]>;
|
|
44
47
|
required: true;
|
|
45
48
|
};
|
|
46
49
|
templateMilestones: {
|
|
47
50
|
type: import("vue").PropType<Milestone[]>;
|
|
48
51
|
};
|
|
52
|
+
isTemplate: {
|
|
53
|
+
type: import("vue").PropType<boolean>;
|
|
54
|
+
};
|
|
49
55
|
}>> & {
|
|
50
56
|
onClose?: ((args_0?: void | undefined) => any) | undefined;
|
|
51
57
|
"onUpdate:activity"?: ((payload: UpdateActivityFieldPayload) => any) | undefined;
|
|
52
|
-
}, {}, {}
|
|
58
|
+
}, {}, {}>, {
|
|
59
|
+
default?(_: {}): any;
|
|
60
|
+
}>;
|
|
53
61
|
export default _default;
|
|
62
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
63
|
+
new (): {
|
|
64
|
+
$slots: S;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -25,7 +25,7 @@ export interface Milestone extends Entity, Ordered {
|
|
|
25
25
|
name?: string;
|
|
26
26
|
activities: Activity[];
|
|
27
27
|
}
|
|
28
|
-
export interface
|
|
28
|
+
export interface ActivityBase extends Entity, Ordered {
|
|
29
29
|
order: number;
|
|
30
30
|
name?: string;
|
|
31
31
|
subtasks?: Subtask[];
|
|
@@ -37,7 +37,18 @@ export interface Activity extends Entity, Ordered {
|
|
|
37
37
|
dependingMilestones?: Id[];
|
|
38
38
|
type?: string;
|
|
39
39
|
}
|
|
40
|
-
export
|
|
40
|
+
export declare const durationTypes: {
|
|
41
|
+
readonly months: "months";
|
|
42
|
+
readonly weeks: "weeks";
|
|
43
|
+
readonly days: "days";
|
|
44
|
+
};
|
|
45
|
+
export type DurationTypesKeys = keyof typeof durationTypes;
|
|
46
|
+
export type DurationTypes = (typeof durationTypes)[DurationTypesKeys];
|
|
47
|
+
export interface Activity extends ActivityBase {
|
|
48
|
+
duration?: number;
|
|
49
|
+
durationType?: DurationTypes;
|
|
50
|
+
}
|
|
51
|
+
export interface ActivityProject extends ActivityBase {
|
|
41
52
|
projectId?: Id;
|
|
42
53
|
projectName?: string;
|
|
43
54
|
phaseId?: Id;
|
|
@@ -147,10 +158,12 @@ export interface AddItemPayload {
|
|
|
147
158
|
export interface AddPhasePayload {
|
|
148
159
|
name: string;
|
|
149
160
|
rank: string;
|
|
161
|
+
templateId: string;
|
|
150
162
|
}
|
|
151
163
|
export interface AddMilestonePayload {
|
|
152
164
|
name: string;
|
|
153
165
|
rank: string;
|
|
166
|
+
phaseId: string;
|
|
154
167
|
}
|
|
155
168
|
export interface UpdateMilestonePayload {
|
|
156
169
|
id: Id;
|
|
@@ -188,6 +201,8 @@ export type UpdateItemPayloadData<T extends TemplateSubItemTypeEnum> = UpdateIte
|
|
|
188
201
|
export interface AddActivityPayload {
|
|
189
202
|
phaseId: Id;
|
|
190
203
|
milestoneId: Id;
|
|
204
|
+
name: string;
|
|
205
|
+
rank: Id;
|
|
191
206
|
}
|
|
192
207
|
export interface UpdateActivityPayload {
|
|
193
208
|
id: Id;
|
|
@@ -218,6 +233,7 @@ export interface UpdateActivityFieldPayload {
|
|
|
218
233
|
dependingMilestones?: Id[];
|
|
219
234
|
type?: string;
|
|
220
235
|
status?: ActivityStatus;
|
|
236
|
+
endDate?: string;
|
|
221
237
|
}
|
|
222
238
|
export interface AddRulePayload {
|
|
223
239
|
templateId: Id;
|
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.2.
|
|
7
|
+
"version": "0.2.10",
|
|
8
8
|
"workspaces": [
|
|
9
9
|
"packages/*"
|
|
10
10
|
],
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"build": "histoire build",
|
|
14
14
|
"lib:build": "vite build -c vite.lib.config.ts",
|
|
15
15
|
"test:unit": "vitest",
|
|
16
|
+
"demo": "vite dev",
|
|
16
17
|
"type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
|
|
17
18
|
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
|
18
19
|
"publish:major": "yarn lib:build && yarn version major && npm publish --public",
|