@ehfuse/taskbox 0.5.247 → 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.
@@ -7,14 +7,18 @@
7
7
  */
8
8
  import type { ReactNode } from "react";
9
9
  import type { TaskBoxItem } from "../types";
10
+ import type { WorkloadCapacity } from "../types";
10
11
  /** 워크로드 차트 props 다. */
11
12
  export interface WorkloadChartProps {
12
13
  tasks: TaskBoxItem[];
13
14
  todayStr: string;
14
15
  soonDays?: number;
15
16
  overloadThreshold?: number;
17
+ capacity?: WorkloadCapacity;
16
18
  height?: number | string;
17
19
  headerLeft?: ReactNode;
20
+ selectedAccountSeq?: number;
21
+ onSelectPerson?: (accountSeq: number) => void;
18
22
  }
19
23
  /** 인원별 부하 차트 컴포넌트다. */
20
- export declare function WorkloadChart({ tasks, todayStr, soonDays, overloadThreshold, 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;
@@ -3,7 +3,7 @@
3
3
  * 흐름 차트(누적흐름도·리드타임/사이클타임 분포)를 **탭 4개**로 가른다(한 화면에 쌓지 않는다).
4
4
  * 데이터 계산은 charts/ 컴포넌트가 하고, 여기는 목표·기간 선택과 탭 배치만 맡는다.
5
5
  */
6
- import type { TaskBoxItem, TaskBoxSprint } from "../types";
6
+ import type { TaskBoxItem, TaskBoxSprint, TaskboxEmployee, WorkloadCapacity } from "../types";
7
7
  /** 업무 차트 다이얼로그 props 다. */
8
8
  export interface SprintChartsDialogProps {
9
9
  open: boolean;
@@ -12,7 +12,12 @@ export interface SprintChartsDialogProps {
12
12
  todayStr: string;
13
13
  initialSprintSeq?: number;
14
14
  showSprintCharts?: boolean;
15
+ capacity?: WorkloadCapacity;
16
+ capacityEmployees?: TaskboxEmployee[];
17
+ onSaveCapacity?: (capacity: WorkloadCapacity) => void | Promise<void>;
18
+ onChangeTaskManager?: (taskSeq: number, accountSeq: number, name: string) => void;
19
+ onOpenTask?: (taskSeq: number) => void;
15
20
  onClose: () => void;
16
21
  }
17
22
  /** 업무 차트 다이얼로그 컴포넌트다. */
18
- export declare function SprintChartsDialog({ open, sprints, tasks, todayStr, showSprintCharts, 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;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * 인원 용량 설정 다이얼로그다 — 워크로드 차트의 "용량" 버튼이 연다.
3
+ *
4
+ * 용량은 "이 사람이 한 번에 안을 수 있는 양"의 절대 기준이다. 팀 평균 기준만 쓰면
5
+ * **팀 전체가 함께 과부하일 때 아무도 과부하로 안 잡히는** 구멍이 있어서, 조직이 정한 값을 함께 둔다.
6
+ * 대부분은 공통 기본값 하나로 충분하고, 겸직·시간제처럼 사정이 다른 사람만 예외를 준다(0=기본값 사용).
7
+ */
8
+ import type { TaskboxEmployee, WorkloadCapacity } from "../types";
9
+ /** 인원 용량 다이얼로그 props 다. */
10
+ export interface WorkloadCapacityDialogProps {
11
+ open: boolean;
12
+ capacity: WorkloadCapacity;
13
+ employees: TaskboxEmployee[];
14
+ onClose: () => void;
15
+ onSave: (capacity: WorkloadCapacity) => void | Promise<void>;
16
+ }
17
+ /** 인원 용량 설정 다이얼로그 컴포넌트다. */
18
+ export declare function WorkloadCapacityDialog({ open, capacity, employees, onClose, onSave, }: WorkloadCapacityDialogProps): import("react").JSX.Element;
package/dist/index.d.ts CHANGED
@@ -98,8 +98,10 @@ 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";
105
+ export * from "./dialogs/WorkloadCapacityDialog";
104
106
  export * from "./utils/taskWorkload";
105
107
  export * from "./print";