@26lights/orcha 0.42.32 → 2.0.3
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/orcha.cjs.js +2 -2
- package/dist/orcha.css +1 -1
- package/dist/orcha.es.js +3941 -3819
- package/dist/orcha.umd.js +3 -3
- package/dist/src/components/AoActivityDetailsComments.vue.d.ts +4 -0
- package/dist/src/components/AoComment.vue.d.ts +8 -0
- package/dist/src/components/AoMultiselect.vue.d.ts +2 -18
- package/dist/src/helpers.d.ts +19 -2
- package/dist/src/main.d.ts +1 -0
- package/dist/src/types/index.d.ts +2 -0
- package/dist/src/views/AoFeed.vue.d.ts +1 -1
- package/package.json +2 -2
|
@@ -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;
|
|
@@ -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,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 (): {
|
package/dist/src/helpers.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
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';
|
|
3
4
|
export declare function sumPhaseActivitiesAmount(milestones: Milestone[]): number;
|
|
4
5
|
export declare function sumTemplateMilestonesAmount(phases: Phase[]): number;
|
|
5
6
|
export declare function sumTemplateActivitiesAmount(phases: Phase[]): number;
|
|
@@ -14,3 +15,19 @@ export declare function milestoneWithStatus(milestone: Milestone, closedStatus:
|
|
|
14
15
|
};
|
|
15
16
|
export declare const getUserName: (user: User | undefined | null) => string;
|
|
16
17
|
export declare function lightenColor(color: string, alpha?: number): string;
|
|
18
|
+
export declare function useMentions(textareaRef: Ref<HTMLTextAreaElement | null | undefined>, messageModel: Ref<string>, allUsers: Ref<User[]>): {
|
|
19
|
+
showMentionList: Ref<boolean>;
|
|
20
|
+
mentionListPosition: Ref<{
|
|
21
|
+
top: number;
|
|
22
|
+
left: number;
|
|
23
|
+
}>;
|
|
24
|
+
filteredUsers: import("vue").ComputedRef<{
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
}[]>;
|
|
28
|
+
mentionQuery: Ref<string>;
|
|
29
|
+
handleInput: (event: Event) => void;
|
|
30
|
+
handleKeydown: (event: KeyboardEvent) => void;
|
|
31
|
+
selectUserMention: (name: string) => void;
|
|
32
|
+
getMentionedUserIds: (message: string) => Id[];
|
|
33
|
+
};
|
package/dist/src/main.d.ts
CHANGED
|
@@ -9,5 +9,6 @@ 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 AoTabBar } from './components/AoTabBar.vue';
|
|
12
13
|
export { default as AoCardFeed } from './components/AoCardFeed.vue';
|
|
13
14
|
export { default as AoProjectPhases } from './components/AoProjectPhases.vue';
|
|
@@ -445,10 +445,12 @@ export type AddCommentPayload = {
|
|
|
445
445
|
activityId: Id;
|
|
446
446
|
authorId: Id;
|
|
447
447
|
message: string;
|
|
448
|
+
mentionedUserIds: Id[];
|
|
448
449
|
};
|
|
449
450
|
export type UpdateCommentPayload = {
|
|
450
451
|
id: Id;
|
|
451
452
|
message: string;
|
|
453
|
+
mentionedUserIds: Id[];
|
|
452
454
|
};
|
|
453
455
|
export type RemoveCommentPayload = {
|
|
454
456
|
id: Id;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Activity, ActivityStatus, type ActivityType, type AddActivityFeedPayload, type AddCommentPayload, type AddFilesPayload, type AddSubtaskPayload, type ChangeFeedActivitiesPayload, type FeedFilters, type Project, type RemoveCommentPayload, type RemoveFilePayload, type Subtask, type UpdateActivityPayload, type UpdateCommentPayload, type UpdateSubtaskFieldPayload, type User } from '../types';
|
|
1
|
+
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 Subtask, type UpdateActivityPayload, type UpdateCommentPayload, type UpdateSubtaskFieldPayload, type User } from '../types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
3
|
filters: {
|
|
4
4
|
type: import("vue").PropType<FeedFilters>;
|
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.
|
|
7
|
+
"version": "2.0.3",
|
|
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",
|