@26lights/orcha 0.42.39 → 0.42.41

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 (139) hide show
  1. package/dist/orcha.cjs.js +1026 -2
  2. package/dist/orcha.css +1 -1
  3. package/dist/orcha.es.js +38906 -7394
  4. package/dist/orcha.umd.js +1027 -3
  5. package/dist/src/components/AoActivityDetails.vue.d.ts +50 -137
  6. package/dist/src/components/AoActivityDetailsComments.vue.d.ts +43 -47
  7. package/dist/src/components/AoActivityDetailsFiles.vue.d.ts +25 -23
  8. package/dist/src/components/AoActivityTasks.vue.d.ts +25 -49
  9. package/dist/src/components/AoAddTemplateModal.vue.d.ts +20 -26
  10. package/dist/src/components/AoAvatar.vue.d.ts +37 -45
  11. package/dist/src/components/AoBadge.vue.d.ts +13 -10
  12. package/dist/src/components/AoButton.vue.d.ts +57 -82
  13. package/dist/src/components/AoButtonCard.vue.d.ts +54 -69
  14. package/dist/src/components/AoButtonCheck.vue.d.ts +21 -23
  15. package/dist/src/components/AoCard.vue.d.ts +44 -41
  16. package/dist/src/components/AoCardFeed.vue.d.ts +39 -126
  17. package/dist/src/components/AoCardHoriz.vue.d.ts +33 -60
  18. package/dist/src/components/AoCardProjectItemMilestone.vue.d.ts +39 -106
  19. package/dist/src/components/AoCardProjectItemPhase.vue.d.ts +42 -82
  20. package/dist/src/components/AoCardTemplate.vue.d.ts +23 -54
  21. package/dist/src/components/AoCardTemplateItem.vue.d.ts +16 -33
  22. package/dist/src/components/AoCardTemplateItemActivity.vue.d.ts +19 -17
  23. package/dist/src/components/AoCardTemplateItemMilestone.vue.d.ts +18 -11
  24. package/dist/src/components/AoCardTemplateItemPhase.vue.d.ts +20 -25
  25. package/dist/src/components/AoCheckboxField.vue.d.ts +42 -45
  26. package/dist/src/components/AoColHeader.vue.d.ts +13 -16
  27. package/dist/src/components/AoColorPicker.vue.d.ts +22 -16
  28. package/dist/src/components/AoComment.vue.d.ts +19 -51
  29. package/dist/src/components/AoCondensedCardProjectItemPhase.vue.d.ts +42 -82
  30. package/dist/src/components/AoField.vue.d.ts +33 -24
  31. package/dist/src/components/AoIcon.vue.d.ts +29 -21
  32. package/dist/src/components/AoInputField.vue.d.ts +50 -61
  33. package/dist/src/components/AoListKanban.vue.d.ts +23 -116
  34. package/dist/src/components/AoModal.vue.d.ts +28 -18
  35. package/dist/src/components/AoMultiselect.vue.d.ts +18 -15
  36. package/dist/src/components/AoPageHeader.vue.d.ts +15 -14
  37. package/dist/src/components/AoProgress.vue.d.ts +16 -23
  38. package/dist/src/components/AoProjectPhase.vue.d.ts +35 -66
  39. package/dist/src/components/AoProjectPhases.vue.d.ts +37 -68
  40. package/dist/src/components/AoRichTextEditor.vue.d.ts +45 -0
  41. package/dist/src/components/AoRuleLine.vue.d.ts +31 -45
  42. package/dist/src/components/AoSaveTemplateModal.vue.d.ts +17 -14
  43. package/dist/src/components/AoSearchField.vue.d.ts +34 -32
  44. package/dist/src/components/AoTabBar.vue.d.ts +6 -6
  45. package/dist/src/components/AoTag.vue.d.ts +23 -50
  46. package/dist/src/components/AoTemplateDetailsActivities.vue.d.ts +21 -38
  47. package/dist/src/components/AoTemplateDetailsMilestones.vue.d.ts +19 -28
  48. package/dist/src/components/AoTemplateRules.vue.d.ts +18 -43
  49. package/dist/src/components/AoTitle.vue.d.ts +40 -51
  50. package/dist/src/components/icons/AccountBoxSharp.vue.d.ts +1 -1
  51. package/dist/src/components/icons/AccountCircle.vue.d.ts +1 -1
  52. package/dist/src/components/icons/AccountTreeOutlineRounded.vue.d.ts +1 -1
  53. package/dist/src/components/icons/AccountTreeRounded.vue.d.ts +1 -1
  54. package/dist/src/components/icons/Add.vue.d.ts +1 -1
  55. package/dist/src/components/icons/AddBoxOutlineRounded.vue.d.ts +1 -1
  56. package/dist/src/components/icons/ArchiveOutlineRounded.vue.d.ts +1 -1
  57. package/dist/src/components/icons/ArrowBackRounded.vue.d.ts +1 -1
  58. package/dist/src/components/icons/ArrowDropDownRounded.vue.d.ts +1 -1
  59. package/dist/src/components/icons/ArrowForwardRounded.vue.d.ts +1 -1
  60. package/dist/src/components/icons/AssignmentOutlineRounded.vue.d.ts +1 -1
  61. package/dist/src/components/icons/AttachFileRounded.vue.d.ts +1 -1
  62. package/dist/src/components/icons/CalendarTodayOutlineRounded.vue.d.ts +1 -1
  63. package/dist/src/components/icons/CancelRounded.vue.d.ts +1 -1
  64. package/dist/src/components/icons/ChatOutline.vue.d.ts +1 -1
  65. package/dist/src/components/icons/CheckBoxOutlineBlank.vue.d.ts +1 -1
  66. package/dist/src/components/icons/CheckBoxOutlineBlankSharp.vue.d.ts +1 -1
  67. package/dist/src/components/icons/CheckBoxOutlineRounded.vue.d.ts +1 -1
  68. package/dist/src/components/icons/CheckSmallRounded.vue.d.ts +1 -1
  69. package/dist/src/components/icons/ChecklistRounded.vue.d.ts +1 -1
  70. package/dist/src/components/icons/ChevronLeft.vue.d.ts +1 -1
  71. package/dist/src/components/icons/ChevronRight.vue.d.ts +1 -1
  72. package/dist/src/components/icons/CloseRounded.vue.d.ts +1 -1
  73. package/dist/src/components/icons/ContactsOutlineRounded.vue.d.ts +1 -1
  74. package/dist/src/components/icons/ContentCopyOutline.vue.d.ts +1 -1
  75. package/dist/src/components/icons/DeleteOutlineRounded.vue.d.ts +1 -1
  76. package/dist/src/components/icons/DragIndicator.vue.d.ts +1 -1
  77. package/dist/src/components/icons/EditDocumentRounded.vue.d.ts +1 -1
  78. package/dist/src/components/icons/EditOutline.vue.d.ts +1 -1
  79. package/dist/src/components/icons/ErrorOutlineRounded.vue.d.ts +1 -1
  80. package/dist/src/components/icons/FilterListRounded.vue.d.ts +1 -1
  81. package/dist/src/components/icons/FlagRounded.vue.d.ts +1 -1
  82. package/dist/src/components/icons/FlowsheetOutlineRounded.vue.d.ts +1 -1
  83. package/dist/src/components/icons/GifBox.vue.d.ts +1 -1
  84. package/dist/src/components/icons/GroupsOutline.vue.d.ts +1 -1
  85. package/dist/src/components/icons/HomeOutlineRounded.vue.d.ts +1 -1
  86. package/dist/src/components/icons/ImageRounded.vue.d.ts +1 -1
  87. package/dist/src/components/icons/Info.vue.d.ts +1 -1
  88. package/dist/src/components/icons/KeyboardArrowDown.vue.d.ts +1 -1
  89. package/dist/src/components/icons/KeyboardArrowUp.vue.d.ts +1 -1
  90. package/dist/src/components/icons/Loading.vue.d.ts +1 -1
  91. package/dist/src/components/icons/Lock.vue.d.ts +1 -1
  92. package/dist/src/components/icons/LogoutRounded.vue.d.ts +1 -1
  93. package/dist/src/components/icons/Menu.vue.d.ts +1 -1
  94. package/dist/src/components/icons/MoreHoriz.vue.d.ts +1 -1
  95. package/dist/src/components/icons/MoreTimeRounded.vue.d.ts +1 -1
  96. package/dist/src/components/icons/MoreVert.vue.d.ts +1 -1
  97. package/dist/src/components/icons/MountainFlagOutlineRounded.vue.d.ts +1 -1
  98. package/dist/src/components/icons/PersonAddOutlineRounded.vue.d.ts +1 -1
  99. package/dist/src/components/icons/PictureAsPdfRounded.vue.d.ts +1 -1
  100. package/dist/src/components/icons/RadioButtonChecked.vue.d.ts +1 -1
  101. package/dist/src/components/icons/RadioButtonCheckedOutline.vue.d.ts +1 -1
  102. package/dist/src/components/icons/RadioButtonUnchecked.vue.d.ts +1 -1
  103. package/dist/src/components/icons/RemoveRounded.vue.d.ts +1 -1
  104. package/dist/src/components/icons/SearchRounded.vue.d.ts +1 -1
  105. package/dist/src/components/icons/SelectCheckBox.vue.d.ts +1 -1
  106. package/dist/src/components/icons/SendRounded.vue.d.ts +1 -1
  107. package/dist/src/components/icons/Settings.vue.d.ts +1 -1
  108. package/dist/src/components/icons/SlideshowRounded.vue.d.ts +1 -1
  109. package/dist/src/components/icons/Target.vue.d.ts +1 -1
  110. package/dist/src/components/icons/TaskOutlineRounded.vue.d.ts +1 -1
  111. package/dist/src/components/icons/TextSnippetRounded.vue.d.ts +1 -1
  112. package/dist/src/components/icons/TimerOutline.vue.d.ts +1 -1
  113. package/dist/src/components/icons/ViewComfyAltRounded.vue.d.ts +1 -1
  114. package/dist/src/components/icons/ViewCompactAltRounded.vue.d.ts +1 -1
  115. package/dist/src/components/icons/ViewTimelineRounded.vue.d.ts +1 -1
  116. package/dist/src/components/icons/WarningOutlineRounded.vue.d.ts +1 -1
  117. package/dist/src/components/icons/WarningRounded.vue.d.ts +1 -1
  118. package/dist/src/components/icons/WaterfallChartRounded.vue.d.ts +1 -1
  119. package/dist/src/composables/useDetachedOptions.d.ts +2 -1
  120. package/dist/src/composables/useGetDefaultRankAndName.d.ts +2 -1
  121. package/dist/src/composables/useIsEditing.d.ts +4 -3
  122. package/dist/src/composables/useSearchField.d.ts +1 -1
  123. package/dist/src/composables/useSelectAddedElement.d.ts +2 -1
  124. package/dist/src/helpers.d.ts +13 -6
  125. package/dist/src/i18n/i18next.d.ts +3 -2
  126. package/dist/src/main.d.ts +1 -0
  127. package/dist/src/router/routes.d.ts +2 -1
  128. package/dist/src/types/components.d.ts +3 -2
  129. package/dist/src/types/styles.d.ts +1 -1
  130. package/dist/src/types/utils.d.ts +2 -1
  131. package/dist/src/views/AoFeed.vue.d.ts +72 -162
  132. package/dist/src/views/AoMapping.vue.d.ts +49 -118
  133. package/dist/src/views/AoProjectOverviewActivityDetails.vue.d.ts +43 -125
  134. package/dist/src/views/AoProjectOverviewMilestoneDetails.vue.d.ts +31 -71
  135. package/dist/src/views/AoProjectOverviewProject.vue.d.ts +79 -153
  136. package/dist/src/views/AoTemplateDetails.vue.d.ts +37 -61
  137. package/dist/src/views/AoTemplates.vue.d.ts +15 -10
  138. package/dist/src/views/AoTemplatesList.vue.d.ts +17 -12
  139. package/package.json +2 -1
