@ehfuse/taskbox 0.5.212 → 0.5.214

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * 누적흐름도(CFD)다 — 최근 N일 동안 접수된 업무를 완료/진행/대기로 쌓아 보여준다(SVG 자체 렌더).
2
+ * 누적흐름도(CFD)다 — 최근 N일 동안 접수된 업무를 완료/진행/대기로 쌓아 보여준다(recharts 누적 영역 차트).
3
3
  * 세로 두께가 진행 중(WIP), 완료선과 접수선의 가로 간격이 리드타임을 뜻한다.
4
4
  * 상태 전이 스냅샷이 없어 작성/시작/완료 일시로 역산한다(utils/taskFlowMetrics 참조).
5
5
  */
@@ -9,7 +9,7 @@ export interface CumulativeFlowChartProps {
9
9
  tasks: TaskBoxItem[];
10
10
  todayStr: string;
11
11
  days?: number;
12
- height?: number;
12
+ height?: number | string;
13
13
  }
14
14
  /** 누적흐름도 컴포넌트다. */
15
15
  export declare function CumulativeFlowChart({ tasks, todayStr, days, height }: CumulativeFlowChartProps): import("react").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * 리드타임/사이클타임 분포 차트다 — 최근 N일에 완료된 업무를 소요일수 구간별 막대로 보여준다(div 막대).
2
+ * 리드타임/사이클타임 분포 차트다 — 최근 N일에 완료된 업무를 소요일수 구간별 막대로 보여준다(recharts).
3
3
  * 리드타임=작성→완료(요청한 사람이 체감하는 시간), 사이클타임=시작→완료(실제 작업 시간)이며
4
4
  * 시작일이 없는 업무는 사이클타임 표본에서 빠진다(utils/taskFlowMetrics 참조).
5
5
  */
@@ -9,7 +9,7 @@ export interface LeadTimeDistributionChartProps {
9
9
  tasks: TaskBoxItem[];
10
10
  todayStr: string;
11
11
  days?: number;
12
- height?: number;
12
+ height?: number | string;
13
13
  }
14
14
  /** 리드타임/사이클타임 분포 차트 컴포넌트다. */
15
15
  export declare function LeadTimeDistributionChart({ tasks, todayStr, days, height, }: LeadTimeDistributionChartProps): import("react").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * 번다운 차트다 — 한 목표(스프린트)의 남은 스토리 포인트를 날짜별 꺾은선으로 보여준다(SVG 자체 렌더).
2
+ * 번다운 차트다 — 한 목표(스프린트)의 남은 스토리 포인트를 날짜별 꺾은선으로 보여준다(recharts).
3
3
  * 별도 스냅샷 없이 완료 시각(completed_time) 역산으로 근사한다:
4
4
  * 시작 시 총량에서 각 날짜까지 완료된 업무의 SP 를 차감(완료 시각이 없는 완료 업무는 시작일 완료로 간주).
5
5
  * SP 를 아무도 안 쓰면(총 SP 0) 업무 건수로 자동 대체한다. 이상선(회색 점선)은 총량→0 직선이다.
@@ -10,7 +10,7 @@ export interface SprintBurndownChartProps {
10
10
  sprint: TaskBoxSprint;
11
11
  tasks: TaskBoxItem[];
12
12
  todayStr: string;
13
- height?: number;
13
+ height?: number | string;
14
14
  }
15
15
  /** 번다운 차트 컴포넌트다. */
16
16
  export declare function SprintBurndownChart({ sprint, tasks, todayStr, height }: SprintBurndownChartProps): import("react").JSX.Element;
@@ -1,13 +1,14 @@
1
1
  /**
2
- * 벨로시티 차트다 — 목표(스프린트)별로 완료한 스토리 포인트 합을 막대로 보여준다(외부 차트 라이브러리 없이 div 막대).
2
+ * 벨로시티 차트다 — 목표(스프린트)별로 완료한 스토리 포인트 합을 막대로 보여준다(recharts).
3
3
  * SP 를 아무도 안 쓰면(전 목표 SP 합 0) 완료 업무 건수로 자동 대체한다.
4
+ * 종료 목표는 확정치(진한 파랑), 진행중·계획중은 아직 쌓이는 중(옅은 파랑)으로 칠한다.
4
5
  */
5
6
  import type { TaskBoxItem, TaskBoxSprint } from "../types";
6
7
  /** 벨로시티 차트 props 다. */
7
8
  export interface SprintVelocityChartProps {
8
9
  sprints: TaskBoxSprint[];
9
10
  tasks: TaskBoxItem[];
10
- height?: number;
11
+ height?: number | string;
11
12
  }
12
13
  /** 벨로시티 차트 컴포넌트다. */
13
14
  export declare function SprintVelocityChart({ sprints, tasks, height }: SprintVelocityChartProps): import("react").JSX.Element;
@@ -0,0 +1,35 @@
1
+ /**
2
+ * 업무함 차트 공통 표시 규칙이다(recharts 공용).
3
+ * 네 차트가 같은 색·툴팁·높이 규칙을 쓰도록 여기 한 곳에 둔다.
4
+ */
5
+ import type { SxProps, Theme } from "@mui/material";
6
+ /** 확정치(완료·리드타임) 색이다. */
7
+ export declare const CHART_COLOR_PRIMARY = "#2f80ed";
8
+ /** 진행 중·보조 계열(사이클타임 등) 색이다. */
9
+ export declare const CHART_COLOR_SECONDARY = "#a9c9f5";
10
+ /** 대기·이상선 같은 무채색 계열이다. */
11
+ export declare const CHART_COLOR_MUTED = "#9a9a97";
12
+ /** 툴팁 공통 속성이다 — 기본 글자가 작아 읽기 나쁘므로 본문 규칙(13.5px 검정)에 맞춘다. */
13
+ export declare const CHART_TOOLTIP_PROPS: {
14
+ contentStyle: {
15
+ fontSize: number;
16
+ color: string;
17
+ border: string;
18
+ borderRadius: number;
19
+ };
20
+ labelStyle: {
21
+ fontSize: number;
22
+ color: string;
23
+ fontWeight: number;
24
+ };
25
+ itemStyle: {
26
+ fontSize: number;
27
+ };
28
+ };
29
+ /**
30
+ * 차트 루트 sx 다 — 높이가 문자열("100%")이면 부모를 가득 채우는 세로 flex 로 둔다.
31
+ * 고정 높이 다이얼로그의 탭에서 내용이 위쪽에 몰리지 않게 하는 장치다.
32
+ */
33
+ export declare function chartRootSx(height: number | string): SxProps<Theme>;
34
+ /** 그래프 영역 sx 다 — 고정 높이면 그 높이로, "100%" 면 남은 공간을 전부 차지한다. */
35
+ export declare function chartAreaSx(height: number | string): SxProps<Theme>;
package/dist/index.d.ts CHANGED
@@ -94,3 +94,4 @@ export * from "./utils/taskFlowMetrics";
94
94
  export * from "./utils/taskShareText";
95
95
  export * from "./utils/attachmentLimit";
96
96
  export * from "./utils/drawerNarrow";
97
+ export * from "./print";