@ehfuse/taskbox 0.1.2 → 0.1.3

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,37 @@
1
+ /**
2
+ * 탭별 화면 규칙이다 — "이 탭에서 무엇을 보여줄지"의 판단만 모아 둔다(렌더/배치는 소비처 몫).
3
+ * 헤더 조립은 앱마다 갈리지만(www 는 mdl 헤더+검색 오버레이, 예제는 MUI 한 줄) 규칙 자체는 같아서,
4
+ * 규칙만 여기로 뽑아 두 소비처가 같은 판단을 복제하지 않게 한다.
5
+ *
6
+ * 사용법: `getTabHeaderConfig(activeTab)` 결과의 boolean/라벨을 소비처 헤더 조립에 그대로 꽂는다.
7
+ */
8
+ import type { TaskBoxColumnOptions } from "../table/columns";
9
+ import type { TaskBoxViewKind } from "../views/TaskBoxView";
10
+ /** 탭 성격이다 — 탭 id 가 앱마다 달라도 이 성격으로 규칙이 정해진다. */
11
+ export type TaskBoxTabKind = "tasks" | "notice" | "bug" | "archive" | "done" | "report";
12
+ /** 탭 id 의 성격을 구한다(모르는 id 는 일반 업무 탭으로 본다). */
13
+ export declare function getTaskBoxTabKind(tabId: string): TaskBoxTabKind;
14
+ /**
15
+ * 보기별 기본 표시 이름이다 — 보기 전환 버튼 라벨(소비처가 아이콘을 덧붙여 쓴다).
16
+ * 컬럼 축이 무엇인지 이름으로 바로 읽히게 부른다(보드→"프로젝트", 칸반→"상태").
17
+ */
18
+ export declare const TASKBOX_VIEW_LABELS: Record<TaskBoxViewKind, string>;
19
+ /** 탭별 헤더 구성 규칙이다 — 소비처는 이 값을 보고 자기 헤더를 조립한다. */
20
+ export interface TaskBoxTabHeaderConfig {
21
+ kind: TaskBoxTabKind;
22
+ viewOptions: TaskBoxViewKind[];
23
+ showCreate: boolean;
24
+ createLabel: string;
25
+ showGroupBy: boolean;
26
+ showSprintFilter: boolean;
27
+ showDateRange: boolean;
28
+ showHideCompleted: boolean;
29
+ forceFlatList: boolean;
30
+ columns: TaskBoxColumnOptions;
31
+ }
32
+ /**
33
+ * 탭별 헤더/목록 구성 규칙을 구한다.
34
+ * `tabId` 는 앱의 탭 id 를 그대로 넘기면 되고(모르는 id=일반 업무 탭), 반환값의 판단만 쓰면 된다.
35
+ * 소비처 사정으로 더 좁혀야 하면 결과에 AND 를 걸면 된다(예: 목표 사용 프로젝트가 없으면 showSprintFilter 를 끈다).
36
+ */
37
+ export declare function getTabHeaderConfig(tabId: string): TaskBoxTabHeaderConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ehfuse/taskbox",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
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",