@ehfuse/taskbox 0.5.391 → 0.5.393
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.
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
* 각 행의 선택 메뉴·달력 팝퍼를 한 곳에서 소유한다 — 값 입출력은 콜백으로 받아 폼/액션 어느 쪽에도 붙는다.
|
|
5
5
|
* 시작일시·마감일시는 datetime("YYYY-MM-DD HH:mm", 시각 생략 가능 — 옛 데이터 호환)이다.
|
|
6
6
|
* 상세 전용 행(상태·작성/완료 기록)은 leading/trailing 으로 끼워 넣는다.
|
|
7
|
-
* 반복이 설정되면
|
|
7
|
+
* 반복이 설정되면 마감일시 행을 숨긴다(회차 날짜는 반복 규칙이 정한다) — 소비처가 hide* 로 게이트한다.
|
|
8
|
+
* 사전알림은 반복에도 유지한다(회차 시작일시 기준 발송, 2026-08-29).
|
|
8
9
|
*/
|
|
9
10
|
import { type ReactNode } from "react";
|
|
10
11
|
import { type SxProps, type Theme } from "@mui/material";
|
|
@@ -28,6 +28,10 @@ export declare const NOTICE_GROUP_KEY = "__notice__";
|
|
|
28
28
|
export declare const BUG_GROUP_KEY = "__bug__";
|
|
29
29
|
/** 고객센터 고정 그룹 키다(pinKindGroups — 오류 다음). */
|
|
30
30
|
export declare const SUPPORT_GROUP_KEY = "__support__";
|
|
31
|
+
/** 고정 그룹 종류다 — bug=오류, support=고객센터, null=고정하지 않음. */
|
|
32
|
+
export type TaskBoxPinKind = "bug" | "support" | null;
|
|
33
|
+
/** 고정 그룹 옵션이다 — true=오류·고객센터 전부 고정, 함수=업무별로 고정 그룹을 고른다(null=일반 기준). */
|
|
34
|
+
export type TaskBoxPinKindGroups = boolean | ((task: TaskBoxItem) => TaskBoxPinKind);
|
|
31
35
|
/**
|
|
32
36
|
* 업무 목록을 그룹 섹션(헤더 + 소속 업무)으로 만든다.
|
|
33
37
|
* 그룹 순서는 기준별 고정(마감일시/상태) 또는 이름순(책임자)이고, 빈 그룹은 표시하지 않는다.
|
|
@@ -36,4 +40,4 @@ export declare const SUPPORT_GROUP_KEY = "__support__";
|
|
|
36
40
|
export declare function buildTaskGroupSections(tasks: TaskBoxItem[], groupBy: TaskBoxGroupBy, todayStr: string, customTabs?: TaskBoxCustomTab[], _labelOptions?: TaskBoxLabel[], myName?: string, myRoleOptions?: {
|
|
37
41
|
enabled: boolean;
|
|
38
42
|
myAccountSeq?: number;
|
|
39
|
-
}, pinKindGroups?:
|
|
43
|
+
}, pinKindGroups?: TaskBoxPinKindGroups): TaskBoxGroupSection[];
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
import type { TaskBoxCustomTab, TaskBoxDateField, TaskBoxGroupBy, TaskBoxItem, TaskBoxLabel, TaskBoxMemberField, TaskBoxPriority, TaskBoxReminder, TaskBoxStatus } from "../types";
|
|
12
12
|
import type { NoticeAckInfo, NoticeTargetDisplay } from "../utils/noticeTargets";
|
|
13
13
|
import type { TaskConfirmInfo } from "../utils/taskConfirm";
|
|
14
|
+
import { type TaskBoxPinKindGroups } from "../utils/groupTasks";
|
|
14
15
|
import { type TaskBoxColumnOptions, type TaskBoxValueFilterField } from "../table/columns";
|
|
15
16
|
import { type UseTaskItemHook } from "../table/TableTaskRow";
|
|
16
17
|
export interface TaskBoxTableProps {
|
|
@@ -66,7 +67,7 @@ export interface TaskBoxTableProps {
|
|
|
66
67
|
myAccountSeq?: number;
|
|
67
68
|
currentUserName?: string;
|
|
68
69
|
groupManagerByMyRole?: boolean;
|
|
69
|
-
pinKindGroups?:
|
|
70
|
+
pinKindGroups?: TaskBoxPinKindGroups;
|
|
70
71
|
allowManagerVolunteer?: boolean;
|
|
71
72
|
noticeAdmin?: boolean;
|
|
72
73
|
getTargetSummary?: (task: TaskBoxItem) => string;
|
package/package.json
CHANGED