@ehfuse/taskbox 0.5.31 → 0.5.33

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.
@@ -0,0 +1,28 @@
1
+ /**
2
+ * 캘린더 업무 칩이다 — 월간 격자·모바일 아젠다가 함께 쓴다(같은 모양이라 한 곳에서 만든다).
3
+ * 상태 태그 색을 배경으로 쓰고(다크는 점 색의 옅은 투명막), 중요도 점 + 아이콘 + 제목을 한 줄로 그린다.
4
+ * 내가 책임자면 왼쪽 세로 띠, 남이 책임자면 오른쪽 끝에 그 사람 아바타를 붙인다.
5
+ * 드래그(월간 격자)는 소비처가 ref/핸들러를 넘겨 붙인다 — 이 컴포넌트는 표시만 맡는다.
6
+ */
7
+ import type { MouseEvent, ReactNode } from "react";
8
+ import type { TaskBoxItem, TaskBoxLabel, TaskBoxPriority } from "../types";
9
+ /** 중요도별 칩 점 색이다(월간·아젠다 공용). */
10
+ export declare const CALENDAR_PRIORITY_DOT_COLORS: Record<TaskBoxPriority, string>;
11
+ /** 칩 글자 크기(px)다 — 월간·아젠다가 같은 크기를 쓴다. */
12
+ export declare const CALENDAR_CHIP_FONT_SIZE = 15;
13
+ export interface CalendarTaskChipProps {
14
+ task: TaskBoxItem;
15
+ statusOptions: TaskBoxLabel[];
16
+ onOpenDetail: (task: TaskBoxItem) => void;
17
+ onContextMenu?: (task: TaskBoxItem, event: MouseEvent) => void;
18
+ isPreview?: boolean;
19
+ isDragging?: boolean;
20
+ isMine?: boolean;
21
+ avatarSrcByName?: Map<string, string>;
22
+ onOpenMembers?: (task: TaskBoxItem) => void;
23
+ setNodeRef?: (node: HTMLElement | null) => void;
24
+ dragProps?: Record<string, unknown>;
25
+ trailing?: ReactNode;
26
+ }
27
+ /** 캘린더 업무 칩 컴포넌트다. */
28
+ export declare function CalendarTaskChip({ task, statusOptions, onOpenDetail, onContextMenu, isPreview, isDragging, isMine, avatarSrcByName, onOpenMembers, setNodeRef, dragProps, trailing, }: CalendarTaskChipProps): import("react").JSX.Element;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * 업무 인원 정보 다이얼로그다 — 캘린더 칩의 책임자 아바타를 누르면 화면 가운데에 뜬다.
3
+ * 책임자 / 참조자 / 작성자를 아바타와 함께 보여주기만 하는 읽기 전용 화면이다(수정은 상세 드로어).
4
+ */
5
+ import type { TaskBoxItem } from "../types";
6
+ export interface TaskMembersDialogProps {
7
+ task: TaskBoxItem | null;
8
+ avatarSrcByName?: Map<string, string>;
9
+ onClose: () => void;
10
+ }
11
+ /** 업무 인원 정보 다이얼로그 컴포넌트다. */
12
+ export declare function TaskMembersDialog({ task, avatarSrcByName, onClose }: TaskMembersDialogProps): import("react").JSX.Element;