@ehfuse/taskbox 0.5.246 → 0.5.248

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,16 @@
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;
18
20
  }
19
21
  /** 인원별 부하 차트 컴포넌트다. */
20
- export declare function WorkloadChart({ tasks, todayStr, soonDays, overloadThreshold, height, headerLeft, }: WorkloadChartProps): import("react").JSX.Element;
22
+ export declare function WorkloadChart({ tasks, todayStr, soonDays, overloadThreshold, capacity, height, headerLeft, }: WorkloadChartProps): 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,10 @@ 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>;
15
18
  onClose: () => void;
16
19
  }
17
20
  /** 업무 차트 다이얼로그 컴포넌트다. */
18
- export declare function SprintChartsDialog({ open, sprints, tasks, todayStr, showSprintCharts, initialSprintSeq, onClose, }: SprintChartsDialogProps): import("react").JSX.Element;
21
+ export declare function SprintChartsDialog({ open, sprints, tasks, todayStr, showSprintCharts, capacity, capacityEmployees, onSaveCapacity, 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
@@ -101,5 +101,6 @@ export * from "./charts/WorkloadTimelineGrid";
101
101
  export * from "./internal/useTaskboxShortcuts";
102
102
  export * from "./dialogs/ShortcutHelpDialog";
103
103
  export * from "./dialogs/TaskRuleManageDialog";
104
+ export * from "./dialogs/WorkloadCapacityDialog";
104
105
  export * from "./utils/taskWorkload";
105
106
  export * from "./print";