@ehfuse/taskbox 0.5.214 → 0.5.216

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,11 @@
1
+ /**
2
+ * 차트 자리에 보여주는 안내 문구다(그릴 데이터가 없을 때).
3
+ * 고정 높이 탭에서 문구가 위나 아래에 붙지 않도록 남은 공간을 채우고 가운데 정렬한다.
4
+ */
5
+ /** 차트 빈 상태 안내 props 다. */
6
+ export interface ChartEmptyMessageProps {
7
+ text: string;
8
+ height: number | string;
9
+ }
10
+ /** 차트 빈 상태 안내 컴포넌트다. */
11
+ export declare function ChartEmptyMessage({ text, height }: ChartEmptyMessageProps): import("react").JSX.Element;
@@ -3,6 +3,7 @@
3
3
  * 세로 두께가 진행 중(WIP), 완료선과 접수선의 가로 간격이 리드타임을 뜻한다.
4
4
  * 상태 전이 스냅샷이 없어 작성/시작/완료 일시로 역산한다(utils/taskFlowMetrics 참조).
5
5
  */
6
+ import type { ReactNode } from "react";
6
7
  import type { TaskBoxItem } from "../types";
7
8
  /** 누적흐름도 props 다. */
8
9
  export interface CumulativeFlowChartProps {
@@ -10,6 +11,7 @@ export interface CumulativeFlowChartProps {
10
11
  todayStr: string;
11
12
  days?: number;
12
13
  height?: number | string;
14
+ headerLeft?: ReactNode;
13
15
  }
14
16
  /** 누적흐름도 컴포넌트다. */
15
- export declare function CumulativeFlowChart({ tasks, todayStr, days, height }: CumulativeFlowChartProps): import("react").JSX.Element;
17
+ export declare function CumulativeFlowChart({ tasks, todayStr, days, height, headerLeft }: CumulativeFlowChartProps): import("react").JSX.Element;
@@ -3,6 +3,7 @@
3
3
  * 리드타임=작성→완료(요청한 사람이 체감하는 시간), 사이클타임=시작→완료(실제 작업 시간)이며
4
4
  * 시작일이 없는 업무는 사이클타임 표본에서 빠진다(utils/taskFlowMetrics 참조).
5
5
  */
6
+ import type { ReactNode } from "react";
6
7
  import type { TaskBoxItem } from "../types";
7
8
  /** 리드타임 분포 차트 props 다. */
8
9
  export interface LeadTimeDistributionChartProps {
@@ -10,6 +11,7 @@ export interface LeadTimeDistributionChartProps {
10
11
  todayStr: string;
11
12
  days?: number;
12
13
  height?: number | string;
14
+ headerLeft?: ReactNode;
13
15
  }
14
16
  /** 리드타임/사이클타임 분포 차트 컴포넌트다. */
15
- export declare function LeadTimeDistributionChart({ tasks, todayStr, days, height, }: LeadTimeDistributionChartProps): import("react").JSX.Element;
17
+ export declare function LeadTimeDistributionChart({ tasks, todayStr, days, height, headerLeft, }: LeadTimeDistributionChartProps): import("react").JSX.Element;
@@ -4,6 +4,7 @@
4
4
  * 시작 시 총량에서 각 날짜까지 완료된 업무의 SP 를 차감(완료 시각이 없는 완료 업무는 시작일 완료로 간주).
5
5
  * SP 를 아무도 안 쓰면(총 SP 0) 업무 건수로 자동 대체한다. 이상선(회색 점선)은 총량→0 직선이다.
6
6
  */
7
+ import type { ReactNode } from "react";
7
8
  import type { TaskBoxItem, TaskBoxSprint } from "../types";
8
9
  /** 번다운 차트 props 다. */
9
10
  export interface SprintBurndownChartProps {
@@ -11,6 +12,7 @@ export interface SprintBurndownChartProps {
11
12
  tasks: TaskBoxItem[];
12
13
  todayStr: string;
13
14
  height?: number | string;
15
+ headerLeft?: ReactNode;
14
16
  }
15
17
  /** 번다운 차트 컴포넌트다. */
16
- export declare function SprintBurndownChart({ sprint, tasks, todayStr, height }: SprintBurndownChartProps): import("react").JSX.Element;
18
+ export declare function SprintBurndownChart({ sprint, tasks, todayStr, height, headerLeft }: SprintBurndownChartProps): import("react").JSX.Element;
@@ -26,10 +26,33 @@ export declare const CHART_TOOLTIP_PROPS: {
26
26
  fontSize: number;
27
27
  };
28
28
  };
29
+ /**
30
+ * 막대 차트 툴팁 속성이다 — 마우스를 올릴 때 칸 전체를 덮는 회색 배경(recharts 기본 cursor)을 끈다.
31
+ * 목표가 하나뿐이면 그 회색이 그래프 영역을 통째로 칠해 버려 데이터가 없는 것처럼 보인다.
32
+ */
33
+ export declare const CHART_BAR_TOOLTIP_PROPS: {
34
+ cursor: false;
35
+ contentStyle: {
36
+ fontSize: number;
37
+ color: string;
38
+ border: string;
39
+ borderRadius: number;
40
+ };
41
+ labelStyle: {
42
+ fontSize: number;
43
+ color: string;
44
+ fontWeight: number;
45
+ };
46
+ itemStyle: {
47
+ fontSize: number;
48
+ };
49
+ };
29
50
  /**
30
51
  * 차트 루트 sx 다 — 높이가 문자열("100%")이면 부모를 가득 채우는 세로 flex 로 둔다.
31
52
  * 고정 높이 다이얼로그의 탭에서 내용이 위쪽에 몰리지 않게 하는 장치다.
32
53
  */
33
54
  export declare function chartRootSx(height: number | string): SxProps<Theme>;
55
+ /** 차트 위 헤더 행 sx 다 — 왼쪽 선택칸(기간·목표)과 오른쪽 설명을 2열로 놓는다. */
56
+ export declare const chartHeaderRowSx: SxProps<Theme>;
34
57
  /** 그래프 영역 sx 다 — 고정 높이면 그 높이로, "100%" 면 남은 공간을 전부 차지한다. */
35
58
  export declare function chartAreaSx(height: number | string): SxProps<Theme>;
package/dist/index.d.ts CHANGED
@@ -52,6 +52,7 @@ export * from "./dialogs/EmployeeSelectDialog";
52
52
  export * from "./dialogs/SprintChartsDialog";
53
53
  export * from "./charts/SprintVelocityChart";
54
54
  export * from "./charts/SprintBurndownChart";
55
+ export * from "./charts/ChartEmptyMessage";
55
56
  export * from "./charts/CumulativeFlowChart";
56
57
  export * from "./charts/LeadTimeDistributionChart";
57
58
  export * from "./atoms/TaskStatusChip";