@ehfuse/taskbox 0.5.229 → 0.5.230

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.
@@ -41,3 +41,36 @@ export declare function buildWorkloadRows(tasks: readonly TaskBoxItem[], options
41
41
  export declare function isOverloaded(row: WorkloadRow, threshold: number): boolean;
42
42
  /** 팀 평균 미완료 건수다(미배정 행 제외 — 사람 수로 나눠야 평균이 뜻을 갖는다). */
43
43
  export declare function averageWorkload(rows: readonly WorkloadRow[]): number;
44
+ /** 히트맵 한 열(주)이다. */
45
+ export interface WorkloadWeek {
46
+ start: string;
47
+ end: string;
48
+ label: string;
49
+ isCurrent: boolean;
50
+ }
51
+ /** 히트맵 한 행(사람)이다. */
52
+ export interface WorkloadTimelineRow {
53
+ accountSeq: number;
54
+ name: string;
55
+ overdue: number;
56
+ byWeek: number[];
57
+ noDue: number;
58
+ total: number;
59
+ beyond: number;
60
+ }
61
+ /** 기간축 워크로드 결과다. */
62
+ export interface WorkloadTimeline {
63
+ weeks: WorkloadWeek[];
64
+ rows: WorkloadTimelineRow[];
65
+ maxCell: number;
66
+ }
67
+ /**
68
+ * 주별 워크로드(사람 × 기간)를 만든다 — "누가 언제 몰려 있나"를 보는 히트맵용이다.
69
+ * 총량 막대는 지금 이 순간만 보여주는데, 실제 조정은 "다음 주에 세 사람이 겹친다" 같은 사실에서 시작한다.
70
+ *
71
+ * 열 구성: [지연] [이번 주] [+1주] … [+N주] [마감없음]
72
+ * 표시 기간을 넘어선 마감은 beyond 로만 세고 칸으로 그리지 않는다(열이 무한히 늘어나면 못 읽는다).
73
+ */
74
+ export declare function buildWorkloadTimeline(tasks: readonly TaskBoxItem[], options: WorkloadOptions & {
75
+ weeks?: number;
76
+ }): WorkloadTimeline;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ehfuse/taskbox",
3
- "version": "0.5.229",
3
+ "version": "0.5.230",
4
4
  "description": "A React/MUI task inbox component with notices, per-user assignments, read tracking, and mobile card UI",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",