@ehfuse/taskbox 0.5.248 → 0.5.249

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.
@@ -17,6 +17,8 @@ export interface WorkloadChartProps {
17
17
  capacity?: WorkloadCapacity;
18
18
  height?: number | string;
19
19
  headerLeft?: ReactNode;
20
+ selectedAccountSeq?: number;
21
+ onSelectPerson?: (accountSeq: number) => void;
20
22
  }
21
23
  /** 인원별 부하 차트 컴포넌트다. */
22
- export declare function WorkloadChart({ tasks, todayStr, soonDays, overloadThreshold, capacity, height, headerLeft, }: WorkloadChartProps): import("react").JSX.Element;
24
+ export declare function WorkloadChart({ tasks, todayStr, soonDays, overloadThreshold, capacity, height, headerLeft, selectedAccountSeq, onSelectPerson, }: WorkloadChartProps): import("react").JSX.Element;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * 워크로드에서 고른 사람의 미완료 업무 목록이다 — 차트 아래에 붙어 **그 자리에서 책임자를 옮기게** 한다.
3
+ *
4
+ * 차트만 있으면 "누가 넘쳤는지"까지만 알고, 옮기려면 목록으로 돌아가 한 건씩 고쳐야 했다.
5
+ * 부하를 본 화면에서 바로 손을 쓰는 것이 이 목록의 유일한 목적이라, 표시는 마감·제목·중요도로만 좁히고
6
+ * 조작은 [책임자 변경] 하나만 둔다(상세를 열어야 할 일은 제목을 눌러 원래 상세로 간다).
7
+ *
8
+ * 드래그가 아니라 **클릭 → 메뉴**로 옮긴다: 터치 기기와 좁은 화면에서도 되고, 옮길 사람의 현재 부하를
9
+ * 메뉴에 함께 적어 "여유 있는 사람"을 고르게 할 수 있다(드래그로는 그 정보를 보여줄 자리가 없다).
10
+ */
11
+ import type { TaskBoxItem, TaskboxEmployee } from "../types";
12
+ import type { WorkloadRow } from "../utils/taskWorkload";
13
+ /** 워크로드 인원 업무 목록 props 다. */
14
+ export interface WorkloadPersonTasksProps {
15
+ tasks: TaskBoxItem[];
16
+ row: WorkloadRow;
17
+ todayStr: string;
18
+ employees: TaskboxEmployee[];
19
+ rows: WorkloadRow[];
20
+ height?: number | string;
21
+ onChangeManager?: (taskSeq: number, accountSeq: number, name: string) => void;
22
+ onOpenTask?: (taskSeq: number) => void;
23
+ }
24
+ /** 워크로드 인원 업무 목록 컴포넌트다. */
25
+ export declare function WorkloadPersonTasks({ tasks, row, todayStr, employees, rows, height, onChangeManager, onOpenTask, }: WorkloadPersonTasksProps): import("react").JSX.Element;
@@ -15,7 +15,9 @@ export interface SprintChartsDialogProps {
15
15
  capacity?: WorkloadCapacity;
16
16
  capacityEmployees?: TaskboxEmployee[];
17
17
  onSaveCapacity?: (capacity: WorkloadCapacity) => void | Promise<void>;
18
+ onChangeTaskManager?: (taskSeq: number, accountSeq: number, name: string) => void;
19
+ onOpenTask?: (taskSeq: number) => void;
18
20
  onClose: () => void;
19
21
  }
20
22
  /** 업무 차트 다이얼로그 컴포넌트다. */
21
- export declare function SprintChartsDialog({ open, sprints, tasks, todayStr, showSprintCharts, capacity, capacityEmployees, onSaveCapacity, initialSprintSeq, onClose, }: SprintChartsDialogProps): import("react").JSX.Element;
23
+ export declare function SprintChartsDialog({ open, sprints, tasks, todayStr, showSprintCharts, capacity, capacityEmployees, onSaveCapacity, onChangeTaskManager, onOpenTask, initialSprintSeq, onClose, }: SprintChartsDialogProps): import("react").JSX.Element;
package/dist/index.d.ts CHANGED
@@ -98,6 +98,7 @@ export * from "./utils/attachmentLimit";
98
98
  export * from "./utils/drawerNarrow";
99
99
  export * from "./charts/WorkloadChart";
100
100
  export * from "./charts/WorkloadTimelineGrid";
101
+ export * from "./charts/WorkloadPersonTasks";
101
102
  export * from "./internal/useTaskboxShortcuts";
102
103
  export * from "./dialogs/ShortcutHelpDialog";
103
104
  export * from "./dialogs/TaskRuleManageDialog";