@ehfuse/taskbox 0.5.348 → 0.5.349
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/dialogs/TaskboxManualDialog.d.ts +3 -3
- package/dist/index.esm.js +29 -28
- package/dist/index.esm.js.map +4 -4
- package/dist/index.js +29 -28
- package/dist/index.js.map +4 -4
- package/dist/internal/CompleteConfirmPopper.d.ts +20 -0
- package/dist/types/item.d.ts +1 -0
- package/dist/types/provider.d.ts +7 -0
- package/package.json +2 -2
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 완료 체크 확인 팝퍼다 — 완료/해제 확인에 더해, "책임자가 완료한 업무를 작성자가 되돌리는" 모드를 지원한다.
|
|
3
|
+
* 되돌리기 모드에서는 사유 입력(필수)이 붙고, 확인 시 사유를 함께 돌려준다.
|
|
4
|
+
* 표·보드·캘린더·모바일 목록·상세 헤더가 같은 팝퍼를 쓴다(동작·문구 통일).
|
|
5
|
+
*/
|
|
6
|
+
import type { TaskBoxItem } from "../types";
|
|
7
|
+
/** 되돌리기 모드 판정이다 — 완료 업무 + 내가 작성자 + 완료 처리자가 남(책임자 등)일 때만. */
|
|
8
|
+
export declare function canReturnTaskItem(task: TaskBoxItem, myAccountSeq: number): boolean;
|
|
9
|
+
/** 완료 확인 팝퍼 props 다. */
|
|
10
|
+
export interface CompleteConfirmPopperProps {
|
|
11
|
+
open: boolean;
|
|
12
|
+
anchorEl: HTMLElement | null;
|
|
13
|
+
nextCompleted: boolean;
|
|
14
|
+
returnMode?: boolean;
|
|
15
|
+
onCancel: () => void;
|
|
16
|
+
/** 확인 — 되돌리기 모드면 사유가 함께 온다(그 외에는 빈 문자열). */
|
|
17
|
+
onConfirm: (reason: string) => void;
|
|
18
|
+
}
|
|
19
|
+
/** 완료 체크 확인 팝퍼 컴포넌트다. */
|
|
20
|
+
export declare function CompleteConfirmPopper({ open, anchorEl, nextCompleted, returnMode, onCancel, onConfirm, }: CompleteConfirmPopperProps): import("react").JSX.Element;
|
package/dist/types/item.d.ts
CHANGED
package/dist/types/provider.d.ts
CHANGED
|
@@ -61,6 +61,13 @@ export interface TaskboxConfig {
|
|
|
61
61
|
* prop 을 따로 뚫지 않은 자리(ReceiverAvatarStack)는 여기서 읽는다(없으면 이니셜).
|
|
62
62
|
*/
|
|
63
63
|
avatarSrcByName?: Map<string, string>;
|
|
64
|
+
/** 로그인 계정 seq — 완료 "되돌리기" 판정 등 화면 곳곳의 본인 판정에 쓴다(prop 을 안 받는 자리용). */
|
|
65
|
+
myAccountSeq?: number;
|
|
66
|
+
/**
|
|
67
|
+
* 완료 되돌리기 — 책임자가 완료한 업무를 작성자가 사유와 함께 되돌린다(완료 해제 + 사유 댓글 + 책임자 알림).
|
|
68
|
+
* 지정하면 완료 해제 확인 팝퍼가 되돌리기 모드(사유 입력)로 바뀐다. 미지정=기존 완료 해제 그대로.
|
|
69
|
+
*/
|
|
70
|
+
onReturnTask?: (task: TaskBoxItem, reason: string) => void;
|
|
64
71
|
/** 모바일 폰트 오프셋(px). 지정 시 Provider 가 CSS 변수를 주입한다. 미지정=앱 CSS 변수 상속. */
|
|
65
72
|
mobileFontOffsetPx?: number;
|
|
66
73
|
/** 모바일 판정 강제(미지정=내장 미디어쿼리 lg 미만). */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ehfuse/taskbox",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.349",
|
|
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",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"@ehfuse/mui-color-picker": "^1.5.4",
|
|
101
101
|
"@ehfuse/mui-datetime-picker": "1.0.21",
|
|
102
102
|
"@ehfuse/mui-form-controls": "^3.1.62",
|
|
103
|
-
"@ehfuse/mui-form-dialog": "^1.7.
|
|
103
|
+
"@ehfuse/mui-form-dialog": "^1.7.58",
|
|
104
104
|
"@ehfuse/overlay-scrollbar": "^1.7.27",
|
|
105
105
|
"@ehfuse/tree-view": "^1.0.15",
|
|
106
106
|
"@emotion/react": "^11.14.0",
|