@@ -1,146 +1,59 @@
1
- import { type ActivityFeed, type Milestone, type UpdateSubtaskFieldPayload, type AddSubtaskPayload, type User, type AddFilesPayload, type RemoveFilePayload, type UpdateActivityPayload, type Activity, type Subtask, type ActivityStatus, type AddCommentPayload, type RemoveCommentPayload, type UpdateCommentPayload, type ActivityType, type Project, type TimeTracking } from '../types/index';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
- isEditable: {
4
- type: import("vue").PropType<boolean | "only-own">;
5
- required: true;
6
- };
7
- breadcrumbs: {
8
- type: import("vue").PropType<string>;
9
- };
10
- users: {
11
- type: import("vue").PropType<User[]>;
12
- required: true;
13
- };
14
- userId: {
15
- type: import("vue").PropType<string>;
16
- };
17
- activity: {
18
- type: import("vue").PropType<Activity>;
19
- required: true;
20
- };
21
- isTemplate: {
22
- type: import("vue").PropType<boolean>;
23
- };
24
- activityTypes: {
25
- type: import("vue").PropType<ActivityType[]>;
26
- };
27
- milestoneId: {
28
- type: import("vue").PropType<string>;
29
- };
30
- templateActivities: {
31
- type: import("vue").PropType<(Activity | ActivityFeed<import('../types/index').ActivityFeedStatus>)[]>;
32
- required: true;
33
- };
34
- templateMilestones: {
35
- type: import("vue").PropType<Milestone[]>;
36
- };
37
- isTaskCheckable: {
38
- type: import("vue").PropType<(task: Subtask) => boolean>;
39
- };
40
- statuses: {
41
- type: import("vue").PropType<ActivityStatus[]>;
42
- };
43
- attachmentEnabled: {
44
- type: import("vue").PropType<boolean>;
45
- required: true;
46
- };
47
- projects: {
48
- type: import("vue").PropType<Project[]>;
49
- default: () => never[];
50
- };
51
- timeTrackingData: {
52
- type: import("vue").PropType<Record<string, TimeTracking>>;
53
- };
54
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
55
- 'update:activity': (payload: UpdateActivityPayload) => void;
56
- close: (args_0: void) => void;
57
- addSubtask: (payload: AddSubtaskPayload) => void;
58
- updateSubtask: (payload: UpdateSubtaskFieldPayload) => void;
59
- deleteSubtask: (payload: {
60
- id: string;
61
- }) => void;
62
- addFiles: (payload: AddFilesPayload) => void;
63
- removeFile: (payload: RemoveFilePayload) => void;
64
- addComment: (payload: AddCommentPayload) => void;
65
- updateComment: (payload: UpdateCommentPayload) => void;
66
- removeComment: (payload: RemoveCommentPayload) => void;
67
- toast: (messageKey: string, type: "success" | "error") => void;
68
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
69
- isEditable: {
70
- type: import("vue").PropType<boolean | "only-own">;
71
- required: true;
72
- };
73
- breadcrumbs: {
74
- type: import("vue").PropType<string>;
75
- };
76
- users: {
77
- type: import("vue").PropType<User[]>;
78
- required: true;
79
- };
80
- userId: {
81
- type: import("vue").PropType<string>;
82
- };
83
- activity: {
84
- type: import("vue").PropType<Activity>;
85
- required: true;
86
- };
87
- isTemplate: {
88
- type: import("vue").PropType<boolean>;
89
- };
90
- activityTypes: {
91
- type: import("vue").PropType<ActivityType[]>;
92
- };
93
- milestoneId: {
94
- type: import("vue").PropType<string>;
95
- };
96
- templateActivities: {
97
- type: import("vue").PropType<(Activity | ActivityFeed<import('../types/index').ActivityFeedStatus>)[]>;
98
- required: true;
99
- };
100
- templateMilestones: {
101
- type: import("vue").PropType<Milestone[]>;
102
- };
103
- isTaskCheckable: {
104
- type: import("vue").PropType<(task: Subtask) => boolean>;
105
- };
106
- statuses: {
107
- type: import("vue").PropType<ActivityStatus[]>;
108
- };
109
- attachmentEnabled: {
110
- type: import("vue").PropType<boolean>;
111
- required: true;
112
- };
113
- projects: {
114
- type: import("vue").PropType<Project[]>;
115
- default: () => never[];
116
- };
117
- timeTrackingData: {
118
- type: import("vue").PropType<Record<string, TimeTracking>>;
119
- };
120
- }>> & {
121
- onClose?: ((args_0?: void | undefined) => any) | undefined;
122
- onUpdateComment?: ((payload: UpdateCommentPayload) => any) | undefined;
123
- onRemoveComment?: ((payload: RemoveCommentPayload) => any) | undefined;
124
- onDeleteSubtask?: ((payload: {
125
- id: string;
126
- }) => any) | undefined;
127
- onRemoveFile?: ((payload: RemoveFilePayload) => any) | undefined;
128
- "onUpdate:activity"?: ((payload: UpdateActivityPayload) => any) | undefined;
129
- onAddSubtask?: ((payload: AddSubtaskPayload) => any) | undefined;
130
- onUpdateSubtask?: ((payload: UpdateSubtaskFieldPayload) => any) | undefined;
131
- onAddFiles?: ((payload: AddFilesPayload) => any) | undefined;
132
- onAddComment?: ((payload: AddCommentPayload) => any) | undefined;
133
- onToast?: ((messageKey: string, type: "success" | "error") => any) | undefined;
134
- }, {
135
- projects: Project[];
136
- }, {}>, {
1
+ import { ActivityFeed, Milestone, Id, User, Activity, Subtask, ActivityStatus, ActivityType, Project, TimeTracking } from '../types/index';
2
+
3
+ interface Props {
4
+ activity: Activity;
5
+ activityTypes?: ActivityType[];
6
+ breadcrumbs?: string;
7
+ milestoneId?: string;
8
+ templateActivities: Array<Activity | ActivityFeed>;
9
+ templateMilestones?: Milestone[];
10
+ isTemplate?: boolean;
11
+ users: User[];
12
+ userId?: string;
13
+ isTaskCheckable?: (task: Subtask) => boolean;
14
+ statuses?: ActivityStatus[];
15
+ isEditable: boolean | 'only-own';
16
+ attachmentEnabled: boolean;
17
+ projects?: Project[];
18
+ timeTrackingData?: Record<Id, TimeTracking>;
19
+ }
20
+ declare function __VLS_template(): Readonly<{
21
+ header(): any;
22
+ default(props: {
23
+ activity: Activity;
24
+ }): any;
25
+ footer(): any;
26
+ }> & {
137
27
  header(): any;
138
28
  default(props: {
139
29
  activity: Activity;
140
30
  }): any;
141
31
  footer(): any;
142
- }>;
32
+ };
33
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
34
+ projects: () => never[];
35
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, any, string, import('vue').PublicProps, any, {
36
+ projects: Project[];
37
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
38
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
143
39
  export default _default;
40
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
41
+ type __VLS_TypePropsToRuntimeProps<T> = {
42
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
43
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
44
+ } : {
45
+ type: import('vue').PropType<T[K]>;
46
+ required: true;
47
+ };
48
+ };
49
+ type __VLS_WithDefaults<P, D> = {
50
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
51
+ default: D[K];
52
+ }> : P[K];
53
+ };
54
+ type __VLS_Prettify<T> = {
55
+ [K in keyof T]: T[K];
56
+ } & {};
144
57
  type __VLS_WithTemplateSlots<T, S> = T & {
145
58
  new (): {
146
59
  $slots: S;
@@ -1,68 +1,64 @@
1
- import { type Comment, type User } from '../types';
2
- declare const _default: import("vue").DefineComponent<{
3
- comments: {
4
- type: import("vue").PropType<Comment[]>;
5
- default: () => never[];
6
- };
7
- users: {
8
- type: import("vue").PropType<User[]>;
9
- required: true;
10
- };
11
- userId: {
12
- type: import("vue").PropType<string>;
13
- required: true;
14
- };
15
- newComment: {
16
- type: import("vue").PropType<string>;
17
- default: string;
18
- };
19
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1
+ import { Comment, Id, User } from '../types';
2
+
3
+ type Props = {
4
+ comments?: Comment[];
5
+ users: User[];
6
+ newComment?: string;
7
+ userId: Id;
8
+ };
9
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
10
+ comments: () => never[];
11
+ newComment: string;
12
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
13
  createComment: (payload: {
21
14
  authorId: string;
22
15
  message: string;
23
- mentionedUserIds: string[];
16
+ mentionedUserIds: Id[];
24
17
  }) => void;
25
18
  updateComment: (payload: {
26
- id: string;
19
+ id: Id;
27
20
  message: string;
28
- mentionedUserIds: string[];
21
+ mentionedUserIds: Id[];
29
22
  }) => void;
30
23
  removeComment: (payload: {
31
- id: string;
24
+ id: Id;
32
25
  }) => void;
33
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
34
- comments: {
35
- type: import("vue").PropType<Comment[]>;
36
- default: () => never[];
37
- };
38
- users: {
39
- type: import("vue").PropType<User[]>;
40
- required: true;
41
- };
42
- userId: {
43
- type: import("vue").PropType<string>;
44
- required: true;
45
- };
46
- newComment: {
47
- type: import("vue").PropType<string>;
48
- default: string;
49
- };
50
- }>> & {
26
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
27
+ comments: () => never[];
28
+ newComment: string;
29
+ }>>> & Readonly<{
51
30
  onCreateComment?: ((payload: {
52
31
  authorId: string;
53
32
  message: string;
54
- mentionedUserIds: string[];
33
+ mentionedUserIds: Id[];
55
34
  }) => any) | undefined;
56
35
  onUpdateComment?: ((payload: {
57
- id: string;
36
+ id: Id;
58
37
  message: string;
59
- mentionedUserIds: string[];
38
+ mentionedUserIds: Id[];
60
39
  }) => any) | undefined;
61
40
  onRemoveComment?: ((payload: {
62
- id: string;
41
+ id: Id;
63
42
  }) => any) | undefined;
64
- }, {
43
+ }>, {
65
44
  comments: Comment[];
66
45
  newComment: string;
67
- }, {}>;
46
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
68
47
  export default _default;
48
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
49
+ type __VLS_TypePropsToRuntimeProps<T> = {
50
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
51
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
52
+ } : {
53
+ type: import('vue').PropType<T[K]>;
54
+ required: true;
55
+ };
56
+ };
57
+ type __VLS_WithDefaults<P, D> = {
58
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
59
+ default: D[K];
60
+ }> : P[K];
61
+ };
62
+ type __VLS_Prettify<T> = {
63
+ [K in keyof T]: T[K];
64
+ } & {};
@@ -1,32 +1,34 @@
1
- import { type Attachment } from '../types';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
- attachments: {
4
- type: import("vue").PropType<[] | Attachment[] | undefined>;
5
- required: true;
6
- };
7
- isEditable: {
8
- type: import("vue").PropType<boolean>;
9
- };
10
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1
+ import { Attachment } from '../types';
2
+
3
+ declare function __VLS_template(): {
4
+ default?(_: {}): any;
5
+ };
6
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
+ attachments: Attachment[] | [] | undefined;
8
+ isEditable?: boolean;
9
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
10
  add: (value: [] | File[]) => void;
