@ehfuse/taskbox 0.5.391 → 0.5.392
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.
- package/dist/index.esm.js +11 -11
- package/dist/index.esm.js.map +3 -3
- package/dist/index.js +10 -10
- package/dist/index.js.map +3 -3
- package/dist/utils/groupTasks.d.ts +5 -1
- package/dist/views/TaskBoxTable.d.ts +2 -1
- package/package.json +1 -1
|
@@ -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