@ehfuse/taskbox 0.11.43 → 0.11.44
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.
|
@@ -12,7 +12,7 @@ export interface TaskLinkForm {
|
|
|
12
12
|
}
|
|
13
13
|
/** `useTaskLinkController` 옵션이다. */
|
|
14
14
|
export interface UseTaskLinkControllerOptions {
|
|
15
|
-
multiSelect?: boolean;
|
|
15
|
+
multiSelect?: boolean | ((type: TaskBoxRelationType) => boolean);
|
|
16
16
|
onSubmit: (targetSeq: number, type: TaskBoxRelationType) => void;
|
|
17
17
|
}
|
|
18
18
|
/** 관련 업무 연결 다이얼로그 컨트롤러 훅이다. */
|
|
@@ -23,6 +23,7 @@ export declare function useTaskLinkController(options: UseTaskLinkControllerOpti
|
|
|
23
23
|
};
|
|
24
24
|
openDialog: () => void;
|
|
25
25
|
toggleSelected: (seq: number) => void;
|
|
26
|
+
isMulti: (type: TaskBoxRelationType) => boolean;
|
|
26
27
|
};
|
|
27
28
|
/** 관련 업무 연결 컨트롤러 타입이다 — `TaskLinkDialog` 의 `controller` prop. */
|
|
28
29
|
export type TaskLinkController = ReturnType<typeof useTaskLinkController>;
|