12
11
  toggleIsDropActive: (value: boolean) => void;
13
12
  remove: (value: Attachment) => void;
14
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
- attachments: {
16
- type: import("vue").PropType<[] | Attachment[] | undefined>;
17
- required: true;
18
- };
19
- isEditable: {
20
- type: import("vue").PropType<boolean>;
21
- };
22
- }>> & {
23
- onAdd?: ((value: [] | File[]) => any) | undefined;
13
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
14
+ attachments: Attachment[] | [] | undefined;
15
+ isEditable?: boolean;
16
+ }>>> & Readonly<{
24
17
  onRemove?: ((value: Attachment) => any) | undefined;
18
+ onAdd?: ((value: [] | File[]) => any) | undefined;
25
19
  onToggleIsDropActive?: ((value: boolean) => any) | undefined;
26
- }, {}, {}>, {
27
- default?(_: {}): any;
28
- }>;
20
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
29
22
  export default _default;
23
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
24
+ type __VLS_TypePropsToRuntimeProps<T> = {
25
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
26
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
27
+ } : {
28
+ type: import('vue').PropType<T[K]>;
29
+ required: true;
30
+ };
31
+ };
30
32
  type __VLS_WithTemplateSlots<T, S> = T & {
31
33
  new (): {
32
34
  $slots: S;
@@ -1,57 +1,33 @@
1
- import { type Subtask, type UpdateSubtaskFieldPayload, type AddSubtaskPayload, type User } from '../types';
2
- declare const _default: import("vue").DefineComponent<{
3
- activityId: {
4
- type: import("vue").PropType<string>;
5
- required: true;
6
- };
7
- tasks: {
8
- type: import("vue").PropType<Subtask[]>;
9
- required: true;
10
- };
11
- isCheckable: {
12
- type: import("vue").PropType<(task: Subtask) => boolean>;
13
- };
14
- users: {
15
- type: import("vue").PropType<User[]>;
16
- };
17
- isEditable: {
18
- type: import("vue").PropType<boolean>;
19
- };
20
- isTemplate: {
21
- type: import("vue").PropType<boolean>;
22
- };
23
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1
+ import { Id, Subtask, UpdateSubtaskFieldPayload, AddSubtaskPayload, User } from '../types';
2
+
3
+ type Props = {
4
+ activityId: Id;
5
+ tasks: Subtask[];
6
+ isCheckable?: (task: Subtask) => boolean;
7
+ users?: User[];
8
+ isEditable?: boolean;
9
+ isTemplate?: boolean;
10
+ };
11
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
12
  add: (payload: AddSubtaskPayload) => void;
25
13
  delete: (payload: {
26
- id: string;
14
+ id: Id;
27
15
  }) => void;
28
16
  update: (payload: UpdateSubtaskFieldPayload) => void;
29
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
30
- activityId: {
31
- type: import("vue").PropType<string>;
32
- required: true;
33
- };
34
- tasks: {
35
- type: import("vue").PropType<Subtask[]>;
36
- required: true;
37
- };
38
- isCheckable: {
39
- type: import("vue").PropType<(task: Subtask) => boolean>;
40
- };
41
- users: {
42
- type: import("vue").PropType<User[]>;
43
- };
44
- isEditable: {
45
- type: import("vue").PropType<boolean>;
46
- };
47
- isTemplate: {
48
- type: import("vue").PropType<boolean>;
49
- };
50
- }>> & {
51
- onUpdate?: ((payload: UpdateSubtaskFieldPayload) => any) | undefined;
17
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
52
18
  onAdd?: ((payload: AddSubtaskPayload) => any) | undefined;
53
19
  onDelete?: ((payload: {
54
- id: string;
20
+ id: Id;
55
21
  }) => any) | undefined;
56
- }, {}, {}>;
22
+ onUpdate?: ((payload: UpdateSubtaskFieldPayload) => any) | undefined;
23
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
57
24
  export default _default;
25
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
26
+ type __VLS_TypePropsToRuntimeProps<T> = {
27
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
28
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
29
+ } : {
30
+ type: import('vue').PropType<T[K]>;
31
+ required: true;
32
+ };
33
+ };
@@ -1,30 +1,24 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- projectId: {
3
- type: import("vue").PropType<string>;
4
- required: true;
5
- };
1
+ import { Id } from '../types';
2
+
3
+ type Props = {
4
+ projectId: Id;
6
5
  templates: {
7
- type: import("vue").PropType<{
8
- id: string;
9
- name: string;
10
- }[]>;
11
- required: true;
12
- };
13
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ id: Id;
7
+ name: string;
8
+ }[];
9
+ };
10
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
11
  apply: (templateId: string, projectId: string) => void;
