@26lights/orcha 0.42.44 → 0.42.45

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.
Files changed (140) hide show
  1. package/dist/orcha.cjs.js +2 -229
  2. package/dist/orcha.css +1 -1
  3. package/dist/orcha.es.js +7379 -27319
  4. package/dist/orcha.umd.js +3 -230
  5. package/dist/src/components/AoActivityDetails.vue.d.ts +137 -50
  6. package/dist/src/components/AoActivityDetailsComments.vue.d.ts +47 -43
  7. package/dist/src/components/AoActivityDetailsFiles.vue.d.ts +23 -25
  8. package/dist/src/components/AoActivityTasks.vue.d.ts +49 -25
  9. package/dist/src/components/AoAddTemplateModal.vue.d.ts +26 -20
  10. package/dist/src/components/AoAvatar.vue.d.ts +45 -37
  11. package/dist/src/components/AoBadge.vue.d.ts +10 -13
  12. package/dist/src/components/AoButton.vue.d.ts +82 -57
  13. package/dist/src/components/AoButtonCard.vue.d.ts +69 -54
  14. package/dist/src/components/AoButtonCheck.vue.d.ts +23 -21
  15. package/dist/src/components/AoCard.vue.d.ts +41 -44
  16. package/dist/src/components/AoCardFeed.vue.d.ts +126 -39
  17. package/dist/src/components/AoCardHoriz.vue.d.ts +60 -33
  18. package/dist/src/components/AoCardProjectItemMilestone.vue.d.ts +106 -39
  19. package/dist/src/components/AoCardProjectItemPhase.vue.d.ts +82 -42
  20. package/dist/src/components/AoCardTemplate.vue.d.ts +54 -23
  21. package/dist/src/components/AoCardTemplateItem.vue.d.ts +33 -16
  22. package/dist/src/components/AoCardTemplateItemActivity.vue.d.ts +17 -19
  23. package/dist/src/components/AoCardTemplateItemMilestone.vue.d.ts +11 -18
  24. package/dist/src/components/AoCardTemplateItemPhase.vue.d.ts +25 -20
  25. package/dist/src/components/AoCheckboxField.vue.d.ts +45 -42
  26. package/dist/src/components/AoColHeader.vue.d.ts +16 -13
  27. package/dist/src/components/AoColorPicker.vue.d.ts +16 -22
  28. package/dist/src/components/AoComment.vue.d.ts +51 -19
  29. package/dist/src/components/AoCondensedCardProjectItemPhase.vue.d.ts +82 -42
  30. package/dist/src/components/AoField.vue.d.ts +24 -33
  31. package/dist/src/components/AoIcon.vue.d.ts +21 -29
  32. package/dist/src/components/AoInputField.vue.d.ts +61 -50
  33. package/dist/src/components/AoListKanban.vue.d.ts +116 -23
  34. package/dist/src/components/AoModal.vue.d.ts +18 -28
  35. package/dist/src/components/AoMultiselect.vue.d.ts +15 -18
  36. package/dist/src/components/AoPageHeader.vue.d.ts +14 -15
  37. package/dist/src/components/AoProgress.vue.d.ts +23 -16
  38. package/dist/src/components/AoProjectPhase.vue.d.ts +66 -35
  39. package/dist/src/components/AoProjectPhases.vue.d.ts +68 -37
  40. package/dist/src/components/AoRuleLine.vue.d.ts +45 -31
  41. package/dist/src/components/AoSaveTemplateModal.vue.d.ts +14 -17
  42. package/dist/src/components/AoSearchField.vue.d.ts +32 -34
  43. package/dist/src/components/AoTabBar.vue.d.ts +6 -6
  44. package/dist/src/components/AoTag.vue.d.ts +50 -23
  45. package/dist/src/components/AoTemplateDetailsActivities.vue.d.ts +38 -21
  46. package/dist/src/components/AoTemplateDetailsMilestones.vue.d.ts +28 -19
  47. package/dist/src/components/AoTemplateRules.vue.d.ts +43 -18
  48. package/dist/src/components/AoTitle.vue.d.ts +51 -40
  49. package/dist/src/components/icons/AccountBoxSharp.vue.d.ts +1 -1
  50. package/dist/src/components/icons/AccountCircle.vue.d.ts +1 -1
  51. package/dist/src/components/icons/AccountTreeOutlineRounded.vue.d.ts +1 -1
  52. package/dist/src/components/icons/AccountTreeRounded.vue.d.ts +1 -1
  53. package/dist/src/components/icons/Add.vue.d.ts +1 -1
  54. package/dist/src/components/icons/AddBoxOutlineRounded.vue.d.ts +1 -1
  55. package/dist/src/components/icons/ArchiveOutlineRounded.vue.d.ts +1 -1
  56. package/dist/src/components/icons/ArrowBackRounded.vue.d.ts +1 -1
  57. package/dist/src/components/icons/ArrowDropDownRounded.vue.d.ts +1 -1
  58. package/dist/src/components/icons/ArrowForwardRounded.vue.d.ts +1 -1
  59. package/dist/src/components/icons/AssignmentOutlineRounded.vue.d.ts +1 -1
  60. package/dist/src/components/icons/AttachFileRounded.vue.d.ts +1 -1
  61. package/dist/src/components/icons/CalendarTodayOutlineRounded.vue.d.ts +1 -1
  62. package/dist/src/components/icons/CancelRounded.vue.d.ts +1 -1
  63. package/dist/src/components/icons/ChatOutline.vue.d.ts +1 -1
  64. package/dist/src/components/icons/CheckBoxOutlineBlank.vue.d.ts +1 -1
  65. package/dist/src/components/icons/CheckBoxOutlineBlankSharp.vue.d.ts +1 -1
  66. package/dist/src/components/icons/CheckBoxOutlineRounded.vue.d.ts +1 -1
  67. package/dist/src/components/icons/CheckSmallRounded.vue.d.ts +1 -1
  68. package/dist/src/components/icons/ChecklistRounded.vue.d.ts +1 -1
  69. package/dist/src/components/icons/ChevronLeft.vue.d.ts +1 -1
  70. package/dist/src/components/icons/ChevronRight.vue.d.ts +1 -1
  71. package/dist/src/components/icons/CloseRounded.vue.d.ts +1 -1
  72. package/dist/src/components/icons/ContactsOutlineRounded.vue.d.ts +1 -1
  73. package/dist/src/components/icons/ContentCopyOutline.vue.d.ts +1 -1
  74. package/dist/src/components/icons/DeleteOutlineRounded.vue.d.ts +1 -1
  75. package/dist/src/components/icons/DragIndicator.vue.d.ts +1 -1
  76. package/dist/src/components/icons/EditDocumentRounded.vue.d.ts +1 -1
  77. package/dist/src/components/icons/EditOutline.vue.d.ts +1 -1
  78. package/dist/src/components/icons/ErrorOutlineRounded.vue.d.ts +1 -1
  79. package/dist/src/components/icons/FilterListRounded.vue.d.ts +1 -1
  80. package/dist/src/components/icons/FlagRounded.vue.d.ts +1 -1
  81. package/dist/src/components/icons/FlowsheetOutlineRounded.vue.d.ts +1 -1
  82. package/dist/src/components/icons/GifBox.vue.d.ts +1 -1
  83. package/dist/src/components/icons/GroupsOutline.vue.d.ts +1 -1
  84. package/dist/src/components/icons/HomeOutlineRounded.vue.d.ts +1 -1
  85. package/dist/src/components/icons/ImageRounded.vue.d.ts +1 -1
  86. package/dist/src/components/icons/Info.vue.d.ts +1 -1
  87. package/dist/src/components/icons/KeyboardArrowDown.vue.d.ts +1 -1
  88. package/dist/src/components/icons/KeyboardArrowUp.vue.d.ts +1 -1
  89. package/dist/src/components/icons/Loading.vue.d.ts +1 -1
  90. package/dist/src/components/icons/Lock.vue.d.ts +1 -1
  91. package/dist/src/components/icons/LogoutRounded.vue.d.ts +1 -1
  92. package/dist/src/components/icons/Menu.vue.d.ts +1 -1
  93. package/dist/src/components/icons/MoreHoriz.vue.d.ts +1 -1
  94. package/dist/src/components/icons/MoreTimeRounded.vue.d.ts +1 -1
  95. package/dist/src/components/icons/MoreVert.vue.d.ts +1 -1
  96. package/dist/src/components/icons/MountainFlagOutlineRounded.vue.d.ts +1 -1
  97. package/dist/src/components/icons/PersonAddOutlineRounded.vue.d.ts +1 -1
  98. package/dist/src/components/icons/PictureAsPdfRounded.vue.d.ts +1 -1
  99. package/dist/src/components/icons/RadioButtonChecked.vue.d.ts +1 -1
  100. package/dist/src/components/icons/RadioButtonCheckedOutline.vue.d.ts +1 -1
  101. package/dist/src/components/icons/RadioButtonUnchecked.vue.d.ts +1 -1
  102. package/dist/src/components/icons/RemoveRounded.vue.d.ts +1 -1
  103. package/dist/src/components/icons/SearchRounded.vue.d.ts +1 -1
  104. package/dist/src/components/icons/SelectCheckBox.vue.d.ts +1 -1
  105. package/dist/src/components/icons/SendRounded.vue.d.ts +1 -1
  106. package/dist/src/components/icons/Settings.vue.d.ts +1 -1
  107. package/dist/src/components/icons/SlideshowRounded.vue.d.ts +1 -1
  108. package/dist/src/components/icons/Target.vue.d.ts +1 -1
  109. package/dist/src/components/icons/TaskOutlineRounded.vue.d.ts +1 -1
  110. package/dist/src/components/icons/TextSnippetRounded.vue.d.ts +1 -1
  111. package/dist/src/components/icons/TimerOutline.vue.d.ts +1 -1
  112. package/dist/src/components/icons/ViewComfyAltRounded.vue.d.ts +1 -1
  113. package/dist/src/components/icons/ViewCompactAltRounded.vue.d.ts +1 -1
  114. package/dist/src/components/icons/ViewTimelineRounded.vue.d.ts +1 -1
  115. package/dist/src/components/icons/WarningOutlineRounded.vue.d.ts +1 -1
  116. package/dist/src/components/icons/WarningRounded.vue.d.ts +1 -1
  117. package/dist/src/components/icons/WaterfallChartRounded.vue.d.ts +1 -1
  118. package/dist/src/composables/useDetachedOptions.d.ts +1 -2
  119. package/dist/src/composables/useGetDefaultRankAndName.d.ts +1 -2
  120. package/dist/src/composables/useIsEditing.d.ts +3 -4
  121. package/dist/src/composables/useSearchField.d.ts +1 -1
  122. package/dist/src/composables/useSelectAddedElement.d.ts +1 -2
  123. package/dist/src/helpers.d.ts +6 -13
  124. package/dist/src/i18n/i18next.d.ts +2 -3
  125. package/dist/src/main.d.ts +0 -1
  126. package/dist/src/router/routes.d.ts +1 -2
  127. package/dist/src/types/components.d.ts +2 -3
  128. package/dist/src/types/styles.d.ts +1 -1
  129. package/dist/src/types/utils.d.ts +1 -2
  130. package/dist/src/views/AoFeed.vue.d.ts +162 -72
  131. package/dist/src/views/AoMapping.vue.d.ts +118 -49
  132. package/dist/src/views/AoProjectOverviewActivityDetails.vue.d.ts +125 -43
  133. package/dist/src/views/AoProjectOverviewMilestoneDetails.vue.d.ts +71 -31
  134. package/dist/src/views/AoProjectOverviewProject.vue.d.ts +153 -79
  135. package/dist/src/views/AoTemplateDetails.vue.d.ts +61 -37
  136. package/dist/src/views/AoTemplates.vue.d.ts +10 -15
  137. package/dist/src/views/AoTemplatesList.vue.d.ts +12 -17
  138. package/package.json +1 -2
  139. package/dist/src/components/AoRichTextContent.vue.d.ts +0 -37
  140. package/dist/src/components/AoRichTextEditor.vue.d.ts +0 -45
@@ -1,2 +1,2 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
2
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
2
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
2
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
2
  export default _default;
@@ -1,5 +1,4 @@
1
- import { Ref, MaybeRef } from 'vue';
2
-
1
+ import { type Ref, type MaybeRef } from 'vue';
3
2
  interface useDetachedOptionsParams {
4
3
  multiselect: Ref<any>;
5
4
  appendTo?: MaybeRef<string> | MaybeRef<HTMLElement> | MaybeRef<string | HTMLElement>;
@@ -1,5 +1,4 @@
1
- import { Ordered } from '../types';
2
-
1
+ import type { Ordered } from '../types';
3
2
  export default function <T extends Ordered>(items: T[], type: string, t: any): {
4
3
  name: string;
5
4
  rank: string;
@@ -1,9 +1,8 @@
1
- import { Ref } from 'vue';
2
-
1
+ import { type Ref } from 'vue';
3
2
  export default function useIsEditing(target: Ref<HTMLElement | null>): {
4
- isEditing: Ref<boolean, boolean>;
3
+ isEditing: Ref<boolean>;
5
4
  setIsEditing: (v: boolean) => void;
6
5
  toggleIsEditing: () => void;
7
- onUpdate: (cb?: (v: string, e?: event) => void) => (e: Event) => Promise<void>;
6
+ onUpdate: (cb?: ((v: string, e?: any) => void) | undefined) => (e: Event) => Promise<void>;
8
7
  onDiscard: (cb?: () => void) => () => Promise<void>;
9
8
  };
@@ -1,4 +1,4 @@
1
1
  export default function useSearchField(): {
2
- searchText: import('vue').Ref<string, string>;
2
+ searchText: import("vue").Ref<string>;
3
3
  clearSearchText: () => void;
4
4
  };
@@ -1,3 +1,2 @@
1
- import { Entity } from '../types';
2
-
1
+ import type { Entity } from '../types';
3
2
  export default function useSelectAddedElement(elements: Entity[] | undefined, oldElements: Entity[] | undefined): Promise<void>;
@@ -1,7 +1,6 @@
1
- import { Activity, ActivityStatus, Milestone, MilestoneStatus, Ordered, Phase, User, Id } from './types';
2
- import { DraggableChangeEvent } from './types/utils';
3
- import { Ref } from 'vue';
4
-
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';
5
4
  /**
6
5
  * Formats minutes into a human-readable time format
7
6
  * @param minutes - Time in minutes
@@ -30,22 +29,16 @@ export declare function milestoneWithStatus(milestone: Milestone, closedStatus:
30
29
  export declare const getUserName: (user: User | undefined | null) => string;
31
30
  export declare function lightenColor(color: string, alpha?: number): string;
32
31
  export declare function useMentions(textareaRef: Ref<HTMLTextAreaElement | null | undefined>, messageModel: Ref<string>, allUsers: Ref<User[]>): {
33
- showMentionList: Ref<boolean, boolean>;
32
+ showMentionList: Ref<boolean>;
34
33
  mentionListPosition: Ref<{
35
34
  top: number;
36
35
  left: number;
37
- }, {
38
- top: number;
39
- left: number;
40
- } | {
41
- top: number;
42
- left: number;
43
36
  }>;
44
- filteredUsers: import('vue').ComputedRef<{
37
+ filteredUsers: import("vue").ComputedRef<{
45
38
  id: string;
46
39
  name: string;
47
40
  }[]>;
48
- mentionQuery: Ref<string, string>;
41
+ mentionQuery: Ref<string>;
49
42
  handleInput: (event: Event) => void;
50
43
  handleKeydown: (event: KeyboardEvent) => void;
51
44
  selectUserMention: (name: string) => void;
@@ -1,4 +1,3 @@
1
- import { App } from 'vue';
2
-
3
- export declare const useI18n: Promise<import('i18next').TFunction<"translation", undefined>>;
1
+ import { type App } from 'vue';
2
+ export declare const useI18n: Promise<import("i18next").TFunction<"translation", undefined>>;
4
3
  export default function (app: App): App<any>;
@@ -1,4 +1,3 @@
1
-
2
1
  export { default as AoTemplates } from './views/AoTemplates.vue';
3
2
  export { default as AoTemplatesList } from './views/AoTemplatesList.vue';
4
3
  export { default as AoTemplateDetails } from './views/AoTemplateDetails.vue';
@@ -1,5 +1,4 @@
1
- import { RouteRecordRaw } from 'vue-router';
2
-
1
+ import { type RouteRecordRaw } from 'vue-router';
3
2
  export declare const templateRouteNames: {
4
3
  TEMPLATES: string;
5
4
  TEMPLATE_DETAILS: string;
@@ -1,6 +1,5 @@
1
- import { HTMLElementTagNameType } from './utils';
2
- import { IconNames } from './styles';
3
-
1
+ import { type HTMLElementTagNameType } from './utils';
2
+ import { type IconNames } from './styles';
4
3
  export interface CardProps {
5
4
  id?: string;
6
5
  title?: string;
@@ -1,4 +1,4 @@
1
- import * as icons from '@/components/icons';
1
+ import * as icons from '../components/icons';
2
2
  export declare const buttonVariants: {
3
3
  readonly SOLID: "solid";
4
4
  readonly GHOST: "ghost";
@@ -1,5 +1,4 @@
1
- import { Id, MultiselectOptionTagProps } from './index';
2
-
1
+ import { Id, MultiselectOptionTagProps } from '../types/index';
3
2
  export type HTMLElementTagNameType = keyof HTMLElementTagNameMap;
4
3
  export interface DraggableChangeEvent<T> {
5
4
  added?: {
@@ -1,50 +1,87 @@
1
- import { TimeTracking, Activity, ActivityStatus, ActivityType, AddActivityFeedPayload, AddCommentPayload, AddFilesPayload, AddSubtaskPayload, ChangeFeedActivitiesPayload, FeedFilters, Id, Project, RemoveCommentPayload, RemoveFilePayload, StartTimerPayload, Subtask, UpdateActivityPayload, UpdateCommentPayload, UpdateSubtaskFieldPayload, User } from '../types';
2
-
3
- interface Props {
4
- activities: Activity[];
5
- statuses: ActivityStatus[];
6
- project?: Project;
7
- projects?: Project[];
8
- filters: FeedFilters;
9
- activityTypes?: ActivityType[];
10
- users: User[];
11
- userId: Id;
12
- initialActivityId?: Id;
13
- initialActivitySlug?: Id;
14
- searchText?: string;
15
- showsArchivedActivities: boolean;
16
- showsOnlyImportant: boolean;
17
- showsOnlyNonAssigned: boolean;
18
- selectedActivity?: Activity;
19
- isTaskCheckable?: (task: Subtask) => boolean;
20
- isEditable: boolean | 'only-own';
21
- attachmentEnabled: boolean;
22
- timeTrackingData?: Record<Id, TimeTracking>;
23
- }
24
- declare function __VLS_template(): Readonly<{
25
- activityDetailsBody(props: {
26
- activity: Activity;
27
- }): any;
28
- }> & {
29
- activityDetailsBody(props: {
30
- activity: Activity;
31
- }): any;
32
- };
33
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
34
- searchText: string;
35
- isTaskCheckable: undefined;
36
- attachmentEnabled: boolean;
37
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
1
+ import type { TimeTracking } from '../types';
2
+ 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 StartTimerPayload, type Subtask, type UpdateActivityPayload, type UpdateCommentPayload, type UpdateSubtaskFieldPayload, type User } from '../types';
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
4
+ filters: {
5
+ type: import("vue").PropType<FeedFilters>;
6
+ required: true;
7
+ };
8
+ activities: {
9
+ type: import("vue").PropType<Activity[]>;
10
+ required: true;
11
+ };
12
+ project: {
13
+ type: import("vue").PropType<Project>;
14
+ };
15
+ isEditable: {
16
+ type: import("vue").PropType<boolean | "only-own">;
17
+ required: true;
18
+ };
19
+ users: {
20
+ type: import("vue").PropType<User[]>;
21
+ required: true;
22
+ };
23
+ userId: {
24
+ type: import("vue").PropType<string>;
25
+ required: true;
26
+ };
27
+ showsArchivedActivities: {
28
+ type: import("vue").PropType<boolean>;
29
+ required: true;
30
+ };
31
+ showsOnlyImportant: {
32
+ type: import("vue").PropType<boolean>;
33
+ required: true;
34
+ };
35
+ activityTypes: {
36
+ type: import("vue").PropType<ActivityType[]>;
37
+ };
38
+ isTaskCheckable: {
39
+ type: import("vue").PropType<(task: Subtask) => boolean>;
40
+ default: undefined;
41
+ };
42
+ statuses: {
43
+ type: import("vue").PropType<ActivityStatus[]>;
44
+ required: true;
45
+ };
46
+ attachmentEnabled: {
47
+ type: import("vue").PropType<boolean>;
48
+ required: true;
49
+ default: boolean;
50
+ };
51
+ projects: {
52
+ type: import("vue").PropType<Project[]>;
53
+ };
54
+ timeTrackingData: {
55
+ type: import("vue").PropType<Record<string, TimeTracking>>;
56
+ };
57
+ selectedActivity: {
58
+ type: import("vue").PropType<Activity>;
59
+ };
60
+ initialActivityId: {
61
+ type: import("vue").PropType<string>;
62
+ };
63
+ initialActivitySlug: {
64
+ type: import("vue").PropType<string>;
65
+ };
66
+ searchText: {
67
+ type: import("vue").PropType<string>;
68
+ default: string;
69
+ };
70
+ showsOnlyNonAssigned: {
71
+ type: import("vue").PropType<boolean>;
72
+ required: true;
73
+ };
74
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
38
75
  "change:activities": (payload: ChangeFeedActivitiesPayload) => void;
39
76
  addActivity: (payload: AddActivityFeedPayload) => void;
40
77
  "update:filters": (value: FeedFilters) => void;
41
78
  selectActivity: (activityId: string | null, activitySlug: string | null) => void;
42
79
  "update:activity": (payload: UpdateActivityPayload) => void;
43
80
  archiveActivity: (payload: {
44
- id: Id;
81
+ id: string;
45
82
  }) => void;
46
83
  unarchiveActivity: (payload: {
47
- id: Id;
84
+ id: string;
48
85
  }) => void;
49
86
  "update:searchText": (value: string) => void;
50
87
  "clear:searchText": (event: Event) => void;
@@ -54,40 +91,107 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
54
91
  addSubtask: (payload: AddSubtaskPayload) => void;
55
92
  updateSubtask: (payload: UpdateSubtaskFieldPayload) => void;
56
93
  deleteSubtask: (payload: {
57
- id: Id;
94
+ id: string;
58
95
  }) => void;
59
96
  addFiles: (payload: AddFilesPayload) => void;
60
97
  removeFile: (payload: RemoveFilePayload) => void;
61
98
  addComment: (payload: AddCommentPayload) => void;
62
99
  updateComment: (payload: UpdateCommentPayload) => void;
63
100
  removeComment: (payload: RemoveCommentPayload) => void;
64
- toast: (message: string, type: "error" | "success") => void;
101
+ toast: (message: string, type: "success" | "error") => void;
65
102
  startTimer: (payload: StartTimerPayload) => void;
66
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
67
- searchText: string;
68
- isTaskCheckable: undefined;
69
- attachmentEnabled: boolean;
70
- }>>> & Readonly<{
103
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
104
+ filters: {
105
+ type: import("vue").PropType<FeedFilters>;
106
+ required: true;
107
+ };
108
+ activities: {
109
+ type: import("vue").PropType<Activity[]>;
110
+ required: true;
111
+ };
112
+ project: {
113
+ type: import("vue").PropType<Project>;
114
+ };
115
+ isEditable: {
116
+ type: import("vue").PropType<boolean | "only-own">;
117
+ required: true;
118
+ };
119
+ users: {
120
+ type: import("vue").PropType<User[]>;
121
+ required: true;
122
+ };
123
+ userId: {
124
+ type: import("vue").PropType<string>;
125
+ required: true;
126
+ };
127
+ showsArchivedActivities: {
128
+ type: import("vue").PropType<boolean>;
129
+ required: true;
130
+ };
131
+ showsOnlyImportant: {
132
+ type: import("vue").PropType<boolean>;
133
+ required: true;
134
+ };
135
+ activityTypes: {
136
+ type: import("vue").PropType<ActivityType[]>;
137
+ };
138
+ isTaskCheckable: {
139
+ type: import("vue").PropType<(task: Subtask) => boolean>;
140
+ default: undefined;
141
+ };
142
+ statuses: {
143
+ type: import("vue").PropType<ActivityStatus[]>;
144
+ required: true;
145
+ };
146
+ attachmentEnabled: {
147
+ type: import("vue").PropType<boolean>;
148
+ required: true;
149
+ default: boolean;
150
+ };
151
+ projects: {
152
+ type: import("vue").PropType<Project[]>;
153
+ };
154
+ timeTrackingData: {
155
+ type: import("vue").PropType<Record<string, TimeTracking>>;
156
+ };
157
+ selectedActivity: {
158
+ type: import("vue").PropType<Activity>;
159
+ };
160
+ initialActivityId: {
161
+ type: import("vue").PropType<string>;
162
+ };
163
+ initialActivitySlug: {
164
+ type: import("vue").PropType<string>;
165
+ };
166
+ searchText: {
167
+ type: import("vue").PropType<string>;
168
+ default: string;
169
+ };
170
+ showsOnlyNonAssigned: {
171
+ type: import("vue").PropType<boolean>;
172
+ required: true;
173
+ };
174
+ }>> & {
71
175
  onStartTimer?: ((payload: StartTimerPayload) => any) | undefined;
72
176
  onSelectActivity?: ((activityId: string | null, activitySlug: string | null) => any) | undefined;
73
177
  onArchiveActivity?: ((payload: {
74
- id: Id;
178
+ id: string;
75
179
  }) => any) | undefined;
76
180
  onUnarchiveActivity?: ((payload: {
77
- id: Id;
181
+ id: string;
78
182
  }) => any) | undefined;
183
+ onUpdateComment?: ((payload: UpdateCommentPayload) => any) | undefined;
184
+ onRemoveComment?: ((payload: RemoveCommentPayload) => any) | undefined;
79
185
  onDeleteSubtask?: ((payload: {
80
- id: Id;
186
+ id: string;
81
187
  }) => any) | undefined;
82
188
  onRemoveFile?: ((payload: RemoveFilePayload) => any) | undefined;
83
- onUpdateComment?: ((payload: UpdateCommentPayload) => any) | undefined;
84
- onRemoveComment?: ((payload: RemoveCommentPayload) => any) | undefined;
85
189
  "onUpdate:activity"?: ((payload: UpdateActivityPayload) => any) | undefined;
86
190
  onAddSubtask?: ((payload: AddSubtaskPayload) => any) | undefined;
87
191
  onUpdateSubtask?: ((payload: UpdateSubtaskFieldPayload) => any) | undefined;
88
192
  onAddFiles?: ((payload: AddFilesPayload) => any) | undefined;
89
193
  onAddComment?: ((payload: AddCommentPayload) => any) | undefined;
90
- onToast?: ((message: string, type: "error" | "success") => any) | undefined;
194
+ onToast?: ((message: string, type: "success" | "error") => any) | undefined;
91
195
  onAddActivity?: ((payload: AddActivityFeedPayload) => any) | undefined;
92
196
  "onChange:activities"?: ((payload: ChangeFeedActivitiesPayload) => any) | undefined;
93
197
  "onUpdate:filters"?: ((value: FeedFilters) => any) | undefined;
@@ -96,30 +200,16 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
96
200
  "onUpdate:showsArchivedActivities"?: ((value: boolean) => any) | undefined;
97
201
  "onUpdate:showsOnlyImportant"?: ((value: boolean) => any) | undefined;
98
202
  "onUpdate:showsOnlyNonAssigned"?: ((value: boolean) => any) | undefined;
99
- }>, {
203
+ }, {
100
204
  isTaskCheckable: (task: Subtask) => boolean;
101
205
  attachmentEnabled: boolean;
102
206
  searchText: string;
103
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
104
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
207
+ }, {}>, {
208
+ activityDetailsBody(props: {
209
+ activity: Activity;
210
+ }): any;
211
+ }>;
105
212
  export default _default;
106
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
107
- type __VLS_TypePropsToRuntimeProps<T> = {
108
- [K in keyof T]-?: {} extends Pick<T, K> ? {
109
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
110
- } : {
111
- type: import('vue').PropType<T[K]>;
112
- required: true;
113
- };
114
- };
115
- type __VLS_WithDefaults<P, D> = {
116
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
117
- default: D[K];
118
- }> : P[K];
119
- };
120
- type __VLS_Prettify<T> = {
121
- [K in keyof T]: T[K];
122
- } & {};
123
213
  type __VLS_WithTemplateSlots<T, S> = T & {
124
214
  new (): {
125
215
  $slots: S;
@@ -1,73 +1,142 @@
1
- import { Project, User, AddPhasePayload, Id, Phase, ApplyTemplatePayload, UpdatePhasePayload, Subtask, ActivityStatus, Activity, ActivityType, SaveTemplatePayload } from '../types';
2
-
3
- type Props = {
4
- project: Project;
5
- phases: Phase[];
6
- closedStatus: ActivityStatus;
7
- users: User[];
8
- userId: Id;
1
+ import { type Project, type User, type AddPhasePayload, type Phase, type ApplyTemplatePayload, type UpdatePhasePayload, type Subtask, type ActivityStatus, type Activity, type ActivityType, type SaveTemplatePayload } from '../types';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
+ project: {
4
+ type: import("vue").PropType<Project>;
5
+ required: true;
6
+ };
7
+ phases: {
8
+ type: import("vue").PropType<Phase[]>;
9
+ required: true;
10
+ };
11
+ closedStatus: {
12
+ type: import("vue").PropType<ActivityStatus>;
13
+ required: true;
14
+ };
15
+ users: {
16
+ type: import("vue").PropType<User[]>;
17
+ required: true;
18
+ };
19
+ userId: {
20
+ type: import("vue").PropType<string>;
21
+ required: true;
22
+ };
9
23
  templates: {
10
- id: Id;
11
- name: string;
12
- }[];
13
- isTaskCheckable?: (task: Subtask) => boolean;
14
- statuses: ActivityStatus[];
15
- activityTypes: ActivityType[];
16
- isEditable: boolean | 'only-own';
17
- showsArchived: boolean;
18
- attachmentEnabled: boolean;
19
- };
20
- declare function __VLS_template(): Readonly<{
21
- activityDetailsBody(props: {
22
- activity: Activity;
23
- }): any;
24
- }> & {
25
- activityDetailsBody(props: {
26
- activity: Activity;
27
- }): any;
28
- };
29
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
30
- updatePhase: (payload: UpdatePhasePayload) => void;
24
+ type: import("vue").PropType<{
25
+ id: string;
26
+ name: string;
27
+ }[]>;
28
+ required: true;
29
+ };
30
+ isTaskCheckable: {
31
+ type: import("vue").PropType<(task: Subtask) => boolean>;
32
+ };
33
+ statuses: {
34
+ type: import("vue").PropType<ActivityStatus[]>;
35
+ required: true;
36
+ };
37
+ activityTypes: {
38
+ type: import("vue").PropType<ActivityType[]>;
39
+ required: true;
40
+ };
41
+ isEditable: {
42
+ type: import("vue").PropType<boolean | "only-own">;
43
+ required: true;
44
+ };
45
+ showsArchived: {
46
+ type: import("vue").PropType<boolean>;
47
+ required: true;
48
+ };
49
+ attachmentEnabled: {
50
+ type: import("vue").PropType<boolean>;
51
+ required: true;
52
+ };
53
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
54
  addPhase: (payload: AddPhasePayload) => void;
55
+ updatePhase: (payload: UpdatePhasePayload) => void;
32
56
  archivePhase: (payload: {
33
- id: Id;
57
+ id: string;
34
58
  }) => void;
35
59
  unarchivePhase: (payload: {
36
- id: Id;
60
+ id: string;
37
61
  }) => void;
38
62
  copyPhaseToTemplate: (payload: {
39
- id: Id;
63
+ id: string;
40
64
  }) => void;
41
65
  applyTemplate: (payload: ApplyTemplatePayload) => void;
42
66
  saveTemplate: (payload: SaveTemplatePayload) => void;
43
- "update:showsArchived": (value: boolean) => void;
44
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
67
+ 'update:showsArchived': (value: boolean) => void;
68
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
69
+ project: {
70
+ type: import("vue").PropType<Project>;
71
+ required: true;
72
+ };
73
+ phases: {
74
+ type: import("vue").PropType<Phase[]>;
75
+ required: true;
76
+ };
77
+ closedStatus: {
78
+ type: import("vue").PropType<ActivityStatus>;
79
+ required: true;
80
+ };
81
+ users: {
82
+ type: import("vue").PropType<User[]>;
83
+ required: true;
84
+ };
85
+ userId: {
86
+ type: import("vue").PropType<string>;
87
+ required: true;
88
+ };
89
+ templates: {
90
+ type: import("vue").PropType<{
91
+ id: string;
92
+ name: string;
93
+ }[]>;
94
+ required: true;
95
+ };
96
+ isTaskCheckable: {
97
+ type: import("vue").PropType<(task: Subtask) => boolean>;
98
+ };
99
+ statuses: {
100
+ type: import("vue").PropType<ActivityStatus[]>;
101
+ required: true;
102
+ };
103
+ activityTypes: {
104
+ type: import("vue").PropType<ActivityType[]>;
105
+ required: true;
106
+ };
107
+ isEditable: {
108
+ type: import("vue").PropType<boolean | "only-own">;
109
+ required: true;
110
+ };
111
+ showsArchived: {
112
+ type: import("vue").PropType<boolean>;
113
+ required: true;
114
+ };
115
+ attachmentEnabled: {
116
+ type: import("vue").PropType<boolean>;
117
+ required: true;
118
+ };
119
+ }>> & {
45
120
  onUpdatePhase?: ((payload: UpdatePhasePayload) => any) | undefined;
46
- onAddPhase?: ((payload: AddPhasePayload) => any) | undefined;
47
121
  onArchivePhase?: ((payload: {
48
- id: Id;
122
+ id: string;
49
123
  }) => any) | undefined;
50
124
  onUnarchivePhase?: ((payload: {
51
- id: Id;
125
+ id: string;
52
126
  }) => any) | undefined;
127
+ onAddPhase?: ((payload: AddPhasePayload) => any) | undefined;
53
128
  onCopyPhaseToTemplate?: ((payload: {
54
- id: Id;
129
+ id: string;
55
130
  }) => any) | undefined;
56
131
  onApplyTemplate?: ((payload: ApplyTemplatePayload) => any) | undefined;
57
132
  onSaveTemplate?: ((payload: SaveTemplatePayload) => any) | undefined;
58
133
  "onUpdate:showsArchived"?: ((value: boolean) => any) | undefined;
59
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
60
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
134
+ }, {}, {}>, {
135
+ activityDetailsBody(props: {
136
+ activity: Activity;
137
+ }): any;
138
+ }>;
61
139
  export default _default;
62
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
63
- type __VLS_TypePropsToRuntimeProps<T> = {
64
- [K in keyof T]-?: {} extends Pick<T, K> ? {
65
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
66
- } : {
67
- type: import('vue').PropType<T[K]>;
68
- required: true;
69
- };
70
- };
71
140
  type __VLS_WithTemplateSlots<T, S> = T & {
72
141
  new (): {
73
142
  $slots: S;