15
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
16
- projectId: {
17
- type: import("vue").PropType<string>;
18
- required: true;
19
- };
20
- templates: {
21
- type: import("vue").PropType<{
22
- id: string;
23
- name: string;
24
- }[]>;
25
- required: true;
26
- };
27
- }>> & {
12
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
28
13
  onApply?: ((templateId: string, projectId: string) => any) | undefined;
29
- }, {}, {}>;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
30
15
  export default _default;
16
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
17
+ type __VLS_TypePropsToRuntimeProps<T> = {
18
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
19
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
20
+ } : {
21
+ type: import('vue').PropType<T[K]>;
22
+ required: true;
23
+ };
24
+ };
@@ -1,49 +1,41 @@
1
- import { type SizeValues } from '../types/styles';
2
- import { type ColorValues } from '../types/styles';
3
- declare const _default: import("vue").DefineComponent<{
4
- color: {
5
- type: import("vue").PropType<ColorValues>;
6
- default: string;
7
- };
8
- size: {
9
- type: import("vue").PropType<SizeValues>;
10
- default: "md";
11
- };
12
- userName: {
13
- type: import("vue").PropType<string>;
14
- required: true;
15
- };
16
- avatarUrl: {
17
- type: import("vue").PropType<string>;
18
- };
19
- isClosable: {
20
- type: import("vue").PropType<boolean>;
21
- };
22
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1
+ import { SizeValues, ColorValues } from '../types/styles';
2
+
3
+ interface Props {
4
+ userName: string;
5
+ avatarUrl?: string;
6
+ isClosable?: boolean;
7
+ size?: SizeValues;
8
+ color?: ColorValues;
9
+ }
10
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
+ size: "md";
12
+ color: string;
13
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
14
  close: (event: Event) => void;
24
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
25
- color: {
26
- type: import("vue").PropType<ColorValues>;
27
- default: string;
28
- };
29
- size: {
30
- type: import("vue").PropType<SizeValues>;
31
- default: "md";
32
- };
33
- userName: {
34
- type: import("vue").PropType<string>;
35
- required: true;
36
- };
37
- avatarUrl: {
38
- type: import("vue").PropType<string>;
39
- };
40
- isClosable: {
41
- type: import("vue").PropType<boolean>;
42
- };
43
- }>> & {
15
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
16
+ size: "md";
17
+ color: string;
18
+ }>>> & Readonly<{
44
19
  onClose?: ((event: Event) => any) | undefined;
45
- }, {
46
- color: ColorValues;
20
+ }>, {
47
21
  size: SizeValues;
48
- }, {}>;
22
+ color: ColorValues;
23
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
49
24
  export default _default;
25
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
26
+ type __VLS_TypePropsToRuntimeProps<T> = {
27
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
28
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
29
+ } : {
30
+ type: import('vue').PropType<T[K]>;
31
+ required: true;
32
+ };
33
+ };
34
+ type __VLS_WithDefaults<P, D> = {
35
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
36
+ default: D[K];
37
+ }> : P[K];
38
+ };
39
+ type __VLS_Prettify<T> = {
40
+ [K in keyof T]: T[K];
41
+ } & {};
@@ -1,12 +1,15 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- color: {
3
- type: import("vue").PropType<string>;
4
- required: true;
5
- };
6
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
- color: {
8
- type: import("vue").PropType<string>;
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
+ color: string;
3
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
+ color: string;
5
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
6
+ export default _default;
7
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
8
+ type __VLS_TypePropsToRuntimeProps<T> = {
9
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
10
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
11
+ } : {
12
+ type: import('vue').PropType<T[K]>;
9
13
  required: true;
10
14
  };
11
- }>>, {}, {}>;
12
- export default _default;
15
